malloca: port to compilers that reject size-zero arrays
[gnulib.git] / ChangeLog
1 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2
3         malloca: port to compilers that reject size-zero arrays
4         This fixes a bug introduced in my previous patch.
5         * lib/malloca.c (struct preliminary_header): Use an int
6         rather than a character array of size int; that's simpler.
7         (struct header): Remove, replacing with ...
8         (union header): New type.  This avoids the need for declaring a
9         character array of size zero, which is not allowed on some platforms.
10         All uses changed.
11
12 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13
14         parse-datetime, tests: don't use "string" + int
15         Recent versions of 'clang' complain about C source code that
16         uses expressions of the form '"string literal" + integer',
17         I guess on the theory that it's confusing for readers who are
18         used to C++.  On those grounds I suppose it's OK to make this
19         minor style change.
20         * lib/parse-datetime.y (parse_datetime):
21         * tests/test-fchdir.c (main):
22         * tests/test-snprintf-posix.h (test_function):
23         * tests/test-snprintf.c (main):
24         * tests/test-vasnprintf-posix.c (test_function):
25         * tests/test-vasnprintf.c (test_function):
26         * tests/test-vsnprintf.c (main):
27         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
28         Rewrite '"str" + E' to '&"str"[E]'.
29
30 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31
32         argmatch: port to C++
33         * lib/argmatch.h [__cplusplus]: Add extern "C".
34
35         argp: typo fix
36         * lib/argp-help.c: Typo in comment.
37
38 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
39
40         manywarnings: update for GCC 4.8.0
41         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
42         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
43         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
44         -Wmissing-noreturn, as they are duplicates of other warnings.
45         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
46         was documented to be flaky in earlier versions of GCC.
47
48         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
49         * tests/test-spawn.c (main):
50         * tests/test-sys_socket.c (main):
51         * tests/test-sys_wait.c (main):
52         Don't have a switch value that isn't covered by a case.
53
54         getaddrinfo-tests: port --enable-gcc-warnings to clang
55         * tests/test-getaddrinfo.c (simple):
56         Avoid casts from looser to stricter-aligned pointers.
57
58         thread: port --enable-gcc-warnings to clang
59         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
60         Include <signal.h>, to pacify a warning about pthread_sigmask.
61
62         stdio: use __REDIRECT for fwrite, fwrite_unlocked
63         * lib/stdio.in.h (fwrite):
64         When working around bug 11959, use __REDIRECT rather than '#define
65         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
66         fix the -Wunused-value issue with clang, and it works with GCC too.
67         Problem with targeting reported by Eric Blake in
68         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
69         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
70         debugging the fwrite issue.
71
72         stdio: port --enable-gcc-warnings to clang
73         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
74         since the GCC workaround for fwrite does not pacify clang.
75
76         sig2str: port --enable-gcc-warnings to clang
77         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
78
79         obstack: port --enable-gcc-warnings to clang
80         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
81         Avoid casts from looser to stricter-aligned pointers.
82
83         memchr2: port --enable-gcc-warnings to clang
84         * lib/memchr2.c (memchr2):
85         Avoid casts from looser to stricter-aligned pointers.
86
87         mbsstr: port --enable-gcc-warnings to clang
88         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
89         Avoid casts from looser to stricter-aligned pointers.
90
91         malloca: port --enable-gcc-warnings to clang
92         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
93         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
94
95         inttostr: port --enable-gcc-warnings to clang
96         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
97
98         warnings: port to clang
99         Problem reported by Daniel P. Berrange via Eric Blake in
100         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
101         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
102         (gl_WARN_ADD): Use it.
103
104 2013-05-11  Jim Meyering  <meyering@fb.com>
105
106         quotearg: do not read beyond end of buffer
107         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
108         end of an ARG for which no length was specified.  With an N-byte
109         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
110         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
111         via coreutils' misc/sort-debug-keys.sh test and detected by running
112         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
113         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
114         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
115         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
116         characters correctly."
117
118 2013-05-11  Daiki Ueno  <ueno@gnu.org>
119
120         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
121         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
122         compilation target is Mac OS X 10.6.
123         Problem reported by parafin and Andoni Morales in
124         <http://savannah.gnu.org/bugs/?37844> and
125         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
126
127 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
128
129         mkdir-p: remove assumptions about umask and mode
130         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
131         umask is 0, or that MODE is a subset of MODE_BITS.
132
133 2013-05-10  Eric Blake  <eblake@redhat.com>
134
135         maint.mk: catch more abuse of HAVE_DECL in syntax-check
136         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
137
138 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
139
140         deps: require Automake >= 1.9.6 in generated Makefile fragments
141
142         That is the same minimal version required in the DEPENDENCIES file.
143         Moreover, the old code generated a requirement of Automake >= 1.5,
144         and that is an insanely outdated version.
145
146         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
147         * tests/havelib/rpathlx/Makefile.am: Likewise.
148         * tests/havelib/rpathly/Makefile.am: Likewise.
149         * tests/havelib/rpathlyx/Makefile.am: Likewise.
150         * tests/havelib/rpathlz/Makefile.am: Likewise.
151         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
152         * tests/havelib/rpathx/Makefile.am: Likewise.
153         * tests/havelib/rpathy/Makefile.am: Likewise.
154         * tests/havelib/rpathz/Makefile.am: Likewise.
155
156 2013-05-08  Eric Blake  <eblake@redhat.com>
157
158         bootstrap: AC_INIT may have more than four parameters
159         * build-aux/bootstrap (extract_package_name): Correctly extract
160         non-empty tarname field.  Avoid range in regex.
161         Based on a report by Sami Kerola <kerolasa@iki.fi>.
162
163 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
164
165         qacl: port to MS-Windows port of GNU Emacs
166         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
167         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
168         port of GNU Emacs.  Problem reported by Eli Zaretskii in
169         <http://bugs.gnu.org/14295#14>.
170
171 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
172
173         acl: include quote.h
174         * lib/copy-acl.c: Include quote.h.
175         * lib/set-acl.c: Likewise.
176
177 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
178
179         fchownat, renameat, unlinkat: update statat dependencies
180         These modules use statat and lstatat, not fstatat; so depend on
181         the statat module, which was split out recently from fstatat.
182         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
183         * modules/renameat: Likewise.  Also delete fstat.
184         URL: http://bugs.gentoo.org/468790
185
186 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
187
188         Assume gnulib is checked out from Git, not CVS
189
190         In fact, access to the gnulib repository through CVS has been
191         disabled, or more precisely, got broken and was never restored; see:
192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
193
194         Note that support for CVS is not removed completely and unthinkingly
195         by this change: only support for CVS checkouts of gnulib itself is
196         removed.  For example, the 'bootstrap' script still cater to .cvsingore
197         files and CVS directories, for the benefit of those poor gnulib clients
198         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
199
200         * gnulib-tool: Simplify accordingly.
201         * posix-modules: Likewise.
202         * MODULES.html.sh: Likewise.
203         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
204         repository.
205         * doc/gnulib-intro.texi: Likewise.
206         * doc/gnulib-readme.texi: Likewise.
207         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
208         sample '.gitignore' file rather than a sample '.cvsignore'.
209         * NEWS: Update.
210         * m4/extensions.m4: While at it, remove a comment mistakenly referring
211         to "CVS Autoconf" rather than "git Autoconf".
212
213 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
214
215         utimensat-tests, etc.: try to fix some races
216         Problem reported by Bernhard Voelker in
217         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
218         I don't know whether this patch fixes that race condition, but it
219         fixes *some* race conditions, so it should be a win.
220         * modules/chown-tests (Depends-on):
221         * modules/fchownat-tests (Depends-on):
222         * modules/fdutimensat-tests (Depends-on):
223         * modules/futimens-tests (Depends-on):
224         * modules/lchown-tests (Depends-on):
225         * modules/stat-time-tests (Depends-on):
226         * modules/utimens-tests (Depends-on):
227         * modules/utimensat-tests (Depends-on):
228         Depend on nanosleep, not usleep.
229         * modules/chown-tests (test_chown_LDADD):
230         * modules/lchown-tests (test_lchown_LDADD):
231         * modules/stat-time-tests (test_stat_time_LDADD):
232         New macro.
233         * modules/fchownat-tests (test_fchownat_LDADD):
234         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
235         * modules/futimens-tests (test_futimens_LDADD):
236         * modules/utimens-tests (test_utimens_LDADD):
237         * modules/utimensat-tests (test_utimensat_LDADD):
238         Add $(LIB_NANOSLEEP).
239         * modules/stat-time-tests (Files): Add tests/nap.h.
240         * tests/nap.h: Include <limits.h>, for INT_MAX.
241         (lt_mtime): Remove.
242         (diff_timespec): New function.
243         (get_stat): Rename from get_mtime.  All callers changed.
244         (nap_works): Determine the needed delay by inspecting the
245         file system's timestamp jumps; this should be more reliable.
246         Look at both mtime and ctime, and take the maximum of the two jumps.
247         (nap_works, guess_delay):
248         Return a nanosecond cound, not a microsecond count.
249         All callers changed.
250         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
251         failure.
252         (nap): Multiply the guess by 1.125, to accommodate the case where
253         the file system's clock is a bit slower than nanosleep's clock.
254         * tests/test-stat-time.c (BASE): New macro.
255         Include nap.h.
256         (nap): Remove; nap.h now defines this.  This removes a duplicate
257         implementation of 'nap'.
258
259         utimens, utimensat: work around Solaris UTIME_OMIT bug
260         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
261         Linux kernel 2.6.32 does.  Work around it in the same way.
262         * doc/posix-functions/futimens.texi (futimens):
263         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
264         * lib/utimens.c (fdutimens, lutimens):
265         * lib/utimensat.c (rpl_utimensat): Work around the bug.
266
267         gettext: now it's your responsibility to add -I$(top_builddir)/intl
268         Formerly, it was your responsibility to do this for all Makefile.ams
269         other than Gnulib's.  Now it's your responsibility to do it for
270         Gnulib's Makefile.am, too.
271         * NEWS: Document this.
272         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
273
274         acl: include errno.h to get errno
275         Reported by Daiki Ueno in
276         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
277         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
278
279 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
280
281         tests: don't assume getdtablesize () <= 10000000
282         * modules/cloexec-tests:
283         * modules/dup2-tests:
284         * modules/dup3-tests:
285         * modules/nonblocking-tests:
286         * modules/posix_spawn_file_actions_addclose-tests:
287         * modules/posix_spawn_file_actions_adddup2-tests:
288         * modules/posix_spawn_file_actions_addopen-tests:
289         * modules/unistd-safer-tests:
290         Depend on the getdtablesize module.
291         * tests/test-cloexec.c:
292         * tests/test-dup-safer.c:
293         * tests/test-dup2.c:
294         * tests/test-dup3.c:
295         * tests/test-fcntl.c:
296         * tests/test-nonblocking.c:
297         * tests/test-posix_spawn_file_actions_addclose.c:
298         * tests/test-posix_spawn_file_actions_adddup2.c:
299         * tests/test-posix_spawn_file_actions_addopen.c:
300         Don't assume getdtablesize () <= 10000000.
301
302 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
303
304         extern-inline: work around bug in Sun c99
305         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
306         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
307
308 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
309
310         qacl: new module, broken out from the acl module
311         This is for GNU Emacs, which wants the acl functions but does
312         not want 'error' invoked when they fail.
313         * lib/acl-internal.h: Do not include error.h, quote.h.
314         (ENOSYS, ENOTSUP): Remove; no longer needed.
315         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
316         * lib/acl.h: Include <stdbool.h>.
317         (acl_errno_valid): New function.
318         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
319         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
320         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
321         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
322         (ACL_INTERNAL_INLINE): Remove; no longer needed.
323         * lib/file-has-acl.c (file_has_acl):
324         * lib/qcopy-acl.c (qcopy_acl):
325         * lib/qset-acl.c (qset_acl):
326         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
327         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
328         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
329         lib/file-has-acl.c, m4/acl.m4 to qacl module.
330         Add lib/set-acl.c.
331         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
332         Add qacl.
333         (configure.ac): Move gl_FUNC_ACL to qacl module.
334         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
335         Rename set-mode-acl.c to set-acl.c.
336         * lib/acl-errno-valid.c: New file.
337         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
338         copy_acl function remains in copy-acl.c.
339         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
340         (_): Remove; not needed.
341         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
342         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
343         * modules/qacl: New file, moved from the old modules/acl.
344         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
345         Remove set-mode-acl.c, copy-acl.c.
346         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
347
348         alignof, intprops, malloca: port better to IBM's C compiler
349         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
350         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
351         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
352
353 2013-04-25  Daiki Ueno  <ueno@gnu.org>
354
355         wctype-h: fix gettext link error on mingw
356         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
357         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
358         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
359         rpl_towupper and rpl_towupper.
360
361 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
362
363         regex-tests, regex: allow glibc re_search behavior
364         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
365         re_search input data to make the multi-character collating element
366         in it clearly visible, and treat re_search return code 0 as valid.
367         * m4/regex.m4 (gl_REGEX): Likewise.
368
369 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
370
371         stdalign: doc fix
372         * doc/posix-headers/stdalign.texi (stdalign.h):
373         Gnulib doesn't support '_Alignof expr'.
374
375 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
376
377         stdalign: port to stricter ISO C11
378         ISO C11 says that _Alignof's operand must be a parenthesized type.
379         Problem reported by Eli Zaretskii in
380         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
381         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
382         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
383
384 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
385
386         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
387         Problem reported by Marco Atzeri in
388         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
389         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
390         Simply delegate to the system <sys/select.h> in this case too.
391         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
392         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
393         be needed on Solaris either.
394         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
395         Simply delgate to the system <sys/time.h> in this case.
396
397 2013-03-19  Karl Berry  <karl@gnu.org>
398
399         * build-aux/gnupload: check for erroneous (with gnupload) use of
400         ftp-upload.gnu.org, tweak help.
401
402 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
403
404         copy-file, rpmatch: fix problems found by cppcheck
405         Reported by Arno Onken in
406         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
407         * lib/rpmatch.c (try): Fix memory leak.
408         * lib/copy-file.c: Include "ignore-value.h".
409         (qcopy_file_preserving): Ignore chown value.
410         * modules/copy-file (Depends-on): Add ignore-value.
411
412 2013-01-27  Jim Meyering  <jim@meyering.net>
413
414         prefix-gnulib-mk: give better diagnostics
415         * build-aux/prefix-gnulib-mk: Don't just "die".
416         Give better diagnostics upon failure.
417
418 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
419
420         putenv: port to Solaris 10
421         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
422         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
423         is not what is wanted here.
424         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
425         declaration, not for its existence.
426
427 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
428
429         mktime: fix configure typo
430         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
431
432 2013-03-12  Eric Blake  <eblake@redhat.com>
433
434         regex-tests: skip UTF-8 test on mingw
435         * modules/regex-tests (Depends-on): Add localcharset.
436         * tests/test-regex.c (main): Use it to skip test on mingw.
437
438 2013-03-11  Eric Blake  <eblake@redhat.com>
439
440         tests: make it easier to bypass alarm time in debugger
441         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
442         * tests/test-memmem.c (main): Likewise.
443         * tests/test-passfd.c (main): Likewise.
444         * tests/test-ptsname.c (main): Likewise.
445         * tests/test-ptsname_r.c (main): Likewise.
446         * tests/test-strcasestr.c (main): Likewise.
447         * tests/test-strstr.c (main): Likewise.
448
449         regex: port to mingw's recent addition of undeclared alarm
450         * doc/posix-functions/alarm.texi (alarm): Document that alarm
451         exists but still doesn't work in newer mingw.
452         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
453         not existence.  Ensure SIGALRM is not trapped.
454         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
455         * m4/regex.m4 (gl_REGEX): Likewise.
456         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
457         * tests/test-regex.c (main): Use correct probe for alarm.
458
459         putenv: avoid compilation warning on mingw
460         * lib/putenv.c (_unsetenv): Protect variable declaration.
461         (putenv): Fix indentation.
462
463 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
464
465         unistd: don't prevent Tru64 Unix from using gnulib strtod.
466         * lib/unistd.in.h: be careful not to include un-needed system
467         stdlib.h from here, because that prevents gnulib stdlib.h from
468         defining rpl_strtod correctly.
469
470 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
471
472         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
473         changesets, but for the 'precision 0' test.
474         * tests/test-vasprintf-posix.c (test_function): Don't insist on
475         round-to-even, since POSIX says rounding is implementation-defined
476         and OS X 10.8.2 rounds 1.51 to 1 here.
477
478         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
479         changeset.
480         * tests/test-vasprintf-posix.c (test_function): Don't insist on
481         round-to-even, since POSIX says rounding is implementation-defined
482         and OS X 10.8.2 rounds 1.5 to 1 here.
483
484 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
485
486         vasnprintf-posix-tests: allow rounding 1.5 to 1
487         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
488         round-to-even, since POSIX says rounding is implementation-defined
489         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
490         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
491
492         bootstrap: port to FreeBSD
493         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
494         that treat '--' differently.  Reported by Mats Erik Andersson in
495         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
496
497 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
498
499         regex: rename remaining __attribute calls to __attribute__.
500         2012-02-25 changed definition of __attribute, but left some uses
501         unchanged, preventing compilation of regex module on most non-gcc
502         environments.
503         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
504         (lookup_collation_sequence_value, build_range_exp)
505         (build_collating_symbol): Set attributes with newly renamed
506         __attribute__ decorator.
507         * lib/regex_internal.c (re_string_peek_byte_case)
508         (re_node_set_compare, re_node_set_contains): Likewise.
509         * lib/regexec.c (acquire_init_state_context): Likewise.
510
511 2013-03-06  Bruno Haible  <bruno@clisp.org>
512
513         execute: Revert last change, but use a different condition.
514         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
515         on Windows.
516
517 2013-03-05  Eric Blake  <eblake@redhat.com>
518
519         execute: drop dead code
520         * lib/execute.c (nonintr_close, nonintr_open): Delete.
521
522 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
523
524         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
525         * m4/non-recursive-gnulib-prefix-hack.m4
526         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
527         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
528         <http://bugs.gnu.org/10305#237>.
529
530 2013-03-04  Eric Blake  <eblake@redhat.com>
531
532         test-getsockopt: avoid compiler warning
533         * tests/test-getsockopt.c (includes): Ensure close is declared.
534
535 2013-03-02  Bruno Haible  <bruno@clisp.org>
536
537         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
538         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
539
540 2013-03-02  Bruno Haible  <bruno@clisp.org>
541
542         gettext: Update to version 0.18.2.
543         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
544         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
545                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
546
547 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
548
549         regex: merge patches from libc
550
551         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
552         * lib/regex_internal.h (__attribute__): Rename from __attribute.
553         All uses changed.
554         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
555         (re_string_wchar_at, re_string_elem_size_at):
556         Mark function as possibly unused.
557
558         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
559         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
560         elements compare against the byte sequence of it, not its name.
561
562 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
563
564         putenv: port better to native Windows
565         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
566         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
567         (_unsetenv): Use _putenv if available.
568         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
569         a bit less likely to cause damage.
570         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
571         Fix the wrong value with SetEnvironmentVariable.
572         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
573         code better.
574
575 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
576
577         regex: ignore old-style-definition warnings
578         * lib/regex.c: Add pragma to ignore these warnings.
579         Problem reported for GNU tar by Pavel Raiskup.
580
581 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
582
583         getcwd: support coreutils better
584         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
585         but this might not be correct in coreutils, which disables
586         the raw decl checks.  Problem reported by Nagendra in
587         <http://bugs.gnu.org/10305#192>.
588         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
590         Test the getcwd function, not any macro, since getcwd.c wants the
591         function.
592         * m4/getcwd.m4 (gl_FUNC_GETCWD):
593         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
594         compile, as might happen if there's a macro but no function.
595
596         strtod: support coreutils better
597         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
598         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
599         disables the raw decl checks.  This assumes there is an underlying
600         strtod, but that's a safe assumption these days.
601         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
602
603         mountlist: port to HP NonStop
604         Reported by Joachim Schmitz in
605         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
606         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
607         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
608
609 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
610
611         extern-inline: avoid compilation error with HP-UX cc
612         Reported by Richard Lloyd in
613         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
614         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
615         Suppress extern inline with HP-UX cc.  This should be safe,
616         though it may hurt performance.  Perhaps someone with some HP-UX
617         experience can come up with a higher-performance fix.
618
619 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
620
621         putenv: fix heap corruption with mixed putenv/_putenv
622         Problem reported by Michael Goffioul in
623         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
624         * lib/putenv.c (putenv) [HAVE__PUTENV]:
625         Rely on _putenv to allocate the new environment.
626         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
627         * modules/putenv (configure.ac): Use it.
628
629 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
630
631         unsetenv etc.: port to Solaris 11 + GNU Emacs
632         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
633         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
634         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
635         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
636         idea but is too painful to fix right now), and without this gnulib
637         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
638         compiling unsetenv.c on Solaris 11.  Fix the problem for
639         unsetenv.c, and fix other similar occurrences.
640
641 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
642
643         secure_getenv: fix C++ declaration typo
644         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
645         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
646         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
647
648 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
649
650         careadlinkat: stop exporting careadlinkatcwd
651         Only Emacs used it directly, and Emacs no longer needs it.
652         * NEWS: Document this simplification.
653         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
654         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
655         for readlink.
656         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
657         Don't include stdlib.h; no longer needed.
658         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
659         * lib/relocwrapper.c: Adjust comment to match new dependencies.
660         * modules/areadlink (Depends-on): Add readlink.
661         (Maintainer): Add self.
662         * modules/careadlinkat (Depends-on): Remove readlink.
663
664         extensions: port better to HP-UX
665         This is merged from git Autoconf.
666         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
667         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
668         so that it's compatible with the value used when compiling.
669
670         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
671         Problem reported by Mats Erik Andersson in
672         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
673         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
674         openpty function exists, not merely when we intend to replace it.
675         This corrects the 2013-01-31 patch, which mistakenly defined
676         HAVE_OPENPTY even on hosts that lacked it.
677
678 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
679
680         secure_getenv: fix include typo
681         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
682
683         secure_getenv: port better to FreeBSD and Solaris
684         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
685         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
686         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
687         This works better on BSDish platforms.
688         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
689         Test for issetugid if __secure_getenv is missing.
690
691 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
692
693         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
694         Some of these changes are merged in from git Autoconf.
695         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
696         When deciding whether to define _XOPEN_SOURCE, inspect the
697         preprocessor macro __hpux instead of the more-heavyweight
698         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
699         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
700         as the key for __EXTENSIONS__.
701
702         unistd: avoid namespace pollution on non-glibc systems
703         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
704         This avoids namespace pollution on non-glibc systems, by causing
705         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
706         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
707         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
708
709 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
710
711         tmpdir: use secure_getenv
712         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
713         Define to secure_getenv, not getenv.
714         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
715         as that's now secure_getenv's job.
716         * modules/tmpdir (Depends-on): Add secure_getenv.
717
718         tempname: use secure_getenv
719         * lib/tempname.c (__secure_getenv) [!_LIBC]:
720         Define to secure_getenv, not getenv.
721         * modules/tempname (Depends-on):
722         Add secure_getenv.
723
724         secure_getenv: new module
725         * MODULES.html.sh (Extra functions based on ANSI C 89):
726         Add secure_getenv.
727         * doc/glibc-functions/secure_getenv.texi: New file.
728         * doc/gnulib.texi: Include it.
729         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
730         New files.
731         * lib/stdlib.in.h (secure_getenv): New decl.
732         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
733         * modules/stdlib (stdlib.h):
734         Add secure_getenv checks.
735
736 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
737
738         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
739         Reported for OS X 10.8.2 by Assaf Gordon in
740         <http://bugs.gnu.org/13516>.
741         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
742         !HAVE_OPENAT && !HAVE_FDOPENDIR.
743         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
744         so that they can be kept in sync more easily.  Avoid PATH_MAX
745         test on the Hurd.  Sync from test-getcwd.c for errno tests after
746         mkdir or chdir failure.
747         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
748         lib/getcwd.c.
749         (test_abort_bug): Do not test for the deep directory bug unless we
750         have openat support.  Avoid PATH_MAX test on the Hurd.
751
752         regex-tests, regex: fix bug: memset undeclared
753         * tests/test-regex.c: Don't include regex.h twice.  Include
754         string.h, to declare memset.  Christensen's report also mentioned
755         this issue.
756         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
757         test-regex.c, to avoid future problems like this.  Remove
758         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
759         twice.
760
761         regex-tests: fix link errors on older Solaris
762         These need to link with @LIBINTL@ to get libintl_gettext.
763         Problem reported by Tom G. Christensen in
764         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
765         * modules/regex-tests (test_regex_LDADD): New macro.
766
767 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
768
769         regex-tests: new module
770         * modules/regex-tests, tests/test-regex.c: New files.
771
772         regex: fix off-by-one error in configure test
773         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
774
775 2013-01-31  Eric Blake  <eblake@redhat.com>
776
777         regex: avoid infinite configure test
778         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
779
780 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
781
782         openpty: fix bug where HAVE_OPENPTY wasn't defined
783         See the thread starting at:
784         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
785         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
786         openpty function exists, not merely when we intend to replace it.
787
788 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
789
790         sys_time: port to Solaris 2.6
791         There is a circularity problem on Solaris 2.6, where <time.h> includes
792         <sys/time.h> for struct timespec.  The include nesting is gnulib
793         <time.h>, system <time.h>, gnulib <sys/time.h>, system
794         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
795         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
796         <sys/siginfo.h>; the last, innermost file needs struct
797         timestruc_t, which is defined in <sys/time.h>, which has not been
798         fully parsed.  Problem reported by Tom G. Christensen in
799         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
800         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
801         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
802         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
803         uses split double-inclusion guards.
804
805 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
806
807         regex: test for buffer overrun
808         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
809         for the just-fixed regex bug.
810
811 2013-01-29  Andreas Schwab  <schwab@suse.de>
812
813         regex: fix buffer overrun in regexp matcher [BZ #15078]
814         * lib/regexec.c (extend_buffers): Add parameter min_len.
815         (check_matching): Pass minimum needed length.
816         (clean_state_log_if_needed): Likewise.
817         (get_subexp): Likewise.
818
819 2013-01-28  Pádraig Brady  <P@draigBrady.com>
820
821         mountlist: don't consider "devtmpfs" as dummy
822         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
823         as there is storage associcated with it.
824
825 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
826
827         futimens-tests, utimens-tests: Depend on gettext.
828         This works around a problem introduced in my 2013-01-12 patch,
829         which added @LIBINTL@ to these modules.
830         * modules/futimens-tests (Depends-on):
831         * modules/utimens-tests (Depends-on): Add gettext.
832
833 2013-01-26  Eric Blake  <eblake@redhat.com>
834
835         test-getpeername: fix typo
836         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
837
838 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
839
840         bootstrap: remove the need for a sorted .gitignore file
841         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
842         rename to insert_if_absent(), so that we don't need or generate
843         a sorted .gitignore file.  We do require a .gitignore with no
844         existing duplicate entries and enforce that.
845         (sort_patterns): Remove this function as we now use the simpler
846         technigue of inserting blacklist entries at the top of the file,
847         assuming gnulib won't be inserting !whitelist entries.
848
849 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
850
851         readlinkat: don't depend on gl_FUNC_OPENAT
852         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
853         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
854         renameat.m4, symlinkat.m4; but one thing at a time.
855
856         statat: new module, split out from fstatat
857         GNU Emacs needs the POSIX-specified fstatat, but not the
858         gnulib-specified statat and lstat.  Split the latter two into a
859         new module 'statat'.
860         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
861         * lib/openat.h, lib/statat.c (STATAT_INLINE):
862         Rename from FSTATAT_INLINE. All uses changed.
863         * modules/fstatat (Files): Remove lib/statat.c.
864         (gl_MODULE_INDICATOR([fstatat])): Remove.
865         (lib_SOURCES): Remove.
866         (Maintainer): Add self.
867         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
868         * tests/test-fstatat.c (BASE): Don't define if already defined.
869         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
870
871 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
872
873         tests: don't assume fd 99 is closed
874         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
875         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
876         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
877         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
878         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
879         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
880         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
881         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
882         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
883         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
884         * tests/test-fwrite.c, tests/test-getpeername.c:
885         * tests/test-getsockname.c, tests/test-getsockopt.c:
886         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
887         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
888         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
889         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
890         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
891         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
892         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
893         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
894         * tests/test-unlinkat.c, tests/test-unlockpt.c:
895         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
896         Close file descriptor 99, instead of assuming it's already closed.
897
898 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
899
900         stpncpy: port to OS X 10.8
901         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
902         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
903
904 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
905
906         unistd: port to recent mingw
907         * lib/unistd.in.h: Remove special invocation convention for mingw,
908         which breaks for the latest mingw version.  See John W. Eaton in
909         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
910
911         largefile: port better to Mac OS X 10.5
912         This patch is backported from Autoconf git.
913         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
914         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
915         with ino_t size being different for configuration time versus
916         build/run time.  Problem reported by PHO in
917         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
918
919 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
920
921         doc: clarify -Werror
922         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
923         clarify that it's intended for developers, not for ordinary builds,
924         and mention --enable-gcc-warnings as one possible use.
925
926 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
927
928         stdint: fix build with Android's Bionic fox x86
929         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
930         was already included as _SSIZE_T_DEFINED_ might also be defined
931         in include/machine/_types.h, which is included by stdio.h
932
933 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
934
935         net_if-tests: port to Solaris 7 + GCC 3.4.6
936         Problem reported by Tom G. Christensen in
937         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
938         * tests/test-net_if.c (ni): Move to next the code that uses it,
939         so that it's declared only if needed.
940
941 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
942
943         net_if-tests: port to older Solaris
944         Problem reported by Tom G. Christensen in
945         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
946         * modules/net_if-tests (NET_IF_LIB): New substitution.
947         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
948         (HAVE_IF_NAMEINDEX): New C macro.
949         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
950
951         system-quote-tests: port to older Solaris
952         Problem reported by Tom G. Christensen in
953         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
954         * tests/test-system-quote-child.c (fopen, fread): Undef.
955
956         c-xvasprintf etc.: fix link errors on older Solaris
957         These need to link with @LIBINTL@ to get libintl_gettext.
958         Problem reported by Tom G. Christensen in
959         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
960         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
961         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
962         * modules/futimens-tests (test_futimens_LDADD):
963         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
964
965 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
966
967         locale: port to Solaris 2.6 and 7 + GNU gettext
968         * lib/locale.in.h: Just include_next <locale.h> when
969         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
970         when combining the localename module with GNU gettext 0.18.2.
971         Problem reported by Tom G. Christensen in
972         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
973
974 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
975
976         stdlib: port to Solaris 2.6
977         Also, the code worked on Solaris 7 through 9 only by accident.
978         Problem reported by Tom G. Christensen in
979         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
980         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
981         simply include the system stdlib.h.
982         * lib/getopt.in.h (__need_system_stdlib_h):
983         * lib/pthread.in.h (__need_system_stdlib_h):
984         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
985         Define when including <stdlib.h>, to avoid problems at least for
986         the pthread case on Solaris 2.6 and 7.  These .h files can get by
987         with the system stdlib.h.
988
989 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
990
991         doc: update main copyright year
992         * doc/gnulib.texi: Update copyright date.
993
994         doc: improve ISO 8601 discussion
995         * doc/parse-datetime.texi (Combined date and time of day items):
996         Specify more carefully what formats are supported and what is
997         done with excess precision.
998
999 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1000
1001         doc: avoid small caps
1002         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1003         they're more trouble than they're worth.  Suggested by Karl Berry
1004         in <http://bugs.gnu.org/13360>.
1005
1006         regex: conform to strict C
1007         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1008         From Aharon Robbins.
1009
1010         gnulib-tool: fix incompatibility with autopoint 0.18.2
1011         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1012         Problem reported by Tom G. Christensen in
1013         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1014
1015 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         fprintftime: bring back and reword fwrite comment
1018         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1019
1020         stdio: remove now-unnecessary stdio.c
1021         Since stdio.in.h no longer uses inline functions, we no longer
1022         need to compile the extern versions.
1023         * lib/stdio.c: Remove.
1024         * modules/stdio (Files): Remove lib/stdio.c.
1025         (lib_SOURCES): Remove.
1026
1027         unicodeio: depend on stdio, not ignore-value
1028         * lib/unicodeio.c: Do not include ignore-value.h.
1029         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1030         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1031
1032         fprintftime: depend on stdio, not ignore-value
1033         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1034         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1035         since the stdio module arranges to silence that warning now.
1036         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1037
1038 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1039
1040         stdint-tests: Fix expanded-before-required-warning.
1041         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1042
1043 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         fwrite: silence __wur only for older glibc versions
1046         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1047         This will help us remove this workaround some time in the far future.
1048
1049 2013-01-03  Eric Blake  <eblake@redhat.com>
1050
1051         fwrite: silence __wur without using inline
1052         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1053         just gcc, and in a way that avoids inline issues.
1054         * modules/stdio (Depends-on): Drop extern-inline.
1055
1056 2013-01-03  Jim Meyering  <jim@meyering.net>
1057
1058         update-copyright: avoid copyright notice date corruption
1059         Given a sequence of copyright year numbers in which the final
1060         one was a two-digit number that happened to be a substring of
1061         a preceding four-digit year number, we would mistakenly update
1062         the substring (from two- to four-digit) rather than the two-digit
1063         number at the end, which, combined with the addition of the current
1064         4-digit year number would yield two 5-digit year numbers, e.g.,
1065         here, it would convert the first "99" to "1999, 2013" rather than
1066         the final one:
1067           1991, 99
1068           11999, 20131, 1999
1069         * build-aux/update-copyright: Tighten a regexp.
1070         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1071         Reported by Joseph Myers in
1072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1073
1074 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1075
1076         regex: omit needless signed-pointer casts
1077         * lib/regcomp.c (build_charclass, build_charclass_op):
1078         Use char *, not unsigned char *, for class name and extra.
1079         The char values are always nonnegative so there's no need to
1080         insist on unsigned char * here, and using char * removes the need
1081         for casts.  Reported by Aharon Robbins in
1082         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1083
1084         regex: support Gawk, which never uses alloca
1085         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1086         Do not include in this case.  Gawk doesn't supply a substitute
1087         alloca.h and doesn't need one.
1088
1089         regex: port __libc_lock_define usage to C89
1090         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1091         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1092         does not conform to C89, as it has an empty macro argument.
1093         Reported by Aharon Robbins in
1094         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1095
1096 2013-01-01  Eric Blake  <eblake@redhat.com>
1097
1098         maint: update all copyright year number ranges
1099         Run "make update-copyright".
1100
1101         version-etc: bump copyright year reported in --version
1102         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1103
1104 2012-12-31  Eric Blake  <eblake@redhat.com>
1105
1106         sigprocmask-tests: skip test if pid is unexpectedly large
1107         * tests/test-sigprocmask.c (main): Add range check.
1108
1109         git-version-gen: avoid test -z portability glitch
1110         * build-aux/git-version-gen: Prefer portable test spelling, since
1111         git-version-gen is run on more than just developer machines.
1112
1113 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1114
1115         git-version-gen: add --fallback option to use if git is not present
1116         * build-aux/git-version-gen: Add support for the new option --fallback,
1117         which comes into play when there is no $tarball_version_file and
1118         git is not working.
1119         (scriptversion): Update.
1120
1121         maint.mk: handle missing git with more grace
1122         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1123         Quietly proceed if git is not present.
1124
1125 2012-12-31  Eric Blake  <eblake@redhat.com>
1126
1127         dup2: work around cygwin bug
1128         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1129         * lib/dup2.c (rpl_dup2): Work around it.
1130         * doc/posix-functions/dup2.texi (dup2): Document it.
1131
1132 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1133
1134         regex: remove unnecessary dependency on localcharset.h
1135         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1136         hasn't been needed for years.
1137         * modules/regex (Depends-on): Remove localcharset.
1138
1139         regex: revert single-byte change
1140         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1141         to this function.  This was alredy fixed in a different way, at
1142         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1143         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1144         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1145
1146         regex: simplify based on Gawk version
1147         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1148         Reported by Aharon Robbins in
1149         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1150
1151 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1152
1153         regex: check that pattern char is single-byte
1154         Reported by Aharon Robbins in
1155         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1156         * lib/regexec.c (check_node_accept_bytes):
1157         Return 0 if the pattern string has a multibyte character here.
1158
1159         regex: implement rational ranges
1160         Reported by Aharon Robbins in
1161         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1162         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1163         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1164         Implement rational ranges.
1165
1166         regex: avoid redefining __wctype
1167         Reported by Aharon Robbins in
1168         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1169         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1170         #undef before defining.
1171
1172         regex: port to hosts where malloc (0) == NULL
1173         Reported by Aharon Robbins in
1174         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1175         * lib/regex_internal.c (re_node_set_alloc):
1176         Don't assume that malloc (0) yields nonnull.
1177         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1178         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1179         * modules/regex (Files): Add m4/eealloc.m4.
1180
1181         regex: port to C89
1182         Reported by Aharon Robbins in
1183         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1184         * lib/regcomp.c (init_word_char): Declaration before statement.
1185
1186         regex: merge glibc changes
1187         Also, copy the license wording from glibc.  This simplifies
1188         merging changes.  gnulib-tool will change the wording to GPL as
1189         appropriate, when importing it to other packages.  The only
1190         glibc change made since the last merge, which needs merging, is:
1191         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1192         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1193
1194         * users.txt: Add Emacs.
1195
1196         doc: omit mention of version when not needed
1197         * doc/gnulib-intro.texi (Portability and Application Code):
1198         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1199         Don't mention particular dates or versions when not necessary, so
1200         that the documentation won't go out of date so quickly.
1201
1202         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1203
1204 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1205
1206         bootstrap: pass --force to autoreconf.
1207         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1208         Add "--force" so that Automake's ylwrap and other such tools
1209         be updated at each bootstrap invocation.
1210         Use it.
1211
1212 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1213
1214         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1215         The earlier patch forgot to update one of the #if conditions, causing
1216         a problem on Debian testing i386 reported by Mats Erik Andersson
1217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1218         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1219         (__argp_fmtstream_puts, argp_fmtstream_puts)
1220         (__argp_fmtstream_write, argp_fmtstream_write)
1221         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1222
1223         * doc/gnulib-readme.texi: Minor fixups.
1224         (Portability guidelines): Modernize URLs.  Remove some repetition.
1225         (Indent with spaces not TABs): Reword to avoid too-long lines.
1226         Remove some '@ifset standalone' stuff that isn't used.
1227
1228         * doc/gnulib-readme.texi (Portability guidelines):
1229         ctype.h, not ctime.h.
1230
1231         Correct name of POSIX.1-2001.
1232         * doc/posix-functions/fgetc.texi (fgetc):
1233         * doc/posix-functions/fgets.texi (fgets):
1234         * doc/posix-functions/fread.texi (fread):
1235         * doc/posix-functions/fscanf.texi (fscanf):
1236         * doc/posix-functions/getc.texi (getc):
1237         * doc/posix-functions/getchar.texi (getchar):
1238         * doc/posix-functions/scanf.texi (scanf):
1239         POSIX.1-2001, not POSIX-2001.
1240
1241         doc: move README into manual
1242         * README: Move contents to new file doc/gnulib-readme.texi.
1243         Replace with a one-line summary.
1244         * doc/gnulib.texi (Brief Overview): New section,
1245         with old intro preface.  Include gnulib-readme.texi for contents.
1246         (Philosophy): Rename from "Introduction", since this
1247         section no longer introduces the rest.  Write a new preface.
1248         * doc/gnulib-readme.texi: New file, with the old contents of
1249         README texinfo-ized.  This way, the README info appears
1250         in the online and printed manual.
1251
1252 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1253
1254         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1255         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1256         c_vasprintf() prototype.
1257
1258 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1259
1260         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1261         * lib/c-vasprintf.h: Remove stray semicolon.
1262
1263 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1264
1265         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1266         It is obsolete and is planned to be removed from Automake 1.14; see
1267         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1268         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1269         (installdirs-data, installdirs-data-yes):
1270         Use $(MKDIR_P), not $(mkdir_p).
1271         * m4/intl.m4 (AM_INTL_SUBDIR):
1272         * m4/po.m4 (AM_PO_SUBDIRS):
1273         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1274
1275 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1276
1277         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1278         On this platform, we are not optimizing but we are using
1279         the substitute for extern inlines, so compile as if
1280         C99-style extern inline, or a substitute, is available.
1281         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1282         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1283         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1284         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1285         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1286         Declare as ARGP_FS_EI, not as extern.
1287         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1288         (__option_is_short, _option_is_end, __option_is_end)
1289         [!_LIBC && __USE_EXTERN_INLINES]:
1290         Declare as ARGP_EI, not as extern.
1291
1292 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1293
1294         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1295         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1296         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1297         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1298         ...), as the latter is fatal with older Autoconfs.
1299         Problem reported and fix suggested by Eric Blake in thread starting at
1300         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1301
1302 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1303
1304         AC_PROG_MKDIR_P: don't workaround if not buggy
1305         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1306         Define only for Autoconf versions before 2.62.
1307         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1308         undocumented m4_PACKAGE_VERSION, for consistency with the
1309         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1310         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1311         was introduced in 2.62.
1312
1313 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1314
1315         New 'c-*printf' modules for formatted output in C locale.
1316
1317         New module 'c-vasnprintf'.
1318         * modules/c-vasnprintf: New file.
1319         * lib/c-vasnprintf.c: New file.
1320         * lib/c-vasnprintf.h: New file.
1321
1322         New module 'c-snprintf'.
1323         * modules/c-snprintf: New file.
1324         * modules/c-snprintf-tests: New file.
1325         * lib/c-snprintf.c: New file.
1326         * lib/c-snprintf.h: New file.
1327         * tests/test-c-snprintf.c: New file.
1328         * tests/test-c-snprintf.sh: New file.
1329
1330         New module 'c-vsnprintf'.
1331         * modules/c-vsnprintf: New file.
1332         * modules/c-vsnprintf-tests: New file.
1333         * lib/c-vsnprintf.c: New file.
1334         * lib/c-vsnprintf.h: New file.
1335         * tests/test-c-vsnprintf.c: New file.
1336         * tests/test-c-vsnprintf.sh: New file.
1337
1338         New module 'c-vasprintf'.
1339         * modules/c-vasprintf: New file.
1340         * modules/c-vasprintf-tests: New file.
1341         * lib/c-asprintf.c: New file.
1342         * lib/c-vasprintf.c: New file.
1343         * lib/c-vasprintf.h: New file.
1344         * tests/test-c-vasprintf.c  +: New file.
1345         * tests/test-c-vasprintf.sh: New file.
1346
1347         New module 'c-xvasprintf'.
1348         * modules/c-xvasprintf: New file.
1349         * modules/c-xvasprintf-tests: New file.
1350         * lib/c-xasprintf.c: New file.
1351         * lib/c-xvasprintf.c: New file.
1352         * lib/c-xvasprintf.h: New file.
1353         * tests/test-c-xvasprintf.c: New file.
1354         * tests/test-c-xvasprintf.sh: New file.
1355
1356 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1357
1358         argp: better 'inline'
1359         Use extern-inline module to declare extern inline functions.
1360         This avoids some bogus warning diagnostics.  Problem discovered
1361         when modifying GNU tar to use the manywarnings module.
1362         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1363         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1364         Define based on extern-inline.
1365         * modules/argp (Depends-on): Add extern-inline.
1366
1367 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1368
1369         filemode, sys_stat: Handle MPX files a la AIX.
1370         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1371         * lib/sys_stat.in.h (S_ISMPX): New macro.
1372         * tests/test-sys_stat.c: Add tests for MPX files.
1373
1374 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1375
1376         x-to-1: honor $PERL
1377         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1378         a chance to use his preferred version of Perl.  This is typically
1379         required by Darwin users whose default /usr/bin/perl does not have all
1380         the libraries required by help2man, and who need to use their MacPorts
1381         installation of Perl instead.
1382
1383 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1384
1385         gnu-web-doc-update: add all the new files, even in new directories
1386         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1387         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1388         Use it.
1389         (main): Don't use cvsutils to get the list of unknown files,
1390         just add all the existing files and directories.
1391
1392 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1393
1394         gnu-web-doc-update: improve --help
1395         * build-aux/gnu-web-doc-update: Move comments into --help.
1396
1397 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1398
1399         mountlist: recognize more "dummy" file systems
1400         * lib/mountlist.c (ME_DUMMY_0):
1401         Add these dummy FS names to the list:
1402         - "debugfs" virtual filesystem for kernel debugging
1403         - "devpts" PTY slave filesystem
1404         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1405         - "fusectl" control filesystem for FUSE
1406         - "mqueue" enumerates POSIX message queues
1407         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1408         - "sysfs" is for exporting kernel objects
1409         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1410
1411 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1412
1413         extern-inline: avoid incompatibility with Darwin Libc
1414         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1415         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1416         Problem reported by Akim Demaille in
1417         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1418
1419 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1420
1421         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1422         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1423         let it handle password prompting.
1424
1425 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1426
1427         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1428         * lib/canonicalize.c (canonicalize_filename_mode):
1429         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1430         fetching the current directory.  Don't overrun the beginning of
1431         rpath if there's no slashes after the MS-Windows drive letter.
1432
1433 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1434
1435         maint.mk: avoid extra forks
1436         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1437         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1438         So use that instead of "$(shell test -f FILE && echo FILE)".
1439
1440 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1441
1442         vasnprintf: fix ASCII_ONLY typo
1443         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1444         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1445         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1446         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1447         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1448
1449 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1450
1451         list, oset, xlist, xoset: fix extern inline issue with C99
1452         This was introduced by my recent changes for 'inline'.
1453         Problem reported for gettext by Daiki Ueno in
1454         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1455         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1456         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1457         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1458         (gl_list_previous_node, gl_list_get_at)
1459         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1460         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1461         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1462         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1463         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1464         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1465         (gl_list_iterator_free, gl_sortedlist_search)
1466         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1467         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1468         (gl_sortedlist_remove):
1469         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1470         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1471         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1472         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1473         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1474         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1475         (gl_list_add_at, gl_sortedlist_add):
1476         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1477         Wrap these extern decls inside "#if 0", because they are implemented
1478         as inline functions, and extern inline is not what's wanted here.
1479         It would simplify these .h files to remove the extern decls entirely,
1480         although a downside would be less-clear separation between
1481         specification and implementation.
1482
1483 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1484
1485         sys_stat: no 'static inline'
1486         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1487         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1488
1489         extern-inline: no 'static inline'
1490         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1491         Do not require AC_C_INLINE.
1492         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1493         'static inline', for older compilers.
1494
1495         snippet/warn-on-use: no 'static inline'
1496         * build-aux/snippet/warn-on-use.h:
1497         Remove unnecessary 'inline' in comment.
1498
1499         rbtree-list, rbtreehash-list: no 'static inline'
1500         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1501         * lib/gl_anytree_list2.h (node_at):
1502         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1503         (gl_oset_first, add_nodes_to_buckets):
1504         Now static, not static inline.
1505
1506         regex: no 'static inline'
1507         * lib/regex_internal.c (calc_state_hash):
1508         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1509         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1510         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1511         Now static, not static inline.
1512         (inline) [__GNUC__ < 3 && _LIBC]:
1513         Remove macro; no longer needed.
1514
1515         xvasprintf: no 'static inline'
1516         * lib/xvasprintf.c (xstrcat):
1517         Now static, not static inline.
1518         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1519         Do not require AC_C_INLINE.
1520
1521         parse-datetime, parse-duration: no 'static inline'
1522         * lib/parse-datetime.y (to_uchar):
1523         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1524         (scale_n_add):
1525         Now static, not static inline.
1526         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1527         * modules/parse-duration (configure.ac):
1528         Do not require AC_C_INLINE.
1529
1530         getaddrinfo: no 'static inline'
1531         * lib/getaddrinfo.c (validate_family):
1532         Now static, not static inline.
1533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1534         Do not require AC_C_INLINE.
1535
1536         ftruncate, fts, lstat, openat, raise: no 'static inline'
1537         * lib/ftruncate.c (chsize_nothrow):
1538         * lib/fts.c (opendirat, diropen):
1539         * lib/lstat.c (orig_lstat):
1540         * lib/openat.c (orig_openat):
1541         * lib/raise.c (raise_nothrow):
1542         Now static, not static inline.
1543         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1544         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1545         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1546         * m4/openat.m4 (gl_PREREQ_OPENAT):
1547         * m4/raise.m4 (gl_PREREQ_RAISE):
1548         Do not require AC_C_INLINE.
1549
1550         fflush, stat: no 'static inline'
1551         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1552         (clear_ungetc_buffer, disable_seek_optimization)
1553         (restore_seek_optimization, update_fpos_cache):
1554         * lib/stat.c (orig_stat):
1555         Now static, not static inline.
1556         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1557         (update_fpos_cache):
1558         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1559         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1560         * m4/stat.m4 (gl_PREREQ_STAT):
1561         Do not require AC_C_INLINE.
1562
1563         error, filevercmp: no 'static inline'
1564         * lib/error.c (is_open, flush_stdout):
1565         * lib/filevercmp.c (order):
1566         Now static, not static inline.
1567         * m4/error.m4 (gl_PREREQ_ERROR):
1568         * modules/filevercmp (configure.ac):
1569         Do not require AC_C_INLINE.
1570
1571         dup, execute, fatal-signal, etc.: no 'static inline'
1572         * lib/dup.c (dup_nothrow):
1573         * lib/execute.c (nonintr_close, nonintr_open):
1574         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1575         * lib/fopen.c (orig_fopen):
1576         * lib/freadseek.c (freadptrinc):
1577         * lib/freopen.c (orig_freopen):
1578         * lib/fstat.c (orig_fstat, fstat_nothrow):
1579         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1580         (get_rusage_as_via_iterator):
1581         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1582         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1583         * lib/isatty.c (_isatty_nothrow):
1584         * lib/open.c (orig_open):
1585         * lib/read.c (read_nothrow):
1586         * lib/sigprocmask.c (signal_nothrow):
1587         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1588         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1589         * lib/wait-process.c (unregister_slave_subprocess):
1590         * lib/write.c (write_nothrow):
1591         Now static, not static inline.
1592         * lib/spawn-pipe.c (nonintr_open): Define only if
1593         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1594         * m4/dup.m4 (gl_PREREQ_DUP):
1595         * m4/execute.m4 (gl_EXECUTE):
1596         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1597         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1598         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1599         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1600         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1601         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1602         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1603         * m4/open.m4 (gl_PREREQ_OPEN):
1604         * m4/read.m4 (gl_PREREQ_READ):
1605         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1606         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1607         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1608         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1609         * m4/write.m4 (gl_PREREQ_WRITE):
1610         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1611         Do not require AC_C_INLINE.
1612
1613         c-strtod, memcoll, readutmp: no 'static inline'
1614         * lib/c-strtod.c (c_locale):
1615         * lib/memcoll.c (strcoll_loop):
1616         * lib/readutmp.c (desirable_utmp_entry):
1617         Now static, not static inline.
1618         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1619         * m4/memcoll.m4 (gl_MEMCOLL):
1620         * m4/readutmp.m4 (gl_READUTMP):
1621         Do not require AC_C_INLINE.
1622
1623         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1624         * lib/arctwo.c (to_uchar):
1625         * lib/md4.c (set_uint32):
1626         * lib/md5.c (set_uint32):
1627         * lib/sha1.c (set_uint32):
1628         * lib/sha256.c (set_uint32):
1629         * lib/sha512.c (set_uint64):
1630         Now static, not static inline.  This is a bit simpler, and doesn't
1631         affect performance with GCC and default optimization.
1632         * m4/arctwo.m4 (gl_ARCTWO):
1633         * m4/md4.m4 (gl_MD4):
1634         * m4/md5.m4 (gl_MD5):
1635         * m4/sha1.m4 (gl_SHA1):
1636         * m4/sha256.m4 (gl_SHA256):
1637         * m4/sha512.m4 (gl_SHA512):
1638         Do not require AC_C_INLINE.
1639
1640         cond, lock, thread: better 'inline'
1641         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1642         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1643         New macros.  Use them instead of static inline, for header functions.
1644         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1645         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1646         * lib/glthread/lock.c (gl_waitqueue_init)
1647         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1648         * lib/glthread/thread.c (get_current_thread_handle):
1649         Change 'static inline' to 'inline'.
1650         * lib/glthread/cond.h, lib/glthread/thread.h:
1651         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1652         * m4/cond.m4 (gl_COND):
1653         * m4/lock.m4 (gl_PREREQ_LOCK):
1654         * m4/thread.m4 (gl_THREAD):
1655         Do not require AC_C_INLINE.
1656         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1657
1658         chdir-long, cycle-check, savewd: better 'inline'
1659         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1660         (find_non_slash):
1661         * lib/cycle-check.c (is_zero_or_power_of_two):
1662         * lib/savewd.c (savewd_delegating):
1663         Change 'static inline' to 'inline'.
1664         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1665         Replace all remaining uses of 'static inline' with it.
1666         * lib/savewd.h:
1667         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1668         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1669         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1670         * m4/savewd.m4 (gl_SAVEWD):
1671         Do not require AC_C_INLINE.
1672         * modules/savewd (Depends-on): Add extern-inline.
1673
1674         base32, base64: no need for 'inline'
1675         * lib/base32.c (to_uchar, get_8, decode_8):
1676         * lib/base64.c (to_uchar, get_4, decode_4):
1677         Change 'static inline' to 'inline'.
1678         * m4/base32.m4 (gl_PREREQ_BASE32):
1679         * m4/base64.m4 (gl_PREREQ_BASE64):
1680         Do not require AC_C_INLINE.
1681
1682         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1683         * lib/gl_array_oset.c (gl_array_nx_add_at):
1684         (gl_array_remove_at):
1685         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1686         (add_to_bucket, remove_from_bucket):
1687         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1688         Change 'static inline' to 'static', as it's simpler to omit
1689         'inline' unless there's a significant performance advantage.
1690
1691         list, oset, xlist, xoset, xsublist: simplify via extern inline
1692         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1693         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1694         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1695         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1696         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1697         New macro.  Replace all uses of 'static inline' with it.
1698         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1699         instead of as macros FOO that are defined to static inline
1700         functions FOO_inline.
1701         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1702         * lib/gl_xsublist.c:
1703         Reimplement from scratch, by defining the corresponding *_INLINE
1704         macro and including the corresponding .h file.  This is simpler.
1705         * modules/list, modules/oset, modules/xlist, modules/xoset:
1706         (Files): Remove m4/gl_list.m4.
1707         (configure.ac): Remove gl_LIST.
1708         * m4/gl_list.m4: Remove.
1709         * modules/list, modules/oset, modules/xlist, modules/xoset:
1710         * modules/xsublist:
1711         (Depends-on): Depend on extern-inline, not inline.
1712
1713         xalloc: better 'inline'
1714         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1715         New macro.  Replace all uses of 'static inline' with it.
1716         (static_inline): Remove.
1717         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1718         Let 'extern inline' do the work automatically, instead of doing
1719         it by hand.
1720         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1721         Remove.  All uses removed.
1722         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1723
1724         gethrxtime: better 'inline'
1725         * lib/xtime.c: New file.
1726         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1727         * lib/xtime.h (XTIME_INCLUDE):
1728         New macros.  Replace all uses of 'static inline' with them.
1729         * lib/gethrxtime.c (gethrxtime): Define only if
1730         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1731         this source file is now always compiled, because of the extern inline.
1732         * lib/gethrxtime.h, lib/xtime.h:
1733         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1734         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1735         if gethrtime works, as they're not needed in that case.
1736         (gl_XTIME): Do not require AC_C_INLINE.
1737         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1738         compiled now.  Move the check into gl_GETHRXTIME.
1739         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1740         (Depends-on): Add extern-inline.
1741         (configure.ac): gethrxtime is always compiled now.
1742         (lib_SOURCES): Add gethrxtime.c.
1743
1744         wctype-h: better 'inline'
1745         * lib/wctype-h.c: New file.
1746         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1747         New macro.  Replace all uses of 'static inline' with it.
1748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1749         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1750         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1751         (Depends-on): Add extern-inline.
1752
1753         unistd: better 'inline'
1754         * lib/unistd.c: New file.
1755         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1756         New macro.  Replace all uses of 'static inline' with it.
1757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1758         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1759         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1760         (Depends-on): Add extern-inline.
1761
1762         sys_socket: better 'inline'
1763         * lib/sys_socket.c: New file.
1764         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1765         New macro.  Replace all uses of 'static inline' with it.
1766         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1768         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1769         (Depends-on): Add extern-inline.
1770
1771         stdio: better 'inline'
1772         * lib/stdio.c: New file.
1773         * lib/stdio.in.h (_GL_STDIO_INLINE):
1774         New macro.  Replace all uses of 'static inline' with it.
1775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1776         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1777         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1778         (Depends-on): Add extern-inline.
1779
1780         sigaction: better 'inline'
1781         * lib/sig-handler.c: New file.
1782         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1783         New macro.  Replace all uses of 'static inline' with it.
1784         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1785         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1786         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1787         (Depends-on): Add extern-inline.
1788
1789         selinux-h: better 'inline'
1790         * lib/se-context.c, lib/se-selinux.c: New files.
1791         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1792         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1793         New macro.  Replace all uses of 'static inline' with it.
1794         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1795         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1796         New macro.  Replace all uses of 'static inline' with it.
1797         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1798         * modules/selinux-h (Files, lib_SOURCES):
1799         Add lib/se-context.c, lib/se-selinux.c.
1800         (Depends-on): Add extern-inline.
1801         (configure.ac): Do not require AC_C_INLINE.
1802
1803         pthread: better 'inline'
1804         * lib/pthread.c: New file.
1805         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1806         New macro.  Replace all uses of 'static inline' with it.
1807         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1808         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1809         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1810         * modules/pthread (Files): Add lib/pthread.c.
1811         (Depends-on): Add extern-inline.
1812
1813         math: better 'inline'
1814         * lib/math.c: New file.
1815         * lib/math.in.h (_GL_MATH_INLINE):
1816         New macro.  Replace all uses of 'static inline' with it.
1817         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1818         * m4/math_h.m4 (gl_MATH_H):
1819         Do not require AC_C_INLINE.
1820         * modules/math (Files, lib_SOURCES):
1821         Add lib/math.c.
1822         (Depends-on): Add extern-inline.
1823
1824         count-one-bits: better 'inline'
1825         * lib/count-one-bits.c: New file.
1826         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1827         New macro.  Replace all uses of 'static inline' with it.
1828         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1829         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1830         Do not require AC_C_INLINE.
1831         * modules/count-one-bits (Files, lib_SOURCES):
1832         Add lib/count-one-bits.c.
1833         (Depends-on): Add extern-inline.
1834
1835         count-leading-zeros: better 'inline'
1836         * lib/count-leading-zeros.c: New file.
1837         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1838         New macro.  Replace all uses of 'static inline' with it.
1839         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1840         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1841         Do not require AC_C_INLINE.
1842         * modules/count-leading-zeros (Files, lib_SOURCES):
1843         Add lib/count-leading-zeros.c.
1844         (Depends-on): Add extern-inline.
1845
1846         bitrotate: better 'inline'
1847         * lib/bitrotate.c: New file.
1848         * lib/bitrotate.h (BITROTATE_INLINE):
1849         New macros.
1850         Replace all uses of 'static inline' with them.
1851         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1852         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1853         (Depends-on): Add extern-inline.
1854         (configure.ac): Do not require AC_C_INLINE.
1855
1856 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1857
1858         maint.mk: avoid gratuitous failure
1859         Reported by Stefano Lattarini in
1860         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1861         * top/maint.mk (public-submodule-commit): Quote more safely.
1862
1863 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1864
1865         canonicalize, canonicalize-lgpl: support MS-Windows file names
1866         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1867         for test cases, which it'd be nice to add at some point.
1868         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1869         * lib/canonicalize.c (canonicalize_filename_mode):
1870         * lib/canonicalize-lgpl.c (__realpath):
1871         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1872         slash is at the beginning of the file name.  Use ISSLASH, instead
1873         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1874         the first character with '/'.  Test for
1875         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1876         with a drive letter.
1877         * lib/canonicalize.c (SLASHES): New macro.
1878         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1879
1880 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1881
1882         fts: introduce FTS_VERBATIM
1883         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1884         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1885         * lib/fts.c (fts_open): Honor it.
1886
1887 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1888
1889         getlogin-tests: allow errno == ENXIO
1890         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1891         with errno == ENXIO (No controlling tty).
1892         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1893         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1894         with errno == ENOENT.  This was reported to happen in various
1895         situations on GNU/Linux.
1896
1897 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1898
1899         getlogin-tests: allow errno == ENOENT
1900         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1901         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1902         when running a test in an Emacs shell buffer.
1903
1904 2012-11-08  Jim Meyering  <jim@meyering.net>
1905
1906         tests/nap.h: avoid warning about unused variable
1907         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1908
1909         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1910         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1911         white space before each of the special-cased file names, to avoid
1912         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1913         in http://bugs.gnu.org/12830.
1914
1915 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1916
1917         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1918         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1919         fails with errno == EBADF when fd is opened with O_PATH.
1920         Reported by Jim Meyering in
1921         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1922         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1923         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1924
1925 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         test-utimens: speed up by taking shorter naps
1928         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1929         New functions.
1930         (nap): Use them, to do a better job of guessing the delay.
1931         On Fedora 17 with ext4 atop md atop hard disks, this made
1932         test-utimens run 10x faster, because the test napped for
1933         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1934         <http://bugs.gnu.org/12820#11>.
1935
1936 2012-11-07  Jim Meyering  <jim@meyering.net>
1937
1938         mountlist.c: fix a compilation failure
1939         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1940         I introduced while transforming commit v0.0-7683-g613bcb6
1941
1942 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1943
1944         errno: port to LynxOS 178 2.2.2
1945         Problem reported by Joel Brobecker in
1946         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1947         * doc/posix-headers/errno.texi (errno.h): Document this.
1948         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1949         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1950         Supply a string for EILSEQ.
1951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1952
1953 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1954
1955         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1956         Linux kernel 2.6.39 introduced O_PATH (see
1957         <http://lwn.net/Articles/433854/>) and this is a better fallback
1958         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1959         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1960         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1961         * lib/fcntl.in.h (O_ACCMODE):
1962         * tests/test-fcntl-h.c (main):
1963         Do not reject O_ACCMODE merely because it has more than the
1964         minimal number of bits, as POSIX allows extensions here.
1965
1966 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1967
1968         mountlist: do not classify a bind-mounted dir entry as "dummy"
1969         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1970         the "none"-testing clause.
1971         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1972         exception for bind-mounted directories.
1973
1974 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1975
1976         quote: provide a means to escape strings with nul characters
1977         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1978         (quote, quote_n): Rename formal arguments for consistency with
1979         quotearg.
1980
1981 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         test-raise: don't assume 199 is an invalid signal
1984         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1985
1986         sh-quote-tests: port to Solaris 9
1987         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1988         Problem reported by Dagobert Michelsen in
1989         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1990
1991 2012-10-28  Jim Meyering  <jim@meyering.net>
1992
1993         maint.mk: rename a new configurable variable
1994         * top/maint.mk (_gl_translatable_string_re): Rename from
1995         translation-markers: _gl_ prefix to insulate from user Makefile code,
1996         and the _re suffix to inform that it's a regular expression.
1997
1998 2012-10-26  Eric Blake  <eblake@redhat.com>
1999
2000         maint.mk: let packages tweak sc_po_check pattern
2001         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2002         finding files with other translation markers.
2003
2004 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         euidaccess: speed up 'configure' on GNU hosts
2007         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2008         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2009         it's needed only in this case.  Use AC_CHECK_DECLS, not
2010         AC_CHECK_DECLS_ONCE.
2011         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2012         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2013
2014         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2015
2016 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         fchmodat, fchownat, fstatat: port to non-inlining compilers
2019         Problem reported for FreeBSD 9 by Jim Meyering in
2020         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2021         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2022         New files, which define FCHMODAT_INLINE etc.
2023         * lib/fchmodat.c (FCHMODAT_INLINE):
2024         * lib/fchownat.c (FCHOWNAT_INLINE):
2025         * lib/fstatat.c (FSTATAT_INLINE):
2026         Remove, as chmodat.c etc. now do this.
2027         * modules/fchmodat (Files): Add lib/chmodat.c.
2028         * modules/fchownat (Files): Add lib/chownat.c.
2029         * modules/fstatat (Files): Add lib/statat.c.
2030
2031 2012-10-15  Jim Meyering  <jim@meyering.net>
2032
2033         fchmodat.c, fchownat.c: compile-impeding typos
2034         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2035         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2036         Introduced in commit v0.0-7636-gd202279.
2037
2038 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2039
2040         fcntl-h: support GNU flags like O_IGNORE_CTTY
2041         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2042         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2043         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2044         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2045         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2046         Define to 0 if not already defined.
2047         * tests/test-fcntl-h.c: Test these new flags.
2048
2049 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2050
2051         faccessat, etc.: support AT_FDCWD-only use
2052         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2053         this function only if its first argument is AT_FDCWD.
2054         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2055         values other than AT_FDCWD, so it doesn't want all the openat
2056         machinery with fchdir etc.
2057         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2058         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2059         * modules/unlinkat (Files):
2060         Remove lib/openat-priv.h, as at-internal supplies this file.
2061         Removing this file here allows us to support programs like Emacs
2062         that avoid at-internal.
2063
2064         faccessat: speed up 'configure' on mainstream hosts
2065         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2066         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2067         since it's only on unusual platforms that we need to check for
2068         'access', and it's better not to slow 'configure' down on all
2069         platforms.
2070
2071         faccessat: port to Solaris 10
2072         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2073         Needed on Solaris 10, which doesn't have AT_EACCESS,
2074         so we need the Gnulib fcntl.h, which defines it.
2075
2076 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2077         canonicalize: fix C89 compilation
2078         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2079         declarations so C89 is supported.  Also remove the comment
2080         referencing memorty allocation as the suggested feature could
2081         not be implemented as suggested.
2082         Reported by Michael Goffioul.
2083
2084 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2085
2086         group-member: omit unnecessary dependencies
2087         This is for Emacs, which has its own allocator and where we
2088         don't want to use xalloc.
2089         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2090         since we no longer use xmalloc.  Do not include stdbool.h, since
2091         the changes below happen to remove the only use of bool.
2092         (GROUPBUF_SIZE): New constant.
2093         (struct group_info): Remove n_groups member.  Add groupbuf member.
2094         This lets us get the groups without using malloc, usually.
2095         (free_group_info, get_group_info): Adjust to this.
2096         (get_group_info): Return the number of groups found, or -1 on error.
2097         Use plain malloc not xmalloc, and treat its failure as if there
2098         are no groups, as the user already loses in case of error.
2099         (group_member): Simplify, based on changes to get_group_info.
2100         * modules/group-member (Depends-on): Remove dependencies on
2101         xalloc and stdbool.  Add dependency on xalloc-oversized.
2102
2103 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2104
2105         gethrxtime: port to C++
2106         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2107
2108 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         ptsname: fix macro-name typo
2111         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2112
2113 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2114
2115         inttostr: Relax license.
2116         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2117
2118 2012-10-03  Eric Blake  <eblake@redhat.com>
2119
2120         ptsname_r: support ptys returned by FreeBSD posix_openpt
2121         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2122         lives in /dev/pts/.
2123
2124 2012-10-02  Eric Blake  <eblake@redhat.com>
2125
2126         pselect: reject invalid file descriptors
2127         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2128         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2129         * modules/pselect (Depends-on): Add dup2.
2130         * doc/posix-functions/pselect.texi (pselect): Document this.
2131
2132         select: reject invalid file descriptors
2133         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2134         * lib/select.c (rpl_select) [!win32]: Work around it.
2135         * modules/select (Depends-on): Add dup2.
2136         * doc/posix-functions/select.texi (select): Document this.
2137
2138         select: enhance test
2139         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2140         New functions.
2141         (test_function): Enhance test.
2142         (do_select_bad_fd): Avoid any stale errno values.
2143
2144         ptsname: reject invalid file descriptors
2145         http://www.austingroupbugs.net/view.php?id=503
2146         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2148         * modules/stdlib (Makefile.am): Replace witness.
2149         * lib/stdlib.in.h (ptsname): Allow for replacement.
2150         * modules/ptsname (configure.ac): Trigger replacement.
2151         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2152
2153 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2154
2155         hash-pjw-bare: new module
2156         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2157         * lib/hash-pjw-bare.h: Likewise.
2158         * modules/hash-pjw-bare: New file.
2159         * MODULES.html.sh (Misc): Add it.
2160
2161 2012-10-02  Eric Blake  <eblake@redhat.com>
2162
2163         manywarnings: cater to more gcc infelicities
2164         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2165         -Wuninitialized without -O.
2166
2167 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2168
2169         select, poll tests: Make setsockopt invocation effective.
2170         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2171         the bind() call.
2172         * tests/test-select.h (open_server_socket): Likewise.
2173
2174 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2175
2176         sockets, sys_stat: restore AC_C_INLINE
2177         This undoes the 2012-09-22 patch.
2178         * m4/sockets.m4 (gl_SOCKETS):
2179         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2180         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2181         and does not support plain 'inline'.  Reported by Bruno Haible in
2182         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2183
2184 2012-09-30  Bruno Haible  <bruno@clisp.org>
2185
2186         localeconv tests: Avoid test failure on OpenIndiana.
2187         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2188         skip the 'grouping' and 'mon_grouping' tests.
2189         Reported by Jim Meyering.
2190
2191 2012-09-30  Bruno Haible  <bruno@clisp.org>
2192
2193         havelib: Follow libtool developments.
2194         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2195         Suggested by Simon Josefsson.
2196
2197 2012-09-29  Jim Meyering  <meyering@redhat.com>
2198
2199         fstatat.c: fix a compile-impeding typo
2200         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2201         Introduced in commit v0.0-7636-gd202279.
2202         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2203
2204 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2205
2206         extern-inline: provide a -Wundef safe config.h
2207         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2208         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2209         to produce a -Wundef warning free config.h.
2210
2211 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2212
2213         hash-pjw: relax license to LGPLv2+
2214         * modules/hash-pjw (License): Relax, with consent of author.
2215
2216 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2217
2218         maint.mk: fix strict vs. lazy variable issues with RELEASE
2219         * top/maint.mk (_equal): New function.
2220         (member_check): Strip the result to avoid spurious spaces.
2221         (url_dir_list): Do not use ifeq, which is strict, as it will
2222         require RELEASE_TYPE to be defined.
2223         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2224         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2225         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2226         (announcement_Cc_beta,announcement_mail_headers_beta)
2227         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2228         (release): Do not depend on $(release-type), as it forces its
2229         evaluation.  Bounce to it.
2230
2231 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2232
2233         maint.mk: formatting changes
2234         * top/maint.mk: Indent bodies of if's.
2235
2236 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2237
2238         maint.mk: factor the validation of RELEASE_TYPE
2239         With help from Jim Meyering.
2240         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2241         * top/maint.mk (_empty, _sp): Move their definition earlier.
2242         (member-check, release-type): New.
2243         Use the latter instead of $(RELEASE_TYPE).
2244         Remove now useless local checks.
2245
2246 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2247
2248         maint.mk: provide "make upload" to ease uploading
2249         See
2250         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2251         Do not depend simply on the current $(VERSION), as there may have been
2252         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2253         as "make release-commit" already does.
2254
2255         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2256         "make TYPE".
2257
2258         * top/maint.mk (upload_command, upload, release): New.
2259         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2260         (VERSION): first word of $(RELEASE) is always right.
2261         (emit_upload_commands): Adjust.
2262         * top/README-release: Update.
2263
2264 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2265
2266         maint.mk: silent rules
2267         With help from Stefano Lattarini.
2268         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2269         (announcement): Use $(AM_V_at).
2270
2271 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2272
2273         localename: port gl_locale_name_thread_unsafe to FreeBSD
2274         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2275         and use the simpler FreeBSD implementation on Mac OS X as well.
2276         Original idea suggested by Ed Maste in
2277         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2278
2279 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2282         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2283         * lib/mbuiter.c, lib/xsize.c: New files.
2284         * lib/binary-io.h (BINARY_IO_INLINE):
2285         * lib/eealloc.h (EEALLOC_INLINE):
2286         * lib/mbfile.h (MBFILE_INLINE):
2287         * lib/mbiter.h (MBITER_INLINE):
2288         * lib/mbuiter.h (MBUITER_INLINE):
2289         * lib/xsize.h (XSIZE_INLINE):
2290         New macros.
2291         Replace all uses of 'static inline' with them.
2292         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2293         * m4/eealloc.m4 (gl_EEALLOC):
2294         * m4/mbfile.m4 (gl_MBFILE):
2295         * m4/mbiter.m4 (gl_MBITER):
2296         * m4/xsize.m4 (gl_XSIZE):
2297         Do not require AC_C_INLINE.
2298         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2299         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2300         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2301         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2302         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2303         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2304         * modules/binary-io, modules/eealloc, modules/mbfile:
2305         * modules/mbiter, modules/mbuiter:
2306         (Depends-on): Add extern-inline.
2307
2308         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2309         * lib/pipe-filter-aux.c: New file.
2310         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2311         Replace all uses of 'static inline' with it.
2312         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2313         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2314         (filter_retcode): No real need for inline here.
2315         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2316         (Files): Add lib/pipe-filter-aux.c.
2317         (Depends-on): Add extern-inline.
2318         (configure.ac): Do not require AC_C_INLINE.
2319         (lib_SOURCES): Add pipe-filter-aux.c.
2320
2321         fdutimensat: omit unnecessary AC_C_INLINE
2322         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2323
2324         fchmodat, fchownat, fstatat: use extern-inline
2325         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2326         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2327         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2328         New macros.
2329         * lib/openat.h:
2330         Replace all uses of 'static inline' with them.
2331         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2332         * modules/fchmodat, modules/fchownat, modules/fstatat:
2333         * modules/openat-h:
2334         (Depends-on):
2335         Add extern-inline.
2336         (configure.ac): Remove AC_C_INLINE.
2337
2338         acl, mbchar, priv-set: use extern-inline
2339         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2340         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2341         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2342         New macros.
2343         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2344         Replace all uses of 'static inline' with it.
2345         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2346         * m4/acl.m4 (gl_FUNC_ACL):
2347         * m4/mbchar.m4 (gl_MBCHAR):
2348         * m4/priv-set.m4 (gl_PRIV_SET):
2349         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2350         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2351         Add extern-inline.
2352
2353         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2354         * m4/sockets.m4 (gl_SOCKETS):
2355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2356         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2357         environments where it's already guaranteed to work, so we needn't
2358         check for it at 'configure'-time.
2359
2360         tls-tests: omit unnecessary 'inline'
2361         * tests/test-tls.c (perhaps_yield): No longer inline.
2362         Simplicity and portability trump efficiency in test cases.
2363
2364         utimens-tests: avoid unnecessary 'inline'
2365         * modules/fdutimensat-tests (configure.ac):
2366         * modules/futimens-tests (configure.ac):
2367         * modules/utimens-tests (configure.ac):
2368         * modules/utimensat-tests (configure.ac):
2369         Remove AC_C_INLINE.
2370         * tests/test-utimens-common.h (ctime_compare):
2371         No longer inline.  Simplicity and portability trump efficiency here.
2372
2373         misc: don't limit commentary to inline functions
2374         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2375         * lib/xalloc-oversized.h, lib/xsize.h:
2376         Contrast macros to functions in general, not just to inline functions,
2377         when the commentary does not apply only to inline functions.
2378
2379 2012-09-20  Jim Meyering  <meyering@redhat.com>
2380
2381         non-recursive-gnulib-prefix-hack: new module
2382         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2383         the file that originated in Bison.
2384         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2385         largely copied from a snippet that resided in bison's configure.ac.
2386         * modules/non-recursive-gnulib-prefix-hack: New file.
2387         * MODULES.html.sh (Support for maintaining and releasing projects):
2388         Add it.
2389
2390 2012-09-18  Jim Meyering  <meyering@redhat.com>
2391
2392         maint.mk: generalize _gl_tight_scope for non-recursive make
2393         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2394         that *.h would describe additional .h files in the directory
2395         specified by $(_gl_TS_dir).  I.e., add this...
2396         (_gl_TS_other_headers): New variable.
2397
2398         maint.mk: exempt trailing blanks found in "binary" files
2399         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2400         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2401         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2402
2403 2012-09-17  Jim Meyering  <meyering@redhat.com>
2404
2405         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2406         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2407         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2408         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2409
2410 2012-09-17  Jim Meyering  <meyering@redhat.com>
2411
2412         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2413         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2414         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2415         It is not in the same category as "exit (0)" or "exit (1)", and
2416         besides, I know of no symbolic name for that 77.  Reported by
2417         Richard W.M. Jones in
2418         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2419
2420 2012-09-17  Jim Meyering  <meyering@redhat.com>
2421
2422         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2423         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2424         all uses of #define, not just those that start in column 1.
2425         Richard W.M. Jones reported a false positive in
2426         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2427
2428 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2429
2430         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2431         * lib/localcharset.c (locale_charset) [DARWIN7]:
2432         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2433         as these two values are incompatible.  Problem reported by Max Horn.
2434         For more discussion, please see
2435         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2436
2437         doc: document sticky-EOF issue
2438         * doc/posix-functions/fgetc.texi (fgetc):
2439         * doc/posix-functions/fgets.texi (fgets):
2440         * doc/posix-functions/fread.texi (fread):
2441         * doc/posix-functions/fscanf.texi (fscanf):
2442         * doc/posix-functions/getc.texi (getc):
2443         * doc/posix-functions/getchar.texi (getchar):
2444         * doc/posix-functions/scanf.texi (scanf):
2445         Mention that glibc and default Solaris do not conform to
2446         C99 and POSIX-2001 or later, with respect to how getchar
2447         etc. behave when feof reports nonzero.
2448
2449 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2450
2451         poll: fix poll(0, NULL, msec)
2452         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2453         but nfd is 0.  In that case poll should behave like select.
2454
2455 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2456             Paolo Bonzini <bonzini@gnu.org>
2457
2458         poll: fix for systems that can't recv() on a non-socket
2459         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2460         is readable.  In this case POLLHUP will not be supported.
2461         * doc/posix-functions/poll.texi: Document this.
2462
2463 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2464
2465         poll/select: document portability problems not fixed by Gnulib.
2466         * doc/posix-functions/poll.texi: poll does not work well on
2467         pipes under Windows.  It has the same limitations as select on
2468         BeOS.
2469         * doc/posix-functions/select.texi: select does not work well
2470         on pipes under Windows.
2471
2472 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2473
2474         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2475         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2476         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2477         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2478
2479 2012-09-06  Eric Blake  <eblake@redhat.com>
2480
2481         net_if: give more details about the bug being fixed
2482         * doc/posix-headers/net_if.texi: Add clarification.
2483
2484 2012-09-05  Eric Blake  <eblake@redhat.com>
2485
2486         net_if: new module
2487         * modules/net_if: New module, borrowing ideas from netinet_in.
2488         * m4/net_if_h.m4: New file.
2489         * lib/net_if.in.h: Likewise.
2490         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2491         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2492         * tests/test-net_if.c: Make function checks conditional.
2493         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2494
2495 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2496
2497         readutmp: fix non-portable UT_PID use
2498         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2499         Use `UT_PID (u) > 0' as absolute condition.
2500
2501 2012-09-04  Jim Meyering  <meyering@redhat.com>
2502
2503         fts: reduce two or more trailing spaces to just one, usually
2504         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2505         or more slashes, trim all but the final one.  But if a name consists
2506         solely of two slashes, don't modify it.  If it consists solely of
2507         three or more slashes, strip all but one.
2508
2509         This is part of the solution to a minor problem with rm:
2510         it would print a bogus ELOOP diagnostic when failing to remove
2511         the slash-decorated name of a symlink-to-directory:
2512
2513             $ mkdir d && ln -s d s && env rm -r s/
2514             rm: cannot remove 's': Too many levels of symbolic links
2515
2516         With the change below and a trivial don't-trim-trailing-slashes
2517         adjustment to remove.c, it does this:
2518
2519             $ env rm -r s/
2520             rm: cannot remove 's/': Not a directory
2521
2522         Improved by: Eric Blake
2523
2524         fts: when there is no risk of overlap, use memcpy, not memmove
2525         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2526
2527 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2528
2529         stdbool: be more compatible with mixed C/C++ compiles
2530         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2531         Define to bool, true, false, respectively, as GCC's builtin
2532         stdbool.h does.  Problem reported by Michael Goffioul in
2533         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2534
2535 2012-08-28  Jim Meyering  <meyering@redhat.com>
2536
2537         revert last change: it was not needed
2538         * tests/test-vc-list-files-git.sh: There's already a test for
2539         a working git, just below.
2540
2541 2012-08-28  Jim Meyering  <meyering@redhat.com>
2542
2543         tests: test-vc-list-files-git.sh: skip if git is not available
2544         * tests/test-vc-list-files-git.sh: Skip this test when git is
2545         not available.
2546
2547 2012-08-26  Bruno Haible  <bruno@clisp.org>
2548
2549         gnulib-tool: Remove no-op option --no-changelog.
2550         * gnulib-tool (func_usage): Don't mention --no-changelog.
2551         (do_changelog): Remove variable.
2552         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2553
2554 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2555
2556         doc: remove fdl-1.2.texi
2557         It is no longer used or maintained, and its use of @acronym
2558         is problematic.  See the thread containing
2559         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2560         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2561         * doc/old-licenses/fdl-1.2.texi: Remove.
2562
2563         execinfo: port to FreeBSD
2564         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2565         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2566         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2567         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2568
2569 2012-08-23  Jim Meyering  <meyering@redhat.com>
2570
2571         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2572         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2573         to placate gcc's -Wold-style-declaration.
2574
2575 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2576
2577         doc: do not use @acronym
2578         * doc/inet_ntoa.texi (inet_ntoa):
2579         * doc/parse-datetime.texi (Seconds since the Epoch)
2580         (Specifying time zone rules):
2581         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2582         Don't use @acronym.  Problem reported by John Darlington in
2583         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2584
2585 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2586
2587         stdnoreturn: port to newer GCCs
2588         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2589         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2590         Problem reported by Jim Meyering in
2591         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2592         Also, rename the 'test' function to a void a clash with the
2593         already-supplied 'main' function; this fixes a bug that incorrectly
2594         rejected GCC 4.7.1's <stdnoreturn.h>.
2595         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2596         Document GCC problem.
2597
2598 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2599
2600         pipe-filter: fix comment typo
2601         * lib/pipe-filter.h: Mention correct function.
2602
2603 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2604
2605         execinfo: new module
2606         This is for Emacs.  Currently, it provides a no-effect stub
2607         on all platforms where it does not already work.
2608         It already works on glibc-based systems, and on Solaris 11.
2609         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2610         New files.
2611         * doc/glibc-headers/execinfo.texi (execinfo.h):
2612         * MODULES.html.sh (Misc): Document it.
2613
2614 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2615
2616         extern-inline: support old GCC 'inline'
2617         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2618         if available.  This applies to GCC versions 2.7 through 4.2, or
2619         when newer GCC is using -fgnu89-inline.  The goal is to address
2620         some of the performance issues mentioned by Bruno Haible in
2621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2622
2623 2012-08-20  Eric Blake  <eblake@redhat.com>
2624
2625         maint.mk: avoid redundant file name in message
2626         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2627         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2628         (sc_makefile_path_separator_check): Remove bogus $(ME).
2629
2630 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2631
2632         timer-time: fix link order when static linking on glibc
2633         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2634         _after_ -lrt so that it's significant.
2635
2636 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2637
2638         timespec: omit unnecessary AC_C_INLINE
2639         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2640
2641         stat-time: omit unnecessary AC_C_INLINE
2642         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2643         Do not require AC_C_INLINE.
2644
2645         ignore-value: omit unnecessary AC_C_INLINE
2646         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2647
2648         sys_select: avoid 'static inline'
2649         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2650
2651         mktime: avoid 'static inline'
2652         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2653         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2654
2655 2012-08-19  Bruno Haible  <bruno@clisp.org>
2656
2657         gnulib-tool: Improve coding style.
2658         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2659         func_emit_lib_Makefile_am.
2660         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2661
2662 2012-08-19  Bruno Haible  <bruno@clisp.org>
2663
2664         gnulib-tool: Fix indentation.
2665         * gnulib-tool (func_import): Fix indentation.
2666
2667 2012-08-19  Bruno Haible  <bruno@clisp.org>
2668
2669         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2670         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2671         on the list of removed files.
2672
2673 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2674
2675         test-parse-datetime: avoid glibc leap-second glitch
2676         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2677         with the 2012 rules.  Problem reported by Bruce Dubbs in
2678         <http://bugs.gnu.org/12206>.
2679
2680 2012-08-14  Bruno Haible  <bruno@clisp.org>
2681
2682         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2683         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2684         from argument.
2685         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2686
2687 2012-08-14  Eric Blake  <eblake@redhat.com>
2688
2689         ldexp: relax license
2690         * modules/ldexp (License): Trivial relax, since the module only
2691         provides a permissively licensed m4 file.
2692
2693 2012-08-13  Bruno Haible  <bruno@clisp.org>
2694
2695         gnulib-tool: Fix persistence of --witness-c-macro option.
2696         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2697         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2698
2699 2012-08-11  Eric Blake  <eblake@redhat.com>
2700
2701         count-leading-zeros: use a lookup table on non-gcc compilers
2702         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2703         alternate implementation, suggested by Jim Meyering.
2704
2705 2012-08-10  Eric Blake  <eblake@redhat.com>
2706
2707         count-leading-zeros: new module
2708         * modules/count-leading-zeros: New module.
2709         * m4/count-leading-zeros.m4: New file.
2710         * lib/count-leading-zeros.h: Likewise.
2711         * modules/count-leading-zeros-tests: New test.
2712         * tests/test-count-leading-zeros.c: New file.
2713         * MODULES.html.sh (Integer arithmetic functions): Document it.
2714
2715 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2716             Jim Meyering  <meyering@redhat.com>
2717
2718         maintainer-makefile: Fix syntax error with dash.
2719         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2720         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2721
2722 2012-08-05  Jim Meyering  <meyering@redhat.com>
2723
2724         extern-inline: also ignore -Wmissing-declarations
2725         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2726         required with gcc-4.8.0-to-be.
2727
2728         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2729         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2730         for /error ?([^,]*)/.  This avoids false-positives for strings like
2731         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2732
2733 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2734
2735         gnumakefile: better interaction with Automake-NG
2736         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2737         Automake-NG always contain a definition of VPATH, even in non-VPATH
2738         builds (its value being simply '.' in that case).  So, in the
2739         'clean-GNUmakefile' rule, to determine whether running under a
2740         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2741         '$(VPATH)' expands to the empty string.
2742
2743 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2744
2745         base64: Use extern C scope in header file, for C++.
2746         * lib/base64.h: Add C++ namespace protection.
2747
2748 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2749
2750         stat-time, timespec, u64: support naive out-of-dir builds
2751         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2752         Use '#include "foo.h"', not '#include <foo.h>', when including
2753         one's own interface.  This works better when configuring with
2754         out-of-directory builds, since packages need not add an
2755         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2756
2757 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2758
2759         utimens: use extern-inline
2760         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2761         * lib/utimens.h: Add copyright notice, since this is now large enough
2762         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2763         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2764         * modules/utimens (Depends-on): Add extern-inline.
2765
2766         u64: use extern-inline
2767         * lib/u64.c: New file.
2768         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2769         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2770         * modules/u64 (Files): Add lib/u64.c.
2771         (Depends-on): Add extern-inline.
2772         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2773         does that now.
2774         (lib_SOURCES): Add u64.c.
2775
2776         timespec: use extern-inline
2777         * lib/timespec.c: New file.
2778         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2779         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2780         * modules/timespec (Files): Add lib/timespec.c.
2781         (Depends-on): Add extern-inline.
2782         (lib_SOURCES): Add timespec.c.
2783
2784         stat-time: use extern-inline
2785         * lib/stat-time.c: New file.
2786         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2787         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2788         * modules/stat-time (Files): Add lib/stat-time.c.
2789         (Depends-on): Add extern-inline.
2790         (lib_SOURCES): Add stat-time.c.
2791
2792         extern-inline: new module
2793         * modules/extern-inline, m4/extern-inline.m4: New files.
2794         This is for better support of 'extern inline' a la ISO C99,
2795         with a portable alternative on compilers that do not support
2796         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2797         of the Emacs executable, when compiled with debugging disabled,
2798         which is a typical way that Emacs is built while developing.
2799
2800 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2801
2802         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2803         * build-aux/do-release-commit-and-tag: Move variable definitions
2804         together.
2805         ($branch): Instead of defaulting to "master", default to the current
2806         branch (as gnu-web-doc-update does).
2807         (help): Display the current values of the option arguments.
2808         * top/maint.mk (release-commit): New.
2809         * top/README-release: Simplify the corresponding step.
2810
2811 2012-07-30  Eric Blake  <eblake@redhat.com>
2812
2813         passfd: fix comment on recvfd
2814         * lib/passfd.c (recvfd): Fix comment.
2815         Reported by Jann Horn <jannhorn@googlemail.com>.
2816
2817 2012-07-30  Jim Meyering  <meyering@redhat.com>
2818
2819         maint.mk: avoid a sub-shell
2820         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2821
2822 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2823
2824         maint.mk: use silent-rules support from Automake
2825         * top/maint.mk (news-check, vc-diff-check, announcement)
2826         (no-submodule-changes, alpha beta stable, release-prep)
2827         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2828
2829 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2830
2831         maint.mk: provide a web-manual-update target
2832         * top/maint.mk: here.
2833         * top/README-release: Use it to simplify the web manual update step.
2834
2835 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2836
2837         README-release: shorten the circuit to post a news
2838         * top/README-release: Point directly to the news submission form.
2839
2840 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2841
2842         gnu-web-doc-update: fix --help
2843         * build-aux/gnu-web-doc-update: The information "top level" was written
2844         twice.
2845
2846 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2847
2848         maint.mk: absolute VPATH issue
2849         * top/maint.mk (release-prep): Help Git find .git/.
2850         From Jim Meyering.
2851
2852 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2853
2854         gitlog-to-changelog: fix previous change
2855         * build-aux/gitlog-to-changelog: Fix condition.
2856         Add missing ";".
2857
2858 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2859
2860         gitlog-to-changelog: don't expect .git to be in $srcdir
2861         Reported by Bruno Haible.
2862         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2863         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2864         Use it.
2865
2866 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2867
2868         maint.mk: absolute VPATH build fix
2869         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2870         $(srcdir) is not a parent of $(builddir).
2871
2872 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2873
2874         clean-temp: Fix memory leak.
2875         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2876         'files' members of tmpdir.
2877
2878 2012-07-27  Jim Meyering  <meyering@redhat.com>
2879
2880         maint.mk: new rule: refresh-gnulib-patches
2881         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2882         Use this rule to refresh them.
2883         * top/maint.mk (refresh-gnulib-patches): New rule.
2884
2885 2012-07-24  Bruno Haible  <bruno@clisp.org>
2886
2887         gnulib-tool: Fix handling of inctests variable.
2888         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2889         Reported by Nick Bowler <nbowler@elliptictech.com>.
2890
2891 2012-07-22  Bruno Haible  <bruno@clisp.org>
2892
2893         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2894         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2895         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2896         Remove exemption for getpass.h.
2897         Suggested by Eric Blake.
2898
2899 2012-07-20  Eric Blake  <eblake@redhat.com>
2900
2901         verify: document conflict with -Wnested-externs
2902         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2903
2904         maint.mk: forbid exit(-1)
2905         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2906
2907 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2908
2909         fsusage: port back to Solaris
2910         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2911         error (fsd not declared) on Solaris 10.  Reported privately by
2912         Andrew Borodin.
2913
2914 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2915
2916         gnu-web-doc-update: fix error messages
2917         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2918
2919         gnu-web-doc-update: check the requirements.
2920         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2921         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2922         * build-aux/bootstrap (find_tool): Comment change.
2923
2924 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2925
2926         maint.mk: minor simplication.
2927         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2928         for default values.
2929
2930 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2931
2932         gitlog-to-changelog: VPATH build issues
2933         If builddir is not a subdirectory of srcdir, running git from it will
2934         fail.
2935         * build-aux/gitlog-to-changelog (--srcdir): New option.
2936
2937 2012-07-15  Bruno Haible  <bruno@clisp.org>
2938
2939         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2940         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2941         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2942         Remove exemption for fpending.h.
2943         Suggested by Eric Blake.
2944
2945 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2946
2947         pthread_sigmask: fix bug on FreeBSD 9
2948         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2949         Include string.h.
2950         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2951         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2952         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2953         but pthread_sigmask (1729, NULL, NULL) returns zero.
2954         See <http://bugs.gnu.org/11884>.
2955         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2956         by inspecting whether the main call changed the old mask.
2957
2958 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2959
2960         README-release: make it more legible
2961         * top/README-release: Improve typography slightly.
2962
2963 2012-07-15  Jim Meyering  <meyering@redhat.com>
2964
2965         maint: require that each sc_... command start with "@"
2966         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2967         "make sc_maint" helps us avoid this nit.
2968
2969 2012-07-15  Jim Meyering  <meyering@redhat.com>
2970
2971         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2972         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2973
2974 2012-07-13  Eric Blake  <eblake@redhat.com>
2975
2976         maint.mk: new syntax check for HAVE_DECL checks
2977         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2978         * cfg.mk
2979         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2980         Exempt some false positives.
2981         Based on a report by Karel Zak.
2982
2983         argp: make HAVE_DECL usage consistent
2984         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2985         macros, not whether they are defined.
2986         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2987         convention with other declaration checks.
2988         Reported by Karel Zak, with suggestions from Paul Eggert.
2989
2990         stat-time: relax license to LGPLv2+
2991         * modules/stat-time (License): Relax, with consent of all authors.
2992
2993         strndup: fix m4 usage error
2994         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2995         defined, to either 0 or 1.
2996         Reported by Karel Zak.
2997
2998 2012-07-11  Jim Meyering  <meyering@redhat.com>
2999
3000         maint: enable the sc_avoid_if_before_free syntax-check rule
3001         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3002         (if_before_free_offenders_): Define.
3003         (if_before_free_basename_re_): Define.
3004         Exempt current files with useless if-before-free.
3005
3006 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3007
3008         gettext: do not assume '#define ... defined ...' behavior
3009         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3010         Do not use '#define FOO ... defined BAR ...', as the C standard says
3011         it's not portable to expect that this works after macro expansion.
3012         Problem reported for gzip by Steven M. Schweda in
3013         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3014
3015 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3016
3017         getloadavg: clean out old Emacs and Autoconf cruft
3018         See Glenn Morris in <http://bugs.gnu.org/11905>.
3019         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3020         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3021         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3022         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3023
3024 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3025
3026         bootstrap: let warn be like tests/init.sh's warn_
3027         Reported by Jim Meyering.
3028         * build-aux/bootstrap (warn): Remove, replaced by...
3029         (warnf_, warn_): these.
3030         Adjust callers.
3031         Shorten messages that no longer fit in 80 columns.
3032
3033 2012-07-09  Bruno Haible  <bruno@clisp.org>
3034
3035         getopt: Simplify after Emacs changed.
3036         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3037         (gl_GETOPT_IFELSE): Remove macro.
3038
3039 2012-07-09  Jim Meyering  <meyering@redhat.com>
3040
3041         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3042         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3043
3044         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3045         Bugs in both of those conspired to make the
3046         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3047         _sc_search_regexp's handling of non-empty $in_files would filter
3048         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3049         choice of in_files value meant there would be no match in most
3050         projects, due to the presence of two or more Makefile.in files.
3051         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3052         Fix a bug in how a non-empty $$in_files was processed:
3053         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3054         in spite of the name, it's a regexp, not a list of file names.
3055
3056 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         getloadavg, getopt: fix commentary re configure.in
3059         Autoconf is deprecating the name 'configure.in', so change it to
3060         to the new name 'configure.ac' in a couple of places.
3061         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3062         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3063         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3064         Emacs has renamed it to configure.ac, and it no longer refers
3065         to these macros anyway.
3066
3067         timespec: mark functions with const attributes
3068         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3069         Mark with _GL_ATTRIBUTE_CONST.
3070
3071 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3072
3073         canonicalize[-lgpl]: handle "guessing" values when cross-building
3074         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3075         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3076         matches "*yes" instead of just "yes".  Regression introduced in commit
3077         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3078
3079 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3080             Bruno Haible  <bruno@clisp.org>
3081
3082         canonicalize: make the right guess when cross-compiling to GNU
3083         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3084         determine whether cross-compiling to glibc systems, so as to
3085         include GNU/Hurd.
3086
3087 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         timespec-sub: avoid duplicate include
3090         * lib/timespec-sub.c: Do not include <config.h> twice.
3091         Reported by Juanma Barranquero.
3092
3093 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3094
3095         bootstrap: use a more consistent error reporting scheme
3096         * build-aux/bootstrap (warn, die): New.
3097         Use them.
3098
3099 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3100
3101         sys_time: allow too-wide tv_sec
3102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3103         timeval even if tv_sec is wider than time_t.  This allows
3104         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3105         as without this patch gnulib replaces struct timeval
3106         and OpenBSD futimes therefore has a type mismatch.
3107         * doc/posix-headers/sys_time.texi: Mention this.
3108
3109         pthread: check for both pthread_create and pthread_join
3110         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3111         alter the check so that it tests for both pthread_create and
3112         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3113         Suggested by Bruno Haible and Richard Yao in
3114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3115
3116         parse-datetime: doc tuneup
3117         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3118         spacing issues.
3119
3120 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3121
3122         do-release-commit-and-tag: fix the previous commit
3123         * build-aux/do-release-commit-and-tag: Actually the test was right,
3124         but the comment and the error message were misleading.
3125         Fix comment, and improve error message.
3126         Perform check first, so that NEWS is not modified uselessly.
3127
3128         do-release-commit-and-tag: fix typo
3129         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3130         _not_ start with a stub.
3131
3132 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3133
3134         pthread: check for pthread_create, not pthread_join
3135         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3136         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3137         pthread_join in libc.  I hope this removes the need for all the
3138         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3139         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3140
3141 2012-07-04  Jim Meyering  <meyering@redhat.com>
3142
3143         parse-datetime: fix failure to diagnose invalid input
3144         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3145         rather than diagnosing the invalid input.  Now it reports this:
3146         date: invalid date '\260'
3147         * lib/parse-datetime.y (to_uchar): Define.
3148         (yylex): Don't sign-extend "other" bytes.
3149         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3150         Thanks to Bruno Haible for the patch to this file.
3151         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3152         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3153
3154 2012-07-03  Jim Meyering  <meyering@redhat.com>
3155
3156         bootstrap: do not require now-removed build-aux/missing
3157         Now that build-aux/missing is, er, missing, bootstrap would
3158         silently fail.
3159         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3160         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3161         no longer part of gnulib.
3162         Diagnose the failure.
3163
3164 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3165
3166         alloca: add support for HP NonStop TNS/E native
3167         * lib/alloca.in.h (alloca): Support the new host.
3168         From a suggestion by Joachim Schmitz in
3169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3170
3171 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3172
3173         fsusage: remove code not needed on non GNU/Linux systems.
3174
3175         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3176         Don't include headers no longer needed in this case.
3177         * lib/fsusage.c [STAT_STATVFS &&
3178         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3179         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3180
3181 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3182
3183         fsusage: include files needed for glibc 2.6 fallback
3184         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3185         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3186         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3187         Problem reported by Ludovic Courtès in
3188         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3189
3190         fsusage: avoid needless check on GNU/Linux
3191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3192         on GNU/Linux systems, since it can't possibly work.
3193
3194 2012-07-01  Bruno Haible  <bruno@clisp.org>
3195
3196         log: Fix an autoconf >= 2.64 warning.
3197         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3198         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3199
3200 2012-06-28  Bruno Haible  <bruno@clisp.org>
3201
3202         log10f: Fix possible configuration problem.
3203         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3204         $LOGF_LIBM.
3205         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3206
3207 2012-06-28  Bruno Haible  <bruno@clisp.org>
3208
3209         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3210         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3211         not gl_cv_func_unlink_works.
3212         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3213
3214 2012-06-27  Eric Blake  <eblake@redhat.com>
3215
3216         config: drop scripts that automake says are not independent
3217         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3218         * build-aux/elisp-comp: Delete.
3219         * build-aux/missing: Likewise.
3220         * build-aux/ylwrap: Likewise.
3221         * modules/elisp-comp: Likewise.
3222         * MODULES.html.sh: Drop mention of elisp-comp.
3223         * NEWS: Mention this.
3224
3225 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3226
3227         root-uid: new module
3228         This is for portability to Tandem's NonStop Kernel.
3229         * lib/root-uid.h, modules/root-uid: New files.
3230         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3231         * lib/write-any-file.c, tests/test-sethostname2.c:
3232         Include "root-uid.h".
3233         * lib/euidaccess.c (euidaccess):
3234         * lib/pt_chown.c (main):
3235         * lib/unlinkdir.c (cannot_unlink_dir):
3236         * lib/write-any-file.c (can_write_any_file):
3237         * m4/mknod.m4 (gl_FUNC_MKNOD):
3238         * tests/test-sethostname2.c (geteuid, main):
3239         Don't assume ROOT_UID == 0.
3240         * modules/euidaccess (Depends-on):
3241         * modules/pt_chown (Depends-on):
3242         * modules/sethostname-tests (Depends-on):
3243         * modules/unlinkdir (Depends-on):
3244         * modules/write-any-file (Depends-on):
3245         Add root-uid.
3246
3247         regex: use locale-independent comparison for codeset name
3248         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3249         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3250         for codeset name.
3251         * lib/regex_internal.h: Do not include <strings.h>, since we
3252         no longer use strcasecmp.
3253         * modules/regex (Depends-on): Remove strcase.
3254
3255 2012-06-23  Bruno Haible  <bruno@clisp.org>
3256
3257         getopt-posix: No longer guarantee that option processing is resettable.
3258         * doc/posix-functions/getopt.texi: Drop description of problem with
3259         internal state. Fix info about mingw and msvc9.
3260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3261         option processing by getopt(). Run three test programs instead of one.
3262         Simplify cross-compilation guess.
3263         * NEWS: Mention the change.
3264         Reported by Rich Felker <dalias@aerifal.cx>.
3265
3266 2012-06-26  Bruno Haible  <bruno@clisp.org>
3267
3268         argp, regex: Ensure strcasecmp gets declared.
3269         * lib/argp-help.c: Include <strings.h>.
3270         * lib/regex_internal.h: Likewise.
3271         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3272
3273 2012-06-24  Bruno Haible  <bruno@clisp.org>
3274
3275         ptsname_r: Make it consistent with ptsname on AIX.
3276         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3277         implementation as for OSF/1.
3278         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3279         a pty master.
3280
3281         ptsname_r: Make it consistent with ptsname on OSF/1.
3282         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3283         OSF/1.
3284
3285 2012-06-24  Bruno Haible  <bruno@clisp.org>
3286
3287         ttyname_r: Fix result on OSF/1, Solaris.
3288         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3289
3290 2012-06-24  Bruno Haible  <bruno@clisp.org>
3291
3292         ptsname_r: Add support for Solaris.
3293         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3294         Solaris.
3295
3296         ptsname_r: Fix test failure on native Windows.
3297         * modules/ptsname_r (Depends-on): Add isatty.
3298
3299         ptsname_r: Fix test failures on IRIX, Solaris.
3300         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3301         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3302         accordingly.
3303         * lib/ptsname_r.c: Include <fcntl.h>.
3304         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3305         set errno if fd is invalid.
3306         * tests/test-isatty.c (main): Update comments.
3307
3308 2012-06-24  Bruno Haible  <bruno@clisp.org>
3309
3310         ptsname test: Extend test.
3311         * tests/test-ptsname.c: Include <errno.h>.
3312         (main): Test behaviour with invalid file descriptor.
3313
3314 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3315
3316         time: fix obsolete comment
3317         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3318         reference to HAVE_STRUCT_TIMESPEC in comment.
3319
3320 2012-06-23  Bruno Haible  <bruno@clisp.org>
3321
3322         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3324         does not handle abbreviated long options with equivalent
3325         disambiguations, set gl_replace_getopt to yes.
3326         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3327
3328 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3329
3330         time_r: fix typo that always overrode localtime_r decl
3331         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3332         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3333         not in a standard include.
3334
3335 2012-06-22  Bruno Haible  <bruno@clisp.org>
3336
3337         Write "Mac OS X" instead of "MacOS X".
3338         * README: Write "Mac OS X" instead of "MacOS X".
3339         * build-aux/bootstrap: Likewise.
3340         * build-aux/install-reloc: Likewise.
3341         * lib/acl-internal.h: Likewise.
3342         * lib/acl_entries.c: Likewise.
3343         * lib/argp-ba.c: Likewise.
3344         * lib/argp-pv.c: Likewise.
3345         * lib/config.charset: Likewise.
3346         * lib/copy-acl.c: Likewise.
3347         * lib/csharpexec.c: Likewise.
3348         * lib/euidaccess.c: Likewise.
3349         * lib/fbufmode.c: Likewise.
3350         * lib/fflush.c: Likewise.
3351         * lib/file-has-acl.c: Likewise.
3352         * lib/filemode.h: Likewise.
3353         * lib/fpurge.c: Likewise.
3354         * lib/freadable.c: Likewise.
3355         * lib/freadahead.c: Likewise.
3356         * lib/freading.c: Likewise.
3357         * lib/freadptr.c: Likewise.
3358         * lib/freadseek.c: Likewise.
3359         * lib/fseeko.c: Likewise.
3360         * lib/fseterr.c: Likewise.
3361         * lib/fsusage.c: Likewise.
3362         * lib/fwritable.c: Likewise.
3363         * lib/fwriting.c: Likewise.
3364         * lib/get-rusage-as.c: Likewise.
3365         * lib/get-rusage-data.c: Likewise.
3366         * lib/getdomainname.c: Likewise.
3367         * lib/idpriv-drop.c: Likewise.
3368         * lib/idpriv-droptemp.c: Likewise.
3369         * lib/localcharset.c: Likewise.
3370         * lib/locale.in.h: Likewise.
3371         * lib/localename.c: Likewise.
3372         * lib/mbsrtowcs-state.c: Likewise.
3373         * lib/nproc.c: Likewise.
3374         * lib/passfd.c: Likewise.
3375         * lib/posix_openpt.c: Likewise.
3376         * lib/printf-parse.c: Likewise.
3377         * lib/progreloc.c: Likewise.
3378         * lib/safe-read.h: Likewise.
3379         * lib/safe-write.h: Likewise.
3380         * lib/sched.in.h: Likewise.
3381         * lib/set-mode-acl.c: Likewise.
3382         * lib/signal.in.h: Likewise.
3383         * lib/stdint.in.h: Likewise.
3384         * lib/stdio-impl.h: Likewise.
3385         * lib/stdlib.in.h: Likewise.
3386         * lib/strtod.c: Likewise.
3387         * lib/sys_select.in.h: Likewise.
3388         * lib/tcgetsid.c: Likewise.
3389         * lib/unistd.in.h: Likewise.
3390         * lib/unlockpt.c: Likewise.
3391         * lib/vasnprintf.c: Likewise.
3392         * lib/vma-iter.c: Likewise.
3393         * lib/wcsrtombs-state.c: Likewise.
3394         * m4/acl.m4: Likewise.
3395         * m4/acosl.m4: Likewise.
3396         * m4/asinl.m4: Likewise.
3397         * m4/atanl.m4: Likewise.
3398         * m4/c-stack.m4: Likewise.
3399         * m4/cosl.m4: Likewise.
3400         * m4/expl.m4: Likewise.
3401         * m4/extensions.m4: Likewise.
3402         * m4/fdatasync.m4: Likewise.
3403         * m4/fmal.m4: Likewise.
3404         * m4/frexp.m4: Likewise.
3405         * m4/frexpf.m4: Likewise.
3406         * m4/frexpl.m4: Likewise.
3407         * m4/fsusage.m4: Likewise.
3408         * m4/getdomainname.m4: Likewise.
3409         * m4/getloadavg.m4: Likewise.
3410         * m4/getopt.m4: Likewise.
3411         * m4/gettext.m4: Likewise.
3412         * m4/gnulib-common.m4: Likewise.
3413         * m4/intdiv0.m4: Likewise.
3414         * m4/intlmacosx.m4: Likewise.
3415         * m4/largefile.m4: Likewise.
3416         * m4/ldexpl.m4: Likewise.
3417         * m4/link-follow.m4: Likewise.
3418         * m4/locale-ar.m4: Likewise.
3419         * m4/locale-fr.m4: Likewise.
3420         * m4/locale-ja.m4: Likewise.
3421         * m4/locale-tr.m4: Likewise.
3422         * m4/locale-zh.m4: Likewise.
3423         * m4/locale_h.m4: Likewise.
3424         * m4/lock.m4: Likewise.
3425         * m4/logl.m4: Likewise.
3426         * m4/mathfunc.m4: Likewise.
3427         * m4/minus-zero.m4: Likewise.
3428         * m4/mktime.m4: Likewise.
3429         * m4/mmap-anon.m4: Likewise.
3430         * m4/multiarch.m4: Likewise.
3431         * m4/nanosleep.m4: Likewise.
3432         * m4/nocrash.m4: Likewise.
3433         * m4/poll.m4: Likewise.
3434         * m4/printf-frexpl.m4: Likewise.
3435         * m4/printf.m4: Likewise.
3436         * m4/signbit.m4: Likewise.
3437         * m4/sinl.m4: Likewise.
3438         * m4/sqrtl.m4: Likewise.
3439         * m4/strerror_r.m4: Likewise.
3440         * m4/tanl.m4: Likewise.
3441         * m4/threadlib.m4: Likewise.
3442         * m4/ttyname_r.m4: Likewise.
3443         * m4/unlink.m4: Likewise.
3444         * m4/visibility.m4: Likewise.
3445         * m4/wcwidth.m4: Likewise.
3446         * tests/minus-zero.h: Likewise.
3447         * tests/test-alloca-opt.c: Likewise.
3448         * tests/test-copy-acl.sh: Likewise.
3449         * tests/test-copy-file.sh: Likewise.
3450         * tests/test-fdatasync.c: Likewise.
3451         * tests/test-file-has-acl.sh: Likewise.
3452         * tests/test-flock.c: Likewise.
3453         * tests/test-fsync.c: Likewise.
3454         * tests/test-localename.c: Likewise.
3455         * tests/test-malloca.c: Likewise.
3456         * tests/test-nonblocking-pipe.h: Likewise.
3457         * tests/test-nonblocking-socket.h: Likewise.
3458         * tests/test-openpty.c: Likewise.
3459         * tests/test-posix_openpt.c: Likewise.
3460         * tests/test-ptsname.c: Likewise.
3461         * tests/test-ptsname_r.c: Likewise.
3462         * tests/test-sameacls.c: Likewise.
3463         * tests/test-select.h: Likewise.
3464         * tests/test-set-mode-acl.sh: Likewise.
3465         * tests/test-snprintf-posix.h: Likewise.
3466         * tests/test-sprintf-posix.h: Likewise.
3467         * tests/test-strtod.c: Likewise.
3468         * tests/test-time.c: Likewise.
3469         * tests/test-vasnprintf-posix.c: Likewise.
3470         * tests/test-vasprintf-posix.c: Likewise.
3471         * doc/acl-resources.txt: Likewise.
3472         * doc/**/*.texi: Likewise.
3473         Reported by Max Horn <max@quendi.de>.
3474
3475 2012-06-22  Bruno Haible  <bruno@clisp.org>
3476
3477         grantpt: Relax requirement regarding invalid file descriptors.
3478         * lib/grantpt.c: Don't include <fcntl.h>.
3479         (grantpt): Don't verify the validity of the file descriptor.
3480         * modules/grantpt (Depends-on): Remove fcntl-h.
3481         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3482         file descriptors.
3483         * doc/posix-functions/grantpt.texi: Document more platforms on which
3484         grantpt succeeds for invalid file descriptors.
3485         Reported by Rich Felker <dalias@aerifal.cx>.
3486
3487 2012-06-22  Bruno Haible  <bruno@clisp.org>
3488
3489         fbufmode test: Don't test unportable behaviour.
3490         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3491         (main): Invoke it three times.
3492         Reported by Szabolcs Nagy <nsz@port70.net>
3493         and Rich Felker <dalias@aerifal.cx>.
3494
3495 2012-06-21  Bruno Haible  <bruno@clisp.org>
3496
3497         gnulib-tool: Refactor inctests variable.
3498         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3499         (func_modules_transitive_closure,
3500         func_modules_transitive_closure_separately,
3501         func_import, func_create_testdir): Update.
3502
3503         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3504         * gnulib-tool: Accept option --without-tests.
3505         (func_usage): Document --without-tests option. Rearrange.
3506         (inctests): Normalize according to the mode.
3507         * NEWS: Mention the change.
3508         Suggested by Simon Josefsson.
3509
3510 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3511
3512         parse-duration test: Avoid spurious output.
3513         * tests/test-parse-duration.sh: Reindent with leading tabs.
3514
3515 2012-06-21  Jim Meyering  <meyering@redhat.com>
3516
3517         maint: disable the strncpy prohibition
3518         * cfg.mk: Do not prohibit strncpy here.
3519
3520 2012-06-21  Bruno Haible  <bruno@clisp.org>
3521
3522         nonblocking: Avoid compilation error on mingw64.
3523         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3524         fscanf.
3525         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3526         * modules/vfscanf (configure.ac): Likewise.
3527         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3528         definition only if stdio.h has prepared it.
3529         Reported by Daniel P. Berrange <berrange@redhat.com>.
3530
3531 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3532
3533         gnulib-tool: Use readlink if it is available.
3534         * gnulib-tool (func_readlink): Choose function more appropriately.
3535
3536 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3537
3538         posixtm-tests: port to buggy compiler
3539         Problem reported by Simon Josefsson in
3540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3541         * modules/posixtm-tests (Depends-on): Add stdint.
3542         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3543         Now of type int_least64_t, not int64_t, both because that's
3544         what INT64_C returns and because int_least64_t works even
3545         on 72-bit hosts.
3546         (T): Use INT64_C on constants outside the traditional int range,
3547         to work around compiler bug noted by Simon.
3548
3549         mktime: fix integer overflow in 'configure'-time test
3550         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3551         after integer overflow.  Problem reported by Rich Felker in
3552         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3553         Also, don't look for further instances of a bug if we've already
3554         found one instance; this helps 'configure' run faster.
3555
3556 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3557
3558         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3559         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3560         GetVersionEx correctly.
3561         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3562
3563 2012-06-20  Bruno Haible  <bruno@clisp.org>
3564
3565         fdopen: Allow implementations that don't reject invalid fd arguments.
3566         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3567         succeeds.
3568         Reported by Rich Felker <dalias@aerifal.cx>.
3569
3570 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3571
3572         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3573         bring in LIBINTL.
3574
3575 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3576
3577         init.sh: do not rely on autoupated PWD
3578         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3579         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3580         Although Nelson's bug was not necessarily fixed by this patch,
3581         it seems wise to make the change for safety.
3582         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3583         automagically after 'cd'; this is not reliable on older shells.
3584         (setup_): Fail if we cannot cd to temporary directory.
3585
3586 2012-06-19  Bruno Haible  <bruno@clisp.org>
3587
3588         stat, fstat: Avoid warnings on mingw64.
3589         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3590         redefining.
3591         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3592         Reported by Daniel P. Berrange <berrange@redhat.com>.
3593
3594 2012-06-19  Bruno Haible  <bruno@clisp.org>
3595
3596         stdioext: Add support for musl libc.
3597
3598         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3599         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3600
3601         * m4/fseterr.m4: New file.
3602         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3603         function exists.
3604         * modules/fseterr (Files): Add m4/fseterr.m4.
3605         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3606         __fseterr does not exist.
3607         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3608
3609         * lib/freadable.h: Update comment.
3610
3611         * lib/fwritable.h: Update comment.
3612
3613         * lib/freading.h: Update comment.
3614
3615         * lib/fwriting.h: Update comment.
3616
3617         * m4/freadahead.m4: New file.
3618         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3619         that function exists.
3620         * modules/freadahead (Files): Add m4/freadahead.m4.
3621         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3622         __freadahead does not exist.
3623         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3624
3625         * m4/freadptr.m4: New file.
3626         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3627         function exists.
3628         * modules/freadptr (Files): Add m4/freadptr.m4.
3629         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3630         __freadptr does not exist.
3631         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3632
3633         * m4/freadseek.m4: New file.
3634         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3635         exists.
3636         * modules/freadseek (Files): Add m4/freadseek.m4.
3637         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3638
3639         * lib/fpurge.c (fpurge): Update comment.
3640
3641         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3642
3643 2012-06-19  Bruno Haible  <bruno@clisp.org>
3644
3645         *printf-posix: Put more info into config.log.
3646         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3647         exit code into config.log.
3648
3649 2012-06-19  Bruno Haible  <bruno@clisp.org>
3650
3651         getopt-gnu: Fix exit code overflow in autoconf test.
3652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3653         to keep them below < 128.
3654
3655 2012-06-17  Jim Meyering  <meyering@redhat.com>
3656
3657         maint.mk: fix typo in code to derive GPG key at release time
3658         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3659
3660 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3661
3662         regex: avoid warning when pointers are not long
3663         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3664         and uintptr_t, not long, for portability to hosts where pointers and
3665         long have different sizes.  Issue noted by Daniel P. Berrange in
3666         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3667         and fix suggested by Bruno Haible in
3668         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3669
3670 2012-06-17  Bruno Haible  <bruno@clisp.org>
3671
3672         dummy: Relicense into the public domain.
3673         * modules/dummy (License): Set to "public domain".
3674         Suggested by Reuben Thomas.
3675
3676 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3677
3678         announce-gen: VPATH issues
3679         * build-aux/announce-gen (--srcdir): New option, used to trim the
3680         $srcdir part of the path from $builddir to NEWS.
3681         * top/maint.mk (announcement): Adjust.
3682
3683 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3684
3685         gnu-web-doc-update: VPATH builds
3686         * build-aux/gnu-web-doc-update (--builddir): New option.
3687         Revamp the handling of options.
3688         Prefer $(...) to `...`.
3689         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3690         the template, and it is GNU mktemp specific.
3691         Prefer set -e to long series of &&.
3692         Restore the initial git branch, not "master".
3693         Properly initialize submodules (don't rely only on bootstrap).
3694         Do not reconfigure blindly, use config.status.
3695         * top/README-release: Update instructions for gnu-web-doc-update.
3696
3697 2012-06-11  Jim Meyering  <meyering@redhat.com>
3698
3699         maint.mk: revert most of the previous change re "all these"
3700         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3701         For rationale, see the discussion at
3702         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3703
3704 2012-06-10  Karl Berry  <karl@gnu.org>
3705
3706         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3707
3708         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3709
3710 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3711
3712         parse-duration: Relicense under LGPLv2+.
3713         * modules/parse-duration (License): Change to LGPLv2+.
3714
3715 2012-06-10  Jim Meyering  <meyering@redhat.com>
3716
3717         maint.mk: prohibit common grammar error: "all these"
3718         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3719         the list of prohibited word sequences.  It should be "all of these".
3720         * lib/tempname.c (__gen_tempname): Fix one of them.
3721
3722 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3723
3724         do-release-commit-and-tag: support VPATH builds
3725         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3726         (noteworthy): Defined earlier to factor its value.
3727         (noteworthy_stub): New.
3728         Use it to factor.
3729         (help_version): Split into...
3730         (help, version): these.
3731         Adjust the option processing part.
3732         Support "--option=value" in addition to "--option value".
3733         (builddir): New.
3734         (--builddir): New option.
3735         * top/README-release: Document this.
3736         Reword slightly so that the reader cannot understand that he
3737         has to do these steps before calling do-release-commit-and-tag.
3738
3739 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3740
3741         readme-release: also require announce-gen and maintainer-makefile
3742         * modules/readme-release (Depends-on): here.
3743         * modules/announce-gen, modules/do-release-commit-and-tag,
3744         modules/gnu-web-doc-update, modules/maintainer-makefile
3745         (Description): Point to readme-release.
3746
3747 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3748
3749         maint.mk: fix VPATH issues.
3750         * top/maint.mk (news-check): GNU Make understand $< very well.
3751         (release-prep): NEWS is in $(srcdir).
3752
3753 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3754
3755         readme-release: require the promoted modules.
3756         * modules/readme-release (Depends-on): Add
3757         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3758         in this text.
3759
3760 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3761             Bruno Haible  <bruno@clisp.org>
3762
3763         error, strerror-override: Support mingw64 from Fedora 17.
3764         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3765         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3766         EINPROGRESS.
3767         * lib/strerror-override.h (strerror_override): Test it.
3768         * lib/strerror-override.c (strerror_override): Likewise.
3769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3770
3771 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3772             Bruno Haible  <bruno@clisp.org>
3773
3774         error, strerror-override: Support mingw64 from Fedora 17.
3775         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3776         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3777         * lib/strerror-override.h (strerror_override): Test it.
3778         * lib/strerror-override.c (strerror_override): Likewise.
3779
3780 2012-06-03  Bruno Haible  <bruno@clisp.org>
3781
3782         error, strerror-override: Support new errno values from POSIX:2008.
3783         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3784         ENOTRECOVERABLE.
3785         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3786         platforms.
3787         * lib/strerror-override.c (strerror_override): Conditionalize the
3788         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3789         * lib/strerror-override.h (strerror_override): Declare also if
3790         GNULIB_defined_EOWNERDEAD is defined.
3791         * tests/test-errno.c (e130, e131): New variables.
3792         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3793         ENOTRECOVERABLE.
3794         Reported by Paolo Bonzini.
3795
3796 2012-05-31  Jim Meyering  <meyering@redhat.com>
3797
3798         savewd: add missing dependency on sys_wait module
3799         * modules/savewd (Depends-on): Add sys_wait, needed at least
3800         for MSVC.  Report and suggested change by Michael Goffioul.
3801
3802 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3803
3804         system-quote-tests: port to CentOS 5
3805         Problem reported by Tom G. Christensen in
3806         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3807         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3808
3809 2012-05-29  Jim Meyering  <meyering@redhat.com>
3810
3811         maint: fix typos in comments and ChangeLog
3812         Culprits identified and fixed mostly automatically using these commands:
3813         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3814         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3815         using http://github.com/lyda/misspell-check
3816         * ChangeLog: Fix typos.
3817         * doc/solaris-versions: Likewise.
3818         * lib/regexec.c (re_search_stub): Likewise.
3819         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3820
3821 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3822
3823         manywarnings: remove duplicate -Wmultichar entry
3824         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3825         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3826         so keep the entry marked as documented.
3827
3828 2012-05-27  Karl Berry  <karl@gnu.org>
3829
3830         * config/srclist.txt (mktime.c): remove last libc sync,
3831         perhaps just temporarily.
3832
3833 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3834
3835         regex: don't assume uint64_t or uint32_t
3836         * lib/regcomp.c (init_word_char): Don't assume that the types
3837         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3838         them, and on some 32-bit compilers there is no uint64_t.
3839         Problem reported by Gianluigi Tiesi in
3840         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3841
3842 2012-05-25  Jim Meyering  <meyering@redhat.com>
3843
3844         maint.mk: add strncpy-prohibiting syntax-check rule
3845         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3846
3847 2012-05-24  Jim Meyering  <meyering@redhat.com>
3848
3849         maint.mk: compute $(gpg_key_ID) more portably
3850         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3851         That use of sed is not portable to some fringe systems.
3852         Reported by Paul Eggert in
3853         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3854
3855 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3856
3857         mktime: sync from glibc
3858         * config/srclist.txt: Uncomment mktime.c.
3859         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3860         First, indent with tabs, since glibc uses tabs and doesn't want to
3861         change and we'd rather be identical to glibc.  Also, two small
3862         coding changes:
3863         (isdst_differ): Use &&, not &, as && is the usual style.
3864         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3865         for clarity.
3866
3867 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3868
3869         announce-gen: du -h is more portable than du --human
3870         * build-aux/announce-gen (sizes): Invoke du with -h instead
3871         of --human.  Accept leading white space in its output.
3872
3873 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3874
3875         announce-gen: Improve diagnostics.
3876         * build-aux/announce-gen: When parsing command line options,
3877         prefer "announce-gen: option --release-type requires an argument"
3878         to "Option release-type requires an argument".
3879
3880 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3881
3882         maint.mk: gpg_key_ID: use sed more portably
3883         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3884         the closing brace.
3885         (refresh-po): Fuse two sed invocations into one.
3886
3887 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3888
3889         gitlog-to-changelog: support the log message format used in Bison.
3890         * build-aux/gitlog-to-changelog: Support --strip-tab and
3891         --strip-cherry-picked.
3892
3893 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3894
3895         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3896         the rest of the current time slice to another thread in the current
3897         process. So if the thread that feeds the file decscriptor we're
3898         polling is not in the current process, we get busy-waiting.
3899         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3900         Patch from Theodore Leblond.
3901         * lib/select.c: Split polling out of the loop that sets the output
3902         fd_sets.  Check for zero result and loop if the wait timeout is
3903         infinite.
3904
3905 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3906
3907         select: Fix build error on IRIX 6.5.
3908         * lib/select.c: Include stddef.h for NULL.
3909
3910 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3911
3912         gc: fix libgcrypt detection on older machines.
3913         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3914         copyright years because the file has been distributed every year
3915         since it was created.
3916
3917 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3918
3919         crypto: fix bug in large buffer handling
3920         Problem reported by Serge Belyshev for glibc in
3921         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3922         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3923         * lib/md4.c (md4_process_block):
3924         * lib/md5.c (md5_process_block):
3925         * lib/sha1.c (sha1_process_block):
3926         * lib/sha256.c (sha256_process_block):
3927         Don't assume the buffer length is less than 2**32.
3928         * lib/sha512.c (sha512_process_block): Likewise.
3929         Here, the bug is present only in the rare case where the host does
3930         not support uint64_t or where size_t is wider than 64 bits.
3931         Use u64size to work around the problems.
3932         * lib/u64.h (u64size): New macro.
3933
3934 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3935
3936         fsusage: fix block size returned on older Linux 2.6
3937
3938         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3939         which is available since Linux 2.6.
3940         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3941         when the member is available so it can be used as a fallback.
3942         * doc/posix-functions/statvfs.texi: Mention the hang issue
3943         on Linux < 2.6.36.
3944
3945 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3946
3947         bootstrap: suppress stderr chatter
3948         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3949         Omit unnecessary chatter to stderr.  The main program chatter
3950         was there only inadvertantly.
3951
3952         bootstrap: .gitignore files created by autopoint, libtool
3953         I ran into this problem when bootstrapping the latest diffutils.
3954         After './bootstrap', 'git status' reported lots of untracked files
3955         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3956         autopoint and do not need to be version-controlled.
3957         * build-aux/bootstrap: Put into .gitignore the files that
3958         autopoint and libtool create, by keeping track of files that exist
3959         after but not before these programs are run.
3960         (version_controlled_file): Move up.  2nd arg is now full file
3961         name, not base name; this is more convenient.  Put CVS at the end,
3962         as it's now somewhat deprecated.
3963
3964 2012-05-14  Jim Meyering  <meyering@redhat.com>
3965
3966         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3967         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3968         definition.  Reported by Bruno Haible.
3969
3970 2012-05-13  Bruno Haible  <bruno@clisp.org>
3971             Paul Eggert  <eggert@cs.ucla.edu>
3972
3973         binary-io: Define set_binary_mode function.
3974         * lib/binary-io.h (set_binary_mode): New function.
3975         (SET_BINARY): Define in terms of set_binary_mode.
3976         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3977         * tests/test-binary-io.c (main): Accept an argument, and test either
3978         set_binary_mode or SET_BINARY depending on the argument.
3979         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3980         argument. Clean up also t-bin-out0.tmp.
3981
3982 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3983
3984         bootstrap: take advantage of POSIX shell features
3985
3986         The 'bootstrap' script offered by Gnulib script already uses POSIX
3987         shell features (like $((...)) arithmetic expansions) that are not
3988         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3989         means that bootstrap must already be run using a proper POSIX shell,
3990         which will thus provide more features, like ${var#pattern} parameter
3991         expansion or inversion of a command exit status with '!'.  We can
3992         thus use these features to improve the clarity and the performances
3993         of the bootstrap script.
3994
3995         Suggested by Eric Blake.
3996
3997         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3998         of sed/expr plus command substitutions, to save some forks.  While
3999         we are at it, prefer the POSIX $(...) form of command substitution,
4000         rather than the legacy form `...` (since the former is visually
4001         clearer and interacts better with quoting), and prefer the idiom:
4002           "if ! CMD; then ACTION ..."
4003         over the idiom:
4004           "if CMD; then :; else ACTION ..."
4005         which was required by legacy Bourne shells not supporting '!'.
4006
4007 2012-05-12  Bruno Haible  <bruno@clisp.org>
4008
4009         system-quote: Add more comments.
4010         * lib/system-quote.h: Add more comments about wilcards and limitations.
4011         Suggested by Eli Zaretskii <eliz@gnu.org>.
4012
4013         sh-quote, system-quote: Add comments about wildcards.
4014         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4015         * lib/system-quote.h: Likewise.
4016         Reported by Eli Zaretskii <eliz@gnu.org>.
4017
4018 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4019
4020         fsusage: check for GNU/Linux statvfs problem dynamically
4021         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4022         Define STAT_STATFS2_BSIZE too, since in this case the code now
4023         checks dynamically whether statvfs is reliable, falling back on
4024         Linux-style statfs otherwise.
4025         (statvfs_works): New function, for dynamically testing statvfs.
4026         (get_fs_usage) [STAT_STATVFS]: Use it.
4027         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4028         statvfs on GNU/Linux hosts, since it's now done dynamically.
4029
4030 2012-05-10  Bruno Haible  <bruno@clisp.org>
4031
4032         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4033         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4034         '?' character.
4035         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4036         * tests/test-system-quote-main.c (check_all): Check also strings like
4037         "??????????".
4038         Reported by Eli Zaretskii <eliz@gnu.org>.
4039
4040 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4041
4042         _Noreturn: port config.h to gcc -Wundef
4043         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4044         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4045         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4046
4047 2012-05-10  Bruno Haible  <bruno@clisp.org>
4048
4049         system-quote: Refactor.
4050         * lib/system-quote.h (system_quote_copy): Fix comment.
4051         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4052         New functions, extracted from system_quote_copy.
4053         (system_quote_length, system_quote_copy): Use these functions.
4054         Reported by Paul Eggert.
4055
4056 2012-05-08  Bruno Haible  <bruno@clisp.org>
4057
4058         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4059         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4060
4061 2012-05-08  Bruno Haible  <bruno@clisp.org>
4062
4063         Tests for module 'system-quote'.
4064         * modules/system-quote-tests: New file.
4065         * tests/test-system-quote.sh: New file.
4066         * tests/test-system-quote-main.c: New file.
4067         * tests/test-system-quote-child.c: New file.
4068
4069         New module 'system-quote'.
4070         * lib/system-quote.h: New file.
4071         * lib/system-quote.c: New file.
4072         * modules/system-quote: New file.
4073
4074 2012-05-08  Bruno Haible  <bruno@clisp.org>
4075
4076         sh-quote: Make C++ safe and allow multiple inclusion.
4077         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4078         declarations in extern "C".
4079
4080 2012-05-08  Bruno Haible  <bruno@clisp.org>
4081
4082         sh-quote tests: Make tests stricter.
4083         * tests/test-sh-quote.c (check_one): Check the return value of
4084         shell_quote_copy.
4085         (main): Check a string with a CR character. Check a string that
4086         contains UCHAR_MAX.
4087
4088 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4089
4090         warnings.m4: provide a means to specify the program to compile.
4091         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4092         (gl_WARN_ADD): here.
4093         Use gl_AS_VAR_APPEND.
4094         Support an argument to specify the program to compile.
4095         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4096         AC_SUBST the WARN_CFLAGS when they are used.
4097         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4098         leave this to gl_WARN_ADD.
4099
4100 2012-05-08  Eric Blake  <eblake@redhat.com>
4101
4102         doc: recommendations on gettext version
4103         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4104         choice between versions.
4105         * DEPENDENCIES (gettext): Cover both approaches.
4106
4107 2012-05-08  Jim Meyering  <meyering@redhat.com>
4108
4109         init.sh: explain why EXEEXT support uses aliases rather than functions
4110         * tests/init.sh: Add a comment.
4111
4112         init.sh: don't let bash aliases interfere with tests
4113         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4114         is bash.  This avoids problems for those who alias standard commands to
4115         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4116         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4117
4118 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         stdint: be more consistent with glibc, SunOS libc
4121         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4122         (gl_int_fast16_t, gl_uint_fast16_t)
4123         (gl_int_fast32_t, gl_uint_fast32_t)
4124         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4125         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4126         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4127         Be consistent with glibc by default, and with SunOS 5.10 and later
4128         if __sun is defined.  This lessens the likelihood of clashes if
4129         code compiled for older hosts is combined with code compiled for
4130         newer ones.  Problem reported by Niels Möller in
4131         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4132
4133 2012-05-07  Eric Blake  <eblake@redhat.com>
4134
4135         isatty: relax license to LGPLv2+
4136         * modules/isatty (License): Relax license.
4137
4138 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4139
4140         stat-size: comment fix
4141         * lib/stat-size.h: Remove obsolete comment about indenting.
4142
4143 2012-05-06  Bruno Haible  <bruno@clisp.org>
4144
4145         Tests for module 'sh-quote'.
4146         * modules/sh-quote-tests: New file.
4147         * tests/test-sh-quote.c: New file.
4148
4149 2012-05-06  Bruno Haible  <bruno@clisp.org>
4150
4151         sh-quote: Improve shell_quote_argv's signature.
4152         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4153         * lib/sh-quote.c (shell_quote_argv): Likewise.
4154
4155 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4156
4157         stdint: document issues with int_fast8_t etc.
4158         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4159         stdint.h substitutes may define these types differently.  See
4160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4161
4162 2012-05-05  Bruno Haible  <bruno@clisp.org>
4163
4164         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4166         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4167         or 'guessing no (mishandles large arguments)'.
4168
4169 2012-05-05  Bruno Haible  <bruno@clisp.org>
4170
4171         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4172         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4173         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4174         set gl_cv_func_link_follows_symlink to "guessing no".
4175
4176 2012-05-05  Bruno Haible  <bruno@clisp.org>
4177
4178         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4179         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4180         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4181         "guessing no".
4182         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4183
4184 2012-05-05  Bruno Haible  <bruno@clisp.org>
4185
4186         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4187         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4188         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4189         set gl_cv_struct_dirent_d_ino to "guessing yes".
4190
4191 2012-05-05  Bruno Haible  <bruno@clisp.org>
4192
4193         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4194         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4195         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4196         "guessing yes".
4197
4198 2012-05-05  Bruno Haible  <bruno@clisp.org>
4199
4200         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4201         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4202         compiling to a glibc system, set gl_cv_func_signbit and
4203         gl_cv_func_signbit_gcc to "guessing yes".
4204
4205 2012-05-05  Bruno Haible  <bruno@clisp.org>
4206
4207         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4208         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4209         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4210         to "guessing yes".
4211         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4212         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4213
4214 2012-05-05  Bruno Haible  <bruno@clisp.org>
4215
4216         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4217         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4218         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4219         gl_cv_func_realpath_works to "guessing yes".
4220
4221 2012-05-05  Bruno Haible  <bruno@clisp.org>
4222
4223         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4224         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4225         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4226
4227 2012-05-04  Bruno Haible  <bruno@clisp.org>
4228
4229         Tweak last commit.
4230         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4231         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4232
4233 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4234
4235         unistd_h: make it easier to avoid sys_types_h
4236         This is useful for Emacs, which has its own method of porting to
4237         Windows, and which therefore does not need the sys_types_h module.
4238         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4239         code moved here from gl_SYS_TYPES_H.
4240         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4241         using the code directly.
4242         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4243         gl_SYS_TYPES_H.
4244         * modules/sys_types (Files):
4245         * modules/unistd (Files): Add m4/off_t.m4.
4246
4247 2012-05-03  Bruno Haible  <bruno@clisp.org>
4248
4249         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4250         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4251         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4252         "guessing yes" or "guessing no".
4253         (gl_FUNC_LSTAT): Update.
4254         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4255         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4256         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4257
4258 2012-05-03  Bruno Haible  <bruno@clisp.org>
4259
4260         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4261         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4262         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4263         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4264         cross-compiling, choose the first alternative on glibc systems.
4265         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4266
4267 2012-05-03  Bruno Haible  <bruno@clisp.org>
4268
4269         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4270         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4271         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4272
4273 2012-05-03  Bruno Haible  <bruno@clisp.org>
4274
4275         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4276         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4277
4278 2012-05-03  Bruno Haible  <bruno@clisp.org>
4279
4280         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4281         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4282         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4283         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4284         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4285         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4286         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4287         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4288         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4289         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4290         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4291         gl_cv_func_chown_ctime_works to "guessing yes".
4292         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4293         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4294         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4295         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4296         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4298         compiling to glibc systems, set gl_cv_func_open_directory_works to
4299         "guessing yes".
4300         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4301         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4302         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4303         "guessing yes".
4304         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4305         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4306         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4307         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4308         "guessing yes".
4309         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4310         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4311         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4312         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4313         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4314         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4315         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4316         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4317         "guessing yes".
4318         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4319         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4320         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4321         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4322         "guessing yes".
4323         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4324         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4325         "guessing yes".
4326         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4327         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4328         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4329         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4330         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4331         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4332         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4333         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4334         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4335         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4336         "guessing yes".
4337         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4338         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4339         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4340         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4341         "guessing yes".
4342         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4343         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4344         "guessing yes".
4345         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4346         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4347         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4348         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4349         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4350         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4351         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4352         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4353         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4354         "guessing yes".
4355         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4356         compiling to glibc systems, set gl_cv_func_mknod_works to
4357         "guessing yes".
4358         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4359         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4360         "guessing yes".
4361         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4362         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4363         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4364         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4365         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4366         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4367         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4368         compiling to glibc systems, set gl_cv_func_svid_putenv to
4369         "guessing yes".
4370         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4371         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4372         "guessing yes".
4373         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4374         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4375         "guessing yes".
4376         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4377         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4378         to "guessing yes".
4379         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4380         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4381         to "guessing yes".
4382         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4383         compiling to glibc systems, set gl_cv_func_rmdir_works to
4384         "guessing yes".
4385         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4386         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4387         gl_cv_func_unlink_parent_fails to "guessing yes".
4388         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4389         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4390         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4391         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4392         gl_cv_func_rename_dest_works to "guessing yes".
4393         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4394         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4396         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4397         "guessing yes".
4398         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4399         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4400         "guessing yes".
4401         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4402         compiling to glibc systems, set gl_cv_func_setenv_works to
4403         "guessing yes".
4404         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4405         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4406         "guessing yes".
4407         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4408         compiling to glibc systems, set gl_cv_func_sleep_works to
4409         "guessing yes".
4410         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4411         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4412         "guessing yes".
4413         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4414         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4415         "guessing yes".
4416         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4417         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4418         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4419         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4420         "guessing yes".
4421         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4422         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4423         "guessing yes".
4424         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4425         compiling to glibc systems, set gl_cv_func_usleep_works to
4426         "guessing yes".
4427         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4428         compiling to glibc systems, set gl_cv_func_futimesat_works to
4429         "guessing yes".
4430
4431 2012-05-03  Bruno Haible  <bruno@clisp.org>
4432
4433         Say "guessing yes" or "guessing no" when cross-compiling.
4434         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4435         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4436         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4437         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4438         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4439         am_cv_func_working_getline to "guessing yes" or "guessing no".
4440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4441         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4442         (gl_FUNC_MEMMEM): When cross-compiling, set
4443         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4445         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4447         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4448         "guessing no".
4449         (gl_FUNC_STRCASESTR): When cross-compiling, set
4450         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4451         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4452         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4453         (gl_FUNC_STRSTR): When cross-compiling, set
4454         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4455         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4456         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4457         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4458         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4459
4460 2012-05-01  Bruno Haible  <bruno@clisp.org>
4461
4462         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4463         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4464         * build-aux/reloc-ldflags: Likewise.
4465         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4466
4467 2012-05-01  Bruno Haible  <bruno@clisp.org>
4468
4469         gnulib-tool: Remove transitional code.
4470         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4471         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4472
4473 2012-05-01  Bruno Haible  <bruno@clisp.org>
4474
4475         getcwd: Fix misindentation.
4476         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4477
4478 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         exclude: process exclude and include directives in order
4481         This restores the pre-2009 behavior, and is part of a fix of a
4482         grep bug reported by Quentin Arce in
4483         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4484         * lib/exclude.c (struct exclude): Remove 'tail' member.
4485         (new_exclude_segment): Prepend the new segment instead of appending.
4486         Return void, since that's now more convenient.
4487         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4488         (file_name_matches): Renamed from excluded_file_name_p.
4489         (file_pattern_matches, file_name_matches):
4490         Return true if the pattern matches, not if it excludes.
4491         All callers changed.
4492         (excluded_file_name): Process the list in reverse order;
4493         since the list is now reversed this restores the pre-2009 behavior.
4494         (add_exclude): Adjust to new reversed-order list.  Use local var
4495         rather than macro, for clarity.
4496         * tests/test-exclude7.sh: Adjust to corrected behavior.
4497
4498         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4499         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4500         it's not possible here.  Handle the case of \ at end of pattern
4501         without dumping core.
4502         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4503
4504         _Noreturn: future-proof non-GNU and non-MSVC compilers
4505         * build-aux/snippet/_Noreturn.h (_Noreturn):
4506         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4507         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4508         C11 or later.  This is more likely to work with random future C
4509         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4510         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4511
4512         exclude: handle wildcards with FNM_EXTMATCH
4513         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4514         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4515         comment that "has wildcards" really means "has or may have
4516         wildcards".  Simplify by avoiding the need to call strcspn.
4517
4518 2012-04-29  Bruno Haible  <bruno@clisp.org>
4519
4520         gnulib-tool: Fix list of authors.
4521         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4522
4523 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4524
4525         bootstrap: support Automake-NG in $buildreq
4526         * bootstrap (check_versions): Handle automake and aclocal from
4527         Automake-NG specially.  They can be specified as respectively
4528         the "automake-ng" and "aclocal-ng" requirements.
4529
4530 2012-04-25  Eric Blake  <eblake@redhat.com>
4531
4532         bootstrap: only force latest Makefile.in.in for gettext module
4533         * build-aux/bootstrap (with_gettext): Only install latest
4534         Makefile.in.in for projects requesting bleeding edge gettext.
4535
4536 2012-04-22  Bruno Haible  <bruno@clisp.org>
4537
4538         doc: Mention reason for replacement on glibc/Linux systems.
4539         * doc/posix-functions/dprintf.texi: Mention the problem with special
4540         'long double' values.
4541         * doc/posix-functions/fprintf.texi: Likewise.
4542         * doc/posix-functions/printf.texi: Likewise.
4543         * doc/posix-functions/snprintf.texi: Likewise.
4544         * doc/posix-functions/sprintf.texi: Likewise.
4545         * doc/posix-functions/vdprintf.texi: Likewise.
4546         * doc/posix-functions/vfprintf.texi: Likewise.
4547         * doc/posix-functions/vprintf.texi: Likewise.
4548         * doc/posix-functions/vsnprintf.texi: Likewise.
4549         * doc/posix-functions/vsprintf.texi: Likewise.
4550         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4551         platforms with F_DUPFD_CLOEXEC problems.
4552         * doc/posix-functions/glob.texi: Mention which platforms are affected
4553         by the problem with symbolic links.
4554         * doc/posix-functions/linkat.texi: Mention the problem with
4555         AT_SYMLINK_FOLLOW on Linux.
4556
4557 2012-04-22  Bruno Haible  <bruno@clisp.org>
4558
4559         pwrite: Don't replace on all platforms.
4560         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4561
4562 2012-04-22  Bruno Haible  <bruno@clisp.org>
4563
4564         rint* tests: Avoid gcc warnings.
4565         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4566         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4567         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4568
4569 2012-04-21  Bruno Haible  <bruno@clisp.org>
4570
4571         users.txt: Update.
4572         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4573         switched from CVS to git, bzr, or svn.
4574
4575 2012-04-21  Bruno Haible  <bruno@clisp.org>
4576
4577         Large File Support for native Windows platforms.
4578
4579         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4580         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4581
4582         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4583         type.
4584         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4585         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4586         * doc/posix-headers/sys_types.texi: Mention the effect of the
4587         'largefile' module.
4588
4589         * lib/fcntl.in.h: Add comments about off_t.
4590         * modules/fcntl-h (Depends-on): Add sys_types.
4591
4592         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4593         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4594         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4595         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4596         * modules/unistd (Depends-on): Add sys_types.
4597         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4598
4599         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4600         instead of lseek.
4601         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4602         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4603         * modules/lseek (Depends-on): Add sys_types.
4604
4605         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4606         msvc-nothrow.h.
4607         (SetFileSize): New function.
4608         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4609         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4610         if Large File Support is requested.
4611         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4612         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4613
4614         * lib/stdio.in.h: Add comments about off_t.
4615         * modules/stdio (Depends-on): Add sys_types.
4616
4617         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4618         instead of ftello.
4619         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4620         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4621         (gl_PREREQ_FTELLO): New macro.
4622         * modules/ftello (Depends-on): Add sys_types.
4623         (configure.ac): Incoke gl_PREREQ_FTELLO.
4624
4625         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4626         instead of fseeko.
4627         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4628         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4629         (gl_PREREQ_FSEEKO): New macro.
4630         * modules/fseeko (Depends-on): Add sys_types.
4631         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4632
4633         * lib/sys_stat.in.h: Add comments about off_t.
4634         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4635         64-bit integer for st_size in 'struct stat'.
4636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4637         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4638         * modules/sys_stat (Depends-on): Add sys_types.
4639         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4640
4641         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4642         instead of stat or _stat.
4643
4644         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4645         'struct _stati64' instead of fstat and 'struct stat'.
4646         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4647         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4648
4649         Reported by Ray Satiro <raysatiro@yahoo.com>.
4650
4651 2012-04-19  Eric Blake  <eblake@redhat.com>
4652
4653         bootstrap: accommodate older libtool
4654         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4655         Reported by Daniel P. Berrange.
4656
4657 2012-04-19  Jim Meyering  <meyering@redhat.com>
4658
4659         announce-gen: avoid failure due to lack of Digest::SHA1
4660         Even with the preferred Digest::SHA available, this script
4661         would fail when the backup module, Digest::SHA1, was not installed.
4662         * build-aux/announce-gen: Quote the conditional use of "use".
4663         Reported by Reuben Thomas in:
4664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4665
4666         bootstrap: don't let a user's CDPATH setting affect this script
4667         When CDPATH is set, cd will sometimes generate output.
4668         When "cd" is run in a subshell whose output matters, that
4669         surprising-to-some output can cause malfunction.
4670         Unsetting CDPATH turns off this shell "feature."
4671         * build-aux/bootstrap (CDPATH): Unset.
4672         Reported by Reuben Thomas in:
4673         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4674         and inspired by his patch here:
4675         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4676
4677 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4678         and Jim Meyering  <meyering@redhat.com>
4679
4680         maint.mk: catch "see @xref{}" and similar
4681         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4682         prohibit "See also @xref{", "Also see @pxref{", and similar.
4683
4684 2012-04-16  Jim Meyering  <meyering@redhat.com>
4685
4686         bootstrap: really use gnulib's po/Makefile.in.in
4687         * build-aux/bootstrap: Correct the source file name in previous change.
4688         Reported by Akim Demaille.
4689
4690         configmake: correct minor inconsistency in Makefile rule
4691         * modules/configmake (Makefile.am): All other rules like this one
4692         run the final "mv -f ..." in the same backslash-continued command
4693         as the one that does everything else.  This one put the mv -f ...
4694         command on a separate, non-backslash-continued line.
4695         Make it like the others.
4696
4697         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4698         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4699         the one from gettext.  Reported by Akim Demaille.
4700
4701 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4702
4703         Fix recursion of install-* into po directories.
4704         Bison's install-pdf bug reported by Hans Aberg at
4705         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4706         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4707         (install-info, install-pdf, install-ps): New targets.
4708
4709 2012-04-16  Jim Meyering  <meyering@redhat.com>
4710
4711         maint: avoid spurious "make sc_maint" failure
4712         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4713         exempt all *.class file names, for lib/javaversion.class.
4714
4715 2012-04-15  Bruno Haible  <bruno@clisp.org>
4716
4717         lseek: Make configure test independent of environment.
4718         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4719         Windows, we know that lseek() on pipes is broken; skip the runtime
4720         test.
4721
4722 2012-04-14  Bruno Haible  <bruno@clisp.org>
4723
4724         stat: Bypass buggy override in mingw64.
4725         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4726         * lib/stat.c (stat) [mingw64]: Define to _stat.
4727         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4728
4729 2012-04-14  Bruno Haible  <bruno@clisp.org>
4730
4731         pathmax: Fix compilation error on MSVC 9.
4732         * modules/pathmax (Depends-on): Add unistd.
4733
4734 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4735
4736         README: document pointer comparison assumption
4737         * README (Portability guidelines): Document assumption about
4738         pointer comparisons, in response to a recent bug-gnulib comment by
4739         Jeffrey Kegler.
4740
4741 2012-04-12  Bruno Haible  <bruno@clisp.org>
4742
4743         Tests for module 'getrusage'.
4744         * modules/getrusage-tests: New file.
4745         * tests/test-getrusage.c: New file.
4746
4747         New module 'getrusage'.
4748         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4749         warn-on-use.h.
4750         (getrusage): New declaration.
4751         * lib/getrusage.c: New file.
4752         * m4/getrusage.m4: New file.
4753         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4754         is declared.
4755         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4756         HAVE_GETRUSAGE.
4757         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4758         snippet/c++defs, snippet/warn-on-use.
4759         (Makefile.am): Update generation of sys/resource.h. Substitute
4760         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4761         * modules/getrusage: New file.
4762         * doc/posix-functions/getrusage.texi: Mention the new module.
4763
4764 2012-04-12  Bruno Haible  <bruno@clisp.org>
4765
4766         Tests for module 'sys_resource'.
4767         * modules/sys_resource-tests: New file.
4768         * tests/test-sys_resource.c: New file.
4769
4770         New module 'sys_resource'.
4771         * lib/sys_resource.in.h: New file.
4772         * m4/sys_resource_h.m4: New file.
4773         * modules/sys_resource: New file.
4774         * doc/posix-headers/sys_resource.texi: Mention the new module.
4775
4776 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4777
4778         ioctl: Fix compilation error on mingw.
4779         * lib/ioctl.c: Include <windows.h>.
4780         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4781
4782 2012-04-04  Jim Meyering  <meyering@redhat.com>
4783
4784         regex: correct #pragma guard expression
4785         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4786         not 4.3.  Correct its cpp guard expression.
4787
4788 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4789
4790         regex: remove unnecessary type punning
4791         Problem reported by Vladimir Serbinenko in
4792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4793         * lib/regex.h (struct re_pattern_buffer): Change the type of
4794         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4795         Fix comment to match code.
4796         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4797         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4798         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4799         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4800         (set_regs):
4801         Omit no-longer-necessary casts.
4802
4803 2012-04-03  Bruno Haible  <bruno@clisp.org>
4804
4805         Tests for module 'ilogbl'.
4806         * modules/ilogbl-tests: New file.
4807         * tests/test-ilogbl.c: New file.
4808
4809         New module 'ilogbl'.
4810         * lib/math.in.h (ilogbl): New declaration.
4811         * lib/ilogbl.c: New file.
4812         * m4/ilogbl.m4: New file.
4813         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4815         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4816         Split sed invocation, to avoid the limit of 100 substitutions of
4817         HP-UX 'sed'.
4818         * modules/ilogbl: New file.
4819         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4820         * doc/posix-functions/ilogbl.texi: Mention the new module.
4821
4822 2012-04-03  Bruno Haible  <bruno@clisp.org>
4823
4824         Tests for module 'ilogbf'.
4825         * modules/ilogbf-tests: New file.
4826         * tests/test-ilogbf.c: New file.
4827
4828         New module 'ilogbf'.
4829         * lib/math.in.h (ilogbf): New declaration.
4830         * lib/ilogbf.c: New file.
4831         * m4/ilogbf.m4: New file.
4832         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4834         REPLACE_ILOGBF.
4835         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4836         REPLACE_ILOGBF.
4837         * modules/ilogbf: New file.
4838         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4839         * doc/posix-functions/ilogbf.texi: Mention the new module.
4840
4841 2012-04-03  Bruno Haible  <bruno@clisp.org>
4842
4843         Tests for module 'ilogb'.
4844         * modules/ilogb-tests: New file.
4845         * tests/test-ilogb.c: New file.
4846         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4847         tests/test-logb-ieee.h.
4848
4849         New module 'ilogb'.
4850         * lib/math.in.h (ilogb): New declaration.
4851         * lib/ilogb.c: New file.
4852         * m4/ilogb.m4: New file.
4853         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4855         REPLACE_ILOGB.
4856         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4857         REPLACE_ILOGB.
4858         * modules/ilogb: New file.
4859         * tests/test-math-c++.cc: Check the declaration of ilogb.
4860         * doc/posix-functions/ilogb.texi: Mention the new module.
4861
4862 2012-04-03  Bruno Haible  <bruno@clisp.org>
4863
4864         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4865         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4866         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4867         (main): Check their values.
4868         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4869         problem.
4870
4871 2012-04-03  Bruno Haible  <bruno@clisp.org>
4872
4873         Tests for module 'logbl-ieee'.
4874         * modules/logbl-ieee-tests: New file.
4875         * tests/test-logbl-ieee.c: New file.
4876
4877         New module 'logbl-ieee'.
4878         * modules/logbl-ieee: New file.
4879
4880         Tests for module 'logb-ieee'.
4881         * modules/logb-ieee-tests: New file.
4882         * tests/test-logb-ieee.c: New file.
4883
4884         New module 'logb-ieee'.
4885         * modules/logb-ieee: New file.
4886
4887         Tests for module 'logbf-ieee'.
4888         * modules/logbf-ieee-tests: New file.
4889         * tests/test-logbf-ieee.c: New file.
4890         * tests/test-logb-ieee.h: New file.
4891
4892         New module 'logbf-ieee'.
4893         * modules/logbf-ieee: New file.
4894
4895 2012-04-03  Bruno Haible  <bruno@clisp.org>
4896
4897         Tests for module 'logbl'.
4898         * modules/logbl-tests: New file.
4899         * tests/test-logbl.c: New file.
4900
4901         New module 'logbl'.
4902         * lib/math.in.h (logbl): New declaration.
4903         * lib/logbl.c: New file.
4904         * m4/logbl.m4: New file.
4905         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4907         REPLACE_LOGBL.
4908         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4909         REPLACE_LOGBL.
4910         * modules/logbl: New file.
4911         * tests/test-math-c++.cc: Check the declaration of logbl.
4912         * doc/posix-functions/logbl.texi: Mention the new module.
4913
4914 2012-04-02  Bruno Haible  <bruno@clisp.org>
4915
4916         Tests for module 'logbf'.
4917         * modules/logbf-tests: New file.
4918         * tests/test-logbf.c: New file.
4919
4920         New module 'logbf'.
4921         * lib/math.in.h (logbf): New declaration.
4922         * lib/logbf.c: New file.
4923         * m4/logbf.m4: New file.
4924         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4926         REPLACE_LOGBF.
4927         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4928         REPLACE_LOGBF.
4929         * modules/logbf: New file.
4930         * tests/test-math-c++.cc: Check the declaration of logbf.
4931         * doc/posix-functions/logbf.texi: Mention the new module.
4932
4933 2012-04-02  Bruno Haible  <bruno@clisp.org>
4934
4935         logb tests: More tests.
4936         * tests/test-logb.h: New file, based on tests/test-logb.c and
4937         tests/test-frexp.h.
4938         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4939         (main): Just invoke test_function.
4940         * modules/logb-tests (Files): Add tests/test-logb.h,
4941         tests/minus-zero.h, tests/randomd.c.
4942         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4943
4944         logb: Provide replacement and workarounds.
4945         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4946         is 1.
4947         * lib/logb.c: New file.
4948         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4949         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4951         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4952         * modules/logb (Files): Add lib/logb.c.
4953         (Depends-on): Add isfinite, frexp, isnand.
4954         (configure.ac): Compile the replacement code logb.c if needed.
4955         * tests/test-math-c++.cc: Check the declaration of logb.
4956         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4957         with subnormal numbers.
4958
4959 2012-04-02  Bruno Haible  <bruno@clisp.org>
4960
4961         log10* tests: Speed up.
4962         * tests/test-log10.h (test_function): Reduce amount of random numbers
4963         to test.
4964
4965 2012-04-01  Bruno Haible  <bruno@clisp.org>
4966
4967         logf-ieee: Fix test whether logf works.
4968         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4969
4970 2012-04-01  Bruno Haible  <bruno@clisp.org>
4971
4972         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4973         * lib/log10l.c: Include <float.h>
4974         (log10l): On IRIX, normalize the +Infinity value.
4975         * modules/log10l (Depends-on): Add 'float'.
4976         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4977         +Infinity.
4978
4979         log10f-ieee: Work around test failure on NetBSD 5.1.
4980         * m4/log10f-ieee.m4: New file.
4981         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4982         test whether log10f works with a negative argument. Replace it if not.
4983         * lib/log10f.c (log10f): For negative arguments, return NaN.
4984         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4985         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4986         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4987
4988         log10f-ieee: Work around test failure on Solaris 9.
4989         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4990         (configure.ac): Require gl_FUNC_LOG10F.
4991
4992         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4993         * m4/log10-ieee.m4: New file.
4994         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4995         whether log10 works with a negative argument. Replace it if not.
4996         * lib/log10.c (log10): For negative arguments, return NaN.
4997         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4998         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4999         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5000
5001         Tests for module 'log10l-ieee'.
5002         * modules/log10l-ieee-tests: New file.
5003         * tests/test-log10l-ieee.c: New file.
5004
5005         New module 'log10l-ieee'.
5006         * modules/log10l-ieee: New file.
5007
5008         Tests for module 'log10-ieee'.
5009         * modules/log10-ieee-tests: New file.
5010         * tests/test-log10-ieee.c: New file.
5011
5012         New module 'log10-ieee'.
5013         * modules/log10-ieee: New file.
5014
5015         Tests for module 'log10f-ieee'.
5016         * modules/log10f-ieee-tests: New file.
5017         * tests/test-log10f-ieee.c: New file.
5018         * tests/test-log10-ieee.h: New file.
5019
5020         New module 'log10f-ieee'.
5021         * modules/log10f-ieee: New file.
5022
5023 2012-04-01  Bruno Haible  <bruno@clisp.org>
5024
5025         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5026         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5027         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5028         workaround.
5029         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5030         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5032         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5033         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5034         (Depends-on): Update conditions.
5035         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5036         IRIX 6.5, OSF/1 5.1 problems.
5037
5038 2012-04-01  Bruno Haible  <bruno@clisp.org>
5039
5040         log10f: Work around OSF/1 5.1 bug.
5041         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5042         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5043         workaround.
5044         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5045         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5047         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5048         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5049         (Depends-on): Update conditions.
5050         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5051
5052 2012-04-01  Bruno Haible  <bruno@clisp.org>
5053
5054         log10: Work around OSF/1 5.1 bug.
5055         * lib/math.in.h (log10): New declaration.
5056         * lib/log10.c: New file.
5057         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5058         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5059         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5061         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5062         * modules/log10 (Files): Add lib/log10.c.
5063         (Depends-on): Add math.
5064         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5065         * tests/test-math-c++.cc: Check the declaration of log10.
5066         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5067
5068 2012-03-31  Bruno Haible  <bruno@clisp.org>
5069
5070         log10l tests: More tests.
5071         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5072         tests/minus-zero.h, tests/randoml.c.
5073         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5074         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5075         (main): Invoke test_function.
5076
5077         log10f tests: More tests.
5078         * modules/log10f-tests (Files): Add tests/test-log10.h,
5079         tests/minus-zero.h, tests/randomf.c.
5080         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5081         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5082         (main): Invoke test_function.
5083
5084         log10 tests: More tests.
5085         * tests/test-log10.h: New file.
5086         * modules/log10-tests (Files): Add tests/test-log10.h,
5087         tests/minus-zero.h, tests/randomd.c.
5088         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5089         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5090         (main): Invoke test_function.
5091
5092 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5093
5094         fflush: Fix syntax error.
5095         * lib/fflush.c: Include unused-parameter.h, needed for
5096         _GL_UNUSED_PARAMETER.
5097         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5098
5099 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5100
5101         regex: pacify GCC when compiling GRUB
5102         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5103         a diagnostic.  Reported by Vladimir Serbinenko in
5104         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5105
5106 2012-03-29  Eric Blake  <eblake@redhat.com>
5107
5108         stdio: don't assume gets any more
5109         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5110         support.
5111         * modules/stdio (Makefile.am): Likewise.
5112         * lib/stdio-read.c (gets): Likewise.
5113         * tests/test-stdio-c++.cc: Likewise.
5114         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5115         * lib/stdio.in.h (gets): Make warning occur in more places.
5116         * doc/posix-functions/gets.texi (gets): Update documentation.
5117         Reported by Christer Solskogen.
5118
5119         maint.mk: fix syntax checks without exclusions
5120         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5121         Reported by Daniel P. Berrange.
5122
5123         strerror_r: avoid compiler warning
5124         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5125         level.
5126
5127         fflush: avoid compiler warning
5128         * lib/fflush.c (update_fpos_cache): Mark variables that are
5129         potentially unused.
5130
5131 2012-03-25  Bruno Haible  <bruno@clisp.org>
5132
5133         Tests for module 'localeconv'.
5134         * modules/localeconv-tests: New file.
5135         * tests/test-localeconv.c: New file.
5136
5137         New module 'localeconv'.
5138         * lib/locale.in.h (localeconv): New declaration.
5139         * lib/localeconv.c: New file.
5140         * m4/localeconv.m4: New file.
5141         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5142         REPLACE_LOCALECONV.
5143         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5144         REPLACE_LOCALECONV.
5145         * modules/localeconv: New file.
5146         * modules/nl_langinfo (Depends-on): Add localeconv.
5147         * modules/human (Depends-on): Likewise.
5148         * doc/posix-functions/localeconv.texi: Mention the new module.
5149
5150 2012-03-25  Bruno Haible  <bruno@clisp.org>
5151
5152         locale: Provide a complete 'struct lconv'.
5153         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5154         'struct lconv' does not contain int_p_cs_precedes.
5155         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5156         * doc/posix-headers/locale.texi: Update.
5157
5158         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5159         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5160         * doc/posix-headers/locale.texi: Update.
5161
5162         locale: Provide a working 'struct lconv'.
5163         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5164         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5165         'struct lconv' does not even contain decimal_point.
5166         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5167         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5168         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5169         * doc/posix-headers/locale.texi: Mention the problems with
5170         'struct lconv'.
5171         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5172
5173 2012-03-24  Bruno Haible  <bruno@clisp.org>
5174
5175         Enable common subexpression optimization in GCC.
5176         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5177         macros.
5178         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5179         GCC attribute 'const'.
5180         (uc_locale_language): Declare with GCC attribute 'pure'.
5181         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5182         with GCC attribute 'const'.
5183         * lib/unictype.in.h (uc_is_general_category_withtable,
5184         uc_combining_class, uc_combining_class_name,
5185         uc_combining_class_long_name, uc_bidi_class_name,
5186         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5187         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5188         uc_decimal_value, uc_digit_value, uc_numeric_value,
5189         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5190         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5191         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5192         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5193         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5194         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5195         Declare with GCC attribute 'const'.
5196         (uc_general_category_name, uc_general_category_long_name,
5197         uc_general_category_byname, uc_general_category,
5198         uc_is_general_category, uc_combining_class_byname,
5199         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5200         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5201         Declare with GCC attribute 'pure'.
5202         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5203         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5204         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5205         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5206         with GCC attribute 'pure'.
5207         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5208         'const'.
5209         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5210         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5211         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5212         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5213         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5214         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5215         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5216         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5217         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5218         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5219         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5220         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5221         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5222         GCC attribute 'pure'.
5223         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5224         'const'.
5225         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5226         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5227         u32_strwidth): Declare with GCC attribute 'pure'.
5228
5229         Enable common subexpression optimization in GCC.
5230         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5231         (alphasort): Declare with GCC attribute 'pure'.
5232         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5233         (atoll): Declare with GCC attribute 'pure'.
5234         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5235         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5236         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5237         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5238         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5239         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5240         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5241
5242 2012-03-24  Bruno Haible  <bruno@clisp.org>
5243
5244         gnulib-tool: Avoid unintended error output from 'cmp'.
5245         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5246         "cmp -s", not "cmp > /dev/null".
5247
5248 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5249
5250         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5251
5252         It's not just Automake versions < 1.9b that creates an empty
5253         pkgdatadir at installation time if pkgdata_DATA is specified
5254         to empty; modern automake versions do this as well, at least
5255         until automake 1.11.4 (not yet released at the moment of writing,
5256         but soon to appear).  That behaviour was generally considered a
5257         feature rather than a bug, at least until this discussion:
5258         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5259
5260         See also automake bugs #10997 and #11030.
5261
5262         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5263         reference to relevant automake bug numbers.
5264         (func_emit_tests_Makefile_am): Likewise.
5265
5266 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5267
5268         announce-gen: use Digest::SHA when possible
5269         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5270         back to Digest::SHA1 if necessary.
5271
5272 2012-03-20  Jim Meyering  <meyering@redhat.com>
5273
5274         tests: avoid gcc warnings about argv vs. const initializers
5275         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5276         warnings about discarding 'const' qualifier from pointer target type.
5277         * tests/test-posix_spawn2.c (main): Likewise.
5278
5279 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5280
5281         README-release: simplify slightly
5282         * top/README-release: Run "git checkout master" only once.
5283
5284 2012-03-15  Mark Wielaard  <mark@klomp.org>
5285
5286         git-merge-changelog: add specific example on how to use with hg.
5287         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5288
5289 2012-03-18  Mark Wielaard  <mark@klomp.org>
5290
5291         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5292
5293 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5294
5295         git-version-gen: don't let "prefix" envvar cause trouble
5296         * build-aux/git-version-gen (prefix): Initialize properly,
5297         so as not to use a value specified via the environment.
5298         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5299
5300 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5301
5302         regex: diagnose too-large repeat counts in EREs
5303         Previously, the code did not diagnose the too-large repeat count
5304         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5305         as if it were 'b\{1000000000}', which is unexpected.
5306         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5307         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5308         is a reasonable one for this problem.  Another option would be to
5309         create a new REG_OVERFLOW error for repeat counts that are too large.
5310         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5311         count is too large, so that the caller can distinguish the two cases.
5312         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5313         "Too large" return code, and that repeat counts are one example of this.
5314
5315 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5316
5317         doc: some glibc x32 integer width issues
5318         * doc/posix-headers/sys_types.texi (sys/types.h):
5319         * doc/posix-headers/time.texi (time.h):
5320         Mention that glibc x32 does not conform to POSIX in a couple of
5321         areas related to integer widths.
5322
5323 2012-03-15  Bruno Haible  <bruno@clisp.org>
5324
5325         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5326         * lib/fma.c (VOLATILE): New macro.
5327         (FUNC): Use it to work around a GCC compiler bug.
5328
5329 2012-03-13  Bruno Haible  <bruno@clisp.org>
5330
5331         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5332         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5333         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5334         REPLACE_HYPOTL to 1.
5335         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5336
5337 2012-03-13  Bruno Haible  <bruno@clisp.org>
5338
5339         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5340         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5341         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5342         REPLACE_REMAINDERL to 1.
5343         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5344         bug.
5345
5346 2012-03-13  Bruno Haible  <bruno@clisp.org>
5347
5348         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5349         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5350         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5351         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5352         too big rounding errors.
5353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5354         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5355         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5356         (Depends-on): Update conditions.
5357         * tests/test-sqrtl.c (my_ldexpl): New function.
5358         (main): Add test of a particular value.
5359         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5360
5361 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5362
5363         doc: Update timer_* platform portability notes.
5364         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5365         that always return ENOSYS.
5366         * doc/posix-functions/timer_delete.texi: Likewise.
5367         * doc/posix-functions/timer_gettime.texi: Likewise.
5368         * doc/posix-functions/timer_settime.texi: Likewise.
5369
5370 2012-03-13  Bruno Haible  <bruno@clisp.org>
5371
5372         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5373         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5374         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5375         REPLACE_CBRTL to 1.
5376         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5377
5378 2012-03-13  Bruno Haible  <bruno@clisp.org>
5379
5380         remainderl: Avoid compilation error on AIX >= 5.2.
5381         * lib/math.in.h (remainderl): Undefine macro from the system header.
5382
5383 2012-03-13  Bruno Haible  <bruno@clisp.org>
5384
5385         Avoid compilation errors with MSVC option -fp:strict.
5386         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5387         * lib/cbrtf.c: Likewise.
5388         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5389
5390 2012-03-12  Bruno Haible  <bruno@clisp.org>
5391
5392         uninorm: Don't crash in out-of-memory conditions.
5393         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5394         gracefully.
5395         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5396         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5397
5398 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5399
5400         quote: fix syntax-check
5401         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5402         also exports quote_quoting_options.
5403
5404 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5405
5406         Collapse list of copyright years to ranges.  See
5407         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5408         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5409         build-aux/csharpexec.sh.in, build-aux/gnupload,
5410         build-aux/install-reloc, build-aux/javacomp.sh.in,
5411         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5412         build-aux/move-if-change, build-aux/reloc-ldflags,
5413         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5414
5415 2012-03-11  Bruno Haible  <bruno@clisp.org>
5416
5417         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5418         * m4/log2f-ieee.m4: New file.
5419         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5420         whether log2f works with a minus zero argument. Replace it if not.
5421         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5422         (Depends-on): Add log2-ieee.
5423         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5424         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5425
5426         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5427         * m4/log2-ieee.m4: New file.
5428         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5429         whether log2 works with a minus zero argument. Replace it if not.
5430         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5431         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5432         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5433
5434         Tests for module 'log2l-ieee'.
5435         * modules/log2l-ieee-tests: New file.
5436         * tests/test-log2l-ieee.c: New file.
5437
5438         New module 'log2l-ieee'.
5439         * modules/log2l-ieee: New file.
5440
5441         Tests for module 'log2-ieee'.
5442         * modules/log2-ieee-tests: New file.
5443         * tests/test-log2-ieee.c: New file.
5444
5445         New module 'log2-ieee'.
5446         * modules/log2-ieee: New file.
5447
5448         Tests for module 'log2f-ieee'.
5449         * modules/log2f-ieee-tests: New file.
5450         * tests/test-log2f-ieee.c: New file.
5451         * tests/test-log2-ieee.h: New file.
5452
5453         New module 'log2f-ieee'.
5454         * modules/log2f-ieee: New file.
5455
5456 2012-03-11  Bruno Haible  <bruno@clisp.org>
5457
5458         Tests for module 'log2l'.
5459         * modules/log2l-tests: New file.
5460         * tests/test-log2l.c: New file.
5461
5462         New module 'log2l'.
5463         * lib/math.in.h (log2l): New declaration.
5464         * lib/log2l.c: New file.
5465         * m4/log2l.m4: New file.
5466         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5468         REPLACE_LOG2L.
5469         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5470         REPLACE_LOG2L.
5471         * modules/log2l: New file.
5472         * tests/test-math-c++.cc: Check the declaration of log2l.
5473         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5474         and OSF/1 problems.
5475
5476 2012-03-11  Bruno Haible  <bruno@clisp.org>
5477
5478         Tests for module 'log2f'.
5479         * modules/log2f-tests: New file.
5480         * tests/test-log2f.c: New file.
5481
5482         New module 'log2f'.
5483         * lib/math.in.h (log2f): New declaration.
5484         * lib/log2f.c: New file.
5485         * m4/log2f.m4: New file.
5486         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5488         REPLACE_LOG2F.
5489         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5490         REPLACE_LOG2F.
5491         * modules/log2f: New file.
5492         * tests/test-math-c++.cc: Check the declaration of log2f.
5493         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5494         and OSF/1 and Cygwin problems.
5495
5496 2012-03-11  Bruno Haible  <bruno@clisp.org>
5497
5498         Tests for module 'log2'.
5499         * modules/log2-tests: New file.
5500         * tests/test-log2.c: New file.
5501         * tests/test-log2.h: New file.
5502
5503         New module 'log2'.
5504         * lib/math.in.h (log2): New declaration.
5505         * lib/log2.c: New file.
5506         * m4/log2.m4: New file.
5507         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5509         REPLACE_LOG2.
5510         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5511         REPLACE_LOG2.
5512         * modules/log2: New file.
5513         * tests/test-math-c++.cc: Check the declaration of log2.
5514         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5515         and OSF/1 and Cygwin problems.
5516
5517 2012-03-11  Bruno Haible  <bruno@clisp.org>
5518
5519         exp2* tests: More tests.
5520         * tests/test-exp2.h (test_function): Test all integral arguments that
5521         don't need to overflow or denormalized numbers.
5522         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5523         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5524         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5525
5526 2012-03-10  Bruno Haible  <bruno@clisp.org>
5527
5528         log1pl-ieee: Work around test failure on AIX 7.1.
5529         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5530
5531         log1pl-ieee: Work around test failure on IRIX 6.5.
5532         * m4/log1pl-ieee.m4: New file.
5533         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5534         test whether log1pl works with a minus zero argument. Replace it if
5535         not.
5536         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5538         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5539         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5540         (Depends-on): Update conditions.
5541         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5542         m4/signbit.m4.
5543         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5544         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5545
5546         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5547         * m4/log1pf-ieee.m4: New file.
5548         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5549         test whether log1pf works with a minus zero argument. Replace it if
5550         not.
5551         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5552         m4/signbit.m4.
5553         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5554         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5555
5556         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5557         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5558         (configure.ac): Require gl_FUNC_LOG1PF.
5559
5560         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5561         * m4/log1p-ieee.m4: New file.
5562         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5563         whether log1p works with a minus zero argument. Replace it if not.
5564         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5566         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5567         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5568         (Depends-on): Update conditions.
5569         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5570         m4/signbit.m4.
5571         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5572         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5573
5574         Tests for module 'log1pl-ieee'.
5575         * modules/log1pl-ieee-tests: New file.
5576         * tests/test-log1pl-ieee.c: New file.
5577
5578         New module 'log1pl-ieee'.
5579         * modules/log1pl-ieee: New file.
5580
5581         Tests for module 'log1p-ieee'.
5582         * modules/log1p-ieee-tests: New file.
5583         * tests/test-log1p-ieee.c: New file.
5584
5585         New module 'log1p-ieee'.
5586         * modules/log1p-ieee: New file.
5587
5588         Tests for module 'log1pf-ieee'.
5589         * modules/log1pf-ieee-tests: New file.
5590         * tests/test-log1pf-ieee.c: New file.
5591         * tests/test-log1p-ieee.h: New file.
5592
5593         New module 'log1pf-ieee'.
5594         * modules/log1pf-ieee: New file.
5595
5596 2012-03-10  Bruno Haible  <bruno@clisp.org>
5597
5598         Tests for module 'log1pl'.
5599         * modules/log1pl-tests: New file.
5600         * tests/test-log1pl.c: New file.
5601
5602         New module 'log1pl'.
5603         * lib/math.in.h (log1pl): New declaration.
5604         * lib/log1pl.c: New file.
5605         * m4/log1pl.m4: New file.
5606         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5608         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5609         * modules/log1pl: New file.
5610         * tests/test-math-c++.cc: Check the declaration of log1pl.
5611         * doc/posix-functions/log1pl.texi: Mention the new module.
5612
5613 2012-03-10  Bruno Haible  <bruno@clisp.org>
5614
5615         Tests for module 'log1pf'.
5616         * modules/log1pf-tests: New file.
5617         * tests/test-log1pf.c: New file.
5618
5619         New module 'log1pf'.
5620         * lib/math.in.h (log1pf): New declaration.
5621         * lib/log1pf.c: New file.
5622         * m4/log1pf.m4: New file.
5623         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5625         REPLACE_LOG1PF.
5626         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5627         REPLACE_LOG1PF.
5628         * modules/log1pf: New file.
5629         * tests/test-math-c++.cc: Check the declaration of log1pf.
5630         * doc/posix-functions/log1pf.texi: Mention the new module.
5631
5632 2012-03-10  Bruno Haible  <bruno@clisp.org>
5633
5634         log1p tests: More tests.
5635         * tests/test-log1p.h: New file.
5636         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5637         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5638         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5639         (main): Invoke test_function.
5640
5641         log1p: Provide replacement for Minix and MSVC.
5642         * lib/math.in.h (log1p): New declaration.
5643         * lib/log1p.c: New file.
5644         * m4/log1p.m4: New file.
5645         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5647         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5648         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5649         (Depends-on): Add math, isnand, log, round.
5650         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5651         HAVE_LOG1P is 0.
5652         * tests/test-math-c++.cc: Check the declaration of log1p.
5653         * doc/posix-functions/log1p.texi: Mention the replacement.
5654
5655 2012-03-10  Bruno Haible  <bruno@clisp.org>
5656
5657         math tests: Small simplification.
5658         * tests/test-exp.h (test_function): Use the same err_bound for
5659         'double' on platforms with sizeof (long double) == sizeof (double)
5660         than on platforms with sizeof (long double) > sizeof (double).
5661         * tests/test-exp2.h (test_function): Likewise.
5662         * tests/test-expm1.h (test_function): Likewise.
5663         * tests/test-log.h (test_function): Likewise.
5664
5665 2012-03-10  Bruno Haible  <bruno@clisp.org>
5666
5667         Fix some comments.
5668         * lib/expl.c: Fix an ambiguous comment.
5669         * lib/expm1.c: Likewise.
5670         * lib/expm1l.c: Likewise.
5671         * lib/exp2.c: Likewise.
5672         * lib/exp2l.c: Likewise.
5673
5674 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5675
5676         regex: allow inclusion of <regex.h> before <limits.h>
5677         Without this patch, portable programs had to include <limits.h> before
5678         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5679         I ran into this problem with a test version of GNU grep on Solaris 8.
5680         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5681         This is done conditionally so that this change can be merged
5682         back to glibc.
5683         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5684         using the included regex.
5685
5686         fts: depend on fdopendir
5687         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5688         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5689         problem was introduced when fdopendir was split out.
5690
5691 2012-03-10  Bruno Haible  <bruno@clisp.org>
5692
5693         Remove unused variables.
5694         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5695         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5696
5697 2012-03-10  Bruno Haible  <bruno@clisp.org>
5698
5699         isnanf-nolibm: Fix last commit.
5700         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5701
5702         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5703         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5704
5705 2012-03-10  Bruno Haible  <bruno@clisp.org>
5706
5707         logf-ieee: Work around test failure on NetBSD 5.1.
5708         * m4/logf-ieee.m4: New file.
5709         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5710         whether logf works with a negative argument. Replace it if not.
5711         * lib/logf.c (logf): For negative arguments, return NaN.
5712         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5713         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5714         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5715
5716         logf-ieee: Work around test failure on Solaris 9.
5717         * modules/logf-ieee (Depends-on): Add log-ieee.
5718         (configure.ac): Require gl_FUNC_LOGF.
5719
5720         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5721         * m4/log-ieee.m4: New file.
5722         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5723         log works with a negative argument. Replace it if not.
5724         * lib/log.c (log): For negative arguments, return NaN.
5725         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5726         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5727         * doc/posix-functions/log.texi: Mention the log-ieee module.
5728
5729         Tests for module 'logl-ieee'.
5730         * modules/logl-ieee-tests: New file.
5731         * tests/test-logl-ieee.c: New file.
5732
5733         New module 'logl-ieee'.
5734         * modules/logl-ieee: New file.
5735
5736         Tests for module 'log-ieee'.
5737         * modules/log-ieee-tests: New file.
5738         * tests/test-log-ieee.c: New file.
5739
5740         New module 'log-ieee'.
5741         * modules/log-ieee: New file.
5742
5743         Tests for module 'logf-ieee'.
5744         * modules/logf-ieee-tests: New file.
5745         * tests/test-logf-ieee.c: New file.
5746         * tests/test-log-ieee.h: New file.
5747
5748         New module 'logf-ieee'.
5749         * modules/logf-ieee: New file.
5750
5751 2012-03-10  Bruno Haible  <bruno@clisp.org>
5752
5753         log: Fix bug introduced on 2012-03-09.
5754         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5755
5756 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5757
5758         timer-time: link explicitly with pthreads on glibc
5759         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5760         to support static linking, when newer glibc is
5761         detected, as that contains pthread emulation of
5762         POSIX timer functions where required.
5763         * modules/timer-time: Depend on threadlib to
5764         pull in the appropriate library to link.
5765
5766 2012-03-10  Bruno Haible  <bruno@clisp.org>
5767
5768         log* tests: More tests.
5769         * tests/test-log.h: New file.
5770         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5771         (main): Invoke test_function.
5772         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5773         (main): Invoke test_function.
5774         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5775         (main): Invoke test_function.
5776         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5777         tests/randomd.c.
5778         (Makefile.am): Add randomd.c to test_log_SOURCES.
5779         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5780         tests/randomf.c.
5781         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5782         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5783         tests/randoml.c.
5784         (Depends-on): Add 'float'.
5785         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5786
5787 2012-03-09  Bruno Haible  <bruno@clisp.org>
5788
5789         logl: Work around OSF/1 5.1 bug.
5790         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5791         * lib/logl.c (logl): If logl exists, use it and provide just the
5792         workaround.
5793         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5794         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5796         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5797         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5798         (Depends-on): Update conditions.
5799         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5800
5801 2012-03-09  Bruno Haible  <bruno@clisp.org>
5802
5803         logf: Work around OSF/1 5.1 bug.
5804         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5805         * lib/logf.c (logf): If logf exists, use it and provide just the
5806         workaround.
5807         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5808         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5810         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5811         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5812         (Depends-on): Update conditions.
5813         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5814
5815 2012-03-09  Bruno Haible  <bruno@clisp.org>
5816
5817         log: Work around OSF/1 5.1 bug.
5818         * lib/math.in.h (log): New declaration.
5819         * lib/log.c: New file.
5820         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5821         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5822         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5824         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5825         * modules/log (Files): Add lib/log.c.
5826         (Depends-on): Add math.
5827         (configure.ac): If REPLACE_LOG is 1, compile an override.
5828         * tests/test-math-c++.cc: Check the declaration of log.
5829         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5830
5831 2012-03-09  Jim Meyering  <meyering@redhat.com>
5832
5833         readtokens.c: adjust wording in a comment
5834         * lib/readtokens.c: Insert omitted "that" in a comment.
5835
5836 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         modechange: add notations +40, 00440, etc.
5839         * lib/modechange.c (mode_compile): Support new notations
5840         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5841
5842 2012-03-08  Bruno Haible  <bruno@clisp.org>
5843
5844         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5845         * m4/exp2l-ieee.m4: New file.
5846         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5847         test whether exp2l works with a NaN argument and with a negative
5848         infinity argument. Replace it if not.
5849         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5851         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5852         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5853         (Depends-on): Update conditions.
5854         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5855         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5856         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5857
5858         Tests for module 'exp2l-ieee'.
5859         * modules/exp2l-ieee-tests: New file.
5860         * tests/test-exp2l-ieee.c: New file.
5861
5862         New module 'exp2l-ieee'.
5863         * modules/exp2l-ieee: New file.
5864
5865         Tests for module 'exp2-ieee'.
5866         * modules/exp2-ieee-tests: New file.
5867         * tests/test-exp2-ieee.c: New file.
5868
5869         New module 'exp2-ieee'.
5870         * modules/exp2-ieee: New file.
5871
5872         Tests for module 'exp2f-ieee'.
5873         * modules/exp2f-ieee-tests: New file.
5874         * tests/test-exp2f-ieee.c: New file.
5875         * tests/test-exp2-ieee.h: New file.
5876
5877         New module 'exp2f-ieee'.
5878         * modules/exp2f-ieee: New file.
5879
5880 2012-03-08  Bruno Haible  <bruno@clisp.org>
5881
5882         Tests for module 'exp2l'.
5883         * modules/exp2l-tests: New file.
5884         * tests/test-exp2l.c: New file.
5885
5886         New module 'exp2l'.
5887         * lib/math.in.h (exp2l): New declaration.
5888         * lib/exp2l.c: New file.
5889         * lib/expl-table.c: New file, extracted from lib/expl.c.
5890         * lib/expl.c (gl_expl_table): New declaration.
5891         (expl): Remove expl_table. Update reference.
5892         * m4/exp2l.m4: New file.
5893         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5895         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5896         * modules/exp2l: New file.
5897         * modules/expl (Files): Add lib/expl-table.c.
5898         (configure.ac): Compile also expl-table.c.
5899         * tests/test-math-c++.cc: Check the declaration of exp2l.
5900         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5901         problem.
5902
5903 2012-03-08  Bruno Haible  <bruno@clisp.org>
5904
5905         Tests for module 'exp2f'.
5906         * modules/exp2f-tests: New file.
5907         * tests/test-exp2f.c: New file.
5908
5909         New module 'exp2f'.
5910         * lib/math.in.h (exp2f): New declaration.
5911         * lib/exp2f.c: New file.
5912         * m4/exp2f.m4: New file.
5913         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5915         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5916         * modules/exp2f: New file.
5917         * tests/test-math-c++.cc: Check the declaration of exp2f.
5918         * doc/posix-functions/exp2f.texi: Mention the new module and the
5919         IRIX problem.
5920
5921 2012-03-08  Bruno Haible  <bruno@clisp.org>
5922
5923         Tests for module 'exp2'.
5924         * modules/exp2-tests: New file.
5925         * tests/test-exp2.c: New file.
5926         * tests/test-exp2.h: New file.
5927
5928         New module 'exp2'.
5929         * lib/math.in.h (exp2): New declaration.
5930         * lib/exp2.c: New file.
5931         * m4/exp2.m4: New file.
5932         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5934         REPLACE_EXP2.
5935         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5936         REPLACE_EXP2.
5937         * modules/exp2: New file.
5938         * tests/test-math-c++.cc: Check the declaration of exp2.
5939         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5940         and OpenBSD problems.
5941
5942 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5943
5944         savedir: fix comment typo
5945         * lib/savedir.c (savedirstream): Fix typo in comment.
5946
5947 2012-03-08  Bruno Haible  <bruno@clisp.org>
5948
5949         test-readtokens.c: use const; remove unwarranted cast
5950         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5951
5952 2012-03-08  Bruno Haible  <bruno@clisp.org>
5953
5954         fmal: Avoid compilation error on AIX.
5955         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5956         AIX 5.2..7.1.
5957
5958 2012-03-08  Bruno Haible  <bruno@clisp.org>
5959
5960         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5961         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5962         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5963         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5964         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5965         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5966         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5967
5968 2012-03-08  Bruno Haible  <bruno@clisp.org>
5969
5970         remainderf: Override buggy system function on IRIX 6.5.
5971         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5972         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5973         when it exists.
5974         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5975
5976 2012-03-08  Jim Meyering  <meyering@redhat.com>
5977
5978         test-readtokens.c: avoid const-related compilation warnings
5979         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5980
5981 2012-03-07  Jim Meyering  <meyering@redhat.com>
5982             Bruno Haible  <bruno@clisp.org>
5983
5984         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5985         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5986         tests/randomd.c.
5987         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5988         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5989         tests/randoml.c.
5990         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5991
5992 2012-03-07  Bruno Haible  <bruno@clisp.org>
5993
5994         expm1l: Avoid compilation error on AIX.
5995         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5996         AIX 5.2..7.1.
5997
5998 2012-03-07  Bruno Haible  <bruno@clisp.org>
5999
6000         expm1l: Don't override undeclared system function on IRIX 6.5.
6001         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6002         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6003         it exists. Set HAVE_DECL_EXPM1L.
6004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6005         HAVE_EXPM1L.
6006         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6007         HAVE_EXPM1L.
6008         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6009
6010 2012-03-07  Bruno Haible  <bruno@clisp.org>
6011
6012         remainderl: Don't override undeclared system function on IRIX 6.5.
6013         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6014         HAVE_REMAINDERL.
6015         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6016         declared when it exists. Set HAVE_DECL_REMAINDERL.
6017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6018         not HAVE_REMAINDERL.
6019         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6020         HAVE_REMAINDERL.
6021         * doc/posix-functions/remainderl.texi: Mention missing declaration
6022         problem.
6023
6024 2012-03-07  Bruno Haible  <bruno@clisp.org>
6025
6026         rintf: Don't override undeclared system function on IRIX 6.5.
6027         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6028         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6029         exists. Set HAVE_DECL_RINTF.
6030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6031         HAVE_RINTF.
6032         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6033         HAVE_RINTF.
6034         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6035
6036 2012-03-07  Bruno Haible  <bruno@clisp.org>
6037
6038         roundl: Avoid compilation error on AIX.
6039         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6040         AIX 5.2..7.1.
6041
6042 2012-03-07  Bruno Haible  <bruno@clisp.org>
6043
6044         roundl: Don't override undeclared system function on IRIX 6.5.
6045         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6046         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6047         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6048         * modules/roundl (configure.ac): For replacement code, test
6049         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6050         (Depends-on): Update conditions.
6051         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6052
6053 2012-03-07  Bruno Haible  <bruno@clisp.org>
6054
6055         roundf: Don't override undeclared system function on IRIX 6.5.
6056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6057         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6058         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6059         * modules/roundf (configure.ac): For replacement code, test
6060         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6061         (Depends-on): Update conditions.
6062         * modules/roundf-ieee (Depends-on): Update conditions.
6063         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6064
6065 2012-03-07  Bruno Haible  <bruno@clisp.org>
6066
6067         round: Don't override undeclared system function on IRIX 6.5.
6068         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6069         argument.
6070         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6071         also when it is not declared. Set HAVE_ROUND. For replacement code,
6072         test HAVE_ROUND, not HAVE_DECL_ROUND.
6073         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6074         not HAVE_DECL_ROUND.
6075         (Depends-on): Update conditions.
6076         * modules/round-ieee (Depends-on): Update conditions.
6077         * doc/posix-functions/round.texi: Mention the IRIX problem.
6078
6079 2012-03-07  Bruno Haible  <bruno@clisp.org>
6080
6081         copysignf: Don't override undeclared system function on IRIX 6.5.
6082         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6083         HAVE_COPYSIGNF.
6084         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6085         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6087         not HAVE_COPYSIGNF.
6088         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6089         HAVE_COPYSIGNF.
6090         * doc/posix-functions/copysignf.texi: Mention missing declaration
6091         problem.
6092
6093 2012-03-07  Jim Meyering  <meyering@redhat.com>
6094
6095         readtokens: add tests
6096         * modules/readtokens-tests: New file.
6097         * tests/test-readtokens.c: New file.
6098
6099 2012-03-07  Jim Meyering  <meyering@redhat.com>
6100
6101         quotearg: the module must now include quote.h
6102         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6103         So must the module.
6104         * modules/quotearg (Files): Add quote.h.
6105
6106 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6107
6108         readtokens: avoid core dumps with unusual calling patterns
6109         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6110         * lib/readtokens.c: Include limits.h.
6111         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6112         (readtoken): Don't cache the delimiters; the cache code was buggy
6113         if !delim && saved_delim, or if the new n_delim differs from the old.
6114         Also, it wasn't thread-safe.
6115
6116 2012-03-07  Bruno Haible  <bruno@clisp.org>
6117
6118         quote: Adhere to common module description layout.
6119         * modules/quote (Makefile.am): Add back empty section.
6120
6121 2012-03-06  Akim Demaille  <demaille@gostai.com>
6122
6123         quote: fuse into quotearg
6124         This patch is made for the benefit of Bison.
6125         quote does not leave the choice of the quoting style to the user.
6126         quoting_style provides poor customizability, yet quoting_options,
6127         which is very rich, is hidden inside quotearg.c.  So in order to
6128         allow quote customization, move its implementation to quotearg.c.
6129         * lib/quote.c: Remove.
6130         * modules/quote: Adjust.
6131         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6132         warning: provide all the members of literal structs.
6133         (quote_quoting_options): New.
6134         (quote, quote_n): Import implementation from quote.c.
6135         * lib/quote.h: Import the comments from quote.c.
6136         (quote_quoting_options): New.
6137
6138 2012-03-06  Bruno Haible  <bruno@clisp.org>
6139
6140         Tests for module 'expm1l-ieee'.
6141         * modules/expm1l-ieee-tests: New file.
6142         * tests/test-expm1l-ieee.c: New file.
6143
6144         New module 'expm1l-ieee'.
6145         * modules/expm1l-ieee: New file.
6146
6147         Tests for module 'expm1f-ieee'.
6148         * modules/expm1f-ieee-tests: New file.
6149         * tests/test-expm1f-ieee.c: New file.
6150
6151         New module 'expm1f-ieee'.
6152         * modules/expm1f-ieee: New file.
6153
6154         Tests for module 'expm1-ieee'.
6155         * modules/expm1-ieee-tests: New file.
6156         * tests/test-expm1-ieee.c: New file.
6157         * tests/test-expm1-ieee.h: New file.
6158
6159         New module 'expm1-ieee'.
6160         * modules/expm1-ieee: New file.
6161         * m4/expm1-ieee.m4: New file.
6162         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6163         whether expm1 works with a minus zero argument. Replace it if not.
6164         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6166         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6167         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6168         (Depends-on): Update conditions.
6169         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6170         AIX problem.
6171
6172 2012-03-06  Bruno Haible  <bruno@clisp.org>
6173
6174         Work around expm1f bug on IRIX 6.5.
6175         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6176         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6177         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6178         not work.
6179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6180         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6181         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6182         (Depends-on): Update conditions.
6183         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6184
6185 2012-03-06  Bruno Haible  <bruno@clisp.org>
6186
6187         Tests for module 'expm1l'.
6188         * modules/expm1l-tests: New file.
6189         * tests/test-expm1l.c: New file.
6190
6191         New module 'expm1l'.
6192         * lib/math.in.h (expm1l): New declaration.
6193         * lib/expm1l.c: New file.
6194         * m4/expm1l.m4: New file.
6195         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6197         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6198         * modules/expm1l: New file.
6199         * tests/test-math-c++.cc: Check the declaration of expm1l.
6200         * doc/posix-functions/expm1l.texi: Mention the new module.
6201
6202 2012-03-06  Bruno Haible  <bruno@clisp.org>
6203
6204         Tests for module 'expm1f'.
6205         * modules/expm1f-tests: New file.
6206         * tests/test-expm1f.c: New file.
6207
6208         New module 'expm1f'.
6209         * lib/math.in.h (expm1f): New declaration.
6210         * lib/expm1f.c: New file.
6211         * m4/expm1f.m4: New file.
6212         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6214         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6215         * modules/expm1f: New file.
6216         * tests/test-math-c++.cc: Check the declaration of expm1f.
6217         * doc/posix-functions/expm1f.texi: Mention the new module.
6218
6219 2012-03-06  Bruno Haible  <bruno@clisp.org>
6220
6221         Tests for module 'expm1'.
6222         * modules/expm1-tests: New file.
6223         * tests/test-expm1.c: New file.
6224         * tests/test-expm1.h: New file.
6225
6226         New module 'expm1'.
6227         * lib/math.in.h (expm1): New declaration.
6228         * lib/expm1.c: New file.
6229         * m4/expm1.m4: New file.
6230         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6232         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6233         * modules/expm1: New file.
6234         * tests/test-math-c++.cc: Check the declaration of expm1.
6235         * doc/posix-functions/expm1.texi: Mention the new module.
6236
6237 2012-03-06  Bruno Haible  <bruno@clisp.org>
6238
6239         math: Ensure declarations of math functions.
6240         * modules/acosf (Depends-on): Add 'extensions'.
6241         * modules/asinf (Depends-on): Likewise.
6242         * modules/atan2f (Depends-on): Likewise.
6243         * modules/atanf (Depends-on): Likewise.
6244         * modules/cbrt (Depends-on): Likewise.
6245         * modules/cbrtf (Depends-on): Likewise.
6246         * modules/cbrtl (Depends-on): Likewise.
6247         * modules/copysignf (Depends-on): Likewise.
6248         * modules/copysignl (Depends-on): Likewise.
6249         * modules/cosf (Depends-on): Likewise.
6250         * modules/coshf (Depends-on): Likewise.
6251         * modules/expf (Depends-on): Likewise.
6252         * modules/fabsf (Depends-on): Likewise.
6253         * modules/fabsl (Depends-on): Likewise.
6254         * modules/fmaf (Depends-on): Likewise.
6255         * modules/fmal (Depends-on): Likewise.
6256         * modules/fmodf (Depends-on): Likewise.
6257         * modules/fmodl (Depends-on): Likewise.
6258         * modules/frexpf (Depends-on): Likewise.
6259         * modules/frexpl (Depends-on): Likewise.
6260         * modules/hypot (Depends-on): Likewise.
6261         * modules/hypotf (Depends-on): Likewise.
6262         * modules/hypotl (Depends-on): Likewise.
6263         * modules/ldexpf (Depends-on): Likewise.
6264         * modules/ldexpl (Depends-on): Likewise.
6265         * modules/log10f (Depends-on): Likewise.
6266         * modules/log10l (Depends-on): Likewise.
6267         * modules/log1p (Depends-on): Likewise.
6268         * modules/logb (Depends-on): Likewise.
6269         * modules/logf (Depends-on): Likewise.
6270         * modules/modff (Depends-on): Likewise.
6271         * modules/modfl (Depends-on): Likewise.
6272         * modules/powf (Depends-on): Likewise.
6273         * modules/remainderf (Depends-on): Likewise.
6274         * modules/remainderl (Depends-on): Likewise.
6275         * modules/rintf (Depends-on): Likewise.
6276         * modules/rintl (Depends-on): Likewise.
6277         * modules/sinf (Depends-on): Likewise.
6278         * modules/sinhf (Depends-on): Likewise.
6279         * modules/sqrtf (Depends-on): Likewise.
6280         * modules/tanf (Depends-on): Likewise.
6281         * modules/tanhf (Depends-on): Likewise.
6282         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6283         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6284         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6285         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6286         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6287         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6288         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6289         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6290         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6291         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6292         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6293         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6294         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6295         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6296         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6297         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6298         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6299         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6300         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6301         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6302         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6303         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6304         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6305         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6307         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6308         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6309         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6310         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6311         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6312         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6313         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6314         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6315         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6316         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6317         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6318         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6319         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6320         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6321         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6322         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6323
6324 2012-03-06  Bruno Haible  <bruno@clisp.org>
6325
6326         math: Update module names in warnings.
6327         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6328         tanl): Use specific module name in warn-on-use warning.
6329
6330 2012-03-06  Bruno Haible  <bruno@clisp.org>
6331
6332         expl: Simplify computation.
6333         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6334
6335 2012-03-05  Bruno Haible  <bruno@clisp.org>
6336
6337         exp* tests: More tests.
6338         * tests/test-exp.h: New file.
6339         * tests/test-exp.c: Include <float.h> and test-exp.h.
6340         (main): Invoke test_function.
6341         * tests/test-expf.c: Include <float.h> and test-exp.h.
6342         (main): Invoke test_function.
6343         * tests/test-expl.c: Include <float.h> and test-exp.h.
6344         (main): Invoke test_function.
6345         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6346         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6347         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6348         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6349         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6350         (Depends-on): Add 'float'.
6351         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6352
6353         expl: Fix precision of computed result.
6354         * lib/expl.c: Completely rewritten.
6355         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6356         (Maintainer): Add me.
6357         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6358
6359 2012-03-05  Bruno Haible  <bruno@clisp.org>
6360
6361         cbrt* tests: More tests.
6362         * tests/test-cbrt.h: New file.
6363         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6364         (main): Invoke test_function.
6365         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6366         (main): Invoke test_function.
6367         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6368         (main): Invoke test_function.
6369         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6370         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6371         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6372         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6373         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6374         (Depends-on): Add 'float'.
6375         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6376
6377 2012-03-05  Bruno Haible  <bruno@clisp.org>
6378
6379         hypot* tests: More tests.
6380         * tests/test-hypot.h: New file, partially extracted from
6381         tests/test-hypotl.c.
6382         * tests/test-hypot.c: Include test-hypot.h.
6383         (main): Invoke test_function.
6384         * tests/test-hypotf.c: Include test-hypot.h.
6385         (main): Invoke test_function.
6386         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6387         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6388         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6389         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6390         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6391         tests/randomf.c.
6392         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6393         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6394         tests/randoml.c.
6395         (Depends-on): Add 'fpucw', 'float'.
6396         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6397
6398 2012-03-05  Bruno Haible  <bruno@clisp.org>
6399
6400         fpucw: Doc about FreeBSD.
6401         * lib/fpucw.h: Mention FreeBSD in comments.
6402
6403 2012-03-04  Bruno Haible  <bruno@clisp.org>
6404
6405         sqrt* tests: More tests.
6406         * tests/test-sqrt.h: New file.
6407         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6408         (main): Invoke test_function.
6409         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6410         (main): Invoke test_function.
6411         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6412         (main): Invoke test_function.
6413         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6414         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6415         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6416         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6417         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6418         (Depends-on): Add 'float'.
6419         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6420
6421 2012-03-04  Bruno Haible  <bruno@clisp.org>
6422
6423         remainder* tests: More tests.
6424         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6425         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6426         (main): Invoke test_function.
6427         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6428         (main): Invoke test_function.
6429         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6430         (main): Invoke test_function.
6431         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6432         tests/randomd.c.
6433         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6434         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6435         tests/randomf.c.
6436         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6437         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6438         tests/randoml.c.
6439         (Depends-on): Add 'float'.
6440         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6441
6442 2012-03-04  Bruno Haible  <bruno@clisp.org>
6443
6444         remainder, remainderf, remainderl: Fix computation for large quotients.
6445         * lib/remainder.c: Completely rewritten.
6446         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6447         USE_FLOAT.
6448         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6449         USE_LONG_DOUBLE.
6450         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6451         isnand, isinf. Remove round, fma.
6452         * modules/remainderf (Files): Add lib/remainder.c.
6453         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6454         Remove roundf, fmaf.
6455         * modules/remainderl (Files): Add lib/remainder.c.
6456         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6457         isinf. Remove roundl, fmal.
6458         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6459         REMAINDER_LIBM.
6460         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6461         REMAINDERF_LIBM.
6462         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6463         REMAINDERL_LIBM.
6464
6465 2012-03-04  Bruno Haible  <bruno@clisp.org>
6466
6467         fmod* tests: More tests.
6468         * tests/test-fmod.h (my_ldexp): New function.
6469         (test_function): Reduce amount of random numbers to test. Add tests
6470         of very large quotients x / y.
6471         * tests/test-fmod.c (MAX_EXP): New macro.
6472         * tests/test-fmodf.c (MAX_EXP): Likewise.
6473         * tests/test-fmodl.c (MAX_EXP): Likewise.
6474
6475 2012-03-04  Bruno Haible  <bruno@clisp.org>
6476
6477         fmod, fmodl: Fix computation for large quotients x / y.
6478         * lib/fmod.c: Completely rewritten.
6479         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6480         USE_LONG_DOUBLE.
6481         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6482         isnand. Remove fma.
6483         * modules/fmodl (Files): Add lib/fmod.c.
6484         (Depends-on): Add float, isfinite, signbit, fabsl,
6485         frexpl, ldexpl, isnanl. Remove fma.
6486         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6487         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6488
6489 2012-03-03  Bruno Haible  <bruno@clisp.org>
6490
6491         fmod* tests: More tests.
6492         * tests/test-fmod.h: New file.
6493         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6494         (main): Invoke test_function.
6495         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6496         (main): Invoke test_function.
6497         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6498         (main): Invoke test_function.
6499         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6500         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6501         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6502         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6503         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6504         (Depends-on): Add 'float'.
6505         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6506
6507 2012-03-03  Bruno Haible  <bruno@clisp.org>
6508
6509         rint* tests: More tests.
6510         * tests/test-rint.h: New file, partially extracted from
6511         tests/test-rintl.c.
6512         * tests/test-rint.c: Include test-rint.h.
6513         (main): Invoke test_function.
6514         * tests/test-rintf.c: Include test-rint.h.
6515         (main): Invoke test_function.
6516         * tests/test-rintl.c: Include test-rint.h.
6517         (main): Invoke test_function.
6518         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6519         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6520         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6521         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6522         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6523         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6524
6525 2012-03-03  Bruno Haible  <bruno@clisp.org>
6526
6527         modf* tests: More tests.
6528         * tests/test-modf.h: New file.
6529         * tests/test-modf.c: Include <float.h> and test-modf.h.
6530         (main): Invoke test_function.
6531         * tests/test-modff.c: Include <float.h> and test-modf.h.
6532         (main): Invoke test_function.
6533         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6534         (main): Invoke test_function.
6535         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6536         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6537         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6538         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6539         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6540         (Depends-on): Add 'float'.
6541         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6542
6543 2012-03-03  Bruno Haible  <bruno@clisp.org>
6544
6545         fabs* tests: More tests.
6546         * tests/test-fabs.h: New file, partially extracted from
6547         tests/test-fabsl.c.
6548         * tests/test-fabs.c (RANDOM): New macro.
6549         * tests/test-fabsf.c (RANDOM): New macro.
6550         * tests/test-fabsl.c (RANDOM): New macro.
6551         * modules/fabs-tests (Files): Add tests/randomd.c.
6552         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6553         * modules/fabsf-tests (Files): Add tests/randomf.c.
6554         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6555         * modules/fabsl-tests (Files): Add tests/randoml.c.
6556         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6557
6558 2012-03-03  Bruno Haible  <bruno@clisp.org>
6559
6560         ldexp* tests: More tests.
6561         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6562         * tests/test-ldexp.c (RANDOM): New macro.
6563         * tests/test-ldexpf.c (RANDOM): New macro.
6564         * tests/test-ldexpl.c (RANDOM): New macro.
6565         * modules/ldexp-tests (Files): Add tests/randomd.c.
6566         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6567         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6568         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6569         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6570         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6571
6572 2012-03-03  Bruno Haible  <bruno@clisp.org>
6573
6574         frexp* tests: More tests.
6575         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6576         * tests/test-frexp.c (RANDOM): New macro.
6577         * tests/test-frexpf.c (RANDOM): New macro.
6578         * tests/test-frexpl.c (RANDOM): New macro.
6579         * modules/frexp-tests (Files): Add tests/randomd.c.
6580         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6581         * modules/frexpf-tests (Files): Add tests/randomf.c.
6582         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6583         * modules/frexpl-tests (Files): Add tests/randoml.c.
6584         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6585
6586 2012-03-03  Bruno Haible  <bruno@clisp.org>
6587
6588         Support for pseudo-random numbers in tests.
6589         * tests/randomf.c: New file.
6590         * tests/randomd.c: New file.
6591         * tests/randoml.c: New file.
6592         * tests/macros.h (randomf, randomd, randoml): New declarations.
6593
6594 2012-03-03  Bruno Haible  <bruno@clisp.org>
6595
6596         frexp* tests: Refactor.
6597         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6598         * tests/test-frexp.c: Include and use it.
6599         * tests/test-frexpf.c: Likewise.
6600         * tests/test-frexpl.c: Likewise.
6601         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6602         * modules/frexpf-tests (Files): Likewise.
6603         * modules/frexpl-tests (Files): Likewise.
6604
6605 2012-03-02  Jim Meyering  <meyering@redhat.com>
6606
6607         maint: don't specify XZ_OPT=-9ev in dist-related rule
6608         Using xz's -9 option is warranted only if you have a very large
6609         tarball (see xz's documentation for the sizes vs. presets), and
6610         requires 64MiB of memory at decompression time.
6611         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6612         Automake's default of just "-e" is fine.  Override on a
6613         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6614
6615 2012-03-01  Eric Blake  <eblake@redhat.com>
6616
6617         maint.mk: allow announcement for non-gnulib project
6618         * maint.mk (announcement): Skip gnulib version if not used.
6619
6620 2012-03-01  Jim Meyering  <meyering@redhat.com>
6621
6622         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6623         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6624         envvar settings cannot interfere.  Otherwise, setting envvars like
6625         prohibit=foo require=bar, etc. would cause spurious test failures.
6626
6627 2012-03-01  Eric Blake  <eblake@redhat.com>
6628
6629         maint.mk: add per-line exclusions to prohibitions
6630         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6631         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6632         (sc_const_long_option): Use it.
6633
6634 2012-03-01  Bruno Haible  <bruno@clisp.org>
6635
6636         Tests for module 'expl-ieee'.
6637         * modules/expl-ieee-tests: New file.
6638         * tests/test-expl-ieee.c: New file.
6639
6640         New module 'expl-ieee'.
6641         * modules/expl-ieee: New file.
6642
6643         Tests for module 'exp-ieee'.
6644         * modules/exp-ieee-tests: New file.
6645         * tests/test-exp-ieee.c: New file.
6646
6647         New module 'exp-ieee'.
6648         * modules/exp-ieee: New file.
6649
6650         Tests for module 'expf-ieee'.
6651         * modules/expf-ieee-tests: New file.
6652         * tests/test-expf-ieee.c: New file.
6653         * tests/test-exp-ieee.h: New file.
6654
6655         New module 'expf-ieee'.
6656         * modules/expf-ieee: New file.
6657
6658 2012-02-29  Bruno Haible  <bruno@clisp.org>
6659
6660         cbrtl-ieee: Work around test failure on IRIX 6.5.
6661         * m4/cbrtl-ieee.m4: New file.
6662         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6663         test whether cbrtl works with a minus zero argument. Replace it if not.
6664         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6666         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6667         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6668         (Depends-on): Update conditions.
6669         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6670         m4/signbit.m4.
6671         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6672         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6673         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6674
6675         Tests for module 'cbrtl-ieee'.
6676         * modules/cbrtl-ieee-tests: New file.
6677         * tests/test-cbrtl-ieee.c: New file.
6678
6679         New module 'cbrtl-ieee'.
6680         * modules/cbrtl-ieee: New file.
6681
6682         Tests for module 'cbrt-ieee'.
6683         * modules/cbrt-ieee-tests: New file.
6684         * tests/test-cbrt-ieee.c: New file.
6685
6686         New module 'cbrt-ieee'.
6687         * modules/cbrt-ieee: New file.
6688
6689         Tests for module 'cbrtf-ieee'.
6690         * modules/cbrtf-ieee-tests: New file.
6691         * tests/test-cbrtf-ieee.c: New file.
6692         * tests/test-cbrt-ieee.h: New file.
6693
6694         New module 'cbrtf-ieee'.
6695         * modules/cbrtf-ieee: New file.
6696
6697 2012-02-29  Bruno Haible  <bruno@clisp.org>
6698
6699         cbrtf: Work around bug in IRIX 6.5 system function.
6700         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6701         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6702         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6703         work.
6704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6705         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6706         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6707         (Depends-on): Update conditions.
6708         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6709
6710 2012-02-29  Bruno Haible  <bruno@clisp.org>
6711
6712         Tests for module 'cbrtl'.
6713         * modules/cbrtl-tests: New file.
6714         * tests/test-cbrtl.c: New file.
6715
6716         New module 'cbrtl'.
6717         * lib/math.in.h (cbrtl): New declaration.
6718         * lib/cbrtl.c: New file.
6719         * m4/cbrtl.m4: New file.
6720         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6722         HAVE_DECL_CBRTL.
6723         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6724         HAVE_DECL_CBRTL.
6725         * modules/cbrtl: New file.
6726         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6727         * doc/posix-functions/cbrtl.texi: Mention the new module.
6728
6729 2012-02-29  Bruno Haible  <bruno@clisp.org>
6730
6731         Tests for module 'cbrtf'.
6732         * modules/cbrtf-tests: New file.
6733         * tests/test-cbrtf.c: New file.
6734
6735         New module 'cbrtf'.
6736         * lib/math.in.h (cbrtf): New declaration.
6737         * lib/cbrtf.c: New file.
6738         * m4/cbrtf.m4: New file.
6739         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6741         HAVE_DECL_CBRTF.
6742         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6743         HAVE_DECL_CBRTF.
6744         * modules/cbrtf: New file.
6745         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6746         * doc/posix-functions/cbrtf.texi: Mention the new module.
6747
6748 2012-02-29  Bruno Haible  <bruno@clisp.org>
6749
6750         cbrt: Provide replacement on MSVC and Minix.
6751         * lib/math.in.h (cbrt): New declaration.
6752         * lib/cbrt.c: New file.
6753         * m4/cbrt.m4: New file.
6754         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6756         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6757         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6758         (Depends-on): Add dependencies.
6759         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6760         * tests/test-math-c++.cc: Check the declaration of cbrt.
6761         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6762         replacement.
6763
6764 2012-02-29  Bruno Haible  <bruno@clisp.org>
6765
6766         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6767         * m4/hypotl-ieee.m4: New file.
6768         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6769         test whether hypotl works with mixed NaN and Infinity arguments.
6770         Replace it if not.
6771         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6773         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6774         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6775         (Depends-on): Update conditions.
6776         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6777         (Depends-on): Add hypot-ieee.
6778         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6779         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6780
6781         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6782         * m4/hypotf-ieee.m4: New file.
6783         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6784         test whether hypotf works with mixed NaN and Infinity arguments.
6785         Replace it if not.
6786         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6787         (Depends-on): Add hypot-ieee.
6788         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6789         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6790
6791         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6792         * lib/math.in.h (hypot): New declaration.
6793         * lib/hypot.c: New file.
6794         * m4/hypot-ieee.m4: New file.
6795         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6796         whether hypot works with mixed NaN and Infinity arguments. Replace it
6797         if not.
6798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6799         REPLACE_HYPOT.
6800         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6801         * modules/hypot (Files): Add lib/hypot.c.
6802         (Depends-on): Add dependencies.
6803         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6804         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6805         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6806         * tests/test-math-c++.cc: Check the declaration of hypot.
6807         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6808
6809         Tests for module 'hypotl-ieee'.
6810         * modules/hypotl-ieee-tests: New file.
6811         * tests/test-hypotl-ieee.c: New file.
6812
6813         New module 'hypotl-ieee'.
6814         * modules/hypotl-ieee: New file.
6815
6816         Tests for module 'hypot-ieee'.
6817         * modules/hypot-ieee-tests: New file.
6818         * tests/test-hypot-ieee.c: New file.
6819
6820         New module 'hypot-ieee'.
6821         * modules/hypot-ieee: New file.
6822
6823         Tests for module 'hypotf-ieee'.
6824         * modules/hypotf-ieee-tests: New file.
6825         * tests/test-hypotf-ieee.c: New file.
6826         * tests/test-hypot-ieee.h: New file.
6827
6828         New module 'hypotf-ieee'.
6829         * modules/hypotf-ieee: New file.
6830
6831 2012-02-29  Bruno Haible  <bruno@clisp.org>
6832
6833         Remove unused variables.
6834         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6835         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6836         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6837         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6838
6839 2012-02-29  Eric Blake  <eblake@redhat.com>
6840
6841         termios: fix pid_t always, not just for tcgetsid
6842         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6843         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6844         just when building tcgetsid.
6845
6846 2012-02-29  Bruno Haible  <bruno@clisp.org>
6847
6848         Tests for module 'hypotl'.
6849         * modules/hypotl-tests: New file.
6850         * tests/test-hypotl.c: New file.
6851
6852         New module 'hypotl'.
6853         * lib/math.in.h (hypotl): New declaration.
6854         * lib/hypotl.c: New file.
6855         * m4/hypotl.m4: New file.
6856         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6858         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6859         * modules/hypotl: New file.
6860         * tests/test-math-c++.cc: Check the hypotl declaration.
6861         * doc/posix-functions/hypotl.texi: Mention the new module.
6862
6863 2012-02-29  Eric Blake  <eblake@redhat.com>
6864
6865         tcgetsid: fix cygwin header bug
6866         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6867
6868         docs: update cygwin progress
6869         * doc/posix-functions/llround.texi (llround): Added in cygwin
6870         1.7.8.
6871         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6872         * doc/glibc-functions/program_invocation_name.texi
6873         (program_invocation_name): Likewise.
6874         * doc/glibc-functions/program_invocation_short_name.texi
6875         (program_invocation_short_name): Likewise.
6876         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6877         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6878         Likewise.
6879         * doc/posix-functions/pthread_spin_destroy.texi
6880         (pthread_spin_destroy): Added in cygwin 1.7.10.
6881         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6882         Likewise.
6883         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6884         Likewise.
6885         * doc/posix-functions/pthread_spin_trylock.texi
6886         (pthread_spin_trylock): Likewise.
6887         * doc/posix-functions/pthread_spin_unlock.texi
6888         (pthread_spin_unlock): Likewise.
6889         * doc/posix-functions/pthread_setschedprio.texi
6890         (pthread_setschedprio): Likewise.
6891         * doc/posix-functions/pthread_attr_getstack.texi
6892         (pthread_attr_getstack): Likewise.
6893         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6894         (pthread_attr_getstackaddr): Likewise.
6895         * doc/glibc-functions/pthread_getattr_np.texi
6896         (pthread_getattr_np): Likewise.
6897         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6898         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6899         * doc/posix-functions/clock_settime.texi (clock_settime):
6900         Likewise.
6901         * doc/posix-functions/pthread_attr_getguardsize.texi
6902         (pthread_attr_getguardsize): Likewise.
6903         * doc/posix-functions/pthread_attr_setguardsize.texi
6904         (pthread_attr_setguardsize): Likewise.
6905         * doc/posix-functions/pthread_attr_setstack.texi
6906         (pthread_attr_setstack): Likewise.
6907         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6908         (pthread_attr_setstackaddr): Likewise.
6909         * doc/posix-functions/clock_getcpuclockid.texi
6910         (clock_getcpuclockid): Likewise.
6911         * doc/posix-functions/pthread_getcpuclockid.texi
6912         (pthread_getcpuclockid): Likewise.
6913         * doc/glibc-functions/error.texi (error): Likewise.
6914         * doc/glibc-functions/error_at_line.texi (error_at_line):
6915         Likewise.
6916         * doc/glibc-functions/error_message_count.texi
6917         (error_message_count): Likewise.
6918         * doc/glibc-functions/error_one_per_line.texi
6919         (error_one_per_line): Likewise.
6920         * doc/glibc-functions/error_print_progname.texi
6921         (error_print_progname): Likewise.
6922         * doc/posix-functions/pthread_condattr_getclock.texi
6923         (pthread_condattr_getclock): Likewise.
6924         * doc/posix-functions/pthread_condattr_setclock.texi
6925         (pthread_condattr_setclock): Likewise.
6926         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6927         Likewise.
6928         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6929         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6930         * doc/glibc-functions/get_current_dir_name.texi
6931         (get_current_dir_name): Likewise.
6932         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6933         Likewise.
6934         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6935         wrong return type.
6936         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6937         1.7.11.
6938
6939 2012-02-29  Bruno Haible  <bruno@clisp.org>
6940
6941         Tests for module 'hypotf'.
6942         * modules/hypotf-tests: New file.
6943         * tests/test-hypotf.c: New file.
6944
6945         New module 'hypotf'.
6946         * lib/math.in.h (hypotf): New declaration.
6947         * lib/hypotf.c: New file.
6948         * m4/hypotf.m4: New file.
6949         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6951         REPLACE_HYPOTF.
6952         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6953         REPLACE_HYPOTF.
6954         * modules/hypotf: New file.
6955         * tests/test-math-c++.cc: Check the hypotf declaration.
6956         * doc/posix-functions/hypotf.texi: Mention the new module.
6957
6958         hypot: Prepare for hypotf module.
6959         * m4/hypot.m4: New file.
6960         * modules/hypot (Files): Add m4/hypot.m4.
6961         (configure.ac): Invoke gl_FUNC_HYPOT.
6962
6963 2012-02-29  Bruno Haible  <bruno@clisp.org>
6964
6965         hypot tests: More tests.
6966         * tests/test-hypot.c: Include <float.h>.
6967         (main): Add tests about overflow and underflow.
6968
6969 2012-02-29  Bruno Haible  <bruno@clisp.org>
6970
6971         math code: Add comments.
6972         * lib/acosl.c: Add comment about related glibc source files.
6973         * lib/asinl.c: Likewise.
6974         * lib/atanl.c: Likewise.
6975         * lib/expl.c: Likewise.
6976         * lib/logl.c: Likewise.
6977         * lib/sincosl.c: Likewise.
6978         * lib/sinl.c: Likewise.
6979         * lib/tanl.c: Likewise.
6980         * lib/trigl.c: Likewise.
6981         * lib/cosl.c: Likewise. Fix comments.
6982
6983 2012-02-28  Bruno Haible  <bruno@clisp.org>
6984
6985         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6986         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6987         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6988         HUGE_VALL are defined.
6989         (numeric_equald): Renamed from numeric_equal.
6990         (numeric_equalf, numeric_equall): New functions.
6991         (main): Check also HUGE_VALF, HUGE_VALL.
6992         * modules/math-tests (Files): Add tests/macros.h.
6993         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6994         HUGE_VALL.
6995
6996 2012-02-28  Bruno Haible  <bruno@clisp.org>
6997
6998         doc: Move ISO C11 feature notes into POSIX chapters.
6999         * doc/posix-functions/aligned_alloc.texi: Renamed from
7000         doc/glibc-functions/aligned_alloc.texi.
7001         * doc/posix-functions/quick_exit.texi: Renamed from
7002         doc/glibc-functions/quick_exit.texi.
7003         * doc/posix-headers/uchar.texi: Renamed from
7004         doc/glibc-headers/uchar.texi.
7005         * doc/posix-functions/c16rtomb.texi: Renamed from
7006         doc/glibc-functions/c16rtomb.texi.
7007         * doc/posix-functions/c32rtomb.texi: Renamed from
7008         doc/glibc-functions/c32rtomb.texi.
7009         * doc/posix-functions/mbrtoc16.texi: Renamed from
7010         doc/glibc-functions/mbrtoc16.texi.
7011         * doc/posix-functions/mbrtoc32.texi: Renamed from
7012         doc/glibc-functions/mbrtoc32.texi.
7013         * doc/gnulib.texi: Update.
7014         (Glibc uchar.h): Remove section.
7015         Suggested by Eric Blake.
7016
7017 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7018
7019         stdnoreturn: port to MSVC better
7020         MSVC standard headers use __declspec(noreturn), so #define noreturn
7021         to empty on that platform.  Reported by Bruno Haible in
7022         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7023         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7024         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7025
7026 2012-02-28  Bruno Haible  <bruno@clisp.org>
7027
7028         doc: Mention new glibc headers and functions.
7029         * doc/glibc-headers/uchar.texi: New file.
7030         * doc/glibc-functions/aligned_alloc.texi: New file.
7031         * doc/glibc-functions/c16rtomb.texi: New file.
7032         * doc/glibc-functions/c32rtomb.texi: New file.
7033         * doc/glibc-functions/clock_adjtime.texi: New file.
7034         * doc/glibc-functions/fanotify_init.texi: New file.
7035         * doc/glibc-functions/fanotify_mark.texi: New file.
7036         * doc/glibc-functions/inet6_opt_append.texi: New file.
7037         * doc/glibc-functions/inet6_opt_find.texi: New file.
7038         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7039         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7040         * doc/glibc-functions/inet6_opt_init.texi: New file.
7041         * doc/glibc-functions/inet6_opt_next.texi: New file.
7042         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7043         * doc/glibc-functions/inet6_rth_add.texi: New file.
7044         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7045         * doc/glibc-functions/inet6_rth_init.texi: New file.
7046         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7047         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7048         * doc/glibc-functions/inet6_rth_space.texi: New file.
7049         * doc/glibc-functions/login.texi: New file.
7050         * doc/glibc-functions/mbrtoc16.texi: New file.
7051         * doc/glibc-functions/mbrtoc32.texi: New file.
7052         * doc/glibc-functions/name_to_handle_at.texi: New file.
7053         * doc/glibc-functions/ntp_gettimex.texi: New file.
7054         * doc/glibc-functions/open_by_handle_at.texi: New file.
7055         * doc/glibc-functions/prlimit.texi: New file.
7056         * doc/glibc-functions/process_vm_readv.texi: New file.
7057         * doc/glibc-functions/process_vm_writev.texi: New file.
7058         * doc/glibc-functions/recvmmsg.texi: New file.
7059         * doc/glibc-functions/scandirat.texi: New file.
7060         * doc/glibc-functions/sendmmsg.texi: New file.
7061         * doc/glibc-functions/setns.texi: New file.
7062         * doc/glibc-functions/timespec_get.texi: New file.
7063         * doc/gnulib.texi: Include them.
7064         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7065         sections.
7066         Reported by Eric Blake.
7067
7068 2012-02-28  Bruno Haible  <bruno@clisp.org>
7069
7070         Avoid compilation errors with MSVC option -fp:strict.
7071         * lib/floor.c: Use MSVC specific pragma fenv_access.
7072         * lib/ceil.c: Likewise.
7073         * lib/trunc.c: Likewise.
7074         * lib/round.c: Likewise.
7075         * lib/rint.c: Likewise.
7076         * lib/fma.c: Likewise.
7077         * lib/integer_length.c: Likewise.
7078         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7080         * tests/test-floor2.c: Likewise.
7081         * tests/test-floorf2.c: Likewise.
7082         * tests/test-ceil2.c: Likewise.
7083         * tests/test-ceilf2.c: Likewise.
7084         * tests/test-trunc2.c: Likewise.
7085         * tests/test-truncf2.c: Likewise.
7086         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7087
7088 2012-02-27  Bruno Haible  <bruno@clisp.org>
7089
7090         Tests for module 'sqrtl-ieee'.
7091         * modules/sqrtl-ieee-tests: New file.
7092         * tests/test-sqrtl-ieee.c: New file.
7093
7094         New module 'sqrtl-ieee'.
7095         * modules/sqrtl-ieee: New file.
7096
7097         Tests for module 'sqrt-ieee'.
7098         * modules/sqrt-ieee-tests: New file.
7099         * tests/test-sqrt-ieee.c: New file.
7100
7101         New module 'sqrt-ieee'.
7102         * modules/sqrt-ieee: New file.
7103
7104         Tests for module 'sqrtf-ieee'.
7105         * modules/sqrtf-ieee-tests: New file.
7106         * tests/test-sqrtf-ieee.c: New file.
7107         * tests/test-sqrt-ieee.h: New file.
7108
7109         New module 'sqrtf-ieee'.
7110         * modules/sqrtf-ieee: New file.
7111
7112 2012-02-27  Bruno Haible  <bruno@clisp.org>
7113
7114         remainderl-ieee: Work around test failure on OSF/1.
7115         * m4/remainderl-ieee.m4: New file.
7116         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7117         present, test whether remainderl works with a zero second argument.
7118         Replace it if not.
7119         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7121         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7122         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7123         (Depends-on): Update conditions.
7124         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7125         (Depends-on): Add remainder-ieee.
7126         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7127         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7128         module.
7129
7130         remainderf-ieee: Work around test failure on OSF/1.
7131         * m4/remainderf-ieee.m4: New file.
7132         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7133         present, test whether remainderf works with a zero second argument.
7134         Replace it if not.
7135         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7137         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7138         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7139         (Depends-on): Update conditions.
7140         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7141         (Depends-on): Add remainder-ieee.
7142         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7143         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7144         module.
7145
7146         remainder-ieee: Work around test failure on OSF/1.
7147         * m4/remainder-ieee.m4: New file.
7148         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7149         present, test whether remainder works with a zero second argument.
7150         Replace it if not.
7151         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7153         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7154         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7155         (Depends-on): Update dependencies.
7156         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7157         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7158         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7159
7160         Tests for module 'remainderl-ieee'.
7161         * modules/remainderl-ieee-tests: New file.
7162         * tests/test-remainderl-ieee.c: New file.
7163
7164         New module 'remainderl-ieee'.
7165         * modules/remainderl-ieee: New file.
7166
7167         Tests for module 'remainder-ieee'.
7168         * modules/remainder-ieee-tests: New file.
7169         * tests/test-remainder-ieee.c: New file.
7170
7171         New module 'remainder-ieee'.
7172         * modules/remainder-ieee: New file.
7173
7174         Tests for module 'remainderf-ieee'.
7175         * modules/remainderf-ieee-tests: New file.
7176         * tests/test-remainderf-ieee.c: New file.
7177         * tests/test-remainder-ieee.h: New file.
7178
7179         New module 'remainderf-ieee'.
7180         * modules/remainderf-ieee: New file.
7181
7182 2012-02-27  Bruno Haible  <bruno@clisp.org>
7183
7184         modff, modfl: Fix configure syntax error.
7185         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7186         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7187
7188 2012-02-27  Bruno Haible  <bruno@clisp.org>
7189
7190         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7191         * m4/fmodl-ieee.m4: New file.
7192         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7193         whether fmodl works with zero arguments. Replace it if not.
7194         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7195         (Depends-on): Add fmod-ieee.
7196         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7197         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7198
7199         fmodf-ieee: Work around test failure on OSF/1.
7200         * m4/fmodf-ieee.m4: New file.
7201         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7202         whether fmodf works with zero arguments. Replace it if not.
7203         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7205         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7206         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7207         (Depends-on): Update dependencies.
7208         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7209         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7210         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7211
7212         fmodf-ieee: Work around test failure on MSVC 9.
7213         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7214         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7215
7216         fmod-ieee: Work around test failures on OSF/1, mingw.
7217         * m4/fmod-ieee.m4: New file.
7218         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7219         whether fmod works with zero arguments. Replace it if not.
7220         * lib/math.in.h (fmod): New declaration.
7221         * lib/fmod.c: New file.
7222         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7224         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7225         * modules/fmod (Files): Add lib/fmod.c.
7226         (Depends-on): Add math, isinf, trunc, fma.
7227         (configure.ac): Arrange to compile lib/fmod.c if needed.
7228         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7229         m4/signbit.m4.
7230         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7231         * tests/test-math-c++.cc: Check the declaration of fmod.
7232         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7233
7234         fmodl-ieee: Fix test failures.
7235         * lib/fmodl.c (fmodl): Treat Inf specially.
7236         * modules/fmodl (Depends-on): Add isinf.
7237
7238         Tests for module 'fmodl-ieee'.
7239         * modules/fmodl-ieee-tests: New file.
7240         * tests/test-fmodl-ieee.c: New file.
7241
7242         New module 'fmodl-ieee'.
7243         * modules/fmodl-ieee: New file.
7244
7245         Tests for module 'fmod-ieee'.
7246         * modules/fmod-ieee-tests: New file.
7247         * tests/test-fmod-ieee.c: New file.
7248
7249         New module 'fmod-ieee'.
7250         * modules/fmod-ieee: New file.
7251
7252         Tests for module 'fmodf-ieee'.
7253         * modules/fmodf-ieee-tests: New file.
7254         * tests/test-fmodf-ieee.c: New file.
7255         * tests/test-fmod-ieee.h: New file.
7256
7257         New module 'fmodf-ieee'.
7258         * modules/fmodf-ieee: New file.
7259
7260 2012-02-27  Bruno Haible  <bruno@clisp.org>
7261
7262         Tests for module 'rintl-ieee'.
7263         * modules/rintl-ieee-tests: New file.
7264         * tests/test-rintl-ieee.c: New file.
7265
7266         New module 'rintl-ieee'.
7267         * modules/rintl-ieee: New file.
7268
7269         Tests for module 'rint-ieee'.
7270         * modules/rint-ieee-tests: New file.
7271         * tests/test-rint-ieee.c: New file.
7272
7273         New module 'rint-ieee'.
7274         * modules/rint-ieee: New file.
7275
7276         Tests for module 'rintf-ieee'.
7277         * modules/rintf-ieee-tests: New file.
7278         * tests/test-rintf-ieee.c: New file.
7279         * tests/test-rint-ieee.h: New file.
7280
7281         New module 'rintf-ieee'.
7282         * modules/rintf-ieee: New file.
7283
7284 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7285
7286         regex: re_search etc. should return -2 when memory exhausted
7287         This bug was uncovered when testing 'grep'.  Without the fix,
7288         re_search and friends return -1 when memory is exhausted, but -1
7289         means no match, and this causes grep to falsely report no-match
7290         instead of memory-exhaustion.  See
7291         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7292         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7293         trouble; this can occur if re_search_internal ran out of memory.
7294
7295 2012-02-26  Bruno Haible  <bruno@clisp.org>
7296
7297         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7298         * m4/modfl-ieee.m4: New file.
7299         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7300         whether modfl works with Inf. Replace it if not.
7301         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7303         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7304         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7305         (Depends-on): Update dependencies.
7306         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7307         m4/signbit.m4.
7308         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7309         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7310
7311         modfl-ieee: Fix dependencies.
7312         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7313
7314         modfl-ieee: Fix test failures.
7315         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7316         * modules/modfl (Depends-on): Add isfinite, isinf.
7317
7318         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7319         * m4/modff-ieee.m4: New file.
7320         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7321         whether modff works with NaN and Inf. Replace it if not.
7322         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7324         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7325         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7326         (Depends-on): Update dependencies.
7327         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7328         m4/signbit.m4.
7329         (Depends-on): Add modf-ieee.
7330         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7331         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7332
7333         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7334         * m4/modf-ieee.m4: New file.
7335         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7336         whether modf works with NaN and Inf. Replace it if not.
7337         * lib/math.in.h (modf): New declaration.
7338         * lib/modf.c: New file.
7339         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7341         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7342         * modules/modf (Files): Add lib/modf.c.
7343         (Depends-on): Add math, isfinite, trunc, isinf.
7344         (configure.ac): Addrange to compile lib/modf.c if needed.
7345         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7346         m4/signbit.m4.
7347         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7348         * tests/test-math-c++.cc: Check the declaration of modf.
7349         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7350
7351         Tests for module 'modfl-ieee'.
7352         * modules/modfl-ieee-tests: New file.
7353         * tests/test-modfl-ieee.c: New file.
7354
7355         New module 'modfl-ieee'.
7356         * modules/modfl-ieee: New file.
7357
7358         Tests for module 'modf-ieee'.
7359         * modules/modf-ieee-tests: New file.
7360         * tests/test-modf-ieee.c: New file.
7361
7362         New module 'modf-ieee'.
7363         * modules/modf-ieee: New file.
7364
7365         Tests for module 'modff-ieee'.
7366         * modules/modff-ieee-tests: New file.
7367         * tests/test-modff-ieee.c: New file.
7368         * tests/test-modf-ieee.h: New file.
7369
7370         New module 'modff-ieee'.
7371         * modules/modff-ieee: New file.
7372
7373 2012-02-26  Bruno Haible  <bruno@clisp.org>
7374
7375         Tests for module 'fabsl-ieee'.
7376         * modules/fabsl-ieee-tests: New file.
7377         * tests/test-fabsl-ieee.c: New file.
7378
7379         New module 'fabsl-ieee'.
7380         * modules/fabsl-ieee: New file.
7381
7382         Tests for module 'fabs-ieee'.
7383         * modules/fabs-ieee-tests: New file.
7384         * tests/test-fabs-ieee.c: New file.
7385
7386         New module 'fabs-ieee'.
7387         * modules/fabs-ieee: New file.
7388
7389         Tests for module 'fabsf-ieee'.
7390         * modules/fabsf-ieee-tests: New file.
7391         * tests/test-fabsf-ieee.c: New file.
7392         * tests/test-fabs-ieee.h: New file.
7393
7394         New module 'fabsf-ieee'.
7395         * modules/fabsf-ieee: New file.
7396
7397 2012-02-26  Bruno Haible  <bruno@clisp.org>
7398
7399         Tests for module 'fmal-ieee'.
7400         * modules/fmal-ieee-tests: New file.
7401         * tests/test-fmal-ieee.c: New file.
7402
7403         New module 'fmal-ieee'.
7404         * modules/fmal-ieee: New file.
7405
7406         Tests for module 'fma-ieee'.
7407         * modules/fma-ieee-tests: New file.
7408         * tests/test-fma-ieee.c: New file.
7409
7410         New module 'fma-ieee'.
7411         * modules/fma-ieee: New file.
7412
7413         Tests for module 'fmaf-ieee'.
7414         * modules/fmaf-ieee-tests: New file.
7415         * tests/test-fmaf-ieee.c: New file.
7416         * tests/test-fma-ieee.h: New file.
7417
7418         New module 'fmaf-ieee'.
7419         * modules/fmaf-ieee: New file.
7420
7421 2012-02-26  Bruno Haible  <bruno@clisp.org>
7422
7423         Tests for module 'ldexpl-ieee'.
7424         * modules/ldexpl-ieee-tests: New file.
7425         * tests/test-ldexpl-ieee.c: New file.
7426
7427         New module 'ldexpl-ieee'.
7428         * modules/ldexpl-ieee: New file.
7429
7430         Tests for module 'ldexp-ieee'.
7431         * modules/ldexp-ieee-tests: New file.
7432         * tests/test-ldexp-ieee.c: New file.
7433
7434         New module 'ldexp-ieee'.
7435         * modules/ldexp-ieee: New file.
7436
7437         Tests for module 'ldexpf-ieee'.
7438         * modules/ldexpf-ieee-tests: New file.
7439         * tests/test-ldexpf-ieee.c: New file.
7440         * tests/test-ldexp-ieee.h: New file.
7441
7442         New module 'ldexpf-ieee'.
7443         * modules/ldexpf-ieee: New file.
7444
7445 2012-02-26  Bruno Haible  <bruno@clisp.org>
7446
7447         Refactor frexp*-ieee tests.
7448         * tests/test-frexp-ieee.h: New file.
7449         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7450         (main): Just call test_function.
7451         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7452         (main): Just call test_function.
7453         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7454         (main): Just call test_function.
7455         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7456         * modules/frexp-ieee-tests (Files): Likewise.
7457         * modules/frexpl-ieee-tests (Files): Likewise.
7458
7459         Tests for module 'frexpl-ieee'.
7460         * modules/frexpl-ieee-tests: New file.
7461         * tests/test-frexpl-ieee.c: New file.
7462
7463         New module 'frexpl-ieee'.
7464         * modules/frexpl-ieee: New file.
7465
7466         Tests for module 'frexp-ieee'.
7467         * modules/frexp-ieee-tests: New file.
7468         * tests/test-frexp-ieee.c: New file.
7469
7470         New module 'frexp-ieee'.
7471         * modules/frexp-ieee: New file.
7472
7473         Tests for module 'frexpf-ieee'.
7474         * modules/frexpf-ieee-tests: New file.
7475         * tests/test-frexpf-ieee.c: New file.
7476
7477         New module 'frexpf-ieee'.
7478         * modules/frexpf-ieee: New file.
7479
7480 2012-02-26  Bruno Haible  <bruno@clisp.org>
7481
7482         roundl-ieee tests: More tests.
7483         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7484         (main): Add tests for [MX] shaded specification in POSIX.
7485         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7486         (Depends-on): Add isnanl-nolibm.
7487
7488         round-ieee tests: More tests.
7489         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7490         (main): Add tests for [MX] shaded specification in POSIX.
7491         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7492         (Depends-on): Add isnand-nolibm.
7493
7494         roundf-ieee tests: More tests.
7495         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7496         (main): Add tests for [MX] shaded specification in POSIX.
7497         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7498         (Depends-on): Add isnanf-nolibm.
7499
7500         truncl-ieee tests: More tests.
7501         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7502         (main): Add tests for [MX] shaded specification in POSIX.
7503         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7504         (Depends-on): Add isnanl-nolibm.
7505
7506         trunc-ieee tests: More tests.
7507         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7508         (main): Add tests for [MX] shaded specification in POSIX.
7509         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7510         (Depends-on): Add isnand-nolibm.
7511
7512         truncf-ieee tests: More tests.
7513         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7514         (main): Add tests for [MX] shaded specification in POSIX.
7515         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7516         (Depends-on): Add isnanf-nolibm.
7517
7518         ceill-ieee tests: More tests.
7519         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7520         (main): Add tests for [MX] shaded specification in POSIX.
7521         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7522         (Depends-on): Add isnanl-nolibm.
7523
7524         ceil-ieee tests: More tests.
7525         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7526         (main): Add tests for [MX] shaded specification in POSIX.
7527         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7528         (Depends-on): Add isnand-nolibm.
7529
7530         ceilf-ieee tests: More tests.
7531         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7532         (main): Add tests for [MX] shaded specification in POSIX.
7533         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7534         (Depends-on): Add isnanf-nolibm.
7535
7536         floorl-ieee tests: More tests.
7537         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7538         (main): Add tests for [MX] shaded specification in POSIX.
7539         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7540         (Depends-on): Add isnanl-nolibm.
7541
7542         floor-ieee tests: More tests.
7543         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7544         (main): Add tests for [MX] shaded specification in POSIX.
7545         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7546         (Depends-on): Add isnand-nolibm.
7547
7548         floorf-ieee tests: More tests.
7549         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7550         (main): Add tests for [MX] shaded specification in POSIX.
7551         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7552         (Depends-on): Add isnanf-nolibm.
7553
7554 2012-02-26  Bruno Haible  <bruno@clisp.org>
7555
7556         fpieee: More comments.
7557         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7558
7559 2012-02-25  Bruno Haible  <bruno@clisp.org>
7560
7561         Tests for module 'log10l'.
7562         * modules/log10l-tests: New file.
7563         * tests/test-log10l.c: New file.
7564         * tests/test-math-c++.cc: Check the declaration of log10l.
7565
7566         New module 'log10l'.
7567         * lib/math.in.h (log10l): New declaration.
7568         * lib/log10l.c: New file.
7569         * m4/log10l.m4: New file.
7570         * modules/log10l: New file.
7571         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7573         HAVE_DECL_LOG10L.
7574         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7575         HAVE_DECL_LOG10L.
7576         * doc/posix-functions/log10l.texi: Mention the new module.
7577
7578 2012-02-25  Bruno Haible  <bruno@clisp.org>
7579
7580         fmodl, remainder*: Avoid wrong results due to rounding errors.
7581         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7582         expected bounds.
7583         * lib/remainderf.c (remainderf): Likewise.
7584         * lib/remainder.c (remainder): Likewise.
7585         * lib/remainderl.c (remainderl): Likewise.
7586
7587 2012-02-25  Bruno Haible  <bruno@clisp.org>
7588
7589         Tests for module 'remainderl'.
7590         * modules/remainderl-tests: New file.
7591         * tests/test-remainderl.c: New file.
7592         * tests/test-math-c++.cc: Check the declaration of remainderl.
7593
7594         New module 'remainderl'.
7595         * lib/math.in.h (remainderl): New declaration.
7596         * lib/remainderl.c: New file.
7597         * m4/remainderl.m4: New file.
7598         * modules/remainderl: New file.
7599         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7601         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7602         HAVE_REMAINDERL.
7603         * doc/posix-functions/remainderl.texi: Mention the new module.
7604
7605 2012-02-25  Bruno Haible  <bruno@clisp.org>
7606
7607         Tests for module 'remainderf'.
7608         * modules/remainderf-tests: New file.
7609         * tests/test-remainderf.c: New file.
7610         * tests/test-math-c++.cc: Check the declaration of remainderf.
7611
7612         New module 'remainderf'.
7613         * lib/math.in.h (remainderf): New declaration.
7614         * lib/remainderf.c: New file.
7615         * m4/remainderf.m4: New file.
7616         * modules/remainderf: New file.
7617         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7619         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7620         HAVE_REMAINDERF.
7621         * doc/posix-functions/remainderf.texi: Mention the new module.
7622
7623 2012-02-25  Bruno Haible  <bruno@clisp.org>
7624
7625         remainder: Support for MSVC.
7626         * lib/math.in.h (remainder): New declaration.
7627         * lib/remainder.c: New file.
7628         * m4/remainder.m4: New file.
7629         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7630         (Depends-on): Add math, round, fma.
7631         (configure.ac): Use results of gl_FUNC_REMAINDER.
7632         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7634         HAVE_DECL_REMAINDER.
7635         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7636         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7637         * tests/test-math-c++.cc: Check the declaration of remainder.
7638         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7639         problems are fixed.
7640
7641 2012-02-25  Bruno Haible  <bruno@clisp.org>
7642
7643         Tests for module 'fmodl'.
7644         * modules/fmodl-tests: New file.
7645         * tests/test-fmodl.c: New file.
7646         * tests/test-math-c++.cc: Check the declaration of fmodl.
7647
7648         New module 'fmodl'.
7649         * lib/math.in.h (fmodl): New declaration.
7650         * lib/fmodl.c: New file.
7651         * m4/fmodl.m4: New file.
7652         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7654         REPLACE_FMODL.
7655         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7656         REPLACE_FMODL.
7657         * modules/fmodl: New file.
7658         * doc/posix-functions/fmodl.texi: Mention the new module.
7659
7660 2012-02-25  Bruno Haible  <bruno@clisp.org>
7661
7662         Tests for module 'modfl'.
7663         * modules/modfl-tests: New file.
7664         * tests/test-modfl.c: New file.
7665         * tests/test-math-c++.cc: Check the declaration of modfl.
7666
7667         New module 'modfl'.
7668         * lib/math.in.h (modfl): New declaration.
7669         * lib/modfl.c: New file.
7670         * m4/modfl.m4: New file.
7671         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7673         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7674         * modules/modfl: New file.
7675         * doc/posix-functions/modfl.texi: Mention the new module.
7676
7677 2012-02-25  Bruno Haible  <bruno@clisp.org>
7678
7679         Tests for module 'fabsl'.
7680         * modules/fabsl-tests: New file.
7681         * tests/test-fabsl.c: New file.
7682         * tests/test-math-c++.cc: Check the declaration of fabsl.
7683
7684         New module 'fabsl'.
7685         * lib/math.in.h (fabsl): New declaration.
7686         * lib/fabsl.c: New file.
7687         * m4/fabsl.m4: New file.
7688         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7690         REPLACE_FABSL.
7691         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7692         REPLACE_FABSL.
7693         * modules/fabsl: New file.
7694         * doc/posix-functions/fabsl.texi: Mention the new module.
7695
7696 2012-02-25  Bruno Haible  <bruno@clisp.org>
7697
7698         fabs tests: More tests.
7699         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7700         (zero): New variable.
7701         (main): Add tests for signed zero.
7702         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7703
7704         fabsf tests: More tests.
7705         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7706         (zero): New variable.
7707         (main): Add tests for signed zero.
7708         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7709
7710 2012-02-24  Bruno Haible  <bruno@clisp.org>
7711
7712         atanl: Provide function definition on MSVC.
7713         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7714         function pointer.
7715         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7716
7717 2012-02-24  Bruno Haible  <bruno@clisp.org>
7718
7719         acosl: Provide function definition on MSVC.
7720         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7721         function pointer.
7722         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7723
7724 2012-02-24  Bruno Haible  <bruno@clisp.org>
7725
7726         asinl: Provide function definition on MSVC.
7727         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7728         function pointer.
7729         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7730
7731 2012-02-24  Bruno Haible  <bruno@clisp.org>
7732
7733         tanl: Provide function definition on MSVC.
7734         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7735         function pointer.
7736         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7737
7738 2012-02-24  Bruno Haible  <bruno@clisp.org>
7739
7740         cosl: Provide function definition on MSVC.
7741         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7742         function pointer.
7743         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7744
7745 2012-02-24  Bruno Haible  <bruno@clisp.org>
7746
7747         sinl: Provide function definition on MSVC.
7748         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7749         function pointer.
7750         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7751
7752 2012-02-24  Bruno Haible  <bruno@clisp.org>
7753
7754         logl: Provide function definition on MSVC.
7755         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7756         function pointer.
7757         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7758
7759 2012-02-24  Bruno Haible  <bruno@clisp.org>
7760
7761         expl: Provide function definition on MSVC.
7762         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7763         function pointer.
7764         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7765
7766 2012-02-24  Bruno Haible  <bruno@clisp.org>
7767
7768         sqrtl: Provide function definition on MSVC.
7769         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7770         a function pointer.
7771         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7772
7773 2012-02-24  Bruno Haible  <bruno@clisp.org>
7774
7775         ceill: Provide function definition on MSVC.
7776         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7777         used as a function pointer.
7778         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7779
7780 2012-02-24  Bruno Haible  <bruno@clisp.org>
7781
7782         floorl: Provide function definition on MSVC.
7783         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7784         used as a function pointer.
7785         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7786
7787 2012-02-24  Bruno Haible  <bruno@clisp.org>
7788
7789         ceilf: Provide function definition on MSVC.
7790         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7791         used as a function pointer.
7792         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7793
7794 2012-02-24  Bruno Haible  <bruno@clisp.org>
7795
7796         floorf: Provide function definition on MSVC.
7797         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7798         used as a function pointer.
7799         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7800
7801 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7802
7803         stdnoreturn: new module
7804         This implements a replacement for C11's <stdnoreturn.h>.
7805         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7806         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7807         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7808         * tests/test-stdnoreturn.c: New files.
7809
7810 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7811
7812         regex: fix false multibyte matches in some regular expressions
7813         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7814         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7815         * lib/regex_internal.c (re_string_skip_chars):
7816         Fix miscomputation of remain_len that may cause incomplete
7817         multi-byte character and false match.
7818
7819 2012-02-24  Jim Meyering  <meyering@redhat.com>
7820
7821         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7822         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7823         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7824         Remove now-unnecessary str''cmp obfuscation.
7825         Suggested by Akim Demaille.
7826
7827 2012-02-24  Bruno Haible  <bruno@clisp.org>
7828
7829         streq: Rename macro.
7830         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7831         * NEWS: Mention the change.
7832         * lib/mbrtowc.c (mbrtowc): Update.
7833         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7834         * lib/wcwidth.c (wcwidth): Update.
7835         Suggested by Akim Demaille and Jim Meyering.
7836
7837 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7838
7839         regex: fix typo in definition of MIN
7840         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7841         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7842
7843 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7844             Bruno Haible  <bruno@clisp.org>
7845
7846         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7847         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7848         entries into a stack-allocated buffer directly.
7849         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7850
7851 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7852             Bruno Haible  <bruno@clisp.org>
7853
7854         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7855
7856          - There were several instances of this pattern:
7857
7858              for (;;) {
7859                n = acl (f, GETACLCNT, 0, NULL);
7860                [ allocate an array A of size N ]
7861                if (acl (f, GETACL, n, a) == n)
7862                  break;
7863              }
7864
7865            This loop might never terminate if some other process is constantly
7866            manipulating the file's ACL.  The loop should be rewritten to
7867            terminate.
7868
7869          - The acl (... GETACLNT ...) call is merely an optimization; its value
7870            is merely a hint as to how big to make the array.  A better
7871            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7872            and just guess a reasonably-big size, growing the size and trying
7873            again if it's not large enough.  This guarantees termination, and
7874            saves a system call.
7875
7876         * lib/acl-internal.h: Include <limits.h>.
7877         (MIN, SIZE_MAX): New macros.
7878         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7879         a stack-allocated buffer, and use malloc if it does not fit. Don't
7880         use GETACLCNT.
7881         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7882
7883 2012-02-19  Bruno Haible  <bruno@clisp.org>
7884
7885         acl: Fix endless loop on Solaris with vxfs.
7886         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7887         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7888         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7889         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7890         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7891         Reported by Bill Jones in
7892         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7893
7894 2012-02-19  Bruno Haible  <bruno@clisp.org>
7895
7896         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7897         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7898         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7899         that this function returns 0 in some more cases.
7900
7901 2012-02-19  Bruno Haible  <bruno@clisp.org>
7902
7903         acl: Update doc references.
7904         * doc/acl-resources.txt: Update links to Solaris documentation.
7905
7906 2012-02-19  Bruno Haible  <bruno@clisp.org>
7907
7908         Fix test failure in many locales on Solaris 11.
7909         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7910         'tr' arguments.
7911         * tests/test-pipe-filter-ii1.c (main): Likewise.
7912         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7913         expressions in the C locale.
7914         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7915         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7916
7917 2012-02-19  Bruno Haible  <bruno@clisp.org>
7918
7919         gnulib-tool: Improve usage message.
7920         * gnulib-tool (func_usage): Move doc of --help and --version to the
7921         section "Operation modes".
7922
7923 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7924
7925         README-release: make it easier to execute commands
7926         * top/README-release: break commands out on to separate lines.
7927
7928 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7929
7930         GNUmakefile: simplify detection of unconfigured trees
7931         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7932         whether the tree make is being run from is already configured or
7933         not.  Related simplifications.
7934
7935 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7936
7937         * gnulib-tool (func_usage): Document --help and --version.
7938
7939 2012-02-11  Jim Meyering  <meyering@redhat.com>
7940
7941         bootstrap: don't exit 0 upon gnulib-tool failure
7942         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7943         its exit status, not 0.
7944
7945 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7946
7947         README-release: various improvements
7948         * top/README-release: Give a command to push changes for the
7949         release.  Add "distcheck" to list of other pre-release checks.
7950         Fix instance of "make stable" which should be "make TYPE".
7951
7952 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         maint: replace FSF snail-mail addresses with URLs
7955         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7956         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7957         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7958         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7959         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7960         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7961         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7962         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7963         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7964         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7965         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7966         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7967         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7968         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7969         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7970         * lib/glthread/thread.c, lib/glthread/thread.h:
7971         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7972         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7973         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7974         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7975         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7976         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7977         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7978         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7979         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7980         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7981         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7982         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7983         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7984         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7985         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7986         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7987         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7988         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7989         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7990         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7991         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7992         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7993         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7994         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7995         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7996         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7997         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7998         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7999         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8000         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8001         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8002         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8003         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8004         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8005         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8006         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8007         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8008         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8009         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8010         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8011         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8012         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8013         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8014         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8015         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8016         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8017         * tests/test-poll.c, tests/test-quotearg-simple.c:
8018         * tests/test-quotearg.c, tests/test-quotearg.h:
8019         * tests/test-round-ieee.c, tests/test-round1.c:
8020         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8021         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8022         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8023         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8024         * tests/test-strerror.c, tests/test-strerror_r.c:
8025         * tests/test-strsignal.c, tests/test-strverscmp.c:
8026         * tests/test-xmemdup0.c:
8027         Replace FSF snail mail addresses with URLs, as per GNU coding
8028         standards.  See glibc bug
8029         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8030
8031 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8032
8033         README-release: capitalize a word and split a line
8034         * top/README-release: Fix punctuation and spacing.
8035
8036 2012-02-08  Akim Demaille  <demaille@gostai.com>
8037
8038         fatal-signal: use C prototypes (with explicit void).
8039         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8040         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8041
8042 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8043
8044         regex: spelling fix
8045         * lib/regexec.c: spelling fix
8046
8047         regex: rely on stdint.h for SIZE_MAX
8048         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8049
8050 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8051
8052         regex: merge glibc changes
8053
8054         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8055         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8056         (init_word_char): Work even if bitset words are not exactly 32 or
8057         64 bits wide.  Don't assume there are no padding bits.
8058         * lib/regex.c [_LIBC]: Do not include <config.h>.
8059         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8060         and -Wtype-limits.
8061         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8062         needless disagreement with glibc.  All uses changed.  Define it to
8063         1 only if _GNU_SOURCE, to match glibc.
8064         (_REG_RM_NAME): Remove; no longer needed, since the names in
8065         question are now all protected by __USE_GNU.
8066         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8067         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8068         * lib/regex_internal.h (MIN): New macro.
8069
8070         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8071         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8072
8073         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8074         * lib/regex_internal.c (re_string_fetch_byte_case):
8075         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8076         is miscompiled, and it turns out it is because of an incorrect
8077         attribute on re_string_fetch_byte_case.  Unlike
8078         re_string_peek_byte_case, this one is really not pure, it modifies
8079         memory (increments pstr->cur_idx), and with the pure attribute GCC
8080         assumed it doesn't and it cached the presumed value of
8081         regexp->cur_idx in a variable across the
8082          for (;; ++i)
8083            {
8084              if (i >= BRACKET_NAME_BUF_SIZE)
8085                return REG_EBRACK;
8086              if (token->type == OP_OPEN_CHAR_CLASS)
8087                ch = re_string_fetch_byte_case (regexp);
8088              else
8089                ch = re_string_fetch_byte (regexp);
8090              if (re_string_eoi(regexp))
8091                return REG_EBRACK;
8092              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8093                break;
8094              elem->opr.name[i] = ch;
8095            }
8096
8097         2011-11-29 Andreas Schwab <schwab@redhat.com>
8098         * lib/regcomp.c (build_equiv_class):
8099         Fix access after end of search string in regex matcher.
8100
8101         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8102         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8103
8104         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8105         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8106
8107         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8108         * lib/regcomp.c (parse_branch, parse_sub_exp):
8109         More regex memory leak fixes and tests.
8110         (parse_sub_exp, parse_bracket_exp):
8111         Fix memory leak for some invalid regular expressions.
8112
8113         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8114         * lib/regex_internal.c, lib/regexec.c:
8115         Fix unnecessary overallocation due to incomplete character.  When
8116         incomplete characters are found at the end of a string the code
8117         ran amok and allocated lots of memory.  Stricter limits are now in
8118         place.
8119
8120         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8121         * lib/regex.h: Update documentation.
8122
8123         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8124         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8125
8126         2010-05-05 Andreas Schwab <schwab@redhat.com>
8127         * lib/regexec.c (find_collation_sequence_value):
8128         Fix lookup of collation sequence value during regexp matching.
8129
8130         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8131         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8132
8133         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8134         * lib/regex.h: Cleanup namespace.
8135
8136         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8137         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8138
8139         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8140         * lib/regex_internal.h: Prevent some declarations and definitions
8141         to be seen when used in tests.
8142
8143         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8144         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8145         __libc_lock_* macros if not _LIBC.
8146         (struct re_dfa_t): Add lock.
8147
8148 2012-02-07  Eric Blake  <eblake@redhat.com>
8149
8150         maint.mk: also prohibit lower-case @var@
8151         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8152         lower case, like @top_srcdir@.
8153
8154 2012-02-04  Eric Blake  <eblake@redhat.com>
8155
8156         canonicalize: avoid uninitialized memory use
8157         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8158         random '/' left in dest.
8159         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8160
8161 2012-02-04  Bruno Haible  <bruno@clisp.org>
8162
8163         isatty: Fix test failure of ptsname_r on native Windows.
8164         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8165         and don't set errno.
8166         (isatty): Test first whether fd is valid. Set errno when returning 0.
8167
8168 2012-02-04  Bruno Haible  <bruno@clisp.org>
8169
8170         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8171         * tests/test-spawn-pipe-main.c: Include progname.h.
8172         (main): Invoke set_program_name.
8173         * modules/spawn-pipe-tests (Depends-on): Add progname.
8174
8175         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8176         * tests/test-nonblocking-socket-main.c: Include progname.h.
8177         (main): Invoke set_program_name.
8178         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8179
8180         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8181         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8182         (main): Invoke set_program_name.
8183         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8184
8185 2012-02-04  Eric Blake  <eblake@redhat.com>
8186
8187         canonicalize-lgpl: fix // handling
8188         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8189
8190         canonicalize: fix // handling
8191         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8192         /// to //, since only // is special.
8193
8194 2012-02-04  Bruno Haible  <bruno@clisp.org>
8195
8196         ioctl: Fix test failure on native Windows.
8197         * lib/ioctl.c: Include msvc-nothrow.h.
8198         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8199
8200 2012-02-04  Bruno Haible  <bruno@clisp.org>
8201
8202         fsync: Avoid test failure on native Windows.
8203         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8204         read-only.
8205
8206 2012-02-04  Bruno Haible  <bruno@clisp.org>
8207
8208         sys_select: Avoid syntax error on OpenBSD 5.0.
8209         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8210         currently being included, just include the system's <sys/select.h>.
8211
8212 2012-02-04  Bruno Haible  <bruno@clisp.org>
8213
8214         sys_select: Avoid syntax error on OpenBSD 5.0.
8215         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8216         <sys/select.h>, not before.
8217         Reported by Jiri B <jirib@devio.us>.
8218
8219 2012-02-04  Bruno Haible  <bruno@clisp.org>
8220
8221         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8222         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8223         global variables.
8224         * tests/test-get-rusage-data.c (main): Likewise.
8225         Reported by Jim Meyering.
8226
8227 2012-02-04  Bruno Haible  <bruno@clisp.org>
8228
8229         stdioext: Fix last commit.
8230         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8231
8232 2012-02-03  Bruno Haible  <bruno@clisp.org>
8233
8234         stdioext: Add tentative support for Plan9.
8235         * lib/stdio-impl.h: Include <errno.h>.
8236         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8237         * lib/freadable.c (freadable): Likewise.
8238         * lib/fwritable.c (fwritable): Likewise.
8239         * lib/fbufmode.c (fbufmode): Likewise.
8240         * lib/freading.c (freading): Likewise.
8241         * lib/fwriting.c (fwriting): Likewise.
8242         * lib/freadptr.c (freadptr): Likewise.
8243         * lib/freadseek.c (freadptrinc): Likewise.
8244         * lib/freadahead.c (freadahead): Likewise.
8245         * lib/fpurge.c (fpurge): Likewise.
8246         * lib/fseeko.c (rpl_fseeko): Likewise.
8247         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8248         Reported by Jens Staal <staal1978@gmail.com>.
8249
8250 2012-02-02  Jim Meyering  <meyering@redhat.com>
8251
8252         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8253         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8254         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8255         not even to try to add the attribute.  Instead, add a pragma to suppress
8256         the suggestion/warning.
8257
8258 2012-01-31  Karl Berry  <karl@gnu.org>
8259
8260         setstate doc: typo.
8261         * doc/posix-functions/setstate.texi (setstate): { not (.
8262
8263 2012-01-31  Bruno Haible  <bruno@clisp.org>
8264
8265         popen: Make more robust on Windows.
8266         * lib/popen.c: On native Windows, use the _popen based code even if
8267         HAVE_POPEN is set.
8268         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8269         environment variable on native Windows.
8270
8271 2012-01-30  Bruno Haible  <bruno@clisp.org>
8272
8273         pclose: Fix typo.
8274         * lib/stdio.in.h (pclose): Fix typo in warning message.
8275
8276 2012-01-30  Bruno Haible  <bruno@clisp.org>
8277
8278         doc about getlogin_r, setstate.
8279         * doc/posix-functions/getlogin_r.texi: List the incompatible
8280         declaration problem under "not fixed by gnulib".
8281         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8282         problem on Solaris 11 and other platforms.
8283
8284 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8285             Bruno Haible  <bruno@clisp.org>
8286
8287         poll tests: Make test more robust.
8288         * tests/test-poll.c: Include macros.h.
8289         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8290         return value of various I/O operations.
8291         * modules/poll-tests (Files): Add tests/macros.h.
8292
8293 2012-01-30  Bruno Haible  <bruno@clisp.org>
8294
8295         sys_stat: Fix support for mingw64 and MSVC.
8296         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8297         header files already do it.
8298         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8299         stat itself.
8300         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8301
8302 2012-01-30  Bruno Haible  <bruno@clisp.org>
8303
8304         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8306         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8307
8308 2012-01-29  Bruno Haible  <bruno@clisp.org>
8309
8310         quotearg: Fix test failure on MacOS X 10.5.
8311         * tests/test-quotearg-simple.c: Include localcharset.h.
8312         (main): If the locale encoding is not ASCII, bypass the tests of
8313         locale_quoting_style and clocale_quoting_style.
8314         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8315
8316 2012-01-29  Jim Meyering  <meyering@redhat.com>
8317
8318         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8319         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8320         detect uses of canonicalize_file_name.
8321
8322 2012-01-28  Bruno Haible  <bruno@clisp.org>
8323
8324         test-framework-sh: Fix test failure with AIX 7.1 diff.
8325         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8326         in column 1, like 'diff -c' does.
8327         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8328         whether 'diff -u' is used. Instead, test whether the output contains
8329         some '@' character.
8330
8331 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8332
8333         strtoimax: eliminate need for stdint.h, inttypes.h checks
8334         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8335         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8336         the prerequisites for a recently-introduced strtoimax test.
8337         I guess this might cause strtoimax to be replaced when not
8338         strictly necessary on older hosts, but this shouldn't introduce
8339         any bugs and it should make Emacs 'configure' faster on typical
8340         modern hosts.  Problem discovered when importing the latest gnulib
8341         to an Emacs test version.
8342         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8343
8344 2012-01-28  Bruno Haible  <bruno@clisp.org>
8345
8346         sys_time: Override 'struct timeval' on some native Windows platforms.
8347         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8348         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8349         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8350         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8351         needs to be overridden.
8352         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8353         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8354         * tests/test-sys_select.c: Check that the tv_sec member has the same
8355         size as a 'time_t'.
8356         * tests/test-sys_time.c: Likewise.
8357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8358         is set, set also REPLACE_GETTIMEOFDAY.
8359         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8360         convert the resulting 'struct timeval' before returning.
8361         * lib/select.c: Include <sys/time.h>.
8362         (select, timeval): Undefine at the right place.
8363         * modules/select (Depends-on): Add sys_time.
8364         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8365         some Windows platforms.
8366         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8367
8368 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8369
8370         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8371         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8372         an integer.
8373         * lib/fcntl.c (dupfd): Likewise.
8374         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8375
8376 2012-01-28  Bruno Haible  <bruno@clisp.org>
8377
8378         fcntl: Avoid compilation error on native Windows.
8379         * modules/fcntl (Depends-on): Add 'close'.
8380
8381 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8382
8383         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8384         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8385         pointer to an integer.
8386         * lib/poll.c (IsConsoleHandle): Likewise.
8387         * lib/isatty.c (IsConsoleHandle): Likewise.
8388
8389 2012-01-28  Jim Meyering  <meyering@redhat.com>
8390
8391         doc: clarify README-release
8392         * top/README-release: Clarify: you should make a point to have
8393         the latest stable versions of build tools in your PATH, and the
8394         reference to buildreq is solely for its list of tool names, not
8395         for its minimal-functional version numbers.
8396         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8397
8398         maint.mk: use more readable (yet functionally equivalent) quoting
8399         It is common to quote a single quote in a single quoted string like
8400         this:  '...'\''...'.  Unless you know the idiom, that looks like
8401         gibberish, so prefer to double-quote the string when possible.
8402         Then you can use a more readable, lone single quote: "...'..."
8403         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8404         "don't" is more readable than the equivalent 'don'\''t'.
8405         (sc_cast_of_x_alloc_return_value): Likewise.
8406         (sc_cast_of_alloca_return_value): Likewise.
8407         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8408         rather than '\'':'\''.
8409
8410 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8411
8412         stdalign: relax _Alignof and tighten _Alignas test
8413         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8414         as it was too strict: alignof must divide offsetof, but it need
8415         not equal offsetof.  Inspired by Joseph S. Myers's comment
8416         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8417         Conversely, tighten the _Alignas test a bit, as the resulting
8418         alignment must be exactly 8.
8419
8420 2012-01-27  Bruno Haible  <bruno@clisp.org>
8421
8422         stdalign: Document the last change.
8423         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8424
8425 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8426
8427         stdalign: check that alignof and offsetof are consistent
8428         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8429         Problem reported for gnulib by Richard W.M. Jones in
8430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8431
8432 2012-01-27  Jim Meyering  <meyering@redhat.com>
8433
8434         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8435         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8436         convert a sequence with gaps to the minimal containing range.
8437         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8438         * tests/test-update-copyright.sh: Test for this.
8439         The FSF confirmed it is ok to do this, assuming there is at
8440         least one significant change per year in the affected range:
8441         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8442
8443 2012-01-26  Bruno Haible  <bruno@clisp.org>
8444
8445         pipe2: refine doc about thread-safety
8446         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8447         multithread-safety problem.
8448         * doc/glibc-functions/accept4.texi: Likewise.
8449
8450 2012-01-26  Bruno Haible  <bruno@clisp.org>
8451
8452         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8453         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8454         In the test program, include <fcntl.h>, for O_RDONLY.
8455
8456 2012-01-26  Eric Blake  <eblake@redhat.com>
8457
8458         pipe2: document lack of thread-safety in replacement
8459         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8460         issue in replacement.
8461         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8462         Based on a report by Eric Wong.
8463
8464 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8465             Bruno Haible  <bruno@clisp.org>
8466
8467         malloca: Avoid warnings on x86_64 mingw64.
8468         * lib/malloca.c: Include <stdint.h>.
8469         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8470         * modules/malloca (Depends-on): Add stdint.
8471         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8472
8473 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8474
8475         obstack: remove __STDC__ conditionals
8476         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8477         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8478         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8479         m4/include_next.m4 as the only gnulib-maintained places that still
8480         refer to __STDC__.
8481
8482 2012-01-24  Bruno Haible  <bruno@clisp.org>
8483
8484         havelib: Modern quoting.
8485         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8486         the recent change to the GNU coding standards.
8487
8488 2012-01-24  Bruno Haible  <bruno@clisp.org>
8489
8490         stdint: Improve support for Android.
8491         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8492         Reported by Simon Josefsson <simon@josefsson.org>.
8493
8494 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8495
8496         doc: omit trailing empty lines from INSTALL etc.
8497         * doc/Makefile (INSTALL): Omit trailing empty lines.
8498         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8499         omit trailing empty lines.  This simplifies the build procedure.
8500
8501 2012-01-23  Jim Meyering  <meyering@redhat.com>
8502
8503         tests: avoid spurious warnings about gl_sockets_startup
8504         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8505         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8506         reporting a "statement with no effect".
8507         * tests/test-accept.c (main): Mark as "(void)".
8508         * tests/test-accept4.c (main): Likewise.
8509         * tests/test-bind.c (main): Likewise.
8510         * tests/test-connect.c (main): Likewise.
8511         * tests/test-getpeername.c (main): Likewise.
8512         * tests/test-getsockname.c (main): Likewise.
8513         * tests/test-getsockopt.c (main): Likewise.
8514         * tests/test-listen.c (main): Likewise.
8515         * tests/test-recv.c (main): Likewise.
8516         * tests/test-recvfrom.c (main): Likewise.
8517         * tests/test-send.c (main): Likewise.
8518         * tests/test-sendto.c (main): Likewise.
8519         * tests/test-setsockopt.c (main): Likewise.
8520         * tests/test-shutdown.c (main): Likewise.
8521
8522 2012-01-21  Bruno Haible  <bruno@clisp.org>
8523
8524         locale-fr.m4: Fix for Android.
8525         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8526         failure of the test program on Bionic libc.
8527
8528 2012-01-21  Jim Meyering  <meyering@redhat.com>
8529
8530         bootstrap: fail when bootstrap_post_import_hook fails
8531         Otherwise, it's far too easy to miss diagnostics emitted
8532         between gnulib-tool's output and that of running configure.
8533         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8534
8535 2012-01-17  Jim Meyering  <meyering@redhat.com>
8536
8537         maint: enable sc_trailing_blank
8538         * build-aux/pmccabe.css: Remove trailing blanks.
8539         * doc/acl-cygwin.txt: Likewise.
8540         * doc/gnu-oids.texi: Likewise
8541         * cfg.mk: Enable sc_trailing_blank.
8542         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8543
8544 2012-01-17  Jim Meyering  <meyering@redhat.com>
8545
8546         maint: enable sc_prohibit_openat_without_use
8547         * cfg.mk: Enable sc_prohibit_openat_without_use.
8548         Exempt lib/selinux-at.c.
8549
8550 2012-01-17  Jim Meyering  <meyering@redhat.com>
8551
8552         maint: enable sc_prohibit_cloexec_without_use
8553         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8554         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8555
8556 2012-01-17  Jim Meyering  <meyering@redhat.com>
8557
8558         maint: enable sc_prohibit_intprops_without_use
8559         * cfg.mk: Enable sc_prohibit_intprops_without_use
8560         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8561
8562 2012-01-17  Jim Meyering  <meyering@redhat.com>
8563
8564         maint: enable sc_prohibit_hash_pjw_without_use
8565         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8566         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8567         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8568         following " (".
8569
8570 2012-01-17  Jim Meyering  <meyering@redhat.com>
8571
8572         maint: enable double-word-prohibiting rule
8573         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8574         Exempt three files.
8575
8576 2012-01-17  Jim Meyering  <meyering@redhat.com>
8577
8578         maint: remove empty lines at EOF, but excluding modules/*
8579         Apply syntax rules at home as well as abroad.  Most changes
8580         were induced by running this:
8581           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8582             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8583             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8584         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8585         Exempt modules/* and two binary files.
8586         Also exempt doc/INSTALL*, per request from Bruno Haible.
8587         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8588         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8589         * doc/Copyright/request-assign.future: Likewise.
8590         * doc/Copyright/request-disclaim.changes: Likewise.
8591         * doc/INSTALL: Likewise.
8592         * doc/INSTALL.ISO: Likewise.
8593         * doc/INSTALL.UTF-8: Likewise.
8594         * doc/acl-cygwin.txt: Likewise.
8595         * doc/acl-resources.txt: Likewise.
8596         * doc/fdl-1.2.texi: Likewise.
8597         * doc/fdl-1.3.texi: Likewise.
8598         * doc/fdl.texi: Likewise.
8599         * lib/argp-pin.c: Likewise.
8600         * lib/round.c: Likewise.
8601         * lib/unicase/u16-totitle.c: Likewise.
8602         * lib/unictype/block_test.c: Likewise.
8603         * lib/uninorm/canonical-decomposition.c: Likewise.
8604         * m4/README: Likewise.
8605         * m4/relocatable-lib.m4: Likewise.
8606         * tests/test-isnand-nolibm.c: Likewise.
8607         * tests/test-isnand.c: Likewise.
8608         * tests/uninorm/NormalizationTest.txt: Likewise.
8609
8610 2012-01-17  Jim Meyering  <meyering@redhat.com>
8611
8612         maint: add framework to run syntax-check rules against gnulib sources
8613         * cfg.mk: New file, to disable all currently-failing tests.
8614         We'll enable them one by one, as they are made to pass.
8615         * Makefile (sc_maint): New rule.
8616
8617 2012-01-21  Bruno Haible  <bruno@clisp.org>
8618
8619         stdint: Add support for Android.
8620         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8621         include the system's <stdint.h>.
8622         Reported by Simon Josefsson <simon@josefsson.org>.
8623
8624 2012-01-19  Jim Meyering  <meyering@redhat.com>
8625
8626         bootstrap: add bootstrap_post_import_hook
8627         Bison does still need something like the gnulib_mk_hook whose
8628         invocation I had to remove along with slurp in commit 767ccd40.
8629         Technically, we could get along without it, but doing so would
8630         have required living with a warning and a mandatory post-bootstrap
8631         automake rerun.
8632         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8633         (bootstrap_post_import_hook): New function.
8634         Invoke it after gnulib-tool --import and before autoreconf.
8635
8636 2012-01-18  Jim Meyering  <meyering@redhat.com>
8637
8638         gitlog-to-changelog: don't use "no_"-prefixed variable name
8639         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8640         to enable both --cluster and --no-cluster.  Change variable name,
8641         s/\$no_cluster/$cluster/, and reverse usage to match.
8642
8643         gitlog-to-changelog: use "||", not "or" in expressions
8644         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8645         expressions.
8646
8647 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8648
8649         gitlog-to-changelog: new option --no-cluster
8650         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8651         clustering of adjacent commit messages.
8652
8653 2012-01-17  Jim Meyering  <meyering@redhat.com>
8654
8655         maint: spell file systems with two words, not one
8656         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8657         two words, not one.
8658
8659 2012-01-16  Jim Meyering  <meyering@redhat.com>
8660
8661         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8662         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8663
8664 2012-01-16  Eric Blake  <eblake@redhat.com>
8665
8666         bootstrap: cater to autoconf 2.59
8667         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8668         is not available.
8669
8670         bootstrap: properly check for libtool
8671         * build-aux/bootstrap (libtoolize): Also run libtool when older
8672         usage is detected.
8673
8674 2012-01-15  Bruno Haible  <bruno@clisp.org>
8675
8676         Improve support for MSVC 9.
8677         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8678         clashes on MSVC.
8679         * lib/fcntl.in.h: Likewise.
8680         * lib/stdlib.in.h: Likewise.
8681         * lib/sys_stat.in.h: Likewise.
8682
8683 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8684
8685         gnupload: we hold the master copy of this script now
8686         For motivation and more information, see:
8687         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8688         * build-aux/gnupload: Make it clear in the heading comments that the
8689         master copy of this file is maintained by gnulib.  Since we are at
8690         it, bump its copyright year and ...
8691         ($scriptversion): ... the date in its version.
8692         ($usage): Patches and bug reports should be sent to the gnulib list,
8693         not the automake one.
8694         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8695         anymore.
8696
8697 2012-01-15  Bruno Haible  <bruno@clisp.org>
8698
8699         Fix module 'random'.
8700         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8701         initstate, setstate are declared.
8702
8703 2012-01-14  Bruno Haible  <bruno@clisp.org>
8704
8705         Tests for module 'random'.
8706         * modules/random-tests: New file.
8707         * tests/test-random.c: New file, based on tests/test-random_r.c.
8708
8709         New module 'random'.
8710         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8711         declarations.
8712         * lib/random.c: New file, based on glibc/stdlib/random.c.
8713         * m4/random.m4: New file.
8714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8715         HAVE_RANDOM.
8716         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8717         * modules/random: New file.
8718         * config/srclist.txt: Add an entry for random.c.
8719         * doc/posix-functions/random.texi: Mention the 'random' module.
8720         * doc/posix-functions/initstate.texi: Likewise.
8721         * doc/posix-functions/setstate.texi: Likewise.
8722         * doc/posix-functions/srandom.texi: Likewise.
8723
8724 2012-01-12  Bruno Haible  <bruno@clisp.org>
8725
8726         random_r: Use common idioms.
8727         * lib/random_r.c: Include <stdlib.h> first.
8728
8729         random_r: Override incompatible API on AIX, OSF/1.
8730         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8731         Override the system function if REPLACE_RANDOM_R is 1.
8732         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8733         and OSF/1, set REPLACE_RANDOM_R.
8734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8735         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8736         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8737         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8738         * doc/glibc-functions/random_r.texi: Likewise.
8739         * doc/glibc-functions/setstate_r.texi: Likewise.
8740
8741         random_r: Support for MSVC 9.
8742         * lib/random_r.c: Include stdint.h, not inttypes.h.
8743
8744 2012-01-12  Eric Blake  <eblake@redhat.com>
8745
8746         inet_ntop: guard extra work by IF_LINT
8747         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8748         better code generation when not checking for warnings.
8749         Suggested by Paul Eggert and Jim Meyering.
8750
8751         strptime: fix regression on mingw
8752         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8753         Fix regression.  Reported by Bruno Haible.
8754
8755 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8756             Bruno Haible  <bruno@clisp.org>
8757
8758         copy-file: add error-code-returning variant.
8759         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8760         (qcopy_file_preserving): New declaration.
8761         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8762         copy_file_preserving. Change return type to 'int'. Don't emit an error
8763         message here.
8764         (copy_file_preserving): New function.
8765         * tests/test-copy-file.c: Include <stdlib.h>.
8766         (main): Test qcopy_file_preserving if the environment variable
8767         NO_STDERR_OUTPUT is set.
8768         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8769         with NO_STDERR_OUTPUT
8770         * tests/test-copy-file-2.sh: Likewise.
8771
8772 2012-01-10  Bruno Haible  <bruno@clisp.org>
8773
8774         copy-file: Use 'quote' module consistently.
8775         * lib/copy-file.c (copy_file_preserving): Use quote().
8776
8777         copy-file: Refactor.
8778         * lib/copy-file.c: Include quote.h.
8779         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8780         message here.
8781         * modules/copy-file (Depends-on): Add quote.
8782
8783         acl: Export qcopy_acl.
8784         * lib/acl.h (qcopy_acl): New declaration.
8785         * lib/copy-acl.c (qcopy_acl): Make non-static.
8786
8787         acl: Rename a local variable.
8788         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8789
8790         acl: Align return values of copy_acl and qcopy_acl.
8791         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8792         maybe < -1.
8793
8794 2012-01-11  Eric Blake  <eblake@redhat.com>
8795
8796         strptime: silence gcc warnings
8797         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8798         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8799         Reported by Daniel P. Berrange.
8800
8801         inet_ntop: silence gcc warning
8802         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8803         Reported by Daniel P. Berrange.
8804
8805 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8806
8807         getloadavg test: skip the test on GNU/Linux without /proc mounted
8808         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8809         file.  When /proc is not mounted, it always fails with ENOENT.
8810         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8811         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8812
8813 2012-01-10  Bruno Haible  <bruno@clisp.org>
8814
8815         regex: Avoid link error on MSVC 9.
8816         * modules/regex (Depends-on): Add wctype.
8817
8818 2012-01-10  Bruno Haible  <bruno@clisp.org>
8819
8820         doc: Mention --with-tests option.
8821         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8822         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8823         --with-tests.
8824         Reported by Reuben Thomas.
8825
8826 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8827
8828         users.txt: order package names lexicographically.
8829         * users.txt: Order package names lexicographically.
8830
8831 2012-01-10  Jim Meyering  <meyering@redhat.com>
8832
8833         maint.mk: fix description in comment
8834         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8835
8836         ignore-value: remove deprecated ignore_ptr function
8837         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8838         * NEWS: Note this.
8839
8840 2012-01-09  Jim Meyering  <meyering@redhat.com>
8841
8842         test-init.sh: avoid a subshell
8843         * tests/test-init.sh: Remove protective subshell.
8844         Suggested by Bernhard Voelker.  While a subshell is normally
8845         required to protect against older shells (Solaris, FreeBSD) that
8846         warn about a missing program before performing redirection, the
8847         shell-selection tests performed by init.sh probably exclude any
8848         offending shell.
8849
8850 2012-01-08  Bruno Haible  <bruno@clisp.org>
8851
8852         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8853         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8854         variable.
8855
8856 2012-01-08  Bruno Haible  <bruno@clisp.org>
8857
8858         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8859         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8860         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8861         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8862         macro.
8863         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8864         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8865         * lib/spawn_faction_addopen.c: Add workaround implementation if
8866         HAVE_WORKING_POSIX_SPAWN.
8867         * modules/spawn (Makefile): Substitute
8868         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8869         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8870         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8871         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8872         (Depends-on): Update conditions.
8873         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8874         the Solaris 11 bug.
8875
8876 2012-01-08  Bruno Haible  <bruno@clisp.org>
8877
8878         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8879         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8880         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8881         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8882         macro.
8883         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8884         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8885         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8886         HAVE_WORKING_POSIX_SPAWN.
8887         * modules/spawn (Makefile): Substitute
8888         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8889         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8890         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8891         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8892         (Depends-on): Update conditions.
8893         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8894         the Solaris 11 bug.
8895
8896 2012-01-08  Bruno Haible  <bruno@clisp.org>
8897
8898         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8899         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8901         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8902         HAVE_WORKING_POSIX_SPAWN.
8903         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8904         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8905         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8906         * lib/spawn_faction_addclose.c: Add workaround implementation if
8907         HAVE_WORKING_POSIX_SPAWN.
8908         * modules/spawn (Makefile): Substitute
8909         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8910         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8911         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8912         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8913         (Depends-on): Update conditions.
8914         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8915         the Solaris 11 bug.
8916
8917 2012-01-08  Bruno Haible  <bruno@clisp.org>
8918
8919         doc: Update for Solaris 11 2011-11.
8920         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8921         * m4/printf.m4: Update comments.
8922
8923 2012-01-08  Bruno Haible  <bruno@clisp.org>
8924
8925         mktime: Avoid compilation error on Solaris 11.
8926         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8927
8928 2012-01-08  Bruno Haible  <bruno@clisp.org>
8929
8930         doc: Small fix.
8931         * doc/posix-headers/nl_types.texi: Correct platforms list.
8932
8933 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8934
8935         Add lgpl-3.0 module.
8936         * MODULES.html.sh (Support for building documentation): Add
8937         lgpl-3.0.
8938         * modules/lgpl-3.0: New file.
8939
8940 2012-01-08  Jim Meyering  <meyering@redhat.com>
8941
8942         select.c: indent with spaces, not TABs
8943         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8944
8945 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8946
8947         quotearg: do not use grave accent for left quote
8948         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8949         locale_quoting_style.
8950         (quotearg_buffer_restyled): Fix example.
8951         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8952
8953 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8954
8955         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8956         Most programs do not have translation catalogs for English and much
8957         less separate catalogs for British and American English.  Drop the
8958         suggestion to translators about these two, and provide it
8959         automatically for Unicode locales.  Like most programs, even those
8960         using American English, we use single quotation marks.  This conflicts
8961         with the American typographic convention, but works better when you
8962         cite the entire error message within double quotes.  It also tries not
8963         to clash with established practice and with what non-gnulib programs
8964         will usually do.
8965         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8966         using an UTF-8 or GB-18030 locale.  The list of other locales with
8967         quotes was provided by Bruno Haible.
8968         (quotearg_buffer_restyled): Adjust instructions to translators.
8969         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8970         text, since this would be wrong when using Unicode.
8971         * modules/quotearg: Depend on c-strcaseeq.
8972
8973 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8974
8975         quotearg: fix Wikipedia link
8976         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8977
8978 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8979
8980         Fix for mingw with MSVC9.
8981         * m4/ld-version-script.m4: Check that compiler rejects version
8982         scripts with syntax errors.  Reported by Bruno Haible
8983         <bruno@clisp.org>.
8984
8985 2012-01-06  Bruno Haible  <bruno@clisp.org>
8986
8987         Talk about "native Windows API", not "Woe32".
8988         * lib/accept4.c: Update comments to mention native Windows.
8989         * lib/execute.c: Likewise.
8990         * lib/fatal-signal.c: Likewise.
8991         * lib/localcharset.c: Likewise.
8992         * lib/nanosleep.c: Likewise.
8993         * lib/nl_langinfo.c: Likewise.
8994         * lib/pclose.c: Likewise.
8995         * lib/pipe-filter-gi.c: Likewise.
8996         * lib/pipe-filter-ii.c: Likewise.
8997         * lib/pipe.c: Likewise.
8998         * lib/pipe2.c: Likewise.
8999         * lib/popen.c: Likewise.
9000         * lib/progreloc.c: Likewise.
9001         * lib/relocatable.c: Likewise.
9002         * lib/sigaction.c: Likewise.
9003         * lib/sigprocmask.c: Likewise.
9004         * lib/spawn-pipe.h: Likewise.
9005         * lib/spawn-pipe.c: Likewise.
9006         * lib/spawni.c: Likewise.
9007         * lib/stat-time.h: Likewise.
9008         * lib/w32spawn.h: Likewise.
9009         * tests/test-isatty.c: Likewise.
9010         * lib/config.charset: More comments.
9011         * doc/gnulib-intro.texi: Mention native Windows.
9012         * doc/posix-functions/_Exit_C99.texi: Likewise.
9013         * doc/posix-headers/fcntl.texi: Likewise.
9014
9015 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9016
9017         argp: Avoid crash if translator uses % characters in a translation.
9018         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9019         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9020
9021 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         doc: C11 and C++11 are now official
9024         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9025         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9026         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9027         * modules/stdalign:
9028         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9029
9030 2012-01-06  Bruno Haible  <bruno@clisp.org>
9031
9032         uc-is-grapheme-break tests: Tweak.
9033         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9034         message.
9035
9036 2012-01-06  Bruno Haible  <bruno@clisp.org>
9037
9038         test-init.sh: correct the test for diff -u
9039         * tests/test-init.sh: Also redirect stdout to /dev/null.
9040
9041 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9042
9043         Use ', not `, for quoting output.
9044         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9045         (print_changelog_deltas, get_tool_versions, main program):
9046         * build-aux/git-version-gen:
9047         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9048         * build-aux/move-if-change (help):
9049         * build-aux/useless-if-before-free (usage, main program):
9050         * check-module (parse_module_file, usage)
9051         (find_included_lib_files, check_module):
9052         * lib/argmatch.c (main) [TEST]:
9053         * lib/argp-help.c (_help):
9054         * lib/getopt1.c (main) [TEST]:
9055         * lib/git-merge-changelog.c (usage):
9056         * lib/xstrtol-error.c (xstrtol_error):
9057         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9058         * m4/argz.m4 (gl_FUNC_ARGZ):
9059         * m4/bison.m4 (gl_BISON):
9060         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9061         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9062         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9063         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9064         * m4/gc-random.m4 (gl_GC_RANDOM):
9065         * m4/intl.m4 (gt_CHECK_DECL):
9066         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9067         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9068         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9069         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9070         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9071         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9072         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9073         * tests/test-dirname.c (main):
9074         * tests/test-getpass.c (main):
9075         * tests/test-iconvme.c (main):
9076         * tests/test-parse-datetime.c (LOG):
9077         * tests/test-xstrtoimax.sh:
9078         * tests/test-xstrtol.sh:
9079         * tests/test-xstrtoll.sh:
9080         * tests/test-xstrtoumax.sh:
9081         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9082         * top/GNUmakefile (abort-due-to-no-makefile):
9083         Quote 'like this', not `like this', as per the recent change to
9084         the GNU coding standards.
9085
9086 2012-01-05  Bruno Haible  <bruno@clisp.org>
9087
9088         strtoimax: Don't force a replacement on systems where intmax_t is int.
9089         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9090         'intmax_t' is not larger than 'int'.
9091         Reported by Pádraig Brady <P@draigBrady.com>.
9092
9093 2012-01-05  Bruno Haible  <bruno@clisp.org>
9094
9095         doc: Mention NetBSD bugs.
9096         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9097         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9098
9099 2012-01-05  Bruno Haible  <bruno@clisp.org>
9100
9101         strtoumax tests: Enhance tests.
9102         * tests/test-strtoumax.c (main): Add tests for large values.
9103
9104 2012-01-05  Bruno Haible  <bruno@clisp.org>
9105
9106         strtoimax: Work around AIX 5.1 bug.
9107         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9108         definition.
9109         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9110         Set HAVE_STRTOIMAX.
9111         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9112         REPLACE_STRTOIMAX.
9113         * modules/inttypes-incomplete (Makefile.am): Substitute
9114         REPLACE_STRTOIMAX.
9115         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9116         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9117         (Depends-on): Update conditions.
9118         * tests/test-strtoimax.c (main): Add tests for large values.
9119         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9120
9121 2012-01-05  Bruno Haible  <bruno@clisp.org>
9122
9123         inttypes: Modernize.
9124         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9125         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9126         (Makefile.am): Update inttypes.h rule.
9127
9128 2012-01-05  Jim Meyering  <meyering@redhat.com>
9129
9130         init.sh: don't waste a subshell just to redirect stderr
9131         * tests/init.sh: In testing for diff -u and diff -c, use a
9132         stderr-redirecting exec inside `...` rather than a subshell.
9133
9134         test-init.sh: avoid failure on HP-UX 11.00
9135         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9136         resolves to diff -c or cmp.  Reported by Bruno Haible.
9137
9138 2012-01-05  Bruno Haible  <bruno@clisp.org>
9139
9140         Tests for module 'strtoull'.
9141         * modules/strtoull-tests: New file.
9142         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9143
9144 2012-01-05  Bruno Haible  <bruno@clisp.org>
9145
9146         Tests for module 'strtoll'.
9147         * modules/strtoll-tests: New file.
9148         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9149
9150 2012-01-05  Bruno Haible  <bruno@clisp.org>
9151
9152         Tests for module 'strtoul'.
9153         * modules/strtoul-tests: New file.
9154         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9155
9156 2012-01-05  Bruno Haible  <bruno@clisp.org>
9157
9158         Tests for module 'strtol'.
9159         * modules/strtol-tests: New file.
9160         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9161
9162 2012-01-04  Jim Meyering  <meyering@redhat.com>
9163
9164         test-init.sh: accommodate Solaris 5.10's different diff -u output
9165         * tests/test-init.sh: Also exempt @@ lines from the comparison
9166         of diff output, since Solaris 5.10 and GNU diff formats differ.
9167         Reported by Stefano Lattarini.
9168
9169 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9170
9171         test-posixtm: don't assume signed integer wraparound
9172         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9173         after signed integer overflow.  Inspired by (though it may not
9174         fix) Bruno Haible's bug report in
9175         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9176
9177         Spell out "Windows 9x" and "Windows XP".
9178         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9179         "Windows 9x" and "WinXP" with "Windows XP".
9180
9181 2012-01-04  Jim Meyering  <meyering@redhat.com>
9182
9183         test-vc-list-files-cvs.sh: remove obsolete comment
9184         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9185         double exit.  Now that's all encapsulated via skip_ and Exit.
9186
9187 2012-01-04  Bruno Haible  <bruno@clisp.org>
9188
9189         Talk about "native Windows API", not "Win32".
9190         * lib/classpath.c: Update comments to mention native Windows.
9191         * lib/csharpexec.c: Likewise.
9192         * lib/dup2.c: Likewise.
9193         * lib/error.c: Likewise.
9194         * lib/fcntl.c: Likewise.
9195         * lib/filename.h: Likewise.
9196         * lib/findprog.c: Likewise.
9197         * lib/get-rusage-as.c: Likewise.
9198         * lib/get-rusage-data.c: Likewise.
9199         * lib/getpagesize.c: Likewise.
9200         * lib/javaexec.c: Likewise.
9201         * lib/msvc-inval.c: Likewise.
9202         * lib/msvc-nothrow.c: Likewise.
9203         * lib/nanosleep.c: Likewise.
9204         * lib/nonblocking.c: Likewise.
9205         * lib/printf-parse.c: Likewise.
9206         * lib/setlocale.c: Likewise.
9207         * lib/sigaction.c: Likewise.
9208         * lib/strerror_r.c: Likewise.
9209         * lib/tmpdir.c: Likewise.
9210         * lib/vasnprintf.c: Likewise.
9211         * lib/w32spawn.h: Likewise.
9212         * lib/waitpid.c: Likewise.
9213         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9214         * m4/locale-ar.m4: Likewise.
9215         * m4/locale-fr.m4: Likewise.
9216         * m4/locale-ja.m4: Likewise.
9217         * m4/locale-tr.m4: Likewise.
9218         * m4/locale-zh.m4: Likewise.
9219         * m4/printf.m4: Likewise.
9220         * tests/test-cloexec.c: Likewise.
9221         * tests/test-copy-acl.sh: Likewise.
9222         * tests/test-copy-file.sh: Likewise.
9223         * tests/test-file-has-acl.sh: Likewise.
9224         * tests/test-set-mode-acl.sh: Likewise.
9225         * tests/test-dup-safer.c: Likewise.
9226         * tests/test-dup2.c: Likewise.
9227         * tests/test-dup3.c: Likewise.
9228         * tests/test-fcntl.c: Likewise.
9229         * tests/test-nonblocking-pipe.h: Likewise.
9230         * tests/test-nonblocking-socket.h: Likewise.
9231         * tests/test-pipe.c: Likewise.
9232         * tests/test-pipe2.c: Likewise.
9233         * tests/test-spawn-pipe-child.c: Likewise.
9234         * doc/acl-resources.txt: Likewise.
9235         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9236         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9237         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9238         * lib/localcharset.c: Update comments to mention native Windows.
9239         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9240         * lib/localename.c: Likewise.
9241         * lib/progreloc.c: Likewise.
9242         * lib/relocatable.c: Likewise.
9243         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9244         (windows_compute_revents): Renamed from win32_compute_revents.
9245         (windows_compute_revents_socket): Renamed from
9246         win32_compute_revents_socket.
9247         * lib/select.c: Update comments to mention native Windows.
9248         (windows_poll_handle): Renamed from win32_poll_handle.
9249         * m4/threadlib.m4: Update comments to mention native Windows.
9250         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9251         --enable-threads=windows instead of --enable-threads=win32. Set
9252         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9253         * lib/glthread/lock.h: Update comments to mention native Windows.
9254         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9255         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9256         USE_WIN32_THREADS.
9257         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9258         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9259         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9260         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9261         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9262         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9263         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9264         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9265         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9266         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9267         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9268         * tests/test-tls.c: Likewise.
9269         Rationale:
9270         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9271         on both 32-bit and 64-bit Windows systems.
9272         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9273         line of distinction is between "native Windows" on one side and Unix/
9274         POSIX systems on the other side. More details in
9275         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9276         Suggested by Paul Eggert.
9277
9278 2012-01-03  Bruno Haible  <bruno@clisp.org>
9279
9280         isatty: Support for MSVC 9.
9281         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9282         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9283         (_isatty_nothrow): New function.
9284         (isatty): Use it instead of _isatty.
9285         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9286         * lib/poll.c (IsConsoleHandle): Likewise.
9287         * lib/select.c (IsConsoleHandle): Likewise.
9288         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9289         (gl_PREREQ_ISATTY): New macro.
9290         * modules/isatty (Depends-on): Add msvc-inval.
9291         (configure.ac): Invoke gl_PREREQ_ISATTY.
9292
9293 2012-01-03  Jim Meyering  <meyering@redhat.com>
9294
9295         maint.mk: remove temporary transition aid from over 1.5 years ago
9296         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9297         purpose was to aid in the transition (avoiding silent malfunction)
9298         from that old name to the new _sc_search_regexp.  This shim was
9299         added by commit 219c504b.
9300
9301         init.sh: do not try to accommodate compare arguments starting with "-"
9302         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9303         compare arguments that start with "-".  Besides, we do not worry
9304         about this when invoking diff or cmp; why start now with sed?
9305         Using "--" to separate options from argument would trigger sed
9306         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9307         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9308
9309 2012-01-02  Bruno Haible  <bruno@clisp.org>
9310
9311         Enhance tests for module 'isatty'.
9312         * modules/isatty-tests (Depends-on): Add pipe-posix.
9313         * tests/test-isatty.c: Include <fcntl.h>.
9314         (DEV_NULL): New macro.
9315         (main): Test the resut of isatty() also on regular files, pipes, and
9316         /dev/null.
9317
9318         New module 'isatty'.
9319         * lib/unistd.in.h (isatty): New declaration.
9320         * lib/isatty.c: New file, based on an idea of
9321         Bastien Roucariès <roucaries.bastien@gmail.com>.
9322         * m4/isatty.m4: New file.
9323         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9324         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9325         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9326         REPLACE_ISATTY.
9327         * modules/isatty: New file.
9328         * doc/posix-functions/isatty.texi: Mention the new module.
9329         Suggested by Paolo Bonzini.
9330
9331 2012-01-02  Bruno Haible  <bruno@clisp.org>
9332
9333         canonicalize: Tweak 2011-12-29 commit.
9334         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9335         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9336
9337 2012-01-02  Jim Meyering  <meyering@redhat.com>
9338
9339         gitlog-to-changelog: describe input syntax in --help output
9340         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9341
9342         gitlog-to-changelog: fix typo in --help: show backslash before email @
9343         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9344         in sources, but not in actual output.
9345
9346 2011-12-30  Jim Meyering  <meyering@redhat.com>
9347
9348         gitlog-to-changelog: don't malfunction when name contains %-directive
9349         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9350         in a name string cause trouble.  E.g., with a user name of "%s",
9351         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9352
9353 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9354
9355         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9356         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9357         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9358         the "  (tiny change)" notation that is appended to the standard
9359         ChangeLog "date  name  email" header line.
9360
9361 2012-01-01  Jim Meyering  <meyering@redhat.com>
9362
9363         test-framework-sh: init.sh: fix "make dist" failure
9364         When using gnulib-tool's --with-tests option and any module that
9365         depends on test-framework-sh, "make dist" would fail due to the
9366         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9367         in the gltests directory, and not in the gllib/ directory.
9368         One way to work around that is to move the EXTRA_DIST += init.sh
9369         from the primary module to the -tests one:
9370         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9371         * modules/test-framework-sh (Makefile.am): ...not here.
9372         Reported by Tom G. Christensen in
9373         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9374
9375         version-etc: update copyright year reported by --version
9376         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9377
9378 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9379
9380         canonicalize: only stat() if required
9381         * lib/canonicalize.c (canonicalize_filename_mode):
9382         Avoid calling l?stat() when both CAN_MISSING,
9383         and CAN_NOLINKS are set, as we neither need
9384         to resolve symlinks or test component existence.
9385
9386 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9387
9388         doc: cover st_ino issues once; add OpenVMS etc.
9389         * doc/posix-functions/stat.texi (stat):
9390         * doc/posix-functions/lstat.texi (lstat):
9391         * doc/posix-functions/fstatat.texi (fstatat):
9392         * doc/posix-functions/fstat.texi (fstat):
9393         Move general 'struct stat' stuff to sys_stat.texi,
9394         leaving behind a pointer.
9395         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9396         Merge duplicate info about 'struct stat' problems into here.
9397         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9398         and suggest partial workarounds.
9399
9400         same-inode: port to OpenVMS
9401         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9402         three st_ino values.
9403
9404 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9405
9406         canonicalize: fix references to stat() and lstat()
9407         * lib/canonicalize.c (canonicalize_filename_mode):
9408         Ensure references always resolve to a replacement
9409         function if required (even via a macro).
9410
9411 2011-12-30  Jim Meyering  <meyering@redhat.com>
9412
9413         gitlog-to-changelog: remove a little duplication
9414         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9415         rather than twice.
9416
9417 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9418
9419         canonicalize: add support for not resolving symlinks
9420         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9421         indicate we don't want to follow symlinks.  Also
9422         provide CAN_MODE_MASK to aid setting these existing
9423         mutually exclusive values.
9424         * lib/canonicalize.c (canonicalize_filename_mode):
9425         Extract the flags from can_mode parameter, which
9426         are currently just used to select between stat()
9427         and lstat().  Also ensure that mutually exclusive
9428         values are flagged immediately as invalid.
9429         * tests/test-canonicalize.c: Verify symlinks are
9430         not followed, and that invalid flag combinations
9431         are diagnosed.
9432
9433 2011-12-25  Jim Meyering  <meyering@redhat.com>
9434
9435         gitlog-to-changelog: do not clump multi-paragraph entries
9436         Identical header lines (date,name,email+coauthors) are suppressed,
9437         thus putting all entries with those same characteristics under
9438         a single header.  However, when a log entry consists of two or
9439         more paragraphs, it may not be clear where it starts and ends.
9440         This change makes it so that such an entry is always separated
9441         from others by a header line, even when that header would
9442         otherwise be suppressed.
9443         * build-aux/gitlog-to-changelog: Implement the above.
9444         Inspired by a related request from Stefano Lattarini in
9445         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9446
9447 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9448
9449         announce-gen: fix `cmd' typo in diagnostic
9450         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9451         diagnostic: a missing '$' meant that the command was not output.
9452
9453 2011-12-23  Jim Meyering  <meyering@redhat.com>
9454
9455         test-framework-sh: distribute init.sh
9456         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9457         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9458         fail due to the lack of init.sh.
9459
9460         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9461         * modules/atexit-tests: Rather than listing tests/init.sh,
9462         now that there's a module for it, simply depend on that new module.
9463         * modules/closein-tests: Likewise.
9464         * modules/exclude-tests: Likewise.
9465         * modules/getcwd-tests: Likewise.
9466         * modules/perror-tests: Likewise.
9467         * modules/pread-tests: Likewise.
9468         * modules/pwrite-tests: Likewise.
9469         * modules/vc-list-files-tests: Likewise.
9470         * modules/verify-tests: Likewise.
9471         * modules/xalloc-die-tests: Likewise.
9472         * modules/xstrtoimax-tests: Likewise.
9473         * modules/xstrtol-tests: Likewise.
9474         * modules/xstrtoll-tests: Likewise.
9475         * modules/xstrtoumax-tests: Likewise.
9476         * modules/yesno-tests: Likewise.
9477
9478 2011-12-22  Jim Meyering  <meyering@redhat.com>
9479
9480         test-framework-sh: add minimal tests of init.sh's compare function
9481         * modules/test-framework-sh-tests: New file.
9482         * tests/test-init.sh: New file.
9483
9484         test-framework-sh: new module
9485         * modules/test-framework-sh: New file.
9486         * MODULES.html.sh (Support for maintaining and releasing projects):
9487         List it.
9488
9489         init.sh: do not emit simulated diff output to stderr
9490         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9491
9492 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9493
9494         .gitignore: ignore gnulib.dvi and regex.info
9495         * doc/.gitignore:add gnulib.dvi and regex.info
9496
9497 2011-12-22  Jim Meyering  <meyering@redhat.com>
9498
9499         init.sh: correct previous change
9500         * tests/init.sh (compare): My previous change was wrong.
9501         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9502
9503         init.sh: avoid unwarranted test failure when using "set -e"
9504         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9505         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9506         a use like "compare exp out" would get evoke an unconditional failure.
9507
9508 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9509
9510         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9511         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9512         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9513         autoreconf that did not.
9514         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9515         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9516
9517 2011-12-17  Jim Meyering  <meyering@redhat.com>
9518
9519         bootstrap: remove some now-unneeded code
9520         This script arose back when gnulib-tool was young.
9521         Since then, it has seen improvements that render much of this
9522         script unnecessary.  In particular, it can now make symlinks
9523         to the files it uses.  Also, I no longer see as much value in
9524         marking files as read-only via comments.
9525         If you relied on the symlink-creation feature of the preceding
9526         version of this script, you can get most of that functionality
9527         by adding the --symlink option to the definition of
9528         gnulib_tool_option_extras in your bootstrap.conf file.
9529         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9530         Run autopoint and libtoolize *before* gnulib-tool.
9531         After it, run an abbreviated autoreconf, rather than a loop around
9532         all tools.
9533         (slirp, bt_mark_as_generated): Remove functions.
9534
9535 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9536
9537         ftoastr: fix typo
9538         * lib/ftoastr.h: Fix misspelling in comment.
9539
9540 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9541
9542         * top/README-release: fix punctuation.
9543
9544 2011-12-17  Jim Meyering  <meyering@redhat.com>
9545
9546         bootstrap: correct the recent buildreq change
9547         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9548         had no effect.
9549         * build-aux/bootstrap (buildreq): Bracket each search term with
9550         "*...*", so that the shell "case" statement works as intended.
9551         Add comments.
9552
9553 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9554
9555         build: let bootstrap resort to wget when downloading .po files
9556         * build-aux/bootstrap (download_po_files): Fallback to wget when
9557         downloading the .po files via rsync fails.  This is necessary to
9558         bootstrap from behind a strict firewall.
9559
9560 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9561
9562         stdint: don't assume C++11 when compiling with g++
9563         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9565         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9566         work also in C++ before C++11, as that improperly inhibits
9567         generating a substitute stdint.h for that case.
9568
9569 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9570
9571         alloca: protect comment from gnulib-tool
9572         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9573         that gnulib-tool doesn't think it's a license, and munge it to
9574         say "GCC version 3".
9575
9576 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9577
9578         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9579         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9580         $(abs_top_builddir) instead of $(top_builddir).
9581
9582 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9583
9584         strftime-tests: also test nanoseconds
9585         * tests/test-strftime.c (T): Add a test of %N.
9586
9587 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9588
9589         inttypes, stdint: add C++11 support
9590         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9591         when including inttypes.h and stdint.h.  Support this change to
9592         the standard.
9593         * doc/posix-headers/inttypes.texi (inttypes.h):
9594         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9595         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9596         Define if not defined already, for the benefit of pre-C++11 hosts.
9597         Define the standard format macros (e.g., PRId8) always.
9598         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9599         Likewise, if __cpluspus.  Define the standard constant and limit
9600         macros (e.g., INT8_C, INT8_MAX) always.
9601         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9602         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9603         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9604         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9605         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9606         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9607         Likewise.
9608
9609 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9610
9611         nonblocking tests: Fix test failure on Linux/PPC.
9612         Suggested by Prerna Saxena in
9613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9614         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9615         Set to 1100000.
9616
9617 2011-12-12  Jim Meyering  <meyering@redhat.com>
9618
9619         argmatch: don't hard-code `' when listing valid option arguments
9620         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9621         use the quote function to add quotes.  Use fputs rather than
9622         fprintf for the format string with no format directive.
9623
9624 2011-12-07  Eric Blake  <eblake@redhat.com>
9625
9626         bootstrap: detect tools required by gnulib-tool
9627         * build-aux/bootstrap (buildreq): Provide minimum implicit
9628         dependencies.
9629         * DEPENDENCIES: Mention patch as a prereq.
9630
9631 2011-12-04  Bruno Haible  <bruno@clisp.org>
9632
9633         sethostname: Port to Windows platforms.
9634         * lib/sethostname.c: Provide an alternate implementation for Windows
9635         platforms.
9636         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9637         (main): Skip the test if sethostname() fails with EPERM. On Windows
9638         platforms, don't check the result of gethostname().
9639
9640 2011-12-04  Bruno Haible  <bruno@clisp.org>
9641             Jim Meyering  <meyering@redhat.com>
9642
9643         tests: Avoid spurious error message on platforms without mktemp program.
9644         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9645
9646 2011-12-04  Bruno Haible  <bruno@clisp.org>
9647
9648         sethostname: Fix documentation.
9649         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9650         "not fixed" section.
9651
9652 2011-12-03  Bruno Haible  <bruno@clisp.org>
9653
9654         gnulib-tool: Verify that the License field is present and non-empty.
9655         * gnulib-tool (func_get_license_raw): New function, extracted from
9656         func_get_license.
9657         (func_get_license): Use it. Warn if the module is not a test module and
9658         has no license.
9659         Suggested by Jim Meyering.
9660
9661 2011-12-03  Bruno Haible  <bruno@clisp.org>
9662
9663         sethostname tests: Fix link error on mingw.
9664         * tests/test-sethostname1.c: New file, extracted from
9665         tests/test-sethostname.c.
9666         * tests/test-sethostname2.c: New file, extracted from
9667         tests/test-sethostname.c.
9668         * tests/test-sethostname.c: Remove file.
9669         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9670         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9671         (Depends-on): Add gethostname.
9672         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9673         Link the latter with $(GETHOSTNAME_LIB).
9674
9675         sethostname tests: Fix compilation error on mingw.
9676         * tests/test-sethostname.c: Don't include <sys/types.h>.
9677         (geteuid): Use a dummy value without uid_t.
9678         * modules/sethostname-tests (Depends-on): Remove sys_types.
9679
9680         sethostname tests: Avoid a gcc warning.
9681         * tests/test-sethostname.c (main): Remove an unused variable.
9682
9683         Tweak last commit.
9684         * modules/sethostname-tests (Files): Sort by decreasing importance.
9685         (configure.ac): Check for geteuid.
9686         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9687         the test when there's nothing to test. Drop an unnecessary cast.
9688         Improve an error message. Verify that the final sethostname() call
9689         succeeds.
9690
9691 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9692
9693         Add a test suite for the sethostname module.
9694         * modules/sethostname-tests: New file.  A test program
9695         for the sethostname module.
9696         * tests/test-sethostname.c: Likewise.
9697
9698 2011-12-03  Bruno Haible  <bruno@clisp.org>
9699
9700         Tweak last commit.
9701         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9702         Fix preprocessor directives indentation. Fix typos.
9703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9704         * modules/unistd (Makefile): Likewise.
9705
9706 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9707
9708         Integrate the sethostname module into unistd.
9709         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9710         into the unistd.h header.
9711         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9712         preprocessor directives.
9713         * modules/unistd: Setup the Makefile substitutions of the
9714         SETHOSTNAME preprocessor directives.
9715
9716 2011-12-03  Bruno Haible  <bruno@clisp.org>
9717
9718         Tweak last commit.
9719         * lib/sethostname.c: Don't include <string.h>.
9720         (sethostname): No need to copy the argument string to the stack. Don't
9721         call clearerr. Preserve errno when fprintf failed.
9722         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9723         Don't invoke AC_REPLACE_FUNCS.
9724         * modules/sethostname (Link): Remove empty section.
9725         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9726         failure problem.
9727
9728 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9729
9730         New module 'sethostname'.
9731         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9732         for systems that lack it.
9733         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9734         sethostname declaration and function.
9735         * modules/sethostname: New file.  Define the sethostname module.
9736
9737 2011-12-03  Bruno Haible  <bruno@clisp.org>
9738
9739         Tweak last commit.
9740         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9741
9742 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9743
9744         Split the HOST_NAME_MAX detection into a separate m4 macro.
9745         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9746         macro so it can be used by the pending sethostname module.
9747
9748 2011-12-03  Bruno Haible  <bruno@clisp.org>
9749
9750         Fix module descriptions syntax.
9751         * modules/argv-iter (License): Fix syntax.
9752         * modules/di-set (License): Likewise.
9753         * modules/ino-map (License): Likewise.
9754         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9755
9756 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9757
9758         stdalign: port to Clang 3.0
9759         Problem reported by Simon Josefsson in
9760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9761         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9762         which has <stdalign.h> but which does not define alignof.
9763         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9764
9765 2011-12-01  Eric Blake  <eblake@redhat.com>
9766
9767         mktempd: silence dd usage
9768         * build-aux/mktempd (rand_bytes): Silence dd.
9769
9770 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9771
9772         manywarnings: Don't mention gcc version in docstring.
9773         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9774         Jim Meyering <meyering@redhat.com>.
9775
9776 2011-11-30  Jim Meyering  <meyering@redhat.com>
9777
9778         hash: mark a few floating point constants with "f" suffix
9779         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9780         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9781         floating point constants with "f", since they're destined to be
9782         saved/used as "float"s.
9783
9784 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9785
9786         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9787         * tests/test-float.c (test_long_double): Correct and re-enable the
9788         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9789
9790 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9791
9792         Avoid subtracting two pointers that don't point into the same block.
9793         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9794         only pointers into the same memory block are subtracted. We cannot
9795         assume that sizeof (ptrdiff_t) == sizeof (void *).
9796
9797 2011-11-29  Eric Blake  <eblake@redhat.com>
9798
9799         maint.mk: add syntax check for use of compare from init.sh
9800         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9801         moved here from coreutils.
9802
9803         manywarnings: drop -Wunsuffixed-float-constants
9804         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9805         '1.0D', which is the only way to silence this warning for 'double'.
9806
9807 2011-11-29  Jim Meyering  <meyering@redhat.com>
9808
9809         hash: mark compute_bucket_size with the pure attribute
9810         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9811
9812         quotearg, propername: correct pragma guard expression
9813         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9814         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9815
9816 2011-11-28  Jim Meyering  <meyering@redhat.com>
9817
9818         propername: do not mark proper_name with the const attribute
9819         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9820         since it examines data pointed to by its parameter.
9821         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9822         the suggestion from -Wsuggest-attribute=const.
9823
9824         propername: mark one more function as const
9825         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9826
9827 2011-11-27  Jim Meyering  <meyering@redhat.com>
9828
9829         mark functions with const and pure attributes
9830
9831         Mark functions per suggestions from gcc-4.6 when using these options:
9832         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9833         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9834         Follow these guidelines: when possible, apply the attribute to
9835         an extern declaration, not to its definition.  Apply it to the
9836         definition only when the definition is static.
9837         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9838         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9839         * lib/base64.h (isbase64): Likewise.
9840         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9841         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9842         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9843         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9844         (c_tolower, c_toupper): Likewise.
9845         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9846         * lib/chdir-long.c (find_non_slash): Likewise.
9847         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9848         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9849         * lib/file-type.h (file_type): Likewise.
9850         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9851         * lib/filevercmp.c (verrevcmp): Likewise.
9852         * lib/freadahead.h (freadahead): Likewise.
9853         * lib/fts.c (fts_maxarglen): Likewise.
9854         * lib/hash-pjw.h (hash_pjw): Likewise.
9855         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9856         * lib/hash.c (is_prime, next_prime): Likewise.
9857         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9858         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9859         (hash_table_ok, hash_get_first, hash_string): Likewise.
9860         (compute_bucket_size): Likewise.
9861         * lib/i-ring.h (i_ring_empty): Likewise.
9862         * lib/isnan.c (isnanl): Likewise.
9863         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9864         * lib/memcasecmp.h (memcasecmp): Likewise.
9865         * lib/memchr2.h (memchr2): Likewise.
9866         * lib/memcmp2.h (memcmp2): Likewise.
9867         * lib/parse-datetime.y (lookup_zone): Likewise.
9868         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9869         [!WINDOWS_SOCKETS]: Likewise.
9870         * lib/strnlen1.h (strnlen1): Likewise.
9871         * lib/uniwidth.in.h (uc_width): Likewise.
9872         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9873         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9874         (quoting_options_from_style): Add a comment.
9875         * lib/propername.h (proper_name): Add a comment.
9876
9877 2011-11-27  Bruno Haible  <bruno@clisp.org>
9878
9879         Remove unused macros from !_LIBC code in glibc-borrowed files.
9880         * lib/fnmatch.c (STRCOLL): Remove macro.
9881         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9882         * lib/glob.c (__stat, __readdir64): Remove macros.
9883         * lib/tempname.c (__open64, __xstat64): Remove macros.
9884         Suggested by Paul Eggert.
9885
9886 2011-11-27  Bruno Haible  <bruno@clisp.org>
9887
9888         getcwd: Fix link error on MSVC 9.
9889         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9890
9891 2011-11-27  Bruno Haible  <bruno@clisp.org>
9892
9893         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9894         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9895         HAVE_OPENDIR is 0.
9896         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9897         HAVE_CLOSEDIR is 0.
9898         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9899         is 0.
9900         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9901
9902 2011-11-27  Bruno Haible  <bruno@clisp.org>
9903
9904         getcwd: Fix bug from 2011-08-17.
9905         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9906         platforms that need it.
9907         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9908         code of 4 to be a failure, not a success. This ensures that
9909         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9910
9911 2011-11-27  Bruno Haible  <bruno@clisp.org>
9912
9913         binary-io tests: Avoid test failure on mingw when libtool is used.
9914         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9915         Don't verify the size of t-bin-out1.tmp here.
9916         * tests/test-binary-io.sh: Verify it here.
9917         Reported by Simon Josefsson.
9918
9919 2011-11-26  Bruno Haible  <bruno@clisp.org>
9920
9921         Fix conflict between two instantiations of module 'unistd'.
9922         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9923         ${include_guard_prefix} also in the autoconf snippet.
9924         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9926         GNULIB_UNISTD_H_GETOPT.
9927         * modules/getopt-posix (configure.ac): Set the
9928         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9929         * modules/getopt-gnu (configure.ac): Likewise.
9930         * modules/unistd (Makefile.am): Change the substitution value of
9931         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9932         Reported by Simon Josefsson.
9933
9934 2011-11-25  Bruno Haible  <bruno@clisp.org>
9935
9936         pagealign_alloc: Doc and comments.
9937         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9938         module.
9939         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9940
9941 2011-11-25  Jim Meyering  <meyering@redhat.com>
9942
9943         test-update-copyright.sh: avoid false-positive failure
9944         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9945         around false positive failure on Cygwin/Windows.  The latter was
9946         matching erroneously-created files with names like
9947         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9948
9949 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9950
9951         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9952         * m4/valgrind-tests.m4: Check that the parameters that will be
9953         used works, not just a subset of them.  Reported by Bruno Haible
9954         <bruno@clisp.org>.
9955
9956 2011-11-24  Jim Meyering  <meyering@redhat.com>
9957
9958         test-stdalign.c: comment out long double tests
9959         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9960         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9961         error: '_Alignas' specifiers cannot reduce alignment of \
9962         'static_longdouble_alignas'.
9963
9964 2011-11-22  Jim Meyering  <meyering@redhat.com>
9965
9966         init.sh: make "compare /dev/null FILE" output more readable
9967         * tests/init.sh (compare_): Document the preferred order of arguments.
9968         (emit_diff_u_header_): New function.
9969         (compare_dev_null_): Emit a simulated diff, rather than just the
9970         contents of the unexpected file.  Suggestion from Bruno Haible.
9971
9972 2011-11-21  Jim Meyering  <meyering@redhat.com>
9973             Eric Blake  <eblake@redhat.com>
9974
9975         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9976         * tests/init.sh: Make our compare function slightly more portable.
9977         Reported by Bruno Haible in
9978         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9979
9980 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9981
9982         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9983         before using it, in code that ends up in config.h.
9984
9985 2011-11-20  Bruno Haible  <bruno@clisp.org>
9986
9987         getcwd: Work around getcwd bug on AIX 5..7.
9988         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9989         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9990         Use a different value for gl_cv_func_getcwd_path_max. Move the
9991         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9992         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9993         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9994         Define HAVE_MINIMALLY_WORKING_GETCWD.
9995         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9996         where it is not even minimally working, that is, on AIX.
9997         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9998         m4/getcwd-path-max.m4.
9999         (main): Update exit code computation.
10000         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10001         getcwd does not handle long file names.
10002
10003 2011-11-20  Bruno Haible  <bruno@clisp.org>
10004
10005         getcwd: Fix bug from 2009-09-10.
10006         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10007         like "no".
10008
10009 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10010
10011         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10012
10013 2011-11-20  Bruno Haible  <bruno@clisp.org>
10014
10015         fma tests: Avoid shadowing local variables.
10016         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10017         expected.
10018
10019 2011-11-20  Bruno Haible  <bruno@clisp.org>
10020
10021         copysignf tests: Fix.
10022         * tests/test-copysignf.c: Fix signature check.
10023
10024 2011-11-20  Bruno Haible  <bruno@clisp.org>
10025
10026         fma: Remove unused code.
10027         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10028         unused macros.
10029
10030 2011-11-20  Bruno Haible  <bruno@clisp.org>
10031
10032         sethostname: Fix doc about AIX.
10033         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10034         sethostname; it has it.
10035
10036         sethostname: Mention more portability problems.
10037         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10038         problem.
10039         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10040
10041 2011-11-19  Bruno Haible  <bruno@clisp.org>
10042
10043         Depend on module fcntl-h when AT_FDCWD is used.
10044         * modules/utimens (Depends-on): Add fcntl-h.
10045         * modules/areadlinkat (Depends-on): Likewise.
10046         * modules/areadlinkat-with-size (Depends-on): Likewise.
10047         * modules/faccessat (Depends-on): Likewise.
10048         * modules/fchmodat (Depends-on): Likewise.
10049         * modules/fchownat (Depends-on): Likewise.
10050         * modules/getcwd (Depends-on): Likewise.
10051         * modules/mkdirat (Depends-on): Likewise.
10052         * modules/mkfifoat (Depends-on): Likewise.
10053         * modules/readlinkat (Depends-on): Likewise.
10054         * modules/symlinkat (Depends-on): Likewise.
10055         * modules/dup2-tests (Depends-on): Likewise.
10056         * modules/fdutimensat-tests (Depends-on): Likewise.
10057         * modules/futimens-tests (Depends-on): Likewise.
10058
10059 2011-11-19  Bruno Haible  <bruno@clisp.org>
10060
10061         euidaccess: Update a comment.
10062         * lib/euidaccess.c: Update comment about platforms with faccessat.
10063
10064 2011-11-19  Bruno Haible  <bruno@clisp.org>
10065
10066         openat: Fix file list.
10067         * modules/openat (Files): Remove lib/at-func.c.
10068
10069 2011-11-19  Bruno Haible  <bruno@clisp.org>
10070
10071         fstatat: Simplify.
10072         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10073         gnulib should define rpl_fstatat, there is a
10074         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10075
10076 2011-11-19  Bruno Haible  <bruno@clisp.org>
10077
10078         Ensure 'inline' can be used in tests/test-utimens-common.h.
10079         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10080         * modules/futimens-tests (configure.ac): Likewise.
10081         * modules/utimens-tests (configure.ac): Likewise.
10082         * modules/utimensat-tests (configure.ac): Likewise.
10083
10084 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10085
10086         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10087         not hash_insert0.
10088         (hash_insert_if_absent): Doc fix.
10089
10090 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10091
10092         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10093
10094 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10095
10096         test-getcwd: disambiguate exit status
10097         * tests/test-getcwd.c (test_long_name): Return 0..7.
10098         (main): Exit with an unambiguous exit status.  The old
10099         code yielded a mysterious mixture of two failure codes.
10100
10101         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10102         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10103         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10104         rpl_fstatat or fstatat.  This should fix the other problem
10105         reported by Kai Habel in
10106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10107         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10109         and I reproduced it on a Solaris 8 host we still have in production.
10110
10111 2011-11-18  Jim Meyering  <meyering@redhat.com>
10112
10113         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10114         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10115         Add a sentence to the comment.
10116         (hash_insert0): New function that simply calls hash_insert_if_absent.
10117         * lib/hash.h (hash_insert_if_absent): Declare it.
10118         (hash_insert0): Add deprecation attribute.
10119         (_GL_ATTRIBUTE_DEPRECATED): Define.
10120         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10121         not hash_insert0.
10122         * NEWS: Mention it, even though it's not really an incompatible change.
10123
10124 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10125
10126         openat: avoid compilation failure due to lack of <errno.h> inclusion
10127         * lib/openat.c: Include <errno.h>.
10128
10129 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10130
10131         * modules/getcwd (Depends-on): Add fdopendir.
10132         This fixes one of the two problems reported by Kai Habel in
10133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10134
10135         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10136         stdalign problem reported by Ian Beckwith in
10137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10138         * modules/crypto/gc-arcfour (Depends-on):
10139         Depend conditionally on crypto/arcfour.
10140         * modules/crypto/gc-arctwo (Depends-on):
10141         Depend conditionally on crypto/arctwo.
10142         * modules/crypto/gc-des (Depends-on):
10143         Depend conditionally on crypto/des.
10144         * modules/crypto/gc-hmac-md5 (Depends-on):
10145         Depend conditionally on crypto/hmac-md5.
10146         * modules/crypto/gc-hmac-sha1 (Depends-on):
10147         Depend conditionally on crypto/hmac-sha1.
10148         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10149         * modules/crypto/gc-md4 (Depends-on):
10150         Depend conditionally on crypto/md4.
10151         * modules/crypto/gc-md5 (Depends-on):
10152         Depend conditionally on crypto/md5.
10153         * modules/crypto/gc-rijndael (Depends-on):
10154         Depend conditionally on crypto/rijndael.
10155         * modules/crypto/gc-sha1 (Depends-on):
10156         Depend conditionally on crypto/sha1.
10157         * modules/crypto/gc-arcfour:
10158         * modules/crypto/gc-arctwo:
10159         * modules/crypto/gc-des:
10160         * modules/crypto/gc-hmac-md5:
10161         * modules/crypto/gc-hmac-sha1:
10162         * modules/crypto/gc-md2:
10163         * modules/crypto/gc-md4:
10164         * modules/crypto/gc-md5:
10165         * modules/crypto/gc-rijndael:
10166         * modules/crypto/gc-sha1:
10167         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10168         now that the conditional dependencies do the work for us.
10169
10170 2011-11-17  Jim Meyering  <meyering@redhat.com>
10171
10172         tests: factor st_ctime-comparison out of two headers
10173         * tests/test-utimens-common.h (ctime_compare): Define.
10174         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10175         * tests/test-lutimens.h (test_lutimens): Likewise.
10176         * tests/test-utimens.h (test_utimens): Likewise.
10177
10178         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10179         Invoke the test program via an init.sh-using wrapper.
10180         * tests/test-getcwd.sh: New file.
10181         * modules/getcwd-tests (Files): Add it.
10182         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10183
10184 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10185
10186         gitlog-to-changelog: support multi-author commits.
10187         The FSF cares about keeping track of all authors of patches to its
10188         projects, but Git doesn't provide obvious support for multi-author
10189         changesets. Consensus seems to be forming around the use of extra
10190         Signed-off-by inspired lines in the log message formatted as
10191         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10192         multi-author commits between version control systems.
10193         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10194         log message and output in standard ChangeLog multi-author format.
10195         Reported by Peter Rosin <peda@lysator.liu.se>
10196
10197 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10198             Bruno Haible  <bruno@clisp.org>
10199
10200         Fix some modules' file list.
10201         * modules/fstatat (Files): Add m4/lstat.m4.
10202         * modules/openat (Files): Likewise.
10203         * modules/unlinkat (Files): Likewise.
10204
10205 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10206
10207         maint.mk: fix tight-scope.mk generation in VPATH builds.
10208         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10209         reference with $(srcdir) so that the file is found correctly even
10210         when running `make syntax-check' in a VPATH build.
10211
10212 2011-11-13  Bruno Haible  <bruno@clisp.org>
10213             Jim Meyering  <meyering@redhat.com>
10214
10215         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10216         * tests/init.sh (compare): Remove "No differences encountered" or
10217         synonymous output from the 'diff' program.
10218
10219 2011-11-13  Bruno Haible  <bruno@clisp.org>
10220
10221         Makefile: Tweak indentation.
10222         * Makefile: Use tab as first character in every line that contains rule
10223         commands.
10224
10225 2011-11-13  Bruno Haible  <bruno@clisp.org>
10226
10227         Syntax check for copyright statements.
10228         * check-copyright: New file.
10229         * Makefile (sc_check_copyright): New rule.
10230
10231 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10232
10233         * build-aux/git-version-gen: Add --prefix to configure the tag
10234         match string.
10235
10236 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10237
10238         * build-aux/git-version-gen: Add --help and --version.
10239
10240 2011-11-12  Jim Meyering  <meyering@redhat.com>
10241
10242         revamp the other test-exclude?.sh scripts to use init.sh, too
10243         * tests/test-exclude1.sh: Use init.sh.
10244         * tests/test-exclude2.sh: Likewise.
10245         * tests/test-exclude3.sh: Likewise.
10246         * tests/test-exclude4.sh: Likewise.
10247         * tests/test-exclude5.sh: Likewise.
10248         * tests/test-exclude6.sh: Likewise.
10249         * tests/test-exclude7.sh: Likewise.
10250         * tests/test-exclude8.sh: Likewise.
10251         * modules/exclude-tests (Files): List init.sh.
10252
10253         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10254         These shell scripts ignored failure of the binary test-exclude,
10255         so making the latter return 77 didn't cause them to be skipped.
10256         * tests/test-exclude5.sh: Exit with test-exclude's error status
10257         when that program fails.  Revamp to use init.sh.
10258         * tests/test-exclude2.sh: Likewise.
10259
10260         test-exclude: fix a typo
10261         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10262
10263 2011-11-11  Bruno Haible  <bruno@clisp.org>
10264
10265         obstack: Fix compilation error on MSVC 9.
10266         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10267
10268 2011-11-11  Jim Meyering  <meyering@redhat.com>
10269
10270         test-exclude: skip tests rather than failing on deficient systems
10271         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10272         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10273         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10274         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10275
10276 2011-11-10  Bruno Haible  <bruno@clisp.org>
10277
10278         ptsname_r test: Avoid gcc warning on glibc systems.
10279         * tests/test-ptsname_r.c (null_ptr): New function.
10280         (test_errors): Use it.
10281
10282 2011-11-10  Bruno Haible  <bruno@clisp.org>
10283
10284         ptsname_r: Avoid compilation error on OSF/1 5.1.
10285         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10287         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10288         function is not declared or incompatibly declared.
10289         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10290         * modules/ptsname_r (Depends-on, configure.ac): Update.
10291         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10292
10293 2011-11-10  Bruno Haible  <bruno@clisp.org>
10294
10295         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10296         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10297         When cross-compiling, guess yes on all platforms except AIX.
10298         Reported by Ludovic Courtès <ludo@gnu.org>.
10299
10300 2011-11-09  Bruno Haible  <bruno@clisp.org>
10301
10302         ptsname_r tests: Fix bugs.
10303         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10304         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10305
10306 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10307
10308         fstatat: work with cross-compilation
10309         Problem reported by Ludovic Courtès in
10310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10311         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10312         "cross-compiling" and assume the bug is present.  Replace
10313         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10314         an inverted sense, to be more conservative about our assumptions.
10315         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10316
10317 2011-11-09  Bruno Haible  <bruno@clisp.org>
10318
10319         Improve MODULES.html output.
10320         * modules/mkfifoat (Description): Use the word "function".
10321         * modules/readlinkat (Description): Likewise.
10322         * modules/symlinkat (Description): Likewise.
10323
10324 2011-11-09  Eric Blake  <eblake@redhat.com>
10325
10326         ptsname_r-tests: new test module
10327         * modules/ptsname_r-tests: New module.
10328         * tests/test-ptsname_r.c: New file.
10329
10330         ptsname_r: new module
10331         * modules/ptsname_r: New module.
10332         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10333         * lib/ptsname.c (__ptsname_r): Split...
10334         * lib/ptsname_r.c: ...into new file.
10335         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10336         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10337         * modules/stdlib (Makefile.am): Substitute witnesses.
10338         * lib/stdlib.in.h (ptsname_r): Declare it.
10339         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10340         * MODULES.html.sh (Misc): Likewise.
10341         * modules/ptsname (Depends-on): Alter dependency.
10342         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10343
10344 2011-11-09  Jim Meyering  <meyering@redhat.com>
10345
10346         announce-gen: be more concise when there's only one URL+tarball
10347         * build-aux/announce-gen (get_tool_versions): When you distribute
10348         only one type of tarball, combine the first two "Here are..."
10349         sections and make the key-checking grammar independent of
10350         how many tarballs there are.
10351
10352 2011-11-09  Eric Blake  <eblake@redhat.com>
10353
10354         openpty: provide a stub on mingw
10355         * lib/pty.in.h (includes): Provide forward declarations.
10356         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10357
10358         raise: fix mingw handling of SIGPIPE
10359         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10360
10361 2011-11-08  Bruno Haible  <bruno@clisp.org>
10362
10363         More conditional dependencies.
10364         * modules/faccessat (Depends-on): Add conditions.
10365         * modules/fchmodat (Depends-on): Likewise.
10366         * modules/fchownat (Depends-on): Likewise.
10367         * modules/fstatat (Depends-on): Likewise.
10368         * modules/mkfifoat (Depends-on): Likewise.
10369         * modules/readlinkat (Depends-on): Likewise.
10370         * modules/symlinkat (Depends-on): Likewise.
10371         * modules/unlinkat (Depends-on): Likewise.
10372         * modules/utimensat (Depends-on): Likewise.
10373         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10374         * modules/linkat (Depends-on): Refine the conditions.
10375         * modules/renameat (Depends-on): Likewise.
10376
10377 2011-11-08  Bruno Haible  <bruno@clisp.org>
10378
10379         faccessat: Move AC_LIBOBJ invocation to module description.
10380         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10381         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10382         invocation from here...
10383         * modules/faccessat (configure.ac): ... to here. Invoke
10384         gl_PREREQ_FACCESSAT.
10385
10386 2011-11-08  Bruno Haible  <bruno@clisp.org>
10387
10388         faccessat: Simplify autoconf macro.
10389         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10390         gl_FUNC_EUIDACCESS.
10391
10392 2011-11-08  Bruno Haible  <bruno@clisp.org>
10393
10394         renameat: Fix dependencies.
10395         * modules/renameat (Depends-on): Add stdbool.
10396
10397 2011-11-08  Bruno Haible  <bruno@clisp.org>
10398
10399         mkfifoat: Fix module description.
10400         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10401         not gl_UNISTD_MODULE_INDICATOR.
10402
10403 2011-11-08  Bruno Haible  <bruno@clisp.org>
10404
10405         fstatat: Remove unused dependency.
10406         * modules/fstatat (Depends-on): Remove fstat.
10407
10408 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10409
10410         GNUmakefile: behave when Makefile is missing.
10411         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10412
10413 2011-11-08  Bruno Haible  <bruno@clisp.org>
10414
10415         openat: Conditionalize dependencies.
10416         * lib/openat.c: Reduce the scope of some #includes.
10417         * modules/openat (Depends-on): Add conditions.
10418
10419 2011-11-07  Jim Meyering  <meyering@redhat.com>
10420
10421         maint.mk: extract GPG key ID without using a temporary file
10422         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10423         without using a temporary file.  Based on a suggestion from Werner Koch
10424         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10425
10426 2011-11-07  Eric Blake  <eblake@redhat.com>
10427
10428         grantpt: fix typo
10429         * lib/stdlib.in.h (grantpt): Check correct function.
10430
10431         maint.mk: silence new syntax check
10432         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10433
10434 2011-11-06  Bruno Haible  <bruno@clisp.org>
10435
10436         Doc about floating-point and math API.
10437         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10438         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10439
10440 2011-11-06  Bruno Haible  <bruno@clisp.org>
10441
10442         stdalign tests: Skip the test when compiled by Sun C.
10443         * tests/test-stdalign.c (main): Skip the test on Sun C.
10444
10445 2011-11-06  Bruno Haible  <bruno@clisp.org>
10446
10447         ansi-c++-opt: Complete the 2011-06-05 change.
10448         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10449         does not support namespaces, set the variable to "no", not to ":".
10450
10451 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10452
10453         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10454
10455 2011-11-06  Bruno Haible  <bruno@clisp.org>
10456
10457         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10458         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10459         (minus_zerol) [HP-UX]: New macro.
10460         (unary_minus) [HP-UX]: New function.
10461         (copysignl) [HP-UX]: Use unary_minus function.
10462
10463 2011-11-06  Bruno Haible  <bruno@clisp.org>
10464
10465         ldexp, ldexpf, ldexpl: Enhance tests.
10466         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10467         and tests/test-ldexpl.c.
10468         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10469         LDEXP, MIN_EXP, MAX_EXP): New macros.
10470         Include test-ldexp.h.
10471         (main): Just call test_function.
10472         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10473         infinity.h, nan.h.
10474         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10475         MAX_EXP): New macros.
10476         Include test-ldexp.h.
10477         (x, y): Remove variables.
10478         (main): Just call test_function.
10479         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10480         infinity.h, nan.h.
10481         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10482         MAX_EXP): New macros.
10483         Include test-ldexp.h.
10484         (x, y): Remove variables.
10485         (main): Just call test_function.
10486         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10487         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10488         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10489         (Depends-on): Add isnand-nolibm, signbit, float.
10490         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10491         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10492         (Depends-on): Add isnanf-nolibm, signbit, float.
10493
10494 2011-11-06  Bruno Haible  <bruno@clisp.org>
10495
10496         math tests: Cosmetics.
10497         * tests/test-math-c++.cc: Reorder declarations.
10498
10499 2011-11-05  Bruno Haible  <bruno@clisp.org>
10500
10501         fma*: Simplify test.
10502         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10503         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10504
10505         Tests for module 'fmal'.
10506         * modules/fmal-tests: New file.
10507         * tests/test-fmal1.c: New file.
10508         * tests/test-fmal2.c: New file.
10509
10510         New module 'fmal'.
10511         * lib/math.in.h (fmal): New declaration.
10512         * lib/fmal.c: New file.
10513         * m4/fmal.m4: New file.
10514         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10516         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10517         REPLACE_FMAL.
10518         * modules/fmal: New file.
10519         * doc/posix-functions/fmal.texi: Mention the new module and the various
10520         bugs.
10521
10522         Tests for module 'fmaf'.
10523         * modules/fmaf-tests: New file.
10524         * tests/test-fmaf1.c: New file.
10525         * tests/test-fmaf2.c: New file.
10526
10527         New module 'fmaf'.
10528         * lib/math.in.h (fmaf): New declaration.
10529         * lib/fmaf.c: New file.
10530         * m4/fmaf.m4: New file.
10531         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10533         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10534         REPLACE_FMAF.
10535         * modules/fmaf: New file.
10536         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10537         bugs.
10538
10539         Tests for module 'fma'.
10540         * modules/fma-tests: New file.
10541         * tests/test-fma1.c: New file.
10542         * tests/test-fma1.h: New file.
10543         * tests/test-fma2.c: New file.
10544         * tests/test-fma2.h: New file.
10545
10546         New module 'fma'.
10547         * lib/math.in.h (fma): New declaration.
10548         * lib/fma.c: New file.
10549         * m4/fma.m4: New file.
10550         * m4/fegetround.m4: New file.
10551         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10553         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10554         REPLACE_FMA.
10555         * modules/fma: New file.
10556         * doc/posix-functions/fma.texi: Mention the new module and the various
10557         bugs.
10558
10559         Extend gl_MATHFUNC.
10560         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10561         Support 'void' as argument type.
10562         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10563
10564 2011-11-05  Jim Meyering  <meyering@redhat.com>
10565
10566         maint.mk: also prohibit inclusion of dirent.h without use
10567         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10568
10569 2011-11-05  Bruno Haible  <bruno@clisp.org>
10570
10571         ldexpl tests: Avoid test failure on MSVC 9.
10572         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10573         value. Needed in order to enforce the conversion from a value greater
10574         than LDBL_MAX to Infinity.
10575
10576 2011-11-05  Bruno Haible  <bruno@clisp.org>
10577
10578         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10579         * modules/at-internal: New file, extracted from modules/openat.
10580         * modules/openat-h: New file.
10581         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10582         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10583         * modules/openat (Description): Add reference to POSIX function.
10584         (Files): Remove lib/openat.h, lib/openat-proc.c.
10585         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10586         intprops, unistd.
10587         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10588         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10589         gl_FCNTL_MODULE_INDICATOR.
10590         (Include): Remove unistd.h, openat.h.
10591         * modules/areadlinkat (Files): Add lib/at-func.c.
10592         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10593         openat-die, openat-h, save-cwd.
10594         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10595         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10596         openat-die, openat-h, save-cwd, unistd.
10597         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10598         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10599         openat-h, save-cwd. Remove fcntl-h, openat.
10600         * modules/fchmodat (Files): Remove lib/openat.h.
10601         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10602         openat, stdbool, unistd.
10603         * modules/fchownat (Files): Remove lib/openat.h.
10604         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10605         openat, stdbool, sys_stat.
10606         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10607         lib/openat-proc.c.
10608         (Depends-on): Add at-internal.
10609         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10610         * modules/fstatat (Files): Remove lib/openat.h.
10611         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10612         stdbool, unistd.
10613         * modules/fts (Depends-on): Add openat-h.
10614         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10615         openat.
10616         * modules/mkdirat (Files): Remove lib/openat.h.
10617         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10618         openat, stdbool, sys_stat.
10619         * modules/mkfifoat (Files): Add lib/at-func.c.
10620         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10621         openat-h, save-cwd. Remove fcntl-h, openat.
10622         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10623         * modules/readlinkat (Files): Add lib/at-func.c.
10624         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10625         openat-h, save-cwd. Remove fcntl-h, openat.
10626         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10627         openat.
10628         * modules/selinux-at (Files): Add lib/at-func.c.
10629         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10630         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10631         * modules/symlinkat (Files): Add lib/at-func.c.
10632         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10633         openat-h, save-cwd. Remove fcntl-h, openat.
10634         * modules/unlinkat (Files): Remove lib/openat.h.
10635         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10636         stdbool.
10637         * modules/utimensat (Files): Add lib/at-func.c.
10638         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10639         openat-die, openat-h, save-cwd.
10640         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10641         * modules/fdutimensat-tests (Depends-on): Add openat.
10642         * modules/fstatat-tests (Depends-on): Add openat-h.
10643         * modules/readlinkat-tests (Depends-on): Add openat.
10644         * modules/symlinkat-tests (Depends-on): Add openat.
10645
10646 2011-11-05  Bruno Haible  <bruno@clisp.org>
10647
10648         openat: Include <stdbool.h>.
10649         * lib/openat.c: Include <stdbool.h>.
10650
10651 2011-11-04  Bruno Haible  <bruno@clisp.org>
10652
10653         fchownat, renameat, unlinkat: Fix dependencies.
10654         * modules/fchownat (Depends-on): Add fstatat.
10655         * modules/renameat (Depends-on): Likewise.
10656         * modules/unlinkat (Depends-on): Likewise.
10657
10658 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         openat: remove direct dependency on dirent
10661         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10662         and hasn't been needed ever since fdopendir was split into its own
10663         module on 2009-08-31.
10664         * modules/openat (Depends-on): Remove dirent.
10665
10666 2011-11-04  Bruno Haible  <bruno@clisp.org>
10667
10668         renameat: Optimize code size.
10669         * modules/renameat (configure.ac): Don't compile at-func2.c if
10670         REPLACE_RENAMEAT is 1.
10671
10672 2011-11-04  Bruno Haible  <bruno@clisp.org>
10673
10674         openat tests: Fix file list.
10675         * modules/openat-tests (Files): Add tests/test-open.h.
10676
10677 2011-11-04  Bruno Haible  <bruno@clisp.org>
10678
10679         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10680         * modules/fchmodat (Depends-on): Add openat-die.
10681         * modules/fchownat (Depends-on): Likewise.
10682         * modules/linkat (Depends-on): Likewise.
10683         * modules/renameat (Depends-on): Likewise.
10684         * modules/openat (Depends-on): Add dirent.
10685
10686 2011-11-04  Jim Meyering  <meyering@redhat.com>
10687
10688         at-func*.c: fix comments
10689         * lib/at-func2.c: Correct/improve first-line comment.
10690         * lib/at-func.c: Correct grammar in first-line comment.
10691
10692 2011-11-04  Bruno Haible  <bruno@clisp.org>
10693
10694         New module 'mkdirat', split off from module 'openat'.
10695         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10696         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10697         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10698         * modules/mkdirat: New file, extracted from modules/openat.
10699         * modules/openat (Files): Remove lib/mkdirat.c.
10700         (Depends-on): Remove mkdir.
10701         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10702         (Include): Remove <sys/stat.h>.
10703         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10704         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10705         tests/test-mkdir.h.
10706         (Depends-on): Remove ignore-value.
10707         (Makefile.am): Remove rules for test-mkdirat.
10708         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10709         of module 'openat'.
10710         * NEWS: Mention the change.
10711
10712 2011-11-04  Bruno Haible  <bruno@clisp.org>
10713
10714         closedir: Avoid warning on mingw.
10715         * lib/closedir.c: Include <unistd.h>.
10716
10717 2011-11-04  Bruno Haible  <bruno@clisp.org>
10718
10719         New module 'fstatat', split off from module 'openat'.
10720         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10721         defined.
10722         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10723         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10724         gl_FUNC_FSTATAT.
10725         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10726         * modules/fstatat: New file, extracted from modules/openat.
10727         * modules/openat (Files): Remove lib/fstatat.c.
10728         (Depends-on): Remove lstat.
10729         (configure.ac): Remove AC_LIBOBJ of fstatat.
10730         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10731         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10732         tests/test-lstat.h, tests/test-stat.h.
10733         (Depends-on): Remove getcwd-lgpl.
10734         (Makefile.am): Remove rules for test-fstatat.
10735         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10736         of module 'openat'.
10737         * NEWS: Mention the change.
10738         * modules/getcwd (Depends-on): Add fstatat.
10739         * modules/linkat (Depends-on): Likewise.
10740         * modules/mkfifoat-tests (Depends-on): Likewise.
10741         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10742
10743 2011-11-03  Bruno Haible  <bruno@clisp.org>
10744
10745         New module 'unlinkat', split off from module 'openat'.
10746         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10747         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10748         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10749         * modules/unlinkat: New file, extracted from modules/openat. Correct
10750         the dependency conditions.
10751         * modules/openat (Files): Remove lib/unlinkat.c.
10752         (Depends-on): Remove rmdir, unlink.
10753         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10754         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10755         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10756         tests/test-rmdir.h, tests/test-unlink.h.
10757         (Depends-on): Remove unlinkdir.
10758         (Makefile.am): Remove rules for test-unlinkat.
10759         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10760         of module 'openat'.
10761         * NEWS: Mention the change.
10762         * modules/linkat-tests (Depends-on): Add unlinkat.
10763         * modules/mkfifoat-tests (Depends-on): Likewise.
10764         * modules/readlinkat-tests (Depends-on): Likewise.
10765
10766 2011-11-02  Bruno Haible  <bruno@clisp.org>
10767
10768         New module 'fchmodat', split off from module 'openat'.
10769         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10770         defined.
10771         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10772         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10773         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10774         * modules/fchmodat: New file, extracted from modules/openat.
10775         * modules/openat (Files): Remove lib/fchmodat.c.
10776         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10777         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10778         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10779         (Makefile.am): Remove rules for test-fchmodat.
10780         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10781         of module 'openat'.
10782         * NEWS: Mention the change.
10783
10784 2011-11-02  Jim Meyering  <meyering@redhat.com>
10785
10786         putenv: indent #definition of "environ" to placate cppi
10787         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10788
10789         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10790         Git logs are often treated as immutable, because editing them
10791         changes the SHA1 checksums of all descendants.  Thus, errors in
10792         git logs tend to stay there forever.  However, when we generate
10793         a ChangeLog file -- typically for distribution -- from that git log,
10794         we can actually make corrections in the generated file.  The key
10795         lies in recording in machine-readable/applicable form the desired
10796         corrections.  See --help for description and an example.
10797         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10798         (usage): Describe it; alphabetize option descriptions.
10799         (main): Honor the new option, carefully.
10800
10801 2011-11-01  Jim Meyering  <meyering@redhat.com>
10802
10803         gitlog-to-changelog: avoid an infloop
10804         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10805         that ends up being empty.
10806
10807 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10810         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10811         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10812         contains (possibly-quoted) backslashes.  This should avoid
10813         all-too-common shell bugs if COMPLICATED contains backslashes in
10814         the "wrong" places.  Reported by David Evans in
10815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10816         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10817         because we want ASCII ranges.  Is there some reason we don't use
10818         the C locale everywhere in this script?
10819         (func_module, top level): Avoid unwanted pathname expansion when
10820         $repo_url_prefix or $repo_url_suffix_repl contain shell
10821         metacharacters like '?' and '*'.
10822
10823 2011-11-01  Bruno Haible  <bruno@clisp.org>
10824
10825         fchownat: Improve description.
10826         * modules/fchownat (Description): Add link to function.
10827
10828 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10829
10830         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10831         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10833         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10834
10835 2011-11-01  Bruno Haible  <bruno@clisp.org>
10836
10837         alignof: Avoid collision with stdalign module.
10838         * lib/alignof.h (alignof): Remove macro.
10839         * NEWS: Mention the change.
10840         Reported by Paul Eggert.
10841
10842 2011-11-01  Bruno Haible  <bruno@clisp.org>
10843
10844         New module 'fchownat', split off from module 'openat'.
10845         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10846         defined.
10847         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10848         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10849         invoke gl_FUNC_FCHOWNAT.
10850         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10851         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10852         * modules/fchownat: New file, extracted from modules/openat.
10853         * modules/openat (Files): Remove lib/fchownat.c.
10854         (Depends-on): Remove lchown.
10855         (configure.ac): Remove AC_LIBOBJ of fchownat.
10856         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10857         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10858         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10859         (Depends-on): Remove mgetgroups, usleep, stat-time.
10860         (configure.ac): Remove test for getegid.
10861         (Makefile.am): Remove rules for test-fchownat.
10862         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10863         of module 'openat'.
10864         * NEWS: Mention the change.
10865
10866 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10867
10868         stdalign: port better to MSVC and to Sun C 5.11
10869         This fixes some of the problems reported by Bruno Haible in
10870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10871         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10872         shortcomings of MSVC and of Sun C 5.11.
10873         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10874         around __declspec arg.
10875         * modules/stdalign-tests (Files): Add tests/macros.h.
10876         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10877         Include macros.h, for ASSERT.
10878         (DECLARE_ALIGNED): Remove.
10879         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10880         to catch bug), and to 1 if not (simplifies the rest of the code).
10881         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10882         (CHECK_AUTO): Remove.
10883         (CHECK_ALIGNED): Check only the alignment of the static vars,
10884         since auto var alignment isn't supported by Sun C 5.11.
10885         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10886         ASSERT failures are easier to diagnose.
10887
10888 2011-10-31  Bruno Haible  <bruno@clisp.org>
10889
10890         doc about some IRIX 5.3 problems.
10891         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10892         on IRIX 5.3.
10893         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10894         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10895         5.3.
10896         * doc/posix-functions/grantpt.texi: Likewise.
10897         * doc/posix-functions/unlockpt.texi: Likewise.
10898         * doc/posix-functions/lgamma.texi: Likewise.
10899         * doc/posix-functions/nextafter.texi: Likewise.
10900         * doc/posix-functions/remainder.texi: Likewise.
10901         * doc/posix-functions/select.texi: Mention misplaced declaration on
10902         IRIX 5.3.
10903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10904
10905 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10906
10907         gitlog-to-changelog: fix git-log invocation.
10908         git-log mishandles date strings before 1970-01-01 UTC, and there is
10909         no use to specify --since=1970-01-01 by default anyway.
10910         * build-aux/gitlog-to-changelog: By default, when no --since option
10911         was given, do not specify explicit --since option to git-log.
10912
10913 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10914
10915         gitlog-to-changelog: new option --append-dot.
10916         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10917         first non-blank line of each commit message terminated with a dot.
10918
10919 2011-10-30  Bruno Haible  <bruno@clisp.org>
10920
10921         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10922         * lib/ffsl.h: Include <config.h>.
10923         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10924
10925 2011-10-30  Jim Meyering  <meyering@redhat.com>
10926
10927         GNUmakefile: reenable "make syntax-check" for most projects
10928         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10929         build-aux variable", "syntax-check" would do nothing but succeed with
10930         the "No version control files detected..." diagnostic (unless you
10931         happened to override _build-aux via cfg.mk).
10932         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10933         to precede inclusion of maint.mk.  Otherwise, these variables would
10934         be used undefined in any project that does not override the default.
10935
10936 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10937
10938         gitlog-to-changelog: treat a message with only blank lines as empty.
10939         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10940         trailing blank lines before the code that issues a warning about an
10941         empty commit message.
10942
10943 2011-10-30  Jim Meyering  <meyering@redhat.com>
10944
10945         test-parse-datetime.c: avoid new DST-related false positive test failure
10946         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10947         based on the time/date we'll convert, not the current time.
10948         Otherwise, the moment we cross a DST boundary like today's in
10949         Europe, (CEST to CET), that offset ends up being one hour off.
10950
10951 2011-10-27  Bruno Haible  <bruno@clisp.org>
10952
10953         fstat: Tweak documentation.
10954         * modules/fstat (Description): More precise description.
10955
10956 2011-10-27  Bruno Haible  <bruno@clisp.org>
10957
10958         Update documentation regarding 'largefile' module.
10959         * doc/posix-functions/fstat.texi: Tweak wording.
10960         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10961         problems with huge directories and/or small ino_t types.
10962         * doc/posix-functions/readdir.texi: Likewise.
10963         * doc/posix-functions/rewinddir.texi: Likewise.
10964
10965 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10966
10967         maint.mk: don't maintain a second build-aux variable.
10968         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10969         depends on GNUmakefile, which already maintains a cfg.mk
10970         overridable $(_build-aux) for projects with a non-standard
10971         build-aux directory location, although without the $(srcdir)
10972         prefix.  Use that variable consistently instead of introducing a
10973         second one.  Adjust all call sites.
10974
10975 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10976
10977         Add stdalign module and use it in other modules.
10978         This is based on a previous proposal by Bruno Haible
10979         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10980
10981         stdalign: new module
10982         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10983         * modules/stdalign: New files.
10984         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10985         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10986
10987         stdalign-tests: new module
10988         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10989
10990         argp: use stdalign
10991         * lib/argp-parse.c: Include <stdalign.h>.
10992         (alignof): Remove.
10993         * modules/argp (Depends-on): Add stdalign.
10994
10995         crypto libraries: use stdalign
10996         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10997         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10998         Do not include <stdlib.h> twice, in md4.c.
10999         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11000         because we are accessing a pointer's bit-pattern, not a size.
11001         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11002         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11003         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11004         * modules/crypto/sha512: Likewise.
11005
11006         sys_socket: use stdalign, not alignof
11007         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11008         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11009
11010 2011-10-27  Bruno Haible  <bruno@clisp.org>
11011
11012         raise test: Avoid a test failure on Linux/MIPS.
11013         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11014         because 99 is a valid signal on Linux/MIPS.
11015
11016 2011-10-27  Bruno Haible  <bruno@clisp.org>
11017
11018         nonblocking tests: Fix test failure on Linux/MIPS.
11019         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11020         Set to 270000.
11021
11022 2011-10-27  Bruno Haible  <bruno@clisp.org>
11023
11024         utimensat: Work around problem on Linux/hppa.
11025         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11026         values.
11027         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11028
11029 2011-10-25  Jim Meyering  <meyering@redhat.com>
11030
11031         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11032         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11033         after symbols like NULL, size_t, etc.
11034         Reported by Alfred M. Szmidt.
11035
11036         maint.mk: exempt ENODATA from a syntax-check rule
11037         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11038         from the sc_prohibit_always-defined_macros syntax-check rule.
11039         Add a comment.  See this for more details:
11040         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11041
11042 2011-10-23  Jim Meyering  <meyering@redhat.com>
11043
11044         fts: close parent dir FD before returning from post-traversal fts_read
11045         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11046         unlink A, even though an FD open on A remained.  This is suboptimal
11047         (holding a file descriptor open longer than needed), but otherwise not
11048         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11049         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11050         that represents a real problem: it causes the removal of A to fail
11051         with e.g., "rm: cannot remove `A': Device or resource busy"
11052
11053         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11054         directory file descriptors.  After completing the final, FTS_DP,
11055         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11056         cache, but then proceeded to add a new FD to it via the subsequent
11057         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11058         final file descriptor would be closed only via fts_close's call to
11059         fd_ring_clear.  Now, it is usually closed earlier, via the final
11060         FTS_DP-returning fts_read call.
11061         * lib/fts.c (restore_initial_cwd): New function, converted from
11062         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11063         Update callers.
11064         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11065         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11066
11067 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11068             Bruno Haible  <bruno@clisp.org>
11069             Jim Meyering  <jim@meyering.net>
11070
11071         readme-release: improve safety of release prep instructions.
11072         * README-release: Don't git pull all branches when only master
11073         is needed for the release process.
11074         Run make maintainer-clean before changing trees and merging.
11075         Don't try to run ./configure right after git pull in case files
11076         that influence the bootstrap process have changed, move the
11077         ./configure step to after running ./bootstrap.
11078         Don't bootstrap "one last time"... it's the first time!
11079
11080 2011-10-22  Bruno Haible  <bruno@clisp.org>
11081
11082         errno, strerror-override: Support for MSVC 10.
11083         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11084         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11085         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11086         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11087         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11088         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11089         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11090         Assign values compatible with MSVC 10.
11091         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11092         New macros.
11093         (GNULIB_defined_EWINSOCK): New macro.
11094         * lib/strerror-override.c (strerror_override): Update accordingly.
11095         * lib/strerror-override.h: Likewise.
11096         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11097         longer equal to the corresponding errno value.
11098         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11099
11100 2011-10-22  Bruno Haible  <bruno@clisp.org>
11101
11102         perror: Recognize when test program crashes.
11103         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11104         strerror, set gl_cv_func_perror_works to no.
11105         Reported by Daniel Richard G. <skunk@iskunk.org>.
11106
11107         perror: Fix indentation.
11108         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11109
11110 2011-10-22  Bruno Haible  <bruno@clisp.org>
11111
11112         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11113         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11114         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11115         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11116         functions, not as a macro.
11117         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11118         macros.
11119         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11120         absence of macro.
11121         Suggested by Eric Blake.
11122         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11123
11124 2011-10-21  Bruno Haible  <bruno@clisp.org>
11125
11126         relocatable-prog-wrapper: Don't leave object files behind.
11127         * build-aux/install-reloc: Re-synchronize list of .o files to be
11128         removed with list of compilation units.
11129
11130 2011-10-20  Bruno Haible  <bruno@clisp.org>
11131
11132         openpty, posix_openpt: Remove code duplication.
11133         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11134         * lib/openpty.c: Include <stdlib.h>.
11135         (openpty): Use posix_openpt on all platforms except IRIX.
11136         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11137
11138 2011-10-20  Bruno Haible  <bruno@clisp.org>
11139
11140         unlockpt: Detect invalid argument.
11141         * lib/unlockpt.c: Include <fcntl.h>.
11142         (unlockpt): Check whether fd is valid, using fcntl().
11143         * modules/unlockpt (Depends-on): Add fcntl-h.
11144
11145 2011-10-20  Bruno Haible  <bruno@clisp.org>
11146
11147         openpty: Avoid compilation error on AIX 6.1.
11148         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11149
11150 2011-10-20  Bruno Haible  <bruno@clisp.org>
11151
11152         posix_openpt: Support for OpenBSD.
11153         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11154         (posix_openpt) [OpenBSD]: New code.
11155         * lib/grantpt.c: Include <fcntl.h>.
11156         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11157         * modules/grantpt (Depends-on): Add fcntl-h.
11158
11159 2011-10-20  Bruno Haible  <bruno@clisp.org>
11160
11161         posix_openpt test: Coding style.
11162         * tests/test-posix_openpt.c: Use GNU coding style.
11163
11164 2011-10-20  Bruno Haible  <bruno@clisp.org>
11165
11166         grantpt: Support --avoid=pt_chown.
11167         * modules/grantpt (Files): Add lib/pty-private.h.
11168
11169 2011-10-20  Bruno Haible  <bruno@clisp.org>
11170
11171         posix_openpt: Fix autoconf macro.
11172         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11173         unneeded check for _getpty.
11174
11175 2011-10-20  Bruno Haible  <bruno@clisp.org>
11176
11177         openpty: Update comments.
11178         * lib/openpty.c: Add comments about Minix.
11179
11180 2011-10-19  Eric Blake  <eblake@redhat.com>
11181
11182         openpty: relax license
11183         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11184
11185         pt_chown: use configmake to simplify build
11186         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11187
11188         ptsname and others: relax license
11189         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11190         * modules/unlockpt (License): Likewise.
11191         * modules/pt_chown (License): Likewise.
11192         * modules/ptsname (License): Likewise.
11193         * modules/ttyname_r (License): Likewise.
11194
11195 2011-10-19  Jim Meyering  <meyering@redhat.com>
11196
11197         posix_openpt: remove spurious #endif
11198         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11199
11200 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11201
11202         maint.mk: Respect $(build_aux) in web-manual rule.
11203         * top/maint.mk (web-manual): Find gen-announce script in user's
11204         $(build_aux) directory instead of hard-coding 'build-aux'.
11205
11206 2011-10-19  Bruno Haible  <bruno@clisp.org>
11207
11208         posix_openpt: Fix compilation error.
11209         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11210         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11211         Mention the openpty module as an alternative.
11212
11213 2011-10-19  Bruno Haible  <bruno@clisp.org>
11214
11215         Support for old NeXTstep 3.3 frexp().
11216         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11217         execution time of the test to 5 seconds.
11218         Reported by Daniel Richard G. <skunk@iskunk.org>.
11219
11220 2011-10-19  Bruno Haible  <bruno@clisp.org>
11221
11222         Support for old NeXTstep 3.3 sed.
11223         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11224         part, use /.../, not \|...|. Escape periods in the header file name.
11225         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11226         Reported by Daniel Richard G. <skunk@iskunk.org>.
11227
11228 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11229
11230         Support for old NeXTstep 3.3 gcc.
11231         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11232         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11233         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11234         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11235         * lib/regex.h (_Restrict_arr_): Likewise.
11236         * lib/regex_internal.h (re_token_t): Likewise.
11237         * lib/regexec.c (check_node_accept_bytes): Likewise.
11238         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11239
11240 2011-10-18  Eric Blake  <eblake@redhat.com>
11241
11242         posix_openpt: new module
11243         * modules/posix_openpt: New module.
11244         * m4/posix_openpt.m4: New file.
11245         * lib/posix_openpt.c: Likewise.
11246         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11247         (gl_STDLIB_H_DEFAULTS): Set defaults.
11248         * modules/stdlib (Makefile.am): Substitute macros.
11249         * lib/stdlib.in.h (posix_openpt): Declare.
11250         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11251         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11252         * modules/posix_openpt-tests: New test module.
11253         * tests/test-posix_openpt.c: New test.
11254
11255 2011-10-15  Bruno Haible  <bruno@clisp.org>
11256
11257         xstrtoll: Fix compilation failure.
11258         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11259         from lib/strtol.c.
11260         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11261         some platforms.
11262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11263
11264 2011-10-15  Bruno Haible  <bruno@clisp.org>
11265
11266         vasnprintf: Optimize bit search operation.
11267         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11269         gl_DOUBLE_EXPONENT_LOCATION.
11270         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11271         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11272         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11273         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11274         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11275         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11276         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11277         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11278         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11279
11280 2011-10-15  Bruno Haible  <bruno@clisp.org>
11281
11282         vasnprintf: Fix comments.
11283         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11284
11285 2011-10-14  Bruno Haible  <bruno@clisp.org>
11286
11287         Tests for module 'integer_length_ll'.
11288         * modules/integer_length_ll-tests: New file.
11289         * tests/test-integer_length_ll.c: New file.
11290
11291         New module 'integer_length_ll'.
11292         * lib/integer_length_ll.c: New file.
11293         * modules/integer_length_ll: New file.
11294
11295 2011-10-14  Bruno Haible  <bruno@clisp.org>
11296
11297         Tests for module 'integer_length_l'.
11298         * modules/integer_length_l-tests: New file.
11299         * tests/test-integer_length_l.c: New file.
11300
11301         New module 'integer_length_l'.
11302         * lib/integer_length_l.c: New file.
11303         * modules/integer_length_l: New file.
11304
11305 2011-10-14  Bruno Haible  <bruno@clisp.org>
11306
11307         Tests for module 'integer_length'.
11308         * modules/integer_length-tests: New file.
11309         * tests/test-integer_length.c: New file.
11310
11311         New module 'integer_length'.
11312         * lib/integer_length.h: New file.
11313         * lib/integer_length.c: New file.
11314         * modules/integer_length: New file.
11315
11316 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11317
11318         popen: Fix dependency conditions.
11319         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11320
11321 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11322
11323         perror: Fix autoconf test.
11324         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11325         <stdlib.h> and <string.h>.
11326
11327 2011-10-14  Bruno Haible  <bruno@clisp.org>
11328
11329         ffsl: Optimize on 64-bit platforms.
11330         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11331         unrolling.
11332
11333 2011-10-13  Bruno Haible  <bruno@clisp.org>
11334
11335         ffsl: Optimize on 32-bit platforms.
11336         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11337         use ffs() without a loop.
11338
11339         ffsl, ffsll: Optimize for GCC.
11340         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11341         * lib/ffsl.c (GCC_BUILTIN): New macro.
11342         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11343
11344 2011-10-13  Bruno Haible  <bruno@clisp.org>
11345
11346         ffs, bcopy, memset: Support symbol renaming via config.h.
11347         * lib/ffs.c: Include <config.h>.
11348         * lib/bcopy.c: Likewise.
11349         * lib/memset.c: Likewise.
11350
11351 2011-10-10  Bruno Haible  <bruno@clisp.org>
11352
11353         atanl: Simplify for platforms where 'long double' == 'double'.
11354         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11355         alternative implementation.
11356         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11357         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11358         * modules/atanl (Depends-on): Add atan. Update conditions.
11359
11360 2011-10-10  Bruno Haible  <bruno@clisp.org>
11361
11362         acosl: Simplify for platforms where 'long double' == 'double'.
11363         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11364         alternative implementation.
11365         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11366         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11367         * modules/acosl (Depends-on): Add acos. Update conditions.
11368
11369 2011-10-10  Bruno Haible  <bruno@clisp.org>
11370
11371         asinl: Simplify for platforms where 'long double' == 'double'.
11372         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11373         alternative implementation.
11374         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11375         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11376         * modules/asinl (Depends-on): Add asin. Update conditions.
11377
11378 2011-10-10  Bruno Haible  <bruno@clisp.org>
11379
11380         tanl: Simplify for platforms where 'long double' == 'double'.
11381         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11382         implementation.
11383         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11384         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11385         * modules/tanl (Depends-on): Add tan. Update conditions.
11386         (configure.ac): Don't compile trigl.c if
11387         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11388
11389 2011-10-10  Bruno Haible  <bruno@clisp.org>
11390
11391         cosl: Simplify for platforms where 'long double' == 'double'.
11392         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11393         implementation.
11394         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11395         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11396         * modules/cosl (Depends-on): Add cos. Update conditions.
11397         (configure.ac): Don't compile sincosl.c and trigl.c if
11398         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11399
11400 2011-10-10  Bruno Haible  <bruno@clisp.org>
11401
11402         sinl: Simplify for platforms where 'long double' == 'double'.
11403         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11404         implementation.
11405         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11406         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11407         * modules/sinl (Depends-on): Add sin. Update conditions.
11408         (configure.ac): Don't compile sincosl.c and trigl.c if
11409         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11410
11411 2011-10-10  Bruno Haible  <bruno@clisp.org>
11412
11413         logl: Simplify for platforms where 'long double' == 'double'.
11414         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11415         implementation.
11416         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11417         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11418         * modules/logl (Depends-on): Add log. Update conditions.
11419
11420 2011-10-10  Bruno Haible  <bruno@clisp.org>
11421
11422         expl: Simplify for platforms where 'long double' == 'double'.
11423         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11424         implementation.
11425         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11426         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11427         * modules/expl (Depends-on): Add exp. Update conditions.
11428
11429 2011-10-10  Bruno Haible  <bruno@clisp.org>
11430
11431         sqrtl: Simplify for platforms where 'long double' == 'double'.
11432         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11433         alternative implementation.
11434         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11435         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11436         * modules/sqrtl (Depends-on): Update conditions.
11437
11438 2011-10-10  Bruno Haible  <bruno@clisp.org>
11439
11440         ldexpl: Simplify for platforms where 'long double' == 'double'.
11441         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11442         alternative implementation.
11443         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11444         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11445         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11446
11447 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11448
11449         ffsll: set correct witness
11450         * modules/ffsll (configure.ac): Fix typo.
11451
11452 2011-10-10  Bruno Haible  <bruno@clisp.org>
11453
11454         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11455         * lib/printf-frexpl.c: Include <config.h>.
11456         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11457         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11458         second time.
11459         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11460         gl_LONG_DOUBLE_VS_DOUBLE.
11461         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11462         conditions.
11463
11464 2011-10-10  Bruno Haible  <bruno@clisp.org>
11465
11466         frexpl: Simplify for platforms where 'long double' == 'double'.
11467         * lib/frexpl.c: Include <config.h>.
11468         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11469         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11470         time.
11471         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11472         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11473         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11474         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11475         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11476         conditions.
11477
11478 2011-10-10  Jim Meyering  <meyering@redhat.com>
11479
11480         test-renameat: don't leave behind a temporary file
11481         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11482           ERROR: files left in build directory after distclean:
11483           ./gltests/test-renameat.too
11484           make[1]: *** [distcleancheck] Error 1
11485         Reported by Tom G. Christensen.
11486
11487 2011-10-09  Bruno Haible  <bruno@clisp.org>
11488
11489         rint: Determine RINT_LIBM correctly on AIX 7.
11490         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11491         directly, not only through a function pointer. Also accept an optional
11492         4th argument with extra code.
11493         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11494         rintf() call by gcc when optimizing.
11495
11496         mathfunc.m4: Refactor.
11497         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11498         m4 variable.
11499
11500 2011-10-09  Bruno Haible  <bruno@clisp.org>
11501
11502         rintl: Simplify for platforms where 'long double' == 'double'.
11503         * lib/rintl.c: Include <config.h>.
11504         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11505         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11506         time.
11507         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11508         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11509         * modules/rintl (Depends-on): Add rint. Update conditions.
11510
11511 2011-10-09  Bruno Haible  <bruno@clisp.org>
11512
11513         roundl: Simplify for platforms where 'long double' == 'double'.
11514         * lib/roundl.c: Include <config.h>.
11515         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11516         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11517         time.
11518         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11519         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11520         * modules/roundl (Depends-on): Add round. Update conditions.
11521
11522 2011-10-09  Bruno Haible  <bruno@clisp.org>
11523
11524         truncl: Simplify for platforms where 'long double' == 'double'.
11525         * lib/truncl.c: Include <config.h>.
11526         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11527         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11528         time.
11529         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11530         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11531         * modules/truncl (Depends-on): Add trunc. Update conditions.
11532
11533 2011-10-09  Bruno Haible  <bruno@clisp.org>
11534
11535         ceill: Simplify for platforms where 'long double' == 'double'.
11536         * lib/ceill.c: Include <config.h>.
11537         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11538         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11539         time.
11540         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11541         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11542         * modules/ceill (Depends-on): Add ceil. Update conditions.
11543
11544 2011-10-09  Bruno Haible  <bruno@clisp.org>
11545
11546         floorl: Simplify for platforms where 'long double' == 'double'.
11547         * lib/floorl.c: Include <config.h>.
11548         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11549         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11550         time.
11551         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11552         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11553         * modules/floorl (Depends-on): Add floor. Update conditions.
11554
11555 2011-10-09  Bruno Haible  <bruno@clisp.org>
11556
11557         rint: Fix ordering constraints.
11558         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11559         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11560         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11561
11562 2011-10-09  Bruno Haible  <bruno@clisp.org>
11563
11564         copysignl: Simplify for platforms where 'long double' == 'double'.
11565         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11566         alternative.
11567         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11568         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11569         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11570
11571 2011-10-09  Bruno Haible  <bruno@clisp.org>
11572
11573         Tests for module 'rintl'.
11574         * modules/rintl-tests: New file.
11575         * tests/test-rintl.c: New file.
11576
11577         New module 'rintl'.
11578         * lib/math.in.h (rintl): New declaration.
11579         * lib/rintl.c: New file.
11580         * m4/rintl.m4: New file.
11581         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11583         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11584         * modules/rintl: New file.
11585         * tests/test-math-c++.cc: Check the declaration of rintl.
11586         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11587         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11588         * doc/posix-functions/rintl.texi: Mention the new module.
11589
11590 2011-10-09  Bruno Haible  <bruno@clisp.org>
11591
11592         Tests for module 'rintf'.
11593         * modules/rintf-tests: New file.
11594         * tests/test-rintf.c: New file.
11595
11596         New module 'rintf'.
11597         * lib/math.in.h (rintf): New declaration.
11598         * lib/rintf.c: New file.
11599         * m4/rintf.m4: New file.
11600         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11602         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11603         * modules/rintf: New file.
11604         * tests/test-math-c++.cc: Check the declaration of rintf.
11605         * doc/posix-functions/rintf.texi: Mention the new module.
11606
11607 2011-10-09  Bruno Haible  <bruno@clisp.org>
11608
11609         rint: Support for MSVC.
11610         * lib/math.in.h (rint): New declaration.
11611         * lib/rint.c: New file.
11612         * m4/rint.m4: New file.
11613         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11615         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11616         * modules/rint (Description): Fix.
11617         (Files): Add lib/rint.c, m4/rint.m4.
11618         (Depends-on): Add math.
11619         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11620         gl_MATH_MODULE_INDICATOR.
11621         * tests/test-math-c++.cc: Check the declaration of rint.
11622         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11623         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11624         * doc/posix-functions/rint.texi: Mention the replacement provided by
11625         the module.
11626
11627         rint tests: More tests.
11628         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11629         minus-zero.h, infinity.h, nan.h.
11630         (main): Skip the test if the current rounding mode is not standard. Add
11631         tests for negative numbers, minus zero, infinity, NaN.
11632         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11633         tests/nan.h.
11634         (Depends-on): Add isnand-nolibm.
11635
11636 2011-10-09  Bruno Haible  <bruno@clisp.org>
11637
11638         Tests for module 'copysignl'.
11639         * modules/copysignl-tests: New file.
11640         * tests/test-copysignl.c: New file.
11641
11642         New module 'copysignl'.
11643         * lib/math.in.h (copysignl): New declaration.
11644         * lib/copysignl.c: New file.
11645         * m4/copysignl.m4: New file.
11646         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11648         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11649         HAVE_COPYSIGNL.
11650         * modules/copysignl: New file.
11651         * tests/test-math-c++.cc: Check the declaration of copysignl.
11652         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11653         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11654         * doc/posix-functions/copysignl.texi: Mention the new module.
11655
11656 2011-10-09  Bruno Haible  <bruno@clisp.org>
11657
11658         Tests for module 'copysignf'.
11659         * modules/copysignf-tests: New file.
11660         * tests/test-copysignf.c: New file.
11661
11662         New module 'copysignf'.
11663         * lib/math.in.h (copysignf): New declaration.
11664         * lib/copysignf.c: New file.
11665         * m4/copysignf.m4: New file.
11666         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11668         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11669         HAVE_COPYSIGNF.
11670         * modules/copysignf: New file.
11671         * tests/test-math-c++.cc: Check the declaration of copysignf.
11672         * doc/posix-functions/copysignf.texi: Mention the new module.
11673
11674 2011-10-09  Bruno Haible  <bruno@clisp.org>
11675
11676         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11678         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11679         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11680         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11681         gl_SIGNAL_H_DEFAULTS.
11682
11683 2011-10-09  Bruno Haible  <bruno@clisp.org>
11684
11685         poll: Make macro safer.
11686         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11687         ac_cv_header_poll_h is not set.
11688
11689 2011-10-09  Bruno Haible  <bruno@clisp.org>
11690
11691         copysign: Provide replacement.
11692         * lib/math.in.h (copysign): New declaration.
11693         * lib/copysign.c: New file.
11694         * m4/copysign.m4: New file.
11695         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11697         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11698         HAVE_COPYSIGN.
11699         * modules/copysign (Description): Clarify.
11700         (Files): Add lib/copysign.c, m4/copysign.m4.
11701         (Depends-on): Add math, signbit.
11702         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11703         gl_MATH_MODULE_INDICATOR.
11704         * tests/test-math-c++.cc: Check the declaration of copysign.
11705         * doc/posix-functions/copysign.texi: Mention the effects of the module
11706         on Minix and MSVC.
11707
11708 2011-10-09  Bruno Haible  <bruno@clisp.org>
11709
11710         isinf: Ensure macro on AIX 5.1.
11711         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11712         macro.
11713         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11714
11715 2011-10-09  Bruno Haible  <bruno@clisp.org>
11716
11717         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11718         * modules/snprintf-posix-tests (configure.ac): Require
11719         gl_LONG_DOUBLE_VS_DOUBLE.
11720         * modules/sprintf-posix-tests (configure.ac): Likewise.
11721         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11722         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11723         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11724         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11725         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11726         tests on platforms where 'long double' is the same as 'double'.
11727         * tests/test-sprintf-posix.h (test_function): Likewise.
11728         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11729         * tests/test-vasprintf-posix.c (test_function): Likewise.
11730
11731         *printf: Fix for platforms where 'long double' == 'double'.
11732         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11733         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11734         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11735         * modules/fprintf-posix (Files): Likewise.
11736         * modules/obstack-printf-posix (Files): Likewise.
11737         * modules/snprintf-posix (Files): Likewise.
11738         * modules/sprintf-posix (Files): Likewise.
11739         * modules/vasnprintf (Files): Likewise.
11740         * modules/vasnprintf-posix (Files): Likewise.
11741         * modules/vasprintf-posix (Files): Likewise.
11742         * modules/vdprintf-posix (Files): Likewise.
11743         * modules/vfprintf-posix (Files): Likewise.
11744         * modules/vsnprintf-posix (Files): Likewise.
11745         * modules/vsprintf-posix (Files): Likewise.
11746         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11747         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11748         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11749         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11750         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11751         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11752         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11753
11754         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11755         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11756         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11757         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11758         'long double'.
11759         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11760
11761         isinf: Fix for platforms where 'long double' == 'double'.
11762         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11763         Don't blindly assume 80-bit 'long double'.
11764
11765         isfinite: Fix for platforms where 'long double' == 'double'.
11766         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11767         Don't blindly assume 80-bit 'long double'.
11768
11769         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11770         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11771         * modules/isfinite-tests (configure.ac): Require
11772         gl_LONG_DOUBLE_VS_DOUBLE.
11773         * modules/isinf-tests (configure.ac): Likewise.
11774         * modules/isnan-tests (configure.ac): Likewise.
11775         * modules/isnanl-tests (configure.ac): Likewise.
11776         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11777         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11778         tests on platforms where 'long double' is the same as 'double'.
11779         * tests/test-isinf.c (test_isinfl): Likewise.
11780         * tests/test-isnan.c (test_long_double): Likewise.
11781         * tests/test-isnanl.h (main): Likewise.
11782
11783 2011-10-08  Bruno Haible  <bruno@clisp.org>
11784
11785         Tests for module 'tanhf'.
11786         * modules/tanhf-tests: New file.
11787         * tests/test-tanhf.c: New file.
11788
11789         New module 'tanhf'.
11790         * lib/math.in.h (tanhf): New declaration.
11791         * lib/tanhf.c: New file.
11792         * m4/tanhf.m4: New file.
11793         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11795         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11796         * modules/tanhf: New file.
11797         * tests/test-math-c++.cc: Check the declaration of tanhf.
11798         * doc/posix-functions/tanhf.texi: Mention the new module.
11799
11800         tanh: Use a .m4 file.
11801         * m4/tanh.m4: New file.
11802         * modules/tanh (Files): Add it.
11803         (configure.ac): Just invoke gl_FUNC_TANH.
11804
11805 2011-10-08  Bruno Haible  <bruno@clisp.org>
11806
11807         Tests for module 'coshf'.
11808         * modules/coshf-tests: New file.
11809         * tests/test-coshf.c: New file.
11810
11811         New module 'coshf'.
11812         * lib/math.in.h (coshf): New declaration.
11813         * lib/coshf.c: New file.
11814         * m4/coshf.m4: New file.
11815         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11817         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11818         * modules/coshf: New file.
11819         * tests/test-math-c++.cc: Check the declaration of coshf.
11820         * doc/posix-functions/coshf.texi: Mention the new module.
11821
11822         cosh: Use a .m4 file.
11823         * m4/cosh.m4: New file.
11824         * modules/cosh (Files): Add it.
11825         (configure.ac): Just invoke gl_FUNC_COSH.
11826
11827 2011-10-08  Bruno Haible  <bruno@clisp.org>
11828
11829         Tests for module 'sinhf'.
11830         * modules/sinhf-tests: New file.
11831         * tests/test-sinhf.c: New file.
11832
11833         New module 'sinhf'.
11834         * lib/math.in.h (sinhf): New declaration.
11835         * lib/sinhf.c: New file.
11836         * m4/sinhf.m4: New file.
11837         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11839         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11840         * modules/sinhf: New file.
11841         * tests/test-math-c++.cc: Check the declaration of sinhf.
11842         * doc/posix-functions/sinhf.texi: Mention the new module.
11843
11844         sinh: Use a .m4 file.
11845         * m4/sinh.m4: New file.
11846         * modules/sinh (Files): Add it.
11847         (configure.ac): Just invoke gl_FUNC_SINH.
11848
11849 2011-10-08  Bruno Haible  <bruno@clisp.org>
11850
11851         Tests for module 'atan2f'.
11852         * modules/atan2f-tests: New file.
11853         * tests/test-atan2f.c: New file.
11854
11855         New module 'atan2f'.
11856         * lib/math.in.h (atan2f): New declaration.
11857         * lib/atan2f.c: New file.
11858         * m4/atan2f.m4: New file.
11859         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11861         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11862         * modules/atan2f: New file.
11863         * tests/test-math-c++.cc: Check the declaration of atan2f.
11864         * doc/posix-functions/atan2f.texi: Mention the new module.
11865
11866         atan2: Use a .m4 file.
11867         * m4/atan2.m4: New file.
11868         * modules/atan2 (Files): Add it.
11869         (configure.ac): Just invoke gl_FUNC_ATAN2.
11870
11871 2011-10-08  Bruno Haible  <bruno@clisp.org>
11872
11873         Tests for module 'atanf'.
11874         * modules/atanf-tests: New file.
11875         * tests/test-atanf.c: New file.
11876
11877         New module 'atanf'.
11878         * lib/math.in.h (atanf): New declaration.
11879         * lib/atanf.c: New file.
11880         * m4/atanf.m4: New file.
11881         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11883         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11884         * modules/atanf: New file.
11885         * tests/test-math-c++.cc: Check the declaration of atanf.
11886         * doc/posix-functions/atanf.texi: Mention the new module.
11887
11888         atan: Use a .m4 file.
11889         * m4/atan.m4: New file.
11890         * modules/atan (Files): Add it.
11891         (configure.ac): Just invoke gl_FUNC_ATAN.
11892
11893 2011-10-08  Bruno Haible  <bruno@clisp.org>
11894
11895         Tests for module 'acosf'.
11896         * modules/acosf-tests: New file.
11897         * tests/test-acosf.c: New file.
11898
11899         New module 'acosf'.
11900         * lib/math.in.h (acosf): New declaration.
11901         * lib/acosf.c: New file.
11902         * m4/acosf.m4: New file.
11903         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11905         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11906         * modules/acosf: New file.
11907         * tests/test-math-c++.cc: Check the declaration of acosf.
11908         * doc/posix-functions/acosf.texi: Mention the new module.
11909
11910         acos: Use a .m4 file.
11911         * m4/acos.m4: New file.
11912         * modules/acos (Files): Add it.
11913         (configure.ac): Just invoke gl_FUNC_ACOS.
11914
11915 2011-10-08  Bruno Haible  <bruno@clisp.org>
11916
11917         Tests for module 'asinf'.
11918         * modules/asinf-tests: New file.
11919         * tests/test-asinf.c: New file.
11920
11921         New module 'asinf'.
11922         * lib/math.in.h (asinf): New declaration.
11923         * lib/asinf.c: New file.
11924         * m4/asinf.m4: New file.
11925         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11927         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11928         * modules/asinf: New file.
11929         * tests/test-math-c++.cc: Check the declaration of asinf.
11930         * doc/posix-functions/asinf.texi: Mention the new module.
11931
11932         asin: Use a .m4 file.
11933         * m4/asin.m4: New file.
11934         * modules/asin (Files): Add it.
11935         (configure.ac): Just invoke gl_FUNC_ASIN.
11936
11937 2011-10-08  Bruno Haible  <bruno@clisp.org>
11938
11939         Tests for module 'tanf'.
11940         * modules/tanf-tests: New file.
11941         * tests/test-tanf.c: New file.
11942
11943         New module 'tanf'.
11944         * lib/math.in.h (tanf): New declaration.
11945         * lib/tanf.c: New file.
11946         * m4/tanf.m4: New file.
11947         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11949         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11950         * modules/tanf: New file.
11951         * tests/test-math-c++.cc: Check the declaration of tanf.
11952         * doc/posix-functions/tanf.texi: Mention the new module.
11953
11954         tan: Use a .m4 file.
11955         * m4/tan.m4: New file.
11956         * modules/tan (Files): Add it.
11957         (configure.ac): Just invoke gl_FUNC_TAN.
11958
11959 2011-10-08  Bruno Haible  <bruno@clisp.org>
11960
11961         Tests for module 'cosf'.
11962         * modules/cosf-tests: New file.
11963         * tests/test-cosf.c: New file.
11964
11965         New module 'cosf'.
11966         * lib/math.in.h (cosf): New declaration.
11967         * lib/cosf.c: New file.
11968         * m4/cosf.m4: New file.
11969         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11971         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11972         * modules/cosf: New file.
11973         * tests/test-math-c++.cc: Check the declaration of cosf.
11974         * doc/posix-functions/cosf.texi: Mention the new module.
11975
11976         cos: Use a .m4 file.
11977         * m4/cos.m4: New file.
11978         * modules/cos (Files): Add it.
11979         (configure.ac): Just invoke gl_FUNC_COS.
11980
11981 2011-10-08  Bruno Haible  <bruno@clisp.org>
11982
11983         Tests for module 'sinf'.
11984         * modules/sinf-tests: New file.
11985         * tests/test-sinf.c: New file.
11986
11987         New module 'sinf'.
11988         * lib/math.in.h (sinf): New declaration.
11989         * lib/sinf.c: New file.
11990         * m4/sinf.m4: New file.
11991         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11993         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11994         * modules/sinf: New file.
11995         * tests/test-math-c++.cc: Check the declaration of sinf.
11996         * doc/posix-functions/sinf.texi: Mention the new module.
11997
11998         sin: Use a .m4 file.
11999         * m4/sin.m4: New file.
12000         * modules/sin (Files): Add it.
12001         (configure.ac): Just invoke gl_FUNC_SIN.
12002
12003 2011-10-08  Bruno Haible  <bruno@clisp.org>
12004
12005         Tests for module 'powf'.
12006         * modules/powf-tests: New file.
12007         * tests/test-powf.c: New file.
12008
12009         New module 'powf'.
12010         * lib/math.in.h (powf): New declaration.
12011         * lib/powf.c: New file.
12012         * m4/powf.m4: New file.
12013         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12015         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12016         * modules/powf: New file.
12017         * tests/test-math-c++.cc: Check the declaration of powf.
12018         * doc/posix-functions/powf.texi: Mention the new module.
12019
12020         pow: Use a .m4 file.
12021         * m4/pow.m4: New file.
12022         * modules/pow (Files): Add it.
12023         (configure.ac): Just invoke gl_FUNC_POW.
12024
12025 2011-10-08  Bruno Haible  <bruno@clisp.org>
12026
12027         Tests for module 'log10f'.
12028         * modules/log10f-tests: New file.
12029         * tests/test-log10f.c: New file.
12030
12031         New module 'log10f'.
12032         * lib/math.in.h (log10f): New declaration.
12033         * lib/log10f.c: New file.
12034         * m4/log10f.m4: New file.
12035         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12037         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12038         * modules/log10f: New file.
12039         * tests/test-math-c++.cc: Check the declaration of log10f.
12040         * doc/posix-functions/log10f.texi: Mention the new module.
12041
12042         log10: Use a .m4 file.
12043         * m4/log10.m4: New file.
12044         * modules/log10 (Files): Add it.
12045         (configure.ac): Just invoke gl_FUNC_LOG10.
12046
12047 2011-10-08  Bruno Haible  <bruno@clisp.org>
12048
12049         Tests for module 'logf'.
12050         * modules/logf-tests: New file.
12051         * tests/test-logf.c: New file.
12052
12053         New module 'logf'.
12054         * lib/math.in.h (logf): New declaration.
12055         * lib/logf.c: New file.
12056         * m4/logf.m4: New file.
12057         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12059         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12060         * modules/logf: New file.
12061         * tests/test-math-c++.cc: Check the declaration of logf.
12062         * doc/posix-functions/logf.texi: Mention the new module.
12063
12064         log: Use a .m4 file.
12065         * m4/log.m4: New file.
12066         * modules/log (Files): Add it.
12067         (configure.ac): Just invoke gl_FUNC_LOG.
12068
12069 2011-10-08  Bruno Haible  <bruno@clisp.org>
12070
12071         Tests for module 'expf'.
12072         * modules/expf-tests: New file.
12073         * tests/test-expf.c: New file.
12074
12075         New module 'expf'.
12076         * lib/math.in.h (expf): New declaration.
12077         * lib/expf.c: New file.
12078         * m4/expf.m4: New file.
12079         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12081         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12082         * modules/expf: New file.
12083         * tests/test-math-c++.cc: Check the declaration of expf.
12084         * doc/posix-functions/expf.texi: Mention the new module.
12085
12086         exp: Use a .m4 file.
12087         * m4/exp.m4: New file.
12088         * modules/exp (Files): Add it.
12089         (configure.ac): Just invoke gl_FUNC_EXP.
12090
12091 2011-10-08  Bruno Haible  <bruno@clisp.org>
12092
12093         Tests for module 'sqrtf'.
12094         * modules/sqrtf-tests: New file.
12095         * tests/test-sqrtf.c: New file.
12096
12097         New module 'sqrtf'.
12098         * lib/math.in.h (sqrtf): New declaration.
12099         * lib/sqrtf.c: New file.
12100         * m4/sqrtf.m4: New file.
12101         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12103         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12104         * modules/sqrtf: New file.
12105         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12106         * doc/posix-functions/sqrtf.texi: Mention the new module.
12107
12108 2011-10-08  Bruno Haible  <bruno@clisp.org>
12109
12110         Tests: Avoid link failures w.r.t. libintl.
12111         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12112         $(LIBINTL).
12113         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12114         $(LIBINTL).
12115         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12116         against $(LIBINTL).
12117         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12118         $(LIBINTL).
12119         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12120         $(LIBINTL).
12121         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12122
12123 2011-10-08  Bruno Haible  <bruno@clisp.org>
12124
12125         pow tests: Defeat compiler optimizations.
12126         * tests/test-pow.c (main): Assign arguments to x and y before use.
12127
12128 2011-10-08  Bruno Haible  <bruno@clisp.org>
12129
12130         gnulib-tool: Improve last commit.
12131         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12132         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12133         ignore dependencies that are not among the modules list.
12134
12135 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12136
12137         gnulib-tool: don't follow dependencies to avoided modules
12138         This fixes a bug that is related to the previous one.
12139         * gnulib-tool (func_modules_transitive_closure)
12140         (func_emit_autoconf_snippets):
12141         Check whether a dependency is acceptable before using it.
12142         (--extract-dependencies): Report an error if --avoid is also used,
12143         since this combination of options is not yet supported.
12144
12145         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12146         Problem reported by Peter Dyballa in
12147         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12148         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12149         when echoing "$condition".
12150
12151 2011-10-07  Bruno Haible  <bruno@clisp.org>
12152
12153         Fix documentation about math functions on MacOS X.
12154         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12155         MacOS X 10.5.
12156         * doc/posix-functions/fdim.texi: Likewise.
12157         * doc/posix-functions/feclearexcept.texi: Likewise.
12158         * doc/posix-functions/fegetenv.texi: Likewise.
12159         * doc/posix-functions/fegetround.texi: Likewise.
12160         * doc/posix-functions/feholdexcept.texi: Likewise.
12161         * doc/posix-functions/feraiseexcept.texi: Likewise.
12162         * doc/posix-functions/fesetenv.texi: Likewise.
12163         * doc/posix-functions/fesetround.texi: Likewise.
12164         * doc/posix-functions/fetestexcept.texi: Likewise.
12165         * doc/posix-functions/feupdateenv.texi: Likewise.
12166         * doc/posix-functions/fmax.texi: Likewise.
12167         * doc/posix-functions/fmin.texi: Likewise.
12168         * doc/posix-functions/log2.texi: Likewise.
12169         * doc/posix-functions/modff.texi: Likewise.
12170         * doc/posix-functions/nan.texi: Likewise.
12171         * doc/posix-functions/nanf.texi: Likewise.
12172         * doc/posix-functions/nextafterf.texi: Likewise.
12173         * doc/posix-functions/remquo.texi: Likewise.
12174
12175 2011-10-07  Bruno Haible  <bruno@clisp.org>
12176
12177         modff: Drop assumption about library that defines modff.
12178         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12179         AC_CHECK_FUNCS.
12180         * modules/modff (Files): Add m4/mathfunc.m4.
12181
12182 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12183
12184         raise tests: Avoid a GCC warning.
12185         * tests/test-raise.c (handler): Use _Noreturn.
12186
12187 2011-10-07  Bruno Haible  <bruno@clisp.org>
12188
12189         Tests for module 'ldexpf'.
12190         * modules/ldexpf-tests: New file.
12191         * tests/test-ldexpf.c: New file.
12192
12193         New module 'ldexpf'.
12194         * lib/math.in.h (ldexpf): New declaration.
12195         * lib/ldexpf.c: New file.
12196         * m4/ldexpf.m4: New file.
12197         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12199         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12200         * modules/ldexpf: New file.
12201         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12202         * doc/posix-functions/ldexpf.texi: Mention the new module.
12203
12204 2011-10-06  Bruno Haible  <bruno@clisp.org>
12205
12206         frexpf: Work around problems on IRIX and mingw.
12207         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12209         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12210         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12211         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12212         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12213         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12214
12215 2011-10-06  Bruno Haible  <bruno@clisp.org>
12216
12217         fabsf: Drop assumption about library that defines fabsf.
12218         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12219         AC_CHECK_FUNCS.
12220         * modules/fabsf (Files): Add m4/mathfunc.m4.
12221
12222 2011-10-06  Bruno Haible  <bruno@clisp.org>
12223
12224         frexpf: Drop assumption about library that defines frexpf.
12225         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12226         'int *', 'float *', 'long double *', 'float', 'long double'.
12227         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12228         AC_CHECK_FUNCS.
12229         * modules/frexpf (Files): Add m4/mathfunc.m4.
12230
12231         Tests for module 'frexpf'.
12232         * modules/frexpf-tests: New file.
12233         * tests/test-frexpf.c: New file.
12234
12235         New module 'frexpf'.
12236         * lib/math.in.h (frexpf): New declaration.
12237         * lib/frexpf.c: New file.
12238         * m4/frexpf.m4: New file.
12239         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12241         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12242         * modules/frexpf: New file.
12243         * tests/test-math-c++.cc: Check the declaration of frexpf.
12244         * doc/posix-functions/frexpf.texi: Mention the new module.
12245
12246 2011-10-06  Bruno Haible  <bruno@clisp.org>
12247
12248         math: Sort function declarations of math.in.h.
12249         * lib/math.in.h (frexp, logb): Move declarations.
12250
12251 2011-10-05  Bruno Haible  <bruno@clisp.org>
12252
12253         Tests for module 'modff'.
12254         * modules/modff-tests: New file.
12255         * tests/test-modff.c: New file.
12256
12257         New module 'modff'.
12258         * lib/math.in.h (modff): New declaration.
12259         * lib/modff.c: New file.
12260         * m4/modff.m4: New file.
12261         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12263         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12264         * modules/modff: New file.
12265         * tests/test-math-c++.cc: Check the declaration of modff.
12266         * doc/posix-functions/modff.texi: Mention the new module.
12267
12268         modf tests: Make test sharper.
12269         * tests/test-modf.c (main): Strengthen upper bound.
12270
12271         modf: Use a .m4 file.
12272         * m4/modf.m4: New file.
12273         * modules/modf (Files): Add it.
12274         (configure.ac): Just invoke gl_FUNC_MODF.
12275
12276 2011-10-05  Bruno Haible  <bruno@clisp.org>
12277
12278         Tests for module 'fmodf'.
12279         * modules/fmodf-tests: New file.
12280         * tests/test-fmodf.c: New file.
12281
12282         New module 'fmodf'.
12283         * lib/math.in.h (fmodf): New declaration.
12284         * lib/fmodf.c: New file.
12285         * m4/fmodf.m4: New file.
12286         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12288         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12289         * modules/fmodf: New file.
12290         * tests/test-math-c++.cc: Check the declaration of fmodf.
12291         * doc/posix-functions/fmodf.texi: Mention the new module.
12292
12293         fmod: Use a .m4 file.
12294         * m4/fmod.m4: New file.
12295         * modules/fmod (Files): Add it.
12296         (configure.ac): Just invoke gl_FUNC_FMOD.
12297
12298 2011-10-05  Bruno Haible  <bruno@clisp.org>
12299
12300         Tests for module 'fabsf'.
12301         * modules/fabsf-tests: New file.
12302         * tests/test-fabsf.c: New file.
12303
12304         New module 'fabsf'.
12305         * lib/math.in.h (fabsf): New declaration.
12306         * lib/fabsf.c: New file.
12307         * m4/fabsf.m4: New file.
12308         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12310         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12311         * modules/fabsf: New file.
12312         * tests/test-math-c++.cc: Check the declaration of fabsf.
12313         * doc/posix-functions/fabsf.texi: Mention the new module.
12314
12315         fabs: Use a .m4 file.
12316         * m4/fabs.m4: New file.
12317         * modules/fabs (Files): Add it.
12318         (configure.ac): Just invoke gl_FUNC_FABS.
12319
12320 2011-10-05  Jim Meyering  <meyering@redhat.com>
12321
12322         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12323         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12324         ls -lL regression introduced in coreutils-8.12, it does so at the
12325         cost of an additional stat call in the common case.  Besides, now
12326         that the kernel change that prompted commit 95f7c57f has been reverted
12327         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12328         we have no use for commit 95f7c57f, "file-has-acl: use
12329         acl_extended_file_nofollow if available".
12330
12331 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12332
12333         file-has-acl: revert unintended change in behavior of ls -L
12334         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12335         derived from...
12336         (file_has_acl): ...code here.  Call it.
12337         This problem was introduced with 2011-07-22 commit 95f7c57f,
12338         "file-has-acl: use acl_extended_file_nofollow if available".
12339         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12340
12341 2011-10-03  Bruno Haible  <bruno@clisp.org>
12342
12343         poll: Avoid link errors on MSVC.
12344         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12345         * modules/poll (Depends-on): Add sockets.
12346         (Link): New section.
12347         * NEWS: Mention the change.
12348         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12349         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12350         $(LIB_POLL) instead of $(LIBSOCKET).
12351
12352 2011-10-03  Bruno Haible  <bruno@clisp.org>
12353
12354         sys_select tests: Fix link error on MSVC 9.
12355         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12356         with $(LIB_SELECT) instead of $(LIBSOCKET).
12357
12358 2011-10-03  Bruno Haible  <bruno@clisp.org>
12359
12360         sys_select: Fix compilation error on mingw.
12361         * lib/sys_select.in.h: On native Windows, include <io.h>.
12362
12363 2011-10-03  Bruno Haible  <bruno@clisp.org>
12364
12365         wmemset: Support for MSVC.
12366         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12367         whether wmemset() exists.
12368
12369 2011-10-03  Bruno Haible  <bruno@clisp.org>
12370
12371         wmemmove: Support for MSVC.
12372         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12373         whether wmemmove() exists.
12374
12375 2011-10-03  Bruno Haible  <bruno@clisp.org>
12376
12377         wmemcpy: Support for MSVC.
12378         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12379         whether wmemcpy() exists.
12380
12381 2011-10-03  Bruno Haible  <bruno@clisp.org>
12382
12383         wmemcmp: Support for MSVC.
12384         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12385         whether wmemcmp() exists.
12386
12387 2011-10-03  Bruno Haible  <bruno@clisp.org>
12388
12389         wmemchr: Support for MSVC.
12390         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12391         whether wmemchr() exists.
12392
12393 2011-10-03  Bruno Haible  <bruno@clisp.org>
12394
12395         glthread/*, strsignal: Support for MSVC.
12396         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12397         including <winsock.h> on MSVC 9.
12398         * lib/glthread/lock.h: Likewise.
12399         * lib/glthread/thread.h: Likewise.
12400         * lib/glthread/tls.h: Likewise.
12401         * lib/glthread/yield.h: Likewise.
12402         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12403         if HAVE_UNISTD_H is false.
12404         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12405
12406 2011-10-03  Bruno Haible  <bruno@clisp.org>
12407
12408         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12409         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12410         Set to 100000.
12411
12412 2011-10-03  Bruno Haible  <bruno@clisp.org>
12413
12414         acl: Fix specification.
12415         * lib/file-has-acl.c (file_has_acl): Fix specification.
12416
12417 2011-10-03  Bruno Haible  <bruno@clisp.org>
12418
12419         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12420         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12421         (compute_curr_prefix, shared_library_fullname,
12422         find_shared_library_fullname, get_shared_library_fullname, relocate):
12423         Use it together with PIC && INSTALLDIR.
12424         Reported by <jojelino@gmail.com>
12425         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12426
12427 2011-10-01  Jim Meyering  <meyering@redhat.com>
12428
12429         maint.mk: adjust a release-related rule not to require use of gzip
12430         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12431         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12432         projects that build only .tar.xz files.  Also fix an erroneous test.
12433
12434         test-linkat: don't leave behind a temporary file
12435         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12436         Otherwise, coreutils' "make distcheck" would fail with this:
12437           Only in /c/cu/tests/torture/coreutils/test/\
12438             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12439           make[2]: *** [my-distcheck] Error 1
12440
12441         float, math: add omitted file
12442         * lib/itold.c: Add file, required for yesterday's float change.
12443
12444 2011-10-01  Bruno Haible  <bruno@clisp.org>
12445
12446         isinf: Fix for OpenBSD/x86.
12447         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12448         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12449         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12450
12451 2011-10-01  Bruno Haible  <bruno@clisp.org>
12452
12453         isfinite: Fix syntax error in configure test.
12454         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12455
12456         isfinite: Fix typo.
12457         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12458         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12459
12460 2011-10-01  Bruno Haible  <bruno@clisp.org>
12461
12462         nonblocking tests: Fix test failure on Linux/IA-64.
12463         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12464         Set to 270000.
12465
12466 2011-10-01  Bruno Haible  <bruno@clisp.org>
12467
12468         mkfifoat tests: Fix a test failure on mingw.
12469         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12470         with error ENOSYS.
12471
12472 2011-09-30  Bruno Haible  <bruno@clisp.org>
12473
12474         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12475         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12476         'long double'. Set REPLACE_ITOLD.
12477         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12478         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12479         * lib/itold.c: New file.
12480         * modules/float (Files): Add lib/itold.c.
12481         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12482         (Makefile.am): Substitute REPLACE_ITOLD.
12483         * modules/math (Depends-on): Add float.
12484         (Makefile.am): Substitute REPLACE_ITOLD.
12485         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12486         * doc/posix-headers/math.texi: Likewise.
12487         * doc/posix-functions/logl.texi: Likewise.
12488
12489 2011-09-30  Bruno Haible  <bruno@clisp.org>
12490
12491         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12492         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12493         Set to 140000.
12494
12495 2011-09-30  Bruno Haible  <bruno@clisp.org>
12496
12497         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12498         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12499         invocation, say "right after AC_PROG_CC_STDC", not "right after
12500         AC_PROG_CC".
12501         Reported by Gary V. Vaughan <gary@gnu.org>.
12502
12503 2011-09-30  Bruno Haible  <bruno@clisp.org>
12504
12505         Centralize C99 requirement.
12506         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12507         * modules/stdarg (configure.ac-early): Invoke it instead of
12508         AC_PROG_CC_STDC.
12509         Reported by Gary V. Vaughan and Paul Eggert.
12510
12511 2011-09-29  Bruno Haible  <bruno@clisp.org>
12512
12513         float: Fix LDBL_MAX value on Linux/PowerPC.
12514         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12515         on Linux/PowerPC.
12516         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12517         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12518         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12519         platform.
12520         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12521
12522 2011-09-29  Bruno Haible  <bruno@clisp.org>
12523
12524         doc: Improve doc about gl_EARLY.
12525         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12526         AC_PROG_CC_STDC invocation.
12527         Reported by Gary V. Vaughan <gary@gnu.org>.
12528
12529 2011-09-28  Bruno Haible  <bruno@clisp.org>
12530
12531         fgetc, fputc, fread, fwrite tests: Fix link error.
12532         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12533         on non-MSVC platforms.
12534         * tests/test-fputc.c (main): Likewise.
12535         * tests/test-fread.c (main): Likewise.
12536         * tests/test-fwrite.c (main): Likewise.
12537         Reported by Jim Meyering.
12538
12539 2011-09-27  Bruno Haible  <bruno@clisp.org>
12540
12541         fputc, fwrite tests: Avoid test failure on MSVC.
12542         * tests/test-fgetc.c: Include msvc-inval.h.
12543         (main): Invoke gl_msvc_inval_ensure_handler.
12544         * tests/test-fputc.c: Include msvc-inval.h.
12545         (main): Invoke gl_msvc_inval_ensure_handler.
12546         * tests/test-fread.c: Include msvc-inval.h.
12547         (main): Invoke gl_msvc_inval_ensure_handler.
12548         * tests/test-fwrite.c: Include msvc-inval.h.
12549         (main): Invoke gl_msvc_inval_ensure_handler.
12550         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12551         * modules/fputc-tests (Depends-on): Likewise.
12552         * modules/fread-tests (Depends-on): Likewise.
12553         * modules/fwrite-tests (Depends-on): Likewise.
12554
12555 2011-09-27  Bruno Haible  <bruno@clisp.org>
12556
12557         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12558         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12559         (raise): Remove older, duplicated declaration.
12560         (_gl_raise_SIGPIPE): New declaration.
12561         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12562         (rpl_raise): Remove function.
12563         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12564         a gnulib-defined SIGPIPE here.
12565         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12566         'sigprocmask' has detected missing signal-blocking and the module
12567         'sigpipe' is enabled.
12568         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12569
12570 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12571
12572         base64-tests: avoid memory leak
12573         * tests/test-base64.c (main): Plug memory leak.
12574
12575         base32: new module
12576         * modules/base32: New module.
12577         * lib/base32.c: New file.
12578         * lib/base32.h: Likewise.
12579         * m4/base32.m4: Likewise.
12580         * modules/base32-tests: New test.
12581         * tests/test-base32.c: Likewise.
12582         * MODULES.html.sh (Misc): Mention it.
12583
12584 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12585
12586         gnulib: use more-standard license notice wording
12587         * gnulib-tool (func_emit_copyright_notice): When emitting a
12588         license notice into a file, use the standard wording as suggested
12589         by the current information for GNU maintainers, except say "file"
12590         rather than "program".  The new wording gives a license version
12591         number, which addresses an issue raised by Glenn Morris in
12592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12593         * m4/onceonly.m4: Use that same wording here, too.
12594
12595         dup2: minor simplification
12596         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12597         as lib/dup2.c no longer uses 'inline'.
12598
12599 2011-09-25  Bruno Haible  <bruno@clisp.org>
12600
12601         strings: Fix compilation error on MSVC.
12602         * lib/strings.in.h: Include <stddef.h> for size_t.
12603
12604 2011-09-25  Bruno Haible  <bruno@clisp.org>
12605
12606         fflush et al.: Document limitation on MSVC.
12607         * doc/posix-functions/fflush.texi: Document possible crash in handling
12608         mode other than DEFAULT_HANDLING.
12609         * doc/posix-functions/fgetc.texi: Likewise.
12610         * doc/posix-functions/fputc.texi: Likewise.
12611         * doc/posix-functions/fread.texi: Likewise.
12612         * doc/posix-functions/fwrite.texi: Likewise.
12613
12614 2011-09-25  Bruno Haible  <bruno@clisp.org>
12615
12616         msvc-inval: Allow three invalid parameter handling modes.
12617         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12618         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12619         macros.
12620         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12621         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12622         SANE_LIBRARY_HANDLING as a no-op.
12623         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12624         <stdlib.h>.
12625         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12626
12627 2011-09-25  Bruno Haible  <bruno@clisp.org>
12628
12629         msvc-inval: Make handler multithread-safe.
12630         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12631         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12632         declarations.
12633         (gl_msvc_inval_current): New declaration.
12634         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12635         Operate on the structure returned by gl_msvc_inval_current().
12636         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12637         Remove varaiables.
12638         (tls_index, tls_initialized): New variables.
12639         (not_per_thread): New variable.
12640         (gl_msvc_inval_current): New function.
12641         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12642         returned by gl_msvc_inval_current().
12643
12644 2011-09-25  Bruno Haible  <bruno@clisp.org>
12645
12646         msvc-inval: Install handler globally.
12647         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12648         !_MSC_VER.
12649         (gl_msvc_invalid_parameter_handler): Remove declaration.
12650         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12651         declarations.
12652         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12653         Install the handler globally, don't uninstall it.
12654         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12655         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12656         currently valid, call RaiseException instead.
12657         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12658         for !_MSC_VER.
12659
12660 2011-09-25  Bruno Haible  <bruno@clisp.org>
12661
12662         strerror_r-posix: Fix for MSVC 9.
12663         * lib/strerror_r.c (local_snprintf): New function.
12664         (snprintf): Define to local_snprintf, not to _snprintf.
12665
12666 2011-09-25  Bruno Haible  <bruno@clisp.org>
12667
12668         ftruncate: Support for MSVC 9.
12669         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12670         (chsize_nothrow): New function.
12671         (chsize): Redefine as a macro.
12672         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12673         * modules/ftruncate (Depends-on): Add msvc-inval.
12674
12675 2011-09-25  Bruno Haible  <bruno@clisp.org>
12676
12677         New module 'fstat'.
12678         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12679         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12680         * lib/fchdir.c (rpl_fstat): Remove function.
12681         * m4/fstat.m4: New file.
12682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12684         declared.
12685         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12686         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12687         * modules/fstat: New file.
12688         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12689         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12690         is set.
12691         * doc/posix-functions/fstat.texi: Mention the new module and the
12692         problem on MSVC.
12693         * NEWS: Mention the change.
12694         * modules/acl (Depends-on): Add fstat.
12695         * modules/chdir-safer (Depends-on): Likewise.
12696         * modules/chown (Depends-on): Likewise.
12697         * modules/copy-file (Depends-on): Likewise.
12698         * modules/fchdir (Depends-on): Likewise.
12699         * modules/fdopendir (Depends-on): Likewise.
12700         * modules/fopen (Depends-on): Likewise.
12701         * modules/fts (Depends-on): Likewise.
12702         * modules/getcwd (Depends-on): Likewise.
12703         * modules/isapipe (Depends-on): Likewise.
12704         * modules/linkat (Depends-on): Likewise.
12705         * modules/lseek (Depends-on): Likewise.
12706         * modules/mkdir-p (Depends-on): Likewise.
12707         * modules/open (Depends-on): Likewise.
12708         * modules/openat (Depends-on): Likewise.
12709         * modules/read-file (Depends-on): Likewise.
12710         * modules/renameat (Depends-on): Likewise.
12711         * modules/utimens (Depends-on): Likewise.
12712
12713 2011-09-25  Bruno Haible  <bruno@clisp.org>
12714
12715         linkat: Fix compilation on MSVC 9.
12716         * lib/linkat.c: Don't include <stdint.h>.
12717
12718 2011-09-25  Bruno Haible  <bruno@clisp.org>
12719
12720         fclose: Support for MSVC 9.
12721         * lib/fclose.c: Include msvc-inval.h.
12722         (fclose_nothrow): New function.
12723         (rpl_fclose): Use it.
12724         * modules/fclose (Depends-on): Add msvc-inval.
12725         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12726
12727 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12728
12729         dup2: minor simplifications
12730         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12731         that it's a performance win.
12732         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12733         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12734
12735 2011-09-24  Jim Meyering  <meyering@redhat.com>
12736
12737         test-futimens: avoid a warning from gcc -Wshadow
12738         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12739         to avoid a shadowing warning.
12740
12741 2011-09-24  Bruno Haible  <bruno@clisp.org>
12742
12743         fdopen: Support for MSVC 9.
12744         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12745         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12746         * lib/fdopen.c: Include msvc-inval.h.
12747         (fdopen_nothrow): New function.
12748         (rpl_fdopen): Use it.
12749         * modules/fdopen (Depends-on): Add msvc-inval.
12750         * modules/fclose-tests (Depends-on): Add fdopen.
12751         * modules/fflush-tests (Depends-on): Likewise.
12752         * modules/fgetc-tests (Depends-on): Likewise.
12753         * modules/fputc-tests (Depends-on): Likewise.
12754         * modules/fread-tests (Depends-on): Likewise.
12755         * modules/freopen-tests (Depends-on): Likewise.
12756         * modules/fseeko-tests (Depends-on): Likewise.
12757         * modules/ftello-tests (Depends-on): Likewise.
12758         * modules/fwrite-tests  (Depends-on): Likewise.
12759         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12760
12761 2011-09-24  Bruno Haible  <bruno@clisp.org>
12762
12763         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12764         * modules/fgetc-tests (Depends-on): Add unistd.
12765         * modules/fputc-tests (Depends-on): Likewise.
12766         * modules/fread-tests (Depends-on): Likewise.
12767         * modules/fwrite-tests (Depends-on): Likewise.
12768
12769 2011-09-24  Bruno Haible  <bruno@clisp.org>
12770
12771         dup: Simplify autoconf test.
12772         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12773         on gl_MSVC_INVAL's result.
12774
12775 2011-09-24  Bruno Haible  <bruno@clisp.org>
12776
12777         Tests for function fwrite().
12778         * modules/fwrite-tests: New file.
12779         * tests/test-fwrite.c: New file.
12780         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12781
12782         Tests for function fread().
12783         * modules/fread-tests: New file.
12784         * tests/test-fread.c: New file.
12785         * modules/stdio-tests (Depends-on): Add fread-tests.
12786
12787         Activate fputc tests.
12788         * modules/stdio-tests (Depends-on): Add fputc-tests.
12789
12790         Enhance fgetc, fputc tests.
12791         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12792         * tests/test-fputc.c (main): Likewise.
12793
12794 2011-09-24  Bruno Haible  <bruno@clisp.org>
12795
12796         write: Support for MSVC 9.
12797         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12798         is not 1.
12799         * lib/write.c (write_nothrow): New function.
12800         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12801         not 1. Use write_nothrow.
12802         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12803         invalid parameter handler.
12804         (gl_PREREQ_WRITE): New macro.
12805         * modules/write (Depends-on): Add msvc-inval.
12806         (configure.ac): Invoke gl_PREREQ_WRITE.
12807         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12808
12809 2011-09-24  Bruno Haible  <bruno@clisp.org>
12810
12811         read: Fix last commit.
12812         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12813
12814 2011-09-24  Bruno Haible  <bruno@clisp.org>
12815
12816         dup2: Fix last commit.
12817         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12818         (rpl_dup2): Disable fcntl workaround on native Windows.
12819
12820         sigprocmask: Make code safer.
12821         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12822         section that changes macro definitions for this compilation unit.
12823
12824 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12825
12826         dup2: clarify by coalescing Windows-specific material
12827         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12828         "msvc-nothrow.h"' to the Windows-specific section, so that the
12829         Emacs source need not contain these include files.
12830         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12831         Windows-specific fixes into this function rather than just the
12832         nothrow fix, as this shortens and clarifies the code.  Always
12833         define as a function, as that's a bit cleaner than having it be
12834         sometimes a function and sometimes a macro.
12835         (rpl_dup2): Move the Windows-specific stuff out of here and into
12836         ms_windows_dup2.  Don't protect the Haiku-related fix with
12837         "#if !defined __linux__", as the same code also works around
12838         a Linux kernel bug, and it doesn't add any system calls on any
12839         platform.  Add comment about FreeBSD 6.1.
12840
12841         sigprocmask: move #include directive
12842         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12843         Windows-specific section, so that the Emacs source need not
12844         contain msvc-inval.h.
12845
12846 2011-09-23  Bruno Haible  <bruno@clisp.org>
12847
12848         read: Support for MSVC 9.
12849         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12850         is not 1.
12851         * lib/read.c (read_nothrow): New function.
12852         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12853         read_nothrow.
12854         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12855         invalid parameter handler.
12856         (gl_PREREQ_READ): New macro.
12857         * modules/read (Depends-on): Add msvc-inval.
12858         (configure.ac): Invoke gl_PREREQ_READ.
12859         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12860
12861 2011-09-23  Bruno Haible  <bruno@clisp.org>
12862
12863         close: Support for MSVC 9.
12864         * lib/close.c: Include <errno.h>, msvc-inval.h.
12865         (close_nothrow): New function.
12866         (rpl_close): Use it.
12867         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12868         invalid parameter handler.
12869         * modules/close (Depends-on): Add msvc-inval.
12870         * modules/dup2-tests (Depends-on): Add close.
12871         * modules/dup3-tests (Depends-on): Likewise.
12872         * modules/fcntl-tests (Depends-on): Likewise.
12873         * modules/spawn-pipe-tests (Depends-on): Likewise.
12874         * modules/unistd-safer-tests (Depends-on): Likewise.
12875         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12876
12877 2011-09-23  Bruno Haible  <bruno@clisp.org>
12878
12879         New module 'dup'.
12880         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12881         Allow replacement.
12882         * lib/dup.c: New file.
12883         * lib/fchdir.c (rpl_dup): Remove function.
12884         * m4/dup.m4: New file.
12885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12886         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12887         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12888         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12889         * modules/dup: New file.
12890         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12891         'dup' module is in use.
12892         * modules/fdopendir (Depends-on): Add dup.
12893         * modules/fdutimensat-tests (Depends-on): Likewise.
12894         * modules/fts (Depends-on): Likewise.
12895         * modules/futimens-tests (Depends-on): Likewise.
12896         * modules/posix_spawnp-tests (Depends-on): Likewise.
12897         * modules/unistd-safer-tests (Depends-on): Likewise.
12898         * modules/utimens-tests (Depends-on): Likewise.
12899         * doc/posix-functions/dup.texi: Mention the new module and the problem
12900         on MSVC.
12901
12902 2011-09-23  Bruno Haible  <bruno@clisp.org>
12903
12904         getdtablesize: Support for MSVC 9.
12905         * lib/getdtablesize.c: Include msvc-inval.h.
12906         (_setmaxstdio_nothrow): New function.
12907         (_setmaxstdio): Redefine it.
12908         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12909         * modules/getdtablesize (Depends-on): Add msvc-inval.
12910         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12911
12912 2011-09-23  Bruno Haible  <bruno@clisp.org>
12913
12914         signal-h: Rename from signal.
12915         * modules/signal-h: Renamed from modules/signal.
12916         * modules/pthread_sigmask (Depends-on): Update.
12917         * modules/raise (Depends-on): Likewise.
12918         * modules/sigaction (Depends-on): Likewise.
12919         * modules/sigpipe (Depends-on): Likewise.
12920         * modules/sigprocmask (Depends-on): Likewise.
12921         * modules/sys_select (Depends-on): Likewise.
12922         * modules/signal-h-tests: Renamed from modules/signal-tests.
12923         (Files, Depends-on, Makefile.am): Update.
12924         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12925         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12926         (Files, Makefile.am): Update.
12927         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12928         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12929         * modules/signal: New placeholder file.
12930         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12931         * doc/posix-headers/signal.texi: Update.
12932         * NEWS: Mention the change.
12933
12934 2011-09-23  Bruno Haible  <bruno@clisp.org>
12935
12936         sigprocmask: Avoid crashes through signal() on MSVC 9.
12937         * lib/sigprocmask.c: Include msvc-inval.h.
12938         (signal_nothrow): New function.
12939         (signal): Redefine it.
12940         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12941         * modules/sigprocmask (Depends-on): Add msvc-inval.
12942         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12943
12944 2011-09-23  Bruno Haible  <bruno@clisp.org>
12945
12946         Tests for module 'raise'.
12947         * modules/raise-tests: New file.
12948         * tests/test-raise.c: New file.
12949
12950         raise: Support for MSVC.
12951         * lib/signal.in.h (raise): New declaration.
12952         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12953         for native Windows platforms.
12954         * m4/raise.m4: New file.
12955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12956         HAVE_RAISE, REPLACE_RAISE.
12957         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12958         REPLACE_RAISE.
12959         * modules/raise (Status, Notice): Remove fields.
12960         (Files): Add m4/raise.m4.
12961         (Depends-on): Add signal, msvc-inval.
12962         (configure.ac): Use the common idioms.
12963         (Maintainer): Add me.
12964         * tests/test-signal-c++.cc: Check the signature of raise.
12965         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12966
12967 2011-09-23  Bruno Haible  <bruno@clisp.org>
12968
12969         pipe2: Fix compilation on pre-C99 compilers.
12970         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12971
12972 2011-09-23  Bruno Haible  <bruno@clisp.org>
12973
12974         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12975         * lib/msvc-nothrow.h: New file.
12976         * lib/msvc-nothrow.c: New file.
12977         * m4/msvc-nothrow.m4: New file.
12978         * modules/msvc-nothrow: New file.
12979         * lib/dup2.c: Include msvc-nothrow.h.
12980         (rpl_dup2): No need to protect _get_osfhandle call here.
12981         * lib/accept4.c: Include msvc-nothrow.h.
12982         * lib/error.c: Likewise.
12983         * lib/fcntl.c: Likewise.
12984         * lib/lseek.c: Likewise.
12985         * lib/nonblocking.c: Likewise.
12986         * lib/poll.c: Likewise.
12987         * lib/read.c: Likewise.
12988         * lib/select.c: Likewise.
12989         * lib/sockets.h: Likewise.
12990         * lib/sockets.c: Likewise.
12991         * lib/stdio-read.c: Likewise.
12992         * lib/stdio-write.c: Likewise.
12993         * lib/write.c: Likewise.
12994         * lib/w32sock.h: Likewise.
12995         * lib/w32spawn.h: Likewise.
12996         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12997         * lib/fsync.c: Likewise.
12998         * lib/isapipe.c: Likewise.
12999         * modules/dup2 (Depends-on): Add msvc-nothrow.
13000         * modules/accept4 (Depends-on): Likewise.
13001         * modules/error (Depends-on): Likewise.
13002         * modules/fcntl (Depends-on): Likewise.
13003         * modules/lseek (Depends-on): Likewise.
13004         * modules/nonblocking (Depends-on): Likewise.
13005         * modules/poll (Depends-on): Likewise.
13006         * modules/read (Depends-on): Likewise.
13007         * modules/select (Depends-on): Likewise.
13008         * modules/sockets (Depends-on): Likewise.
13009         * modules/sigpipe (Depends-on): Likewise.
13010         * modules/write (Depends-on): Likewise.
13011         * modules/accept (Depends-on): Likewise.
13012         * modules/bind (Depends-on): Likewise.
13013         * modules/connect (Depends-on): Likewise.
13014         * modules/gethostname (Depends-on): Likewise.
13015         * modules/getpeername (Depends-on): Likewise.
13016         * modules/getsockname (Depends-on): Likewise.
13017         * modules/getsockopt (Depends-on): Likewise.
13018         * modules/ioctl (Depends-on): Likewise.
13019         * modules/listen (Depends-on): Likewise.
13020         * modules/recv (Depends-on): Likewise.
13021         * modules/recvfrom (Depends-on): Likewise.
13022         * modules/send (Depends-on): Likewise.
13023         * modules/sendto (Depends-on): Likewise.
13024         * modules/setsockopt (Depends-on): Likewise.
13025         * modules/shutdown (Depends-on): Likewise.
13026         * modules/socket (Depends-on): Likewise.
13027         * modules/execute (Depends-on): Likewise.
13028         * modules/spawn-pipe (Depends-on): Likewise.
13029         * modules/flock (Depends-on): Likewise.
13030         * modules/fsync (Depends-on): Likewise.
13031         * modules/isapipe (Depends-on): Likewise.
13032         * tests/test-cloexec.c: Include msvc-nothrow.h.
13033         * tests/test-dup-safer.c: Likewise.
13034         * tests/test-dup2.c: Likewise.
13035         * tests/test-dup3.c: Likewise.
13036         * tests/test-fcntl.c: Likewise.
13037         * tests/test-pipe.c: Likewise.
13038         * tests/test-pipe2.c: Likewise.
13039         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13040         * modules/unistd-safer-tests (Depends-on): Likewise.
13041         * modules/dup2-tests (Depends-on): Likewise.
13042         * modules/dup3-tests (Depends-on): Likewise.
13043         * modules/fcntl-tests (Depends-on): Likewise.
13044         * modules/pipe-posix-tests (Depends-on): Likewise.
13045         * modules/pipe2-tests (Depends-on): Likewise.
13046
13047 2011-09-23  Bruno Haible  <bruno@clisp.org>
13048
13049         dup2: Make code more maintainable.
13050         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13051         (rpl_dup2): Use it.
13052         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13053         * modules/dup2 (configure.ac): Invoke it.
13054         Reported by Paul Eggert.
13055
13056 2011-09-23  Bruno Haible  <bruno@clisp.org>
13057
13058         msvc-inval: Fix compilation error.
13059         * lib/msvc-inval.h: Include <excpt.h>.
13060
13061 2011-09-23  Bruno Haible  <bruno@clisp.org>
13062
13063         mkdir: Tweak for MSVC 9.
13064         * lib/sys_stat.in.h: Update comments.
13065         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13066
13067         Tests for module 'chdir'.
13068         * modules/chdir-tests: New file.
13069         * tests/test-chdir.c: New file.
13070
13071         New module 'chdir'.
13072         * modules/chdir: New file.
13073         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13074         (chdir): New declaration.
13075         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13076         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13077         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13078         * tests/test-unistd-c++.cc: Check signature of chdir.
13079         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13080         * modules/chdir-long (Depends-on): Add chdir.
13081         * modules/fchdir (Depends-on): Likewise.
13082         * modules/rename (Depends-on): Likewise.
13083         * modules/savewd (Depends-on): Likewise.
13084
13085         rmdir: Support for mingw, MSVC 9.
13086         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13087         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13088
13089         getcwd: Tweak for MSVC 9.
13090         * lib/unistd.in.h: Update comments.
13091         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13092
13093 2011-09-22  Bruno Haible  <bruno@clisp.org>
13094
13095         strerror_r-posix: Avoid a link error on MSVC.
13096         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13097         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13098
13099 2011-09-22  Bruno Haible  <bruno@clisp.org>
13100
13101         select: Avoid link errors on MSVC.
13102         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13103         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13104         * modules/pselect (Link): Likewise.
13105         * NEWS: Mention the change.
13106         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13107         test-select-stdin against $(LIB_SELECT).
13108         * modules/pselect-tests (Makefile.am): Link test-pselect against
13109         $(LIB_SELECT).
13110
13111 2011-09-22  Bruno Haible  <bruno@clisp.org>
13112
13113         select: Avoid compilation error on MSVC.
13114         * lib/select.c: Don't include <stdbool.h>.
13115
13116 2011-09-21  Bruno Haible  <bruno@clisp.org>
13117
13118         Consolidate all uses of PATH_MAX in *.m4 files.
13119         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13120         macros.
13121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13122         and gl_PATHMAX_SNIPPET.
13123         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13124         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13125         * modules/chdir-long (Files): Add m4/pathmax.m4.
13126         * modules/getcwd (Files): Likewise.
13127
13128 2011-09-21  Bruno Haible  <bruno@clisp.org>
13129
13130         ftruncate: Un-deprecate, concentrate on Win32 support.
13131         * modules/ftruncate (Status, Notice): Remove sections.
13132         (Depends-on): Add largefile.
13133         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13134         non-mingw platforms.
13135         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13136         include <io.h>.
13137         * modules/perror-tests (Depends-on): Add ftruncate.
13138         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13139         'ftruncate' module.
13140
13141 2011-09-21  Bruno Haible  <bruno@clisp.org>
13142
13143         Add dependencies to new dirent related modules.
13144         * modules/opendir (Depends-on): Add closedir.
13145         * modules/getcwd (Depends-on): Add opendir, closedir.
13146         * modules/dirent-safer-tests (Depends-on): Likewise.
13147         * modules/fdopendir-tests (Depends-on): Likewise.
13148         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13149         * modules/renameat-tests (Depends-on): Likewise.
13150
13151 2011-09-21  Bruno Haible  <bruno@clisp.org>
13152
13153         opendir: Avoid compilation error on mingw.
13154         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13155         * modules/opendir (Depends-on): Add unistd.
13156
13157 2011-09-21  Bruno Haible  <bruno@clisp.org>
13158
13159         ftruncate tests: Avoid a test failure on mingw.
13160         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13161
13162 2011-09-21  Bruno Haible  <bruno@clisp.org>
13163
13164         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13165         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13166         native Windows.
13167
13168 2011-09-21  Bruno Haible  <bruno@clisp.org>
13169
13170         New module 'fdopen'.
13171         * lib/stdio.in.h (fdopen): New declaration.
13172         * lib/fdopen.c: New file.
13173         * m4/fdopen.m4: New file.
13174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13175         REPLACE_FDOPEN.
13176         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13177         REPLACE_FDOPEN.
13178         * modules/fdopen: New file.
13179         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13180         * tests/test-stdio-c++.cc: Check signature of fdopen.
13181         * doc/posix-functions/fdopen.texi: Mention the new module.
13182
13183 2011-09-21  Bruno Haible  <bruno@clisp.org>
13184
13185         unlockpt tests: Avoid test failure on NetBSD 5.1.
13186         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13187         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13188
13189 2011-09-21  Bruno Haible  <bruno@clisp.org>
13190
13191         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13192         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13193         * tests/test-getlogin_r.c (main): Likewise.
13194
13195 2011-09-20  Bruno Haible  <bruno@clisp.org>
13196
13197         time tests: Don't require pid_t.
13198         * doc/posix-headers/time.texi: Revert last change.
13199         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13200         * tests/test-time.c: Comment out the check for pid_t.
13201
13202 2011-09-20  Bruno Haible  <bruno@clisp.org>
13203
13204         fsync tests: Avoid a test failure on mingw.
13205         * tests/test-fsync.c (main): Allow a failure with EIO.
13206
13207 2011-09-20  Bruno Haible  <bruno@clisp.org>
13208
13209         euidaccess: Update comments.
13210         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13211
13212 2011-09-20  Bruno Haible  <bruno@clisp.org>
13213
13214         Ensure EBADF returns for socket functions on mingw.
13215         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13216         descriptor is invalid.
13217         * lib/bind.c (rpl_bind): Likewise.
13218         * lib/connect.c (rpl_connect): Likewise.
13219         * lib/getpeername.c (rpl_getpeername): Likewise.
13220         * lib/getsockname.c (rpl_getsockname): Likewise.
13221         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13222         * lib/listen.c (rpl_listen): Likewise.
13223         * lib/recv.c (rpl_recv): Likewise.
13224         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13225         * lib/send.c (rpl_send): Likewise.
13226         * lib/sendto.c (rpl_sendto): Likewise.
13227         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13228         * lib/shutdown.c (rpl_shutdown): Likewise.
13229
13230 2011-09-20  Bruno Haible  <bruno@clisp.org>
13231
13232         select tests: EBADF tests.
13233         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13234         test_bad_fd): New functions.
13235         (test_function): Invoke also test_bad_fd.
13236
13237 2011-09-20  Bruno Haible  <bruno@clisp.org>
13238
13239         Tests for module 'posix_spawn_file_actions_addopen.
13240         * modules/posix_spawn_file_actions_addopen-tests: New file.
13241         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13242
13243         Tests for module 'posix_spawn_file_actions_adddup2'.
13244         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13245         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13246
13247         Tests for module 'posix_spawn_file_actions_addclose'.
13248         * modules/posix_spawn_file_actions_addclose-tests: New file.
13249         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13250
13251 2011-09-20  Bruno Haible  <bruno@clisp.org>
13252
13253         Tests for module 'unlockpt'.
13254         * modules/unlockpt-tests: New file.
13255         * tests/test-unlockpt.c: New file.
13256         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13257
13258         Tests for module 'grantpt'.
13259         * modules/grantpt-tests: New file.
13260         * tests/test-grantpt.c: New file.
13261         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13262
13263 2011-09-20  Bruno Haible  <bruno@clisp.org>
13264
13265         freopen tests: EBADF tests.
13266         * tests/test-freopen.c: Include errno.h, unistd.h.
13267         (main): Add tests for EBADF, commented out for the moment.
13268
13269         fclose tests: EBADF tests.
13270         * tests/test-fclose.c (main): Add tests for EBADF.
13271
13272         fflush tests: EBADF tests.
13273         * tests/test-fflush.c: Include errno.h, macros.h.
13274         (main): Add tests for EBADF.
13275
13276         ftello tests: EBADF tests.
13277         * tests/test-ftello4.sh: New file.
13278         * tests/test-ftello4.c: New file.
13279         * modules/ftello-tests (Files): Add them.
13280         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13281
13282         fseeko tests: EBADF tests.
13283         * tests/test-fseeko4.sh: New file.
13284         * tests/test-fseeko4.c: New file.
13285         * modules/fseeko-tests (Files): Add them.
13286         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13287
13288         Tests for function fputc().
13289         * modules/fputc-tests: New file.
13290         * tests/test-fputc.c: New file.
13291         * modules/stdio-tests (Depends-on): Add fputc-tests.
13292
13293         Tests for function fgetc().
13294         * modules/fgetc-tests: New file.
13295         * tests/test-fgetc.c: New file.
13296         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13297
13298         Tests for function fdopen().
13299         * modules/fdopen-tests: New file.
13300         * tests/test-fdopen.c: New file.
13301         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13302
13303         Tests for module 'vdprintf'.
13304         * modules/vdprintf-tests: New file.
13305         * tests/test-vdprintf.c: New file.
13306
13307         Tests for module 'dprintf'.
13308         * modules/dprintf-tests: New file.
13309         * tests/test-dprintf.c: New file.
13310
13311 2011-09-20  Bruno Haible  <bruno@clisp.org>
13312
13313         Tests for module 'ioctl'.
13314         * modules/ioctl-tests: New file.
13315         * tests/test-ioctl.c: New file.
13316
13317 2011-09-20  Bruno Haible  <bruno@clisp.org>
13318
13319         fcntl tests: EBADF tests.
13320         * tests/test-fcntl.c (main): Add more tests for EBADF.
13321
13322 2011-09-20  Bruno Haible  <bruno@clisp.org>
13323
13324         utimensat tests: EBADF tests.
13325         * tests/test-utimensat.c (main): Add tests for EBADF.
13326
13327         renameat tests: EBADF tests.
13328         * tests/test-renameat.c (main): Add tests for EBADF.
13329
13330         mkfifoat tests: EBADF tests.
13331         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13332
13333         readlinkat tests: EBADF tests.
13334         * tests/test-readlinkat.c (main): Add tests for EBADF.
13335
13336         symlinkat tests: EBADF tests.
13337         * tests/test-symlinkat.c (main): Add tests for EBADF.
13338
13339         linkat tests: EBADF tests.
13340         * tests/test-linkat.c (main): Add tests for EBADF.
13341
13342         Tests for module 'faccessat'.
13343         * modules/faccessat-tests: New file.
13344         * tests/test-faccessat.c: New file.
13345
13346         fdopendir tests: EBADF tests.
13347         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13348
13349         openat tests: EBADF tests.
13350         * tests/test-fchownat.c (main): Add tests for EBADF.
13351         * tests/test-fstatat.c (main): Likewise.
13352         * tests/test-mkdirat.c (main): Likewise.
13353         * tests/test-openat.c (main): Likewise.
13354         * tests/test-unlinkat.c (main): Likewise.
13355         * tests/test-fchmodat.c: New file.
13356         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13357         (Makefile.am): Also run 'test-fchmodat'.
13358
13359 2011-09-20  Bruno Haible  <bruno@clisp.org>
13360
13361         utimens, futimens, fdutimensat tests: EBADF tests.
13362         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13363
13364         Tests for function fstat().
13365         * modules/fstat-tests: New file.
13366         * tests/test-fstat.c: New file.
13367         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13368
13369 2011-09-20  Bruno Haible  <bruno@clisp.org>
13370
13371         test-ttyname_r tests: EBADF tests.
13372         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13373
13374         Tests for module 'isatty'.
13375         * modules/isatty-tests: New file.
13376         * tests/test-isatty.c: New file.
13377
13378         Tests for module 'write'.
13379         * modules/write-tests: New file.
13380         * tests/test-write.c: New file.
13381
13382         Tests for module 'read'.
13383         * modules/read-tests: New file.
13384         * tests/test-read.c: New file.
13385
13386         pwrite tests: EBADF tests.
13387         * tests/test-pwrite.c (main): Add tests for EBADF.
13388
13389         pread tests: EBADF tests.
13390         * tests/test-pread.c (main): Add tests for EBADF.
13391
13392         lseek tests: EBADF tests.
13393         * tests/test-lseek.c (main): Add more tests for EBADF.
13394
13395         Tests for module 'ftruncate'.
13396         * modules/ftruncate-tests: New file.
13397         * tests/test-ftruncate.sh: New file.
13398         * tests/test-ftruncate.c: New file.
13399
13400         fsync tests: EBADF tests.
13401         * tests/test-fsync.c (main): Add more tests for EBADF.
13402
13403         fdatasync tests: EBADF tests.
13404         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13405
13406         Tests for module 'fchown'.
13407         * modules/fchown-tests: New file.
13408         * tests/test-fchown.c: New file.
13409
13410         Tests for module 'fchmod'.
13411         * modules/fchmod-tests: New file.
13412         * tests/test-fchmod.c: New file.
13413
13414         fchdir tests: EBADF tests.
13415         * tests/test-fchdir.c (main): Add more tests for EBADF.
13416
13417         dup2 tests: EBADF tests.
13418         * tests/test-dup2.c (main): Add more tests for EBADF.
13419
13420         Tests for module 'dup'.
13421         * modules/dup-tests: New file.
13422         * tests/test-dup.c: New file.
13423
13424         Tests for module 'close'.
13425         * modules/close-tests: New file.
13426         * tests/test-close.c: New file.
13427
13428 2011-09-20  Bruno Haible  <bruno@clisp.org>
13429
13430         Tests for module 'shutdown'.
13431         * modules/shutdown-tests: New file.
13432         * tests/test-shutdown.c: New file.
13433
13434         Tests for module 'setsockopt'.
13435         * modules/setsockopt-tests: New file.
13436         * tests/test-setsockopt.c: New file.
13437
13438         Tests for module 'sendto'.
13439         * modules/sendto-tests: New file.
13440         * tests/test-sendto.c: New file.
13441
13442         Tests for module 'send'.
13443         * modules/send-tests: New file.
13444         * tests/test-send.c: New file.
13445
13446         Tests for module 'recvfrom'.
13447         * modules/recvfrom-tests: New file.
13448         * tests/test-recvfrom.c: New file.
13449
13450         Tests for module 'recv'.
13451         * modules/recv-tests: New file.
13452         * tests/test-recv.c: New file.
13453
13454         Tests for module 'listen'.
13455         * modules/listen-tests: New file.
13456         * tests/test-listen.c: New file.
13457
13458         Tests for module 'getsockopt'.
13459         * modules/getsockopt-tests: New file.
13460         * tests/test-getsockopt.c: New file.
13461
13462         Tests for module 'getsockname'.
13463         * modules/getsockname-tests: New file.
13464         * tests/test-getsockname.c: New file.
13465
13466         Tests for module 'getpeername'.
13467         * modules/getpeername-tests: New file.
13468         * tests/test-getpeername.c: New file.
13469
13470         Tests for module 'connect'.
13471         * modules/connect-tests: New file.
13472         * tests/test-connect.c: New file.
13473
13474         Tests for module 'bind'.
13475         * modules/bind-tests: New file.
13476         * tests/test-bind.c: New file.
13477
13478         accept4 tests: Fix for native Windows.
13479         * tests/test-accept4.c: Include sockets.h.
13480         (main): Invoke gl_sockets_startup.
13481         * modules/accept4-tests (Depends-on): Add sockets.
13482
13483         accept tests: Fix for native Windows.
13484         * tests/test-accept.c: Include sockets.h.
13485         (main): Invoke gl_sockets_startup.
13486         * modules/accept-tests (Depends-on): Add sockets.
13487
13488 2011-09-19  Bruno Haible  <bruno@clisp.org>
13489
13490         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13491         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13492         do...while(0).
13493         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13494         Suggested by Paul Eggert.
13495
13496 2011-09-19  Bruno Haible  <bruno@clisp.org>
13497
13498         sched: Ensure pid_t is defined.
13499         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13500         not define pid_t.
13501         * lib/sched.in.h: Include <sys/types.h>.
13502         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13504
13505 2011-09-19  Bruno Haible  <bruno@clisp.org>
13506
13507         msvc-inval: Ensure the entire expansion is a single statement.
13508         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13509         of braces.
13510
13511 2011-09-19  Jim Meyering  <meyering@redhat.com>
13512
13513         tests: use printf, not echo in init.sh's warn_ function
13514         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13515         misbehave when given strings containing a backslash or starting
13516         with e.g., -n.  James Youngman suggested setting IFS.
13517
13518 2011-09-19  Eric Blake  <eblake@redhat.com>
13519
13520         futimens: enhance test
13521         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13522         closed non-negative fd.
13523
13524         date: accept 'hence' as opposite of 'ago'
13525         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13526         * tests/test-parse-datetime.c (main): Enhance test.
13527         Suggested by Jesse Wilson.
13528
13529 2011-09-19  Jim Meyering  <meyering@redhat.com>
13530
13531         getcwd: don't fail in a deep directory on a system without openat
13532         Before this change, getcwd would fail when called from a directory
13533         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13534         the non-openat implementation used "..", "../..", "../../..", etc.
13535         to access ancestor directories.  With too many, that string would
13536         be longer than PATH_MAX.
13537         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13538         using gnulib's openat replacement.
13539         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13540         we're using the replacement function.
13541
13542 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13543
13544         maint.mk: avoid warnings from perl about missing files
13545         * top/maint.mk (def_sym_regex): Ignore files listed in
13546         $(gl_other_headers_) that do not exist, say because a project
13547         does not use a corresponding module.
13548
13549 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13550
13551         stat: use pathmax.h only if needed
13552         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13553         This is better for Emacs, which does not have a mingw port and
13554         therefore can avoid the pathmax module.
13555
13556         utimens: remove dependency on dup2
13557         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13558         to work around the Linux kernel bug.
13559         * modules/utimens (Depends-on): Remove dup2.
13560
13561 2011-09-18  Bruno Haible  <bruno@clisp.org>
13562
13563         inet_ntop, inet_pton: Look for it also in libresolv.
13564         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13565         libnsl, search for it in libresolv.
13566         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13567         Needed on Solaris 7.
13568
13569 2011-09-18  Bruno Haible  <bruno@clisp.org>
13570
13571         accept, accept4 tests: Avoid link error on Solaris.
13572         * modules/accept-tests (Makefile.am): Link test-accept against
13573         $(LIBSOCKET).
13574         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13575         $(LIBSOCKET).
13576
13577         accept4: Avoid link error on Solaris.
13578         * modules/accept4 (Link): New section.
13579
13580         socket functions: Avoid link errors on Solaris.
13581         * modules/accept (Depends-on): Add socketlib.
13582         (Link): New section.
13583         * modules/bind (Depends-on): Add socketlib.
13584         (Link): New section.
13585         * modules/connect (Depends-on): Add socketlib.
13586         (Link): New section.
13587         * modules/getpeername (Depends-on): Add socketlib.
13588         (Link): New section.
13589         * modules/getsockname (Depends-on): Add socketlib.
13590         (Link): New section.
13591         * modules/getsockopt (Depends-on): Add socketlib.
13592         (Link): New section.
13593         * modules/listen (Depends-on): Add socketlib.
13594         (Link): New section.
13595         * modules/recv (Depends-on): Add socketlib.
13596         (Link): New section.
13597         * modules/recvfrom (Depends-on): Add socketlib.
13598         (Link): New section.
13599         * modules/send (Depends-on): Add socketlib.
13600         (Link): New section.
13601         * modules/sendto (Depends-on): Add socketlib.
13602         (Link): New section.
13603         * modules/setsockopt (Depends-on): Add socketlib.
13604         (Link): New section.
13605         * modules/shutdown (Depends-on): Add socketlib.
13606         (Link): New section.
13607         * modules/socket (Depends-on): Add socketlib.
13608         (Link): New section.
13609
13610 2011-09-18  Bruno Haible  <bruno@clisp.org>
13611
13612         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13613         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13614         than 5 seconds.
13615         * modules/ptsname-tests (configure.ac): Test for alarm.
13616
13617 2011-09-18  Bruno Haible  <bruno@clisp.org>
13618
13619         posix_spawn_file_actions_add*: Fix module dependencies.
13620         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13621         posix_spawn_file_actions_init.
13622         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13623         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13624
13625 2011-09-18  Bruno Haible  <bruno@clisp.org>
13626
13627         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13628         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13629         * tests/test-renameat.c (main): Likewise.
13630
13631 2011-09-18  Bruno Haible  <bruno@clisp.org>
13632
13633         Tests for module 'accept4'.
13634         * modules/accept4-tests: New file.
13635         * tests/test-accept4.c: New file.
13636
13637 2011-09-18  Bruno Haible  <bruno@clisp.org>
13638
13639         Tests for module 'accept'.
13640         * modules/accept-tests: New file.
13641         * tests/test-accept.c: New file.
13642
13643 2011-09-18  Bruno Haible  <bruno@clisp.org>
13644
13645         dup2: Support for MSVC.
13646         * lib/dup2.c: Include msvc-inval.h.
13647         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13648         _get_osfhandle calls.
13649         * modules/dup2 (Depends-on): Add msvc-inval.
13650         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13651
13652         New module 'msvc-inval'.
13653         * lib/msvc-inval.h: New file.
13654         * lib/msvc-inval.c: New file.
13655         * m4/msvc-inval.m4: New file.
13656         * modules/msvc-inval: New file.
13657
13658 2011-09-17  Bruno Haible  <bruno@clisp.org>
13659
13660         Tests for module 'pclose'.
13661         * modules/pclose-tests: New file.
13662
13663         New module 'pclose'.
13664         * lib/stdio.in.h (pclose): New declaration.
13665         * lib/pclose.c: New file.
13666         * m4/pclose.m4: New file.
13667         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13668         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13669         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13670         * modules/pclose: New file.
13671         * modules/popen-tests (Depends-on): Add pclose.
13672         * modules/popen-safer-tests (Depends-on): Likewise.
13673         * doc/posix-functions/pclose.texi: Mention the new module.
13674
13675 2011-09-17  Bruno Haible  <bruno@clisp.org>
13676
13677         popen: Support for MSVC.
13678         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13679         * lib/popen.c (popen): Provide alternate definition for native Windows.
13680         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13682         * modules/popen (Depends-on, configure.ac): Update condition.
13683         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13684         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13685         fixed.
13686
13687 2011-09-17  Bruno Haible  <bruno@clisp.org>
13688
13689         isnanl, isnand, isnanf: Work around MSVC bug.
13690         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13691
13692 2011-09-17  Bruno Haible  <bruno@clisp.org>
13693
13694         sys_socket tests: Fix recent mistake.
13695         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13696
13697 2011-09-17  Bruno Haible  <bruno@clisp.org>
13698
13699         putenv: Support for MSVC.
13700         * modules/putenv (Depends-on): Add environ.
13701         * lib/putenv.c (environ): Disable declaration.
13702         * lib/unistd.in.h: Update comment.
13703
13704 2011-09-17  Bruno Haible  <bruno@clisp.org>
13705
13706         math: Avoid macro redefinition warnings on MSVC.
13707         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13708         Undefine before redefining.
13709
13710 2011-09-17  Bruno Haible  <bruno@clisp.org>
13711
13712         doc: Mention functions which are declared as macros.
13713         * doc/posix-functions/*[fl].texi: Mention that some functions are
13714         defined as macros with arguments only.
13715
13716 2011-09-17  Bruno Haible  <bruno@clisp.org>
13717
13718         Add dependencies to new dirent related modules.
13719         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13720         * modules/fts (Depends-on): Likewise.
13721         * modules/glob (Depends-on): Likewise.
13722         * modules/savedir (Depends-on): Likewise.
13723         * modules/scandir (Depends-on): Likewise.
13724         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13725         * modules/fdopendir (Depends-on): Add opendir.
13726
13727 2011-09-17  Bruno Haible  <bruno@clisp.org>
13728
13729         inet_pton: Support for MSVC on Windows Vista or newer.
13730         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13731         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13732         HAVE_DECL_INET_PTON is defined.
13733         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13734         On platforms with <winsock2.h>, test whether inet_pton is declared in
13735         <ws2tcpip.h>. If so, arrange to replace it.
13736         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13737         REPLACE_INET_PTON.
13738         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13739         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13740         (Depends-on, configure.ac): Update condition.
13741         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13742
13743 2011-09-17  Bruno Haible  <bruno@clisp.org>
13744
13745         inet_ntop: Support for MSVC on Windows Vista or newer.
13746         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13747         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13748         HAVE_DECL_INET_NTOP is defined.
13749         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13750         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13751         <ws2tcpip.h>. If so, arrange to replace it.
13752         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13753         REPLACE_INET_NTOP.
13754         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13755         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13756         (Depends-on, configure.ac): Update condition.
13757         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13758
13759 2011-09-16  Eric Blake  <eblake@redhat.com>
13760
13761         test-fsync: yet another enhancement
13762         * tests/test-fsync.c (main): Also test behavior on read-only text
13763         file.
13764
13765 2011-09-16  Bruno Haible  <bruno@clisp.org>
13766
13767         Enhance fsync, fdatasync tests.
13768         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13769         * tests/test-fdatasync.c (main): Likewise.
13770
13771 2011-09-16  Bruno Haible  <bruno@clisp.org>
13772
13773         Support for MSVC compiler: Ensure mode_t gets defined.
13774         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13775         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13776         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13777         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13778         * tests/test-fcntl-h.c: Check that mode_t is defined.
13779         * tests/test-sys_stat.c: Likewise.
13780         * tests/test-sys_types.c: Likewise.
13781         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13782         * doc/posix-headers/sys_stat.texi: Likewise.
13783         * doc/posix-headers/sys_types.texi: Likewise.
13784
13785 2011-09-16  Bruno Haible  <bruno@clisp.org>
13786
13787         sys_stat: Support for MSVC.
13788         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13789         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13790         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13791         MSVC.
13792
13793 2011-09-16  Bruno Haible  <bruno@clisp.org>
13794
13795         Support for MSVC compiler: Ensure off_t gets defined.
13796         * lib/unistd.in.h: Include <sys/types.h>.
13797         * tests/test-fcntl-h.c: Check that off_t is defined.
13798         * tests/test-sys_stat.c: Likewise.
13799         * tests/test-sys_types.c: Likewise.
13800
13801 2011-09-16  Eric Blake  <eblake@redhat.com>
13802
13803         fdatasync: port to Solaris
13804         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13805         * modules/fdatasync (Link): Document it.
13806         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13807
13808         fdatasync: port to MacOS X 10.7
13809         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13810         declared.
13811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13812         * modules/unistd (Makefile.am): Substitute it.
13813         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13814         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13815
13816         fdatasync: minor improvements
13817         * modules/fdatasync (Depends-on): Add condition for fsync.
13818         * lib/fdatasync.c (fdatasync): Add comment.
13819         * tests/test-unistd-c++.cc: Test fdatasync.
13820
13821         unistd: update refs to newer POSIX
13822         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13823         Suggested by Bruno Haible.
13824
13825         fdatasync: new module
13826         * modules/fsync (Description): Document difference to fdatasync.
13827         * modules/fdatasync: New module.
13828         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13829         * lib/fdatasync.c (fdatasync): Likewise.
13830         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13831         defaults.
13832         * modules/unistd (Makefile.am): Set witnesses.
13833         * lib/unistd.in.h (fdatasync): Declare.
13834         * MODULES.html.sh: Document it.
13835         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13836         * modules/fdatasync-tests: New test.
13837         * tests/test-fdatasync.c: Likewise.
13838
13839 2011-09-16  Eric Blake  <eblake@redhat.com>
13840
13841         test-fsync: enhance tests
13842         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13843         * tests/test-fsync.c (main): Enhance test.
13844
13845 2011-09-15  Bruno Haible  <bruno@clisp.org>
13846
13847         Support for MSVC compiler: Ensure ssize_t gets defined.
13848         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13849         * doc/posix-headers/stdio.texi: Likewise.
13850         * modules/stdio (Depends-on): Add ssize_t.
13851         * modules/sys_socket (Depends-on): Likewise.
13852         * modules/sys_types (Depends-on): Likewise.
13853         * modules/sys_uio (Depends-on): Likewise.
13854         * modules/unistd (Depends-on): Likewise.
13855         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13856         * tests/test-sys_types.c: Check that ssize_t is defined.
13857
13858 2011-09-14  Bruno Haible  <bruno@clisp.org>
13859
13860         Avoid using #, the m4 comment starter character, near brackets.
13861         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13862         delimiter character in sed expressions.
13863         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13864         Suggested by Eric Blake.
13865
13866         Properly quote AC_CHECK_DECLS' 4th argument.
13867         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13868         argument.
13869         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13870         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13872         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13873         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13874         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13875         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13876         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13877         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13878         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13879         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13880         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13881         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13882         * m4/isinf.m4 (gl_ISINF): Likewise.
13883         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13884         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13885         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13886         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13887         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13889         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13890         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13891         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13892         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13893         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13894         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13896         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13898         Reported by Eric Blake.
13899
13900         Properly quote AC_CHECK_DECL's 4th argument.
13901         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13902         argument.
13903         * m4/argp.m4 (gl_ARGP): Likewise.
13904         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13905         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13906         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13907         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13908         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13909         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13911         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13912         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13913         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13914         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13915         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13916         Reported by Eric Blake.
13917
13918 2011-09-14  Eric Blake  <eblake@redhat.com>
13919
13920         opendir: avoid compile warning
13921         * lib/opendir.c (includes): Always include errno.h.
13922         Reported by Tatsuro MATSUOKA.
13923
13924 2011-09-14  Jim Meyering  <meyering@redhat.com>
13925
13926         maint.mk: sc_tight_scope: propagate failure from sub-make
13927         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13928         Reported by Martin von Gagern.
13929
13930 2011-09-13  Bruno Haible  <bruno@clisp.org>
13931
13932         tempname: Support for MSVC.
13933         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13934         MSVC.
13935         * modules/tempname (Depends-on): Add fcntl-h.
13936
13937 2011-09-13  Bruno Haible  <bruno@clisp.org>
13938
13939         sys_time: Support for MSVC.
13940         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13941         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13942         include <winsock2.h>.
13943         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13944         function declarations that collide with POSIX.
13945         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13946         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13947
13948 2011-09-13  Bruno Haible  <bruno@clisp.org>
13949
13950         stat: Support for MSVC.
13951         * lib/stat.c: Include pathmax.h.
13952         * modules/stat (Depends-on): Add pathmax.
13953
13954         pathmax: Support for native Windows.
13955         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13956
13957 2011-09-12  Bruno Haible  <bruno@clisp.org>
13958
13959         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13960         * lib/dirent.in.h (struct dirent): New type.
13961         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13962         DT_WHT): New macros.
13963         (DIR): New type.
13964         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13965         (readdir, rewinddir): New declarations.
13966         * lib/dirent-private.h: New file.
13967         * lib/opendir.c: New file.
13968         * lib/readdir.c: New file.
13969         * lib/rewinddir.c: New file.
13970         * lib/closedir.c: New file.
13971         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13972         * m4/opendir.m4: New file.
13973         * m4/readdir.m4: New file.
13974         * m4/rewinddir.m4: New file.
13975         * m4/closedir.m4: New file.
13976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13977         REPLACE_CLOSEDIR here.
13978         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13979         readdir, rewinddir are declared.
13980         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13981         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13982         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13983         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13984         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13985         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13986         * modules/opendir: New file.
13987         * modules/readdir: New file.
13988         * modules/rewinddir: New file.
13989         * modules/closedir: New file.
13990         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13991         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13992         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13993         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13994         * NEWS: Mention the 'fchdir' change.
13995
13996 2011-09-11  Bruno Haible  <bruno@clisp.org>
13997
13998         asm-underscore.m4: Support for MSVC.
13999         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14000         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14001
14002 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14003
14004         Doc about crypt functions.
14005         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14006         needing for _GNU_SOURCE to get crypt.
14007         * doc/posix-functions/encrypt.texi: Likewise.
14008         * doc/posix-functions/setkey.texi: Likewise.
14009
14010 2011-09-11  Bruno Haible  <bruno@clisp.org>
14011
14012         doc: Update regarding MSVC 9.
14013         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14014         tested".
14015         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14016         * doc/posix-headers/*.texi: Likewise.
14017         * doc/pastposix-functions/*.texi: Likewise.
14018         * doc/glibc-functions/*.texi: Likewise.
14019         * doc/glibc-headers/*.texi: Likewise.
14020
14021 2011-09-11  Bruno Haible  <bruno@clisp.org>
14022
14023         unistd et al.: Don't assume <unistd.h> exists.
14024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14025         does not exist.
14026         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14027         exist. But include <stdlib.h>.
14028         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14029         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14030         symlink() does not exist.
14031         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14032         include <io.h> instead.
14033         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14034         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14035         include <direct.h> instead.
14036         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14037         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14038         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14039         <io.h> instead.
14040         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14041         correctly if the system does not have hard links.
14042         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14043         <direct.h> instead.
14044         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14045         it when looking for function declarations.
14046         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14047         <direct.h> and <io.h> instead.
14048         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14049
14050 2011-09-11  Bruno Haible  <bruno@clisp.org>
14051
14052         strcase: Support for MSVC.
14053         * modules/strcase (Status, Notice): Remove obsoletion mark.
14054         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14055         * doc/posix-functions/strncasecmp.texi: Likewise.
14056
14057         strings: Don't assume <strings.h> exists.
14058         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14059         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14060         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14061         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14062
14063 2011-09-11  Bruno Haible  <bruno@clisp.org>
14064
14065         dirent: Don't assume <dirent.h> exists.
14066         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14067         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14068         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14069         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14070
14071 2011-09-11  Bruno Haible  <bruno@clisp.org>
14072
14073         Fix wint_t on MSVC.
14074         * lib/wchar.in.h (wint_t): On MSVC, override it.
14075         * lib/wctype.in.h (wint_t): Likewise.
14076         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14077         MSVC.
14078         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14079         * doc/posix-headers/wctype.texi: Likewise.
14080
14081 2011-09-11  Bruno Haible  <bruno@clisp.org>
14082
14083         sys_types: Fix typo.
14084         * lib/sys_types.in.h: Fix typo in comment.
14085         Reported by Paul Eggert.
14086
14087         Support for MSVC compiler: Ensure size_t gets defined.
14088         * modules/strings (Depends-on): Add 'sys_types'.
14089         * modules/sys_uio (Depends-on): Likewise.
14090         * lib/sys_uio.in.h: Update comment.
14091
14092         C++ tests for module 'sys_types'.
14093         * modules/sys_types-c++-tests: New file.
14094         * tests/test-sys_types-c++.cc: New file.
14095
14096         Tests for module 'sys_types'.
14097         * modules/sys_types-tests: New file.
14098         * tests/test-sys_types.c: New file.
14099
14100         New module 'sys_types'.
14101         * lib/sys_types.in.h: New file.
14102         * m4/sys_types_h.m4: New file.
14103         * modules/sys_types: New file.
14104         * doc/posix-headers/sys_types.texi: Mention the new module and the
14105         size_t problem on MSVC 9.
14106
14107 2011-09-11  Bruno Haible  <bruno@clisp.org>
14108
14109         Support for MSVC compiler: Avoid division by a literal 0.
14110         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14111         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14112         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14113         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14114         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14115         * tests/infinity.h: New file.
14116         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14117         on MSVC.
14118         * tests/test-ceilf1.c: Include infinity.h.
14119         (main): Use Infinityf.
14120         * tests/test-ceil1.c: Include infinity.h.
14121         (main): Use Infinityd.
14122         * tests/test-ceill.c: Include infinity.h.
14123         (main): Use Infinityl.
14124         * tests/test-dprintf-posix.c: Include infinity.h.
14125         (test_function): Use Infinityd.
14126         * tests/test-floorf1.c: Include infinity.h.
14127         (main): Use Infinityf.
14128         * tests/test-floor1.c: Include infinity.h.
14129         (main): Use Infinityd.
14130         * tests/test-floorl.c: Include infinity.h.
14131         (main): Use Infinityl.
14132         * tests/test-fprintf-posix.c: Include infinity.h.
14133         (test_function): Use Infinityd.
14134         * tests/test-frexp.c: Include infinity.h.
14135         (main): Use Infinityd.
14136         * tests/test-frexpl.c: Include infinity.h.
14137         (main): Use Infinityl.
14138         * tests/test-isfinite.c: Include infinity.h.
14139         (test_isfinitef): Use Infinityf.
14140         (test_isfinited): Use Infinityd.
14141         (test_isfinitel): Use Infinityl.
14142         * tests/test-isinf.c: Include infinity.h.
14143         (test_isinff): Use Infinityf.
14144         (test_isinfd): Use Infinityd.
14145         (test_isinfl): Use Infinityl.
14146         * tests/test-isnan.c: Include infinity.h.
14147         (test_float): Use Infinityf.
14148         (test_double): Use Infinityd.
14149         (test_long_double): Use Infinityl.
14150         * tests/test-isnanf.h: Include infinity.h.
14151         (main): Use Infinityf.
14152         * tests/test-isnand.h: Include infinity.h.
14153         (main): Use Infinityd.
14154         * tests/test-isnanl.h: Include infinity.h.
14155         (main): Use Infinityl.
14156         * tests/test-ldexpl.c: Include infinity.h.
14157         (main): Use Infinityl.
14158         * tests/test-printf-posix.h: Include infinity.h.
14159         (test_function): Use Infinityd.
14160         * tests/test-roundf1.c: Include infinity.h.
14161         (main): Use Infinityf.
14162         * tests/test-round1.c: Include infinity.h.
14163         (main): Use Infinityd.
14164         * tests/test-roundl.c: Include infinity.h.
14165         (main): Use Infinityl.
14166         * tests/test-signbit.c: Include infinity.h.
14167         (test_signbitf): Use Infinityf.
14168         (test_signbitd): Use Infinityd.
14169         (test_signbitl): Use Infinityl.
14170         * tests/test-snprintf-posix.h: Include infinity.h.
14171         (test_function): Use Infinityd, Infinityl.
14172         * tests/test-sprintf-posix.h: Include infinity.h.
14173         (test_function): Use Infinityd, Infinityl.
14174         * tests/test-truncf1.c: Include infinity.h.
14175         (main): Use Infinityf.
14176         * tests/test-trunc1.c: Include infinity.h.
14177         (main): Use Infinityd.
14178         * tests/test-truncl.c: Include infinity.h.
14179         (main): Use Infinityl.
14180         * tests/test-vasnprintf-posix.c: Include infinity.h.
14181         (test_function): Use Infinityd, Infinityl.
14182         * tests/test-vasprintf-posix.c: Include infinity.h.
14183         (test_function): Use Infinityd, Infinityl.
14184         * modules/ceilf-tests (Files): Add tests/infinity.h.
14185         * modules/ceil-tests (Files): Likewise.
14186         * modules/ceill-tests (Files): Likewise.
14187         * modules/dprintf-posix-tests (Files): Likewise.
14188         * modules/floorf-tests (Files): Likewise.
14189         * modules/floor-tests (Files): Likewise.
14190         * modules/floorl-tests (Files): Likewise.
14191         * modules/fprintf-posix-tests (Files): Likewise.
14192         * modules/frexp-tests (Files): Likewise.
14193         * modules/frexp-nolibm-tests (Files): Likewise.
14194         * modules/frexpl-tests (Files): Likewise.
14195         * modules/frexpl-nolibm-tests (Files): Likewise.
14196         * modules/isfinite-tests (Files): Likewise.
14197         * modules/isinf-tests (Files): Likewise.
14198         * modules/isnan-tests (Files): Likewise.
14199         * modules/isnanf-tests (Files): Likewise.
14200         * modules/isnanf-nolibm-tests (Files): Likewise.
14201         * modules/isnand-tests (Files): Likewise.
14202         * modules/isnand-nolibm-tests (Files): Likewise.
14203         * modules/isnanl-tests (Files): Likewise.
14204         * modules/isnanl-nolibm-tests (Files): Likewise.
14205         * modules/ldexpl-tests (Files): Likewise.
14206         * modules/printf-posix-tests (Files): Likewise.
14207         * modules/roundf-tests (Files): Likewise.
14208         * modules/round-tests (Files): Likewise.
14209         * modules/roundl-tests (Files): Likewise.
14210         * modules/signbit-tests (Files): Likewise.
14211         * modules/snprintf-posix-tests (Files): Likewise.
14212         * modules/sprintf-posix-tests (Files): Likewise.
14213         * modules/truncf-tests (Files): Likewise.
14214         * modules/trunc-tests (Files): Likewise.
14215         * modules/truncl-tests (Files): Likewise.
14216         * modules/vasnprintf-posix-tests (Files): Likewise.
14217         * modules/vasprintf-posix-tests (Files): Likewise.
14218         * modules/vdprintf-posix-tests (Files): Likewise.
14219         * modules/vfprintf-posix-tests (Files): Likewise.
14220         * modules/vprintf-posix-tests (Files): Likewise.
14221         * modules/vsnprintf-posix-tests (Files): Likewise.
14222         * modules/vsprintf-posix-tests (Files): Likewise.
14223         * modules/xprintf-posix-tests (Files): Likewise.
14224
14225 2011-09-11  Bruno Haible  <bruno@clisp.org>
14226
14227         Ensure pid_t gets defined.
14228         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14229         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14230         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14231         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14232         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14233         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14234         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14235         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14236         * tests/test-fcntl-h.c: Check that pid_t is defined.
14237         * tests/test-sched.c: Likewise.
14238         * tests/test-termios.c: Likewise.
14239         * tests/test-time.c: Likewise.
14240         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14241         * doc/posix-headers/signal.texi: Likewise.
14242         * doc/posix-headers/sys_types.texi: Likewise.
14243         * doc/posix-headers/time.texi: Likewise.
14244
14245 2011-09-11  Bruno Haible  <bruno@clisp.org>
14246
14247         acl: Fix compilation on Solaris 10 (older version).
14248         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14249         of ACE_EVERYONE.
14250         * lib/set-mode-acl.c (qset_acl): Likewise.
14251         Reported by Christian Jullien <eligis@orange.fr>.
14252
14253 2011-09-10  Bruno Haible  <bruno@clisp.org>
14254
14255         iconv, unsetenv: Add support for MSVC compiler.
14256         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14258
14259 2011-09-10  Bruno Haible  <bruno@clisp.org>
14260
14261         *printf: Add support for MSVC compiler.
14262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14263         handles the exception caused by the %n directive. When cross-compiling,
14264         guess no on native Windows.
14265         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14266         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14267         emulate it through vsnprintf.
14268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14269         * doc/posix-functions/dprintf.texi: Update documentation regarding
14270         MSVC 9.
14271         * doc/posix-functions/fprintf.texi: Likewise.
14272         * doc/posix-functions/printf.texi: Likewise.
14273         * doc/posix-functions/snprintf.texi: Likewise.
14274         * doc/posix-functions/sprintf.texi: Likewise.
14275         * doc/posix-functions/swprintf.texi: Likewise.
14276         * doc/posix-functions/vdprintf.texi: Likewise.
14277         * doc/posix-functions/vfprintf.texi: Likewise.
14278         * doc/posix-functions/vprintf.texi: Likewise.
14279         * doc/posix-functions/vsnprintf.texi: Likewise.
14280         * doc/posix-functions/vsprintf.texi: Likewise.
14281         * doc/glibc-functions/asprintf.texi: Likewise.
14282         * doc/glibc-functions/obstack_printf.texi: Likewise.
14283         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14284         * doc/glibc-functions/vasprintf.texi: Likewise.
14285
14286 2011-09-10  Bruno Haible  <bruno@clisp.org>
14287
14288         nocrash: Add support for native Windows.
14289         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14290
14291 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14292             Bruno Haible  <bruno@clisp.org>
14293
14294         absolute-header, include-next: Add support for MSVC compiler.
14295         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14296         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14297         directory separator in #line directives.
14298         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14299         recognize also backslash as directory separator in #line directives.
14300
14301 2011-09-08  Jim Meyering  <meyering@redhat.com>
14302
14303         maint.mk: mark the post-release commit log with "maint: " prefix
14304         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14305         one-line commit-log summary.
14306
14307 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14308             Bruno Haible  <bruno@clisp.org>
14309
14310         Doc about crypt functions.
14311         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14312         systems.
14313         * doc/posix-functions/encrypt.texi: Likewise.
14314         * doc/posix-functions/setkey.texi: Likewise.
14315
14316 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14317
14318         * lib/gc.h: Fix copyright header.
14319
14320 2011-09-07  Bruno Haible  <bruno@clisp.org>
14321
14322         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14323         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14324         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14325
14326 2011-09-07  Bruno Haible  <bruno@clisp.org>
14327
14328         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14329         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14330         * lib/freopen.c: Likewise.
14331         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14332         * lib/lstat.c: Likewise.
14333         * lib/stat.c: Likewise.
14334         * lib/open.c: Use different syntax for include of <fcntl.h>.
14335         * lib/openat.c: Include fcntl.h again, explicitly.
14336
14337 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14338
14339         parse-datetime: document the newly accepted format
14340         * doc/parse-datetime.texi (Combined date and time of day items):
14341         New section.
14342
14343 2011-09-06  Bruno Haible  <bruno@clisp.org>
14344
14345         acl: Fix a test failure on newer Solaris 10 with ZFS.
14346         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14347         ENOSYS as no ACL.
14348         Reported by Jim Meyering.
14349
14350 2011-09-06  Bruno Haible  <bruno@clisp.org>
14351
14352         acl: Update for AIX >= 5.3 with NFS.
14353         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14354         ENOSYS as no ACL.
14355
14356         acl: Fix a test failure on AIX >= 5.3 with NFS.
14357         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14358         as no ACL.
14359
14360 2011-09-06  Bruno Haible  <bruno@clisp.org>
14361
14362         acl: Fix a test failure on IRIX 6.5 with NFS.
14363         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14364         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14365         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14366         * lib/copy-acl.c (qcopy_acl): Likewise.
14367
14368 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14369
14370         openat: port to AIX 7.1 with large files
14371         AIX 7.1 does a "#define openat open64at" if large files are in use,
14372         so we can't simply #undef openat.  Use the orig_openat trick (similar
14373         to orig_open in lib/open.c) to work around the problem.  Problem
14374         reported by Kevin Brott for GNU tar, in the thread containing
14375         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14376         * lib/openat.c (__need_system_fcntl_h): Define first.
14377         Include <fcntl.h> and <sys/types.h> before undefining.
14378         (orig_openat) [HAVE_OPENAT]: New inline function.
14379         (openat) [HAVE_OPENAT]: Do not undef.
14380         (rpl_openat): Use orig_openat, not openat.
14381
14382 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14383             Bruno Haible  <bruno@clisp.org>
14384
14385         acl: Avoid errors on NonStop Kernel.
14386         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14387         ENOTSUP errors.
14388
14389 2011-09-05  Bruno Haible  <bruno@clisp.org>
14390
14391         acl: Clean up Solaris code.
14392         * lib/acl-internal.h: Remove no-op #if.
14393         * lib/file-has-acl.c: Likewise.
14394         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14395         * lib/copy-acl.c (qcopy_acl): Likewise.
14396
14397 2011-09-05  Bruno Haible  <bruno@clisp.org>
14398
14399         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14400         binaries built on the original Solaris 10.
14401         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14402         trivial.
14403
14404 2011-09-05  Bruno Haible  <bruno@clisp.org>
14405
14406         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14407         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14408         10.
14409         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14410         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14411         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14412         instead of acl_get, facl_get, acl_set, facl_set.
14413
14414 2011-09-05  Bruno Haible  <bruno@clisp.org>
14415
14416         copy-file: Try unit tests on more file systems.
14417         * tests/test-copy-file-1.sh: New file.
14418         * tests/test-copy-file-2.sh: New file.
14419         * modules/copy-file-tests (Files): Add them.
14420         (Makefile.am): Add them to TESTS.
14421
14422         acl: Try unit tests on more file systems.
14423         * tests/test-file-has-acl-1.sh: New file.
14424         * tests/test-file-has-acl-2.sh: New file.
14425         * tests/test-set-mode-acl-1.sh: New file.
14426         * tests/test-set-mode-acl-2.sh: New file.
14427         * tests/test-copy-acl-1.sh: New file.
14428         * tests/test-copy-acl-2.sh: New file.
14429         * modules/acl-tests (Files): Add them.
14430         (Makefile.am): Add them to TESTS.
14431
14432 2011-09-04  Bruno Haible  <bruno@clisp.org>
14433
14434         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14435         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14436         10.
14437         (OLD_ALLOW, OLD_DENY): New macros.
14438         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14439         ACE_ACCESS_ALLOWED_ACE_TYPE.
14440         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14441         ACE_ACCESS_DENIED_ACE_TYPE.
14442         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14443         (NEW_ACE_EXECUTE): Fix value.
14444         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14445         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14446         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14447         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14448         NEW_ACE_SYNCHRONIZE): New macros.
14449         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14450         instead of acl_fromtext, acl_set, facl_set.
14451         Fixes a coreutils/tests/cp/perm failure.
14452
14453 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14454
14455         openat: test for fstatat (..., 0) bug
14456         Further testing with tar suggests that fstatat (..., 0)
14457         does not work in general, on AIX 7.1; see
14458         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14459         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14460         replacement fstatat (which is what older AIX releases were using
14461         anyway).
14462         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14463         use is now changed to orig_fstatat.  This was probably the right
14464         thing to do anyway.
14465         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14466         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14467         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14468         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14469         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14470         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14471         if the bug is found.
14472
14473         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14474         This tests for another fstatat bug on AIX 7.1:
14475         fstatat (AT_FDCWD, ..., 0) does not work.  See
14476         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14477         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14478         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14479         (rpl_fstatat): Adjust so that it works around either (or both)
14480         bugs if present.
14481         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14482
14483 2011-09-03  Karl Berry  <karl@gnu.org>
14484
14485         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14486         in index entries.
14487
14488 2011-09-02  Bruno Haible  <bruno@clisp.org>
14489
14490         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14491         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14492         values of AR, ARFLAGS, RANLIB.
14493         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14494
14495 2011-09-02  Bruno Haible  <bruno@clisp.org>
14496
14497         Find 'ar' program that fits with --host argument.
14498         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14499
14500 2011-09-02  Bruno Haible  <bruno@clisp.org>
14501
14502         tests: init.sh: Support any non-GNU diff.
14503         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14504         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14505         Solaris 8.
14506
14507 2011-09-02  Bruno Haible  <bruno@clisp.org>
14508
14509         tests: init.sh: work also with any non-GNU diff that supports -u
14510         * tests/init.sh: Relax check for diff -u support.
14511         Rather than checking for GNU diff via --version, simply check
14512         for support for -u itself.  Useful at least on OpenBSD 4.9,
14513         AIX 7.1, IRIX 6.5, and Solaris 10.
14514
14515 2011-09-01  Bruno Haible  <bruno@clisp.org>
14516
14517         strtoimax, strtoumax: Document problem on HP-UX 11.
14518         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14519         * doc/posix-functions/strtoumax.texi: Likewise.
14520
14521 2011-09-01  Bruno Haible  <bruno@clisp.org>
14522
14523         strtoumax: Avoid link error on OSF/1 with DTK cc.
14524         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14525         defined as a function.
14526         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14527         strtoumax is defined, not whether it is declared.
14528
14529 2011-09-01  Bruno Haible  <bruno@clisp.org>
14530
14531         strtoimax: Avoid link error on OSF/1 with DTK cc.
14532         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14533         defined as a function.
14534         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14535         strtoimax is defined, not whether it is declared.
14536
14537 2011-09-01  Bruno Haible  <bruno@clisp.org>
14538
14539         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14540         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14541         as a function.
14542         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14543         whether it is declared.
14544
14545 2011-09-01  Bruno Haible  <bruno@clisp.org>
14546
14547         imaxabs: Avoid link error on OSF/1 with DTK cc.
14548         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14549         as a function.
14550         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14551         whether it is declared.
14552
14553 2011-09-01  Bruno Haible  <bruno@clisp.org>
14554
14555         Tests for module 'strtoumax'.
14556         * modules/strtoumax-tests: New file.
14557         * tests/test-strtoumax.c: New file.
14558
14559         Tests for module 'strtoimax'.
14560         * modules/strtoimax-tests: New file.
14561         * tests/test-strtoimax.c: New file.
14562
14563         Tests for module 'imaxdiv'.
14564         * modules/imaxdiv-tests: New file.
14565         * tests/test-imaxdiv.c: New file.
14566
14567         Tests for module 'imaxabs'.
14568         * modules/imaxabs-tests: New file.
14569         * tests/test-imaxabs.c: New file.
14570
14571 2011-09-01  Bruno Haible  <bruno@clisp.org>
14572
14573         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14574         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14575         pthread_create.
14576
14577 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14578
14579         openat: work around AIX 7.1 fstatat issue
14580         This should fix the problem that was not properly fixed
14581         in the previous change, dated 2011-08-30.
14582         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14583         __need_system_stat_h defined.
14584         (orig_fstatat) [HAVE_FSTATAT]: New function.
14585         (rpl_fstatat): Go back to the old way of doing things,
14586         except call orig_fstatat instead of fstatat.
14587         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14588         Remove unnecessary check whether fstatat fills in st_size etc.
14589
14590 2011-09-01  Bruno Haible  <bruno@clisp.org>
14591
14592         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14593         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14594         just include the system's header.
14595
14596 2011-08-31  Jim Meyering  <meyering@redhat.com>
14597
14598         tests: avoid spurious assertion failure in test-float.c on ppc64
14599         * tests/test-float.c (test_long_double): Comment out an assertion,
14600         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14601         with gcc-4.4.4.
14602
14603         maint: indent with spaces, not TABs
14604         I need to get in the habit of running gnulib's "make check".
14605         Both of these would have been caught.
14606         * m4/largefile.m4: Indent with spaces, not TABs.
14607         * lib/parse-datetime.y (iso_8601_time): Likewise.
14608         Spotted by Pádraig Brady.
14609
14610         test-parse-datetime.c: accommodate a relatively strict gcc warning
14611         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14612         to avoid a warning from gcc's -Werror=missing-declarations.
14613         Insert a few spaces-before-funcall-parenthesis.
14614
14615 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14616
14617         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14618         The parser now accepts ISO 8601 date-time strings with "T" as the
14619         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14620         with a space between the date and time strings.  Now it also parses
14621         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14622         variants like "2004-02-29T16:21:42.333-07:00"
14623         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14624         of day representation using the 'T' separator character.
14625         * doc/parse-datetime.texi (General date syntax): replace use of
14626         deprecated --iso-8601 option with --rfc-3339 in example of date
14627         command output formats that can be parsed.
14628         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14629         lib/parse-datetime.y.
14630         (gmt_offset): New function.
14631         (main): Add additional test cases to validate ISO8601 extended
14632         date and time of day parsing.
14633
14634 2011-08-31  Bruno Haible  <bruno@clisp.org>
14635
14636         freopen: Documentation.
14637         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14638         name.
14639         Reported by Claudio Bley <claudio.bley@gmail.com>.
14640
14641 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14642
14643         freopen: Don't crash if the filename argument is NULL.
14644         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14645         NULL.
14646
14647 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14648
14649         openat: work around AIX 7.1 fstatat bug
14650         Problem reported by Kevin Brott for GNU tar, in the thread containing
14651         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14652         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14653         FSTATAT_ST_SIZE_ETC_BROKEN.
14654         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14655         rpl_fstatat.
14656         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14657         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14658         AC_CHECK_FUNCS_ONCE for fstatat.
14659         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14660         fchmodat, mkdirat, openat and unlinkat.
14661
14662 2011-08-30  Bruno Haible  <bruno@clisp.org>
14663
14664         Avoid endless recursions if config.h includes some header files.
14665         * lib/fopen.c (__need_FILE): Define already before including config.h.
14666         * lib/freopen.c (__need_FILE): Likewise.
14667         * lib/open.c (__need_system_fcntl_h): Likewise.
14668         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14669         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14670         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14671
14672 2011-08-25  Karl Berry  <karl@gnu.org>
14673
14674         * config/srclist.txt (ylwrap): new try.
14675         * build-aux/ylwrap: new file.
14676
14677 2011-08-23  Bruno Haible  <bruno@clisp.org>
14678
14679         tmpdir: Use a good default directory on native Windows.
14680         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14681         (P_tmpdir): Default to _P_tmpdir on native Windows.
14682         (path_search): On native Windows, try the value returned by GetTempPath
14683         before trying P_tmpdir.
14684         * modules/tmpdir (Depends-on): Add pathmax.
14685         Suggested by John Darrington <john@darrington.wattle.id.au>.
14686
14687 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14688
14689         doc: fix typo in README-release
14690         * top/README-release: Capitalize first word of a sentence.
14691
14692 2011-08-19  Jim Meyering  <meyering@redhat.com>
14693
14694         fts: do not exhaust memory when processing million-entry directories
14695         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14696         directory would require about 256*N bytes of memory.  Thus, it was
14697         easy to construct a directory too large to be processed by any of
14698         those tools.  With this change, fts' maximum memory utilization is
14699         now limited to around 30MB.
14700         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14701         (fts_read): When we've processed the final entry (i.e., when
14702         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14703         using the parent entry to read any remaining entries.  Dispatch
14704         depending on what fts_build returns:
14705         - NULL+stop, aka failure: stop
14706         - NULL otherwise: move up in the dir hierarchy
14707         - non-NULL: handle this new entry
14708         (fts_build): Declare and use new local, continue_readdir.
14709         Prepare to be called from fts_read, when the entries
14710         from a partially-read directory have just been exhausted.
14711         In that case, we'll skip the opendir and instead use the parent's
14712         fts_dirp and derive dir_fd from that.
14713         Finally, in the readdir loop, if we read max_entries entries,
14714         exit the loop ensuring *not* to call closedir.  This is required
14715         so that fts_dirp can be reused on a subsequent call.
14716         Prompted by Ben England's report of memory exhaustion in find
14717         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14718
14719         maint: fts: move decl of `dp' down into while loop; split a long line
14720         * lib/fts.c (fts_build): No semantic change.
14721
14722         fts: add/use new struct member, fts_dirp
14723         We are about to use this to manage any directory with
14724         too many entries to read all of them into memory at once.
14725         To do that, we'll need to save the DIR* pointer in each
14726         affected FTSENT struct.
14727         * lib/fts_.h: Include <dirent.h>.
14728         (struct FTSENT) [fts_dirp]: New member.
14729         * lib/fts.c (closedir_and_clear): Define.
14730         Use it in place of closedir so that we are sure to
14731         clear the new fts_dirp member when done with it.
14732         (fts_alloc): Initialize the new member.
14733         (fts_lfree): Free, if needed.
14734
14735         maint: fts: give __opendir2 a new parameter and rename
14736         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14737         than surreptitiously using sole caller's "dir_fd".
14738         (fts_opendir): Rename from __opendir2.
14739
14740         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14741         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14742
14743         maint: fts.c: correct off-by-one indentation
14744         * lib/fts.c (fts_build): Correct indentation, change style
14745         of a couple of block comments, and bracing style.
14746
14747         maint: fts.c: move __opendir2 #define "up" out of function body
14748         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14749
14750         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14751         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14752         out for a long time and besides was useful only on BSD systems.
14753
14754 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14755
14756         regex: port to Stratus OpenVOS
14757         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14758         define to empty, rather than attempting nonportable optimizations.
14759         Problem reported by Paul Green in:
14760         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14761         and fix suggested by Eric Blake in:
14762         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14763
14764 2011-08-17  Eric Blake  <eblake@redhat.com>
14765
14766         getcwd: fix test failures on mingw
14767         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14768         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14769         test if long directory cannot be created, and allow mingw errno.
14770
14771         getcwd-lgpl: fix m4 to match relaxed test for BSD
14772         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14773         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14774         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14775         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14776         signature problem.
14777
14778         getcwd: fix compilation on mingw64
14779         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14780         getcwd.
14781         Reported by Marc-André Lureau.
14782
14783         pipe2: silence compiler warning
14784         * lib/pipe2.c (pipe2): Hide label if it is not used.
14785
14786 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14787
14788         relocatable-prog: fix link error
14789         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14790         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14791         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14792         into modules/relocatable-lib without noticing that
14793         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14794         also needs to build relocatable.c.
14795
14796 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14800         shell code: it contained a 'break' that was not in a loop.
14801         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14802         via a shell-language loop; this may have been true in old Autoconf
14803         versions, but it's not true in Autoconf 2.68.  I found this bug
14804         when testing coreutils git on Solaris 8, whose shell complains
14805         about the syntax error.
14806
14807 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14808
14809         * lib/base64.c: Fix comment to reference RFC 4648.
14810         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14811         <gvtulder@gmail.com>.
14812
14813 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14816
14817         po/Makefile.in.in: fix make -q problem
14818         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14819         rule, since there's no file named 'check-macro-version' and its
14820         use as a file breaks make -q.
14821         (all): Don't depend on check-macro-version.
14822         (CHECK_MACRO_VERSION): New macro.
14823         (stamp-po): Use it.
14824
14825         configmake: fix make -q problem
14826         * modules/configmake (configmake.h): Update configmake.h's time stamp
14827         even if the file does not change.  Otherwise, 'make -q' fails.
14828         Problem reported by Simon Josefsson in
14829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14830
14831 2011-08-11  Jim Meyering  <meyering@redhat.com>
14832
14833         git-version-gen: correct the advice in a comment
14834         * build-aux/git-version-gen: Correct comment.
14835         Don't recommend to list .tarball-version in .gitignore.
14836
14837 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14838
14839         base64: fix off-by-one buffer size bug
14840         Problem and (trivial) fix reported by Gijs van Tulder in
14841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14842         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14843         * tests/test-base64.c (main): Catch the bug.
14844
14845 2011-08-10  Eric Blake  <eblake@redhat.com>
14846
14847         closein: correct comments
14848         * lib/closein.c (close_stdin): Improve comments.
14849
14850 2011-08-09  Bruno Haible  <bruno@clisp.org>
14851
14852         More tests for 'fseeko'.
14853         * tests/test-fseeko3.c: New file, from Eric Blake.
14854         * tests/test-fseeko3.sh: New file.
14855         * modules/fseeko-tests (Files): Add them.
14856         (TESTS): Add test-fseeko3.sh.
14857         (check_PROGRAMS): Add test-fseeko3.
14858
14859 2011-08-09  Eric Blake  <eblake@redhat.com>
14860
14861         fseeko: remove unneeded hack
14862         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14863
14864         fseeko: fix bug on glibc
14865         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14866         Reported by John W. Eaton.
14867
14868 2011-08-08  Bruno Haible  <bruno@clisp.org>
14869
14870         unictype/base: Fix interoperability with preinstalled libunistring.
14871         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14872         Reported by Simon Josefsson.
14873
14874 2011-08-08  Bruno Haible  <bruno@clisp.org>
14875
14876         iswblank: Detect declaration correctly.
14877         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14878         AC_CHECK_DECLS invocation.
14879
14880 2011-08-08  Bruno Haible  <bruno@clisp.org>
14881
14882         tcgetsid: Detect declaration correctly.
14883         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14884         AC_CHECK_DECLS invocation.
14885         Reported by Simon Josefsson.
14886
14887 2011-08-08  Eric Blake  <eblake@redhat.com>
14888
14889         largefile: fix typo that regressed large file support
14890         * modules/largefile (configure.ac-early): Fix section name.
14891
14892 2011-08-06  Karl Berry  <karl@gnu.org>
14893
14894         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14895         a separate module.
14896
14897 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14898
14899         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14900         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14901         get prototype for free.
14902
14903 2011-08-04  Bruno Haible  <bruno@clisp.org>
14904
14905         Tests for module 'pathmax'.
14906         * modules/pathmax-tests: New file.
14907         * tests/test-pathmax.c: New file.
14908
14909         canonicalize-lgpl: Support larger filenames on the Hurd.
14910         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14911         Reported by Paul Eggert.
14912
14913         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14914         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14915         * lib/chdir-long.h: Include pathmax.h.
14916         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14917         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14918         (PATH_MAX): Remove code that is done by pathmax.h.
14919         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14920         * lib/tmpfile.c: Add a comment.
14921         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14922         * modules/chdir-long (Depends-on): Add pathmax.
14923         * modules/getcwd (Depends-on): Add pathmax.
14924         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14925         is not defined.
14926         * doc/posix-headers/limits.texi: Mention the pathmax module.
14927         * NEWS: Mention the change.
14928
14929 2011-08-02  Bruno Haible  <bruno@clisp.org>
14930
14931         pthread_sigmask: Actually use results of gl_THREADLIB.
14932         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14933         gl_THREADLIB, not gl_[]THREADLIB.
14934         Reported by Eric Blake.
14935
14936 2011-08-02  Jim Meyering  <meyering@redhat.com>
14937
14938         maint.mk: relax the default _gl_TS_function_match regexp
14939         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14940         space between function name and "(" in an "extern" declaration.
14941         That would fail to match a decl with no space there: extern void foo();
14942
14943 2011-07-31  Iain Nicol  <iain@thenicols.net>
14944
14945         git-version-gen: document that EXTRA_DIST must include .version
14946         * build-aux/git-version-gen: In the how-to-use comment, document
14947         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14948         will fail when run from an unpacked distribution tarball.
14949
14950 2011-08-01  Bruno Haible  <bruno@clisp.org>
14951
14952         wctype-h: Fix last change.
14953         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14954         REPLACE_TOWLOWER to 0.
14955         Reported by Sam Steingold <sds@gnu.org>.
14956
14957 2011-07-31  Bruno Haible  <bruno@clisp.org>
14958
14959         frexpl: Update autoconf test.
14960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14961         according to changes of 2011-06-20.
14962
14963 2011-07-31  Bruno Haible  <bruno@clisp.org>
14964
14965         sys_utsname: Add support for Minix.
14966         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14967         <sys/utsname.h>.
14968         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14969         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14970
14971 2011-07-31  Bruno Haible  <bruno@clisp.org>
14972
14973         strings: Add support for Minix.
14974         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14975         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14976         * doc/posix-headers/strings.texi: Document the Minix problem.
14977
14978 2011-07-31  Bruno Haible  <bruno@clisp.org>
14979
14980         wctype-h: Add support for Minix.
14981         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14982         REPLACE_TOWLOWER.
14983         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14984         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14985         REPLACE_ISWCNTRL.
14986
14987 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14988
14989         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14990         This is a performance improvement for 64-bit hosts: it causes the
14991         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14992
14993 2011-07-31  Bruno Haible  <bruno@clisp.org>
14994
14995         stdioext: Add support for Minix.
14996         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14997         * lib/fpurge.c (fpurge): Likewise.
14998         * lib/freadahead.c (freadahead): Likewise.
14999         * lib/freadable.c (freadable): Likewise.
15000         * lib/freading.c (freading): Likewise.
15001         * lib/freadptr.c (freadptr): Likewise.
15002         * lib/freadseek.c (freadptrinc): Likewise.
15003         * lib/fseeko.c (rpl_fseeko): Likewise.
15004         * lib/fseterr.c (fseterr): Likewise.
15005         * lib/fwritable.c (fwritable): Likewise.
15006         * lib/fwriting.c (fwriting): Likewise.
15007         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15008         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15009
15010 2011-07-31  Bruno Haible  <bruno@clisp.org>
15011
15012         errno: Port to Minix.
15013         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15014         ECONNABORTED are defined.
15015         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15016         GNULIB_defined_ECONNABORTED): New macros.
15017         * lib/strerror-override.h (strerror_override): Test also
15018         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15019         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15020         ECONNABORTED.
15021         * doc/posix-headers/errno.texi: Mention the Minix problem.
15022
15023 2011-07-31  Bruno Haible  <bruno@clisp.org>
15024
15025         Work around declaration collisions on Minix.
15026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15027         defined, set REPLACE_MBSINIT.
15028         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15029         defined, set REPLACE_MBRTOWC.
15030         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15031         set REPLACE_MBRLEN.
15032         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15033         defined, set REPLACE_MBSRTOWCS.
15034         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15035         defined, set REPLACE_WCRTOMB.
15036         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15037         defined, set REPLACE_WCSRTOMBS.
15038
15039 2011-07-31  Bruno Haible  <bruno@clisp.org>
15040
15041         Add support for Minix with ACK compiler.
15042         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15043         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15044         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15045
15046 2011-07-31  Bruno Haible  <bruno@clisp.org>
15047
15048         Documentation about Minix.
15049         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15050         * doc/glibc-headers/*.texi: Likewise.
15051         * doc/posix-functions/*.texi: Likewise.
15052         * doc/glibc-functions/*.texi: Likewise.
15053
15054 2011-07-31  Bruno Haible  <bruno@clisp.org>
15055
15056         snippet/warn-on-use: Fix indentation.
15057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15058
15059 2011-07-25  Jim Meyering  <meyering@redhat.com>
15060
15061         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15062         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15063         commands.
15064
15065 2011-07-27  Jim Meyering  <meyering@redhat.com>
15066
15067         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15068         * top/maint.mk (gl_extract_significant_defines_): Now that
15069         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15070         gnulib/lib/signal.in.h, and now that we recommend to
15071         define-if-undefined those two symbols in application code,
15072         we must filter them out of the "significant" list.
15073         This avoids a "make syntax-check" failure in coreutils.
15074
15075 2011-07-26  Eric Blake  <eblake@redhat.com>
15076
15077         warnings: add comments about previous patch
15078         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15079         * m4/include_next.m4: Likewise.
15080         * m4/warn-on-use.m4: Likewise.
15081         * m4/warnings.m4: Likewise, and simplify use.
15082         Suggested by Stefano Lattarini.
15083
15084         include-next, warnings: support older autoconf
15085         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15086         AS_VAR_PUSHDEF in a way that works with older autoconf.
15087         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15088         Reported by Daniel P. Berrange.
15089
15090 2011-07-25  Bruno Haible  <bruno@clisp.org>
15091
15092         fseek, ftell: Fix doc.
15093         * doc/posix-functions/fseek.texi: Reword statement about
15094         AC_SYS_LARGEFILE.
15095         * doc/posix-functions/ftell.texi: Likewise.
15096
15097 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15098             Bruno Haible  <bruno@clisp.org>
15099
15100         Add dependencies to the 'largefile' module.
15101         * modules/fopen (Depends-on): Add 'largefile'.
15102         * modules/freopen (Depends-on): Likewise.
15103         * modules/fseeko (Depends-on): Likewise.
15104         * modules/ftello (Depends-on): Likewise.
15105         * modules/glob (Depends-on): Likewise.
15106         * modules/lseek (Depends-on): Likewise.
15107         * modules/lstat (Depends-on): Likewise.
15108         * modules/mkostemp (Depends-on): Likewise.
15109         * modules/mkostemps (Depends-on): Likewise.
15110         * modules/mkstemp (Depends-on): Likewise.
15111         * modules/mkstemps (Depends-on): Likewise.
15112         * modules/open (Depends-on): Likewise.
15113         * modules/openat (Depends-on): Likewise.
15114         * modules/pread (Depends-on): Likewise.
15115         * modules/pwrite (Depends-on): Likewise.
15116         * modules/scandir (Depends-on): Likewise.
15117         * modules/stat (Depends-on): Likewise.
15118         * modules/tmpfile (Depends-on): Likewise.
15119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15120         since the containing module now depends on the largefile module.
15121         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15122         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15123         off_t is fixed by gnulib.
15124         * doc/posix-functions/freopen.texi: Likewise.
15125         * doc/posix-functions/fseeko.texi: Likewise.
15126         * doc/posix-functions/fstatat.texi: Likewise.
15127         * doc/posix-functions/ftello.texi: Likewise.
15128         * doc/posix-functions/glob.texi: Likewise.
15129         * doc/posix-functions/lseek.texi: Likewise.
15130         * doc/posix-functions/lstat.texi: Likewise.
15131         * doc/posix-functions/mkstemp.texi: Likewise.
15132         * doc/posix-functions/open.texi: Likewise.
15133         * doc/posix-functions/openat.texi: Likewise.
15134         * doc/posix-functions/pread.texi: Likewise.
15135         * doc/posix-functions/pwrite.texi: Likewise.
15136         * doc/posix-functions/scandir.texi: Likewise.
15137         * doc/posix-functions/stat.texi: Likewise.
15138         * doc/posix-functions/tmpfile.texi: Likewise.
15139         * doc/glibc-functions/mkostemp.texi: Likewise.
15140         * doc/glibc-functions/mkostemps.texi: Likewise.
15141         * doc/glibc-functions/mkstemps.texi: Likewise.
15142
15143 2011-07-25  Bruno Haible  <bruno@clisp.org>
15144
15145         fcntl: Move AC_LIBOBJ invocation to module description.
15146         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15147         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15148
15149         fcntl: Remove call-in from fchdir.m4.
15150         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15152
15153         dup3: Remove potential call-in from fchdir.m4.
15154         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15156
15157         dup2: Move AC_LIBOBJ invocation to module description.
15158         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15159         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15160         Don't invoke AC_LIBOBJ.
15161         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15162
15163         dup2: Remove call-in from fchdir.m4.
15164         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15166
15167         fclose: Move AC_LIBOBJ invocation to module description.
15168         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15169         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15170         to 1.
15171         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15172
15173         fclose: Remove call-in from close.m4.
15174         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15175         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15176
15177         close: Move AC_LIBOBJ invocation to module description.
15178         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15179         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15180         1.
15181         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15182
15183         close: Remove call-in from fchdir.m4.
15184         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15186
15187         open: Move AC_LIBOBJ invocation to module description.
15188         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15189         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15190         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15191
15192         open: Remove call-in from fchdir.m4.
15193         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15195
15196         fchdir: Start to remove gl_REPLACE_* idiom.
15197         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15198         (gl_FUNC_FCHDIR): Invoke it.
15199
15200 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15201
15202         * lib/ftell.c (ftell): Comment out cast.
15203
15204         close: use gl_REPLACE_FCLOSE only if defined
15205         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15206         is defined.  The close module doesn't depend on the fclose module
15207         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15209         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15210
15211 2011-07-24  Jim Meyering  <meyering@redhat.com>
15212
15213         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15214         * tests/test-select.h (test_function): Declare as "static".
15215
15216 2011-07-24  Bruno Haible  <bruno@clisp.org>
15217
15218         doc: Mention the effects of AC_SYS_LARGEFILE.
15219         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15220         on this function.
15221         * doc/posix-functions/aio_error.texi: Likewise.
15222         * doc/posix-functions/aio_fsync.texi: Likewise.
15223         * doc/posix-functions/aio_read.texi: Likewise.
15224         * doc/posix-functions/aio_return.texi: Likewise.
15225         * doc/posix-functions/aio_suspend.texi: Likewise.
15226         * doc/posix-functions/aio_write.texi: Likewise.
15227         * doc/posix-functions/fgetpos.texi: Likewise.
15228         * doc/posix-functions/fopen.texi: Likewise.
15229         * doc/posix-functions/freopen.texi: Likewise.
15230         * doc/posix-functions/fsetpos.texi: Likewise.
15231         * doc/posix-functions/fstatvfs.texi: Likewise.
15232         * doc/posix-functions/ftruncate.texi: Likewise.
15233         * doc/posix-functions/ftw.texi: Likewise.
15234         * doc/posix-functions/getrlimit.texi: Likewise.
15235         * doc/posix-functions/glob.texi: Likewise.
15236         * doc/posix-functions/lio_listio.texi: Likewise.
15237         * doc/posix-functions/lockf.texi: Likewise.
15238         * doc/posix-functions/mkstemp.texi: Likewise.
15239         * doc/posix-functions/mmap.texi: Likewise.
15240         * doc/posix-functions/nftw.texi: Likewise.
15241         * doc/posix-functions/openat.texi: Likewise.
15242         * doc/posix-functions/opendir.texi: Likewise.
15243         * doc/posix-functions/posix_fadvise.texi: Likewise.
15244         * doc/posix-functions/posix_fallocate.texi: Likewise.
15245         * doc/posix-functions/pread.texi: Likewise.
15246         * doc/posix-functions/pwrite.texi: Likewise.
15247         * doc/posix-functions/readdir.texi: Likewise.
15248         * doc/posix-functions/readdir_r.texi: Likewise.
15249         * doc/posix-functions/rewinddir.texi: Likewise.
15250         * doc/posix-functions/scandir.texi: Likewise.
15251         * doc/posix-functions/seekdir.texi: Likewise.
15252         * doc/posix-functions/setrlimit.texi: Likewise.
15253         * doc/posix-functions/statvfs.texi: Likewise.
15254         * doc/posix-functions/telldir.texi: Likewise.
15255         * doc/posix-functions/tmpfile.texi: Likewise.
15256         * doc/posix-functions/truncate.texi: Likewise.
15257         * doc/glibc-functions/fallocate.texi: Likewise.
15258         * doc/glibc-functions/fstatfs.texi: Likewise.
15259         * doc/glibc-functions/fts_children.texi: Likewise.
15260         * doc/glibc-functions/fts_read.texi: Likewise.
15261         * doc/glibc-functions/getdirentries.texi: Likewise.
15262         * doc/glibc-functions/mkostemp.texi: Likewise.
15263         * doc/glibc-functions/mkostemps.texi: Likewise.
15264         * doc/glibc-functions/mkstemps.texi: Likewise.
15265         * doc/glibc-functions/preadv.texi: Likewise.
15266         * doc/glibc-functions/pwritev.texi: Likewise.
15267         * doc/glibc-functions/sendfile.texi: Likewise.
15268         * doc/glibc-functions/statfs.texi: Likewise.
15269
15270 2011-07-24  Bruno Haible  <bruno@clisp.org>
15271
15272         doc: Fix typo.
15273         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15274
15275 2011-07-24  Bruno Haible  <bruno@clisp.org>
15276
15277         doc: Mention fsusage.
15278         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15279
15280 2011-07-24  Bruno Haible  <bruno@clisp.org>
15281
15282         doc: Mention new glibc headers and functions.
15283         * doc/glibc-headers/gshadow.texi: New file.
15284         * doc/glibc-functions/endsgent.texi: New file.
15285         * doc/glibc-functions/fgetsgent.texi: New file.
15286         * doc/glibc-functions/fgetsgent_r.texi: New file.
15287         * doc/glibc-functions/getsgent.texi: New file.
15288         * doc/glibc-functions/getsgent_r.texi: New file.
15289         * doc/glibc-functions/getsgnam.texi: New file.
15290         * doc/glibc-functions/getsgnam_r.texi: New file.
15291         * doc/glibc-functions/putsgent.texi: New file.
15292         * doc/glibc-functions/setsgent.texi: New file.
15293         * doc/glibc-functions/sgetsgent.texi: New file.
15294         * doc/glibc-functions/sgetsgent_r.texi: New file.
15295         * doc/glibc-functions/malloc_info.texi: New file.
15296         * doc/glibc-functions/preadv.texi: New file.
15297         * doc/glibc-functions/pwritev.texi: New file.
15298         * doc/glibc-functions/register_printf_modifier.texi: New file.
15299         * doc/glibc-functions/register_printf_specifier.texi: New file.
15300         * doc/glibc-functions/register_printf_type.texi: New file.
15301         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15302         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15303         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15304         * doc/glibc-functions/pthread_getname_np.texi: New file.
15305         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15306         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15307         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15308         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15309         * doc/glibc-functions/pthread_setname_np.texi: New file.
15310         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15311         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15312         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15313         * doc/glibc-functions/qsort_r.texi: New file.
15314         * doc/glibc-functions/quick_exit.texi: New file.
15315         * doc/glibc-functions/syncfs.texi: New file.
15316         * doc/gnulib.texi: Include them.
15317         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15318         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15319         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15320         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15321         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15322         * doc/glibc-functions/execvpe.texi: Likewise.
15323
15324 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15325
15326         ftell: don't include <unistd.h>
15327         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15328         guaranteed to define off_t, and the ftell module depends on the
15329         stdio module.
15330
15331         ftell: do not assume wraparound signed arithmetic
15332         * lib/ftell.c: Include <limits.h>.
15333         (ftell): Don't assume wraparound signed arithmetic.
15334
15335 2011-07-24  Bruno Haible  <bruno@clisp.org>
15336
15337         close: No longer depend on module 'fclose'.
15338         * modules/close (Depends-on): Remove fclose.
15339         * NEWS: Mention the change.
15340         Suggested by Sam Steingold <sds@gnu.org>.
15341
15342 2011-07-24  Bruno Haible  <bruno@clisp.org>
15343
15344         fsusage: Enable large volume support on AIX >= 5.2.
15345         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15346         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15347         instead of STAT_STATVFS.
15348         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15349
15350         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15351         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15352         f_blocks field only on MacOS X.
15353
15354         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15355         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15356         * modules/fsusage (Depends-on): Add largefile.
15357
15358 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15359
15360         * README: Modernize discussion of signed integers.
15361         Assuming overflow wraparound is no longer safe.
15362         Mention ones' complement and signed magnitude.
15363
15364 2011-07-22  Bruno Haible  <bruno@clisp.org>
15365
15366         select tests, pselect tests: Refactor.
15367         * tests/test-select.h: New file, extracted from tests/test-select.c.
15368         (select_fn): New type.
15369         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15370         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15371         test_pipe): Add my_select argument.
15372         (test_function): Renamed from main. Add my_select argument.
15373         * tests/test-select.c: Move most code to tests/test-select.h. Include
15374         test-select.h.
15375         * modules/select-tests (Files): Add tests/test-select.h.
15376         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15377         (my_select, main): New functions.
15378         * modules/pselect-tests (Files): Add tests/test-select.h,
15379         tests/macros.h, tests/signature.h.
15380         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15381         (configure.ac): Check for <sys/wait.h>.
15382
15383 2011-07-22  Bruno Haible  <bruno@clisp.org>
15384
15385         sys_select tests: Check the signature of FD_*.
15386         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15387         signature tests from here...
15388         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15389         here.
15390         * modules/sys_select-tests (Files): Add tests/signature.h.
15391
15392 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15393
15394         largefile: new module, replacing large-inode
15395         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15396         * MODULES.html.sh: Add largefile, remove large-inode.
15397         * modules/largefile, m4/largefile.m4: New files.
15398         * modules/large-inode, m4/large-inode.m4: Remove.
15399
15400         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15402         implementations that use only 32 bits to count blocks.
15403         On typical hosts with 1024-byte blocks, this fails with file
15404         systems as small as 4 TiB.  Problem reported by Herb Wartens
15405         <http://debbugs.gnu.org/9140> and this should also fix a similar
15406         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15407
15408         large-inode: New module
15409         * MODULES.html.sh: Add it.
15410         * modules/large-inode, m4/large-inode.m4: New files.
15411
15412         extensions: Enable extensions on MacOS X 10.5 and later.
15413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15414
15415 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15416
15417         file-has-acl: use acl_extended_file_nofollow if available
15418         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15419         (acl_extended_file): New macro.
15420         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15421         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15422
15423 2011-07-21  Bruno Haible  <bruno@clisp.org>
15424
15425         Declare system functions in a way that works with C++.
15426         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15427         declare fdopendir as extern "C".
15428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15429         declare frexpl as extern "C".
15430         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15431         declare gai_strerror as extern "C".
15432         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15433         programs, declare gai_strerror as extern "C".
15434         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15435         declare getlogin_r as extern "C".
15436         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15437         as extern "C".
15438         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15439         declare ldexpl as extern "C".
15440         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15441         as extern "C".
15442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15443         program, declare getmntinfo as extern "C".
15444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15445         stpncpy as extern "C".
15446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15447         program, declare __xpg_strerror_r as extern "C".
15448         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15449         strndup as extern "C".
15450         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15451         declare memset and bzero as extern "C".
15452         Reported by Sam Steingold <sds@gnu.org>.
15453
15454 2011-07-12  Jim Meyering  <meyering@redhat.com>
15455
15456         maint.mk: prohibit inclusion of "verify.h" without use
15457         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15458
15459 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15460
15461         timer-time: A new module to check for timer_settime()
15462         * m4/timer_time.m4: Check for the posix function.
15463         * modules/timer-time: Add the new module.
15464         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15465         Mention it.
15466
15467 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15468             Bruno Haible  <bruno@clisp.org>
15469
15470         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15471         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15472         not defined, assume POSIX threads and look for pthread_sigmask in
15473         $LIBS, without changing $CPPFLAGS.
15474
15475 2011-07-19  Bruno Haible  <bruno@clisp.org>
15476
15477         strstr: Update cross-compilation guess.
15478         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15479         CPUs, guess no, in view of glibc
15480         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15481         Suggested by Eric Blake. Reported by Reuben Thomas.
15482
15483 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15484
15485         getopt-gnu: suppress core dumps from detection code
15486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15487         to suppress core dumps that may well occur on glibc systems.
15488         * modules/getopt-gnu: Depend on nocrash.
15489
15490 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15491
15492         pthread_sigmask: ensure usleep is declared
15493         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15494         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15495
15496 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         doc: Document NonStop portability issues.
15499         * doc/posix-functions/sigaction.texi (sigaction):
15500         * doc/posix-headers/signal.texi (signal.h):
15501         Document NonStop.  See Joachim Schmitz in
15502         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15503
15504 2011-07-15  Bruno Haible  <bruno@clisp.org>
15505
15506         ffsl, ffsll: Avoid unportable behaviour.
15507         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15508
15509 2011-07-15  Bruno Haible  <bruno@clisp.org>
15510
15511         ffs: More tests.
15512         * tests/test-ffs.c (NBITS): New macro.
15513         (main): Add more tests.
15514         * tests/test-ffsl.c (NBITS): New macro.
15515         (main): Add more tests.
15516         * tests/test-ffsll.c (NBITS): New macro.
15517         (main): Add more tests.
15518
15519 2011-07-15  Eric Blake  <eblake@redhat.com>
15520
15521         ffsl, ffsll: new modules
15522         * modules/ffsl: New file.
15523         * modules/ffsll: Likewise.
15524         * m4/ffsl.m4: Likewise.
15525         * m4/ffsll.m4: Likewise.
15526         * lib/ffsl.c: Likewise.
15527         * lib/ffsl.h: Likewise.
15528         * lib/ffsll.c: Likewise.
15529         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15530         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15531         * modules/string (Makefile.am): Substitute witnesses.
15532         * lib/strings.in.h (ffsl, ffsll): Declare.
15533         * modules/ffsl-tests: New test file.
15534         * modules/ffsll-tests: Likewise.
15535         * tests/test-ffsl.c: Likewise.
15536         * tests/test-ffsll.c: Likewise.
15537         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15538         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15539         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15540
15541         ffs: fix m4 prerequisite
15542         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15543
15544         ffs: avoid undefined behavior
15545         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15546         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15547         Reported by Bruno Haible.
15548
15549 2011-07-12  Bruno Haible  <bruno@clisp.org>
15550
15551         pthread_sigmask: Rely on module 'threadlib'.
15552         * modules/pthread_sigmask (Depends-on): Add threadlib.
15553         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15554         is defined.
15555
15556 2011-07-12  Bruno Haible  <bruno@clisp.org>
15557
15558         regex: Depend on module 'strcase'.
15559         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15560
15561 2011-07-12  Jim Meyering  <meyering@redhat.com>
15562
15563         warn-on-use: fix typo in file name
15564         * modules/snippet/warn-on-use (Files): Correct file name:
15565         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15566
15567 2011-07-12  Bruno Haible  <bruno@clisp.org>
15568
15569         strings: Document module.
15570         * doc/posix-headers/strings.texi: Mention module 'strings'.
15571
15572 2011-07-12  Bruno Haible  <bruno@clisp.org>
15573
15574         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15575         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15576         (Files, Makefile.am): Update.
15577         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15578         * modules/stdlib (Depends-on): Update.
15579
15580 2011-07-12  Bruno Haible  <bruno@clisp.org>
15581
15582         * NEWS: Mention the changes.
15583
15584         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15585         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15586         (Files, Makefile.am): Update.
15587         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15588         * modules/arpa_inet (Depends-on): Update.
15589         * modules/ctype (Depends-on): Update.
15590         * modules/dirent (Depends-on): Update.
15591         * modules/fcntl-h (Depends-on): Update.
15592         * modules/glob (Depends-on): Update.
15593         * modules/iconv-h (Depends-on): Update.
15594         * modules/inttypes-incomplete (Depends-on): Update.
15595         * modules/langinfo (Depends-on): Update.
15596         * modules/locale (Depends-on): Update.
15597         * modules/math (Depends-on): Update.
15598         * modules/netdb (Depends-on): Update.
15599         * modules/poll-h (Depends-on): Update.
15600         * modules/pty (Depends-on): Update.
15601         * modules/search (Depends-on): Update.
15602         * modules/signal (Depends-on): Update.
15603         * modules/spawn (Depends-on): Update.
15604         * modules/stdio (Depends-on): Update.
15605         * modules/stdlib (Depends-on): Update.
15606         * modules/string (Depends-on): Update.
15607         * modules/strings (Depends-on): Update.
15608         * modules/sys_file (Depends-on): Update.
15609         * modules/sys_ioctl (Depends-on): Update.
15610         * modules/sys_select (Depends-on): Update.
15611         * modules/sys_socket (Depends-on): Update.
15612         * modules/sys_stat (Depends-on): Update.
15613         * modules/sys_time (Depends-on): Update.
15614         * modules/sys_times (Depends-on): Update.
15615         * modules/sys_utsname (Depends-on): Update.
15616         * modules/sys_wait (Depends-on): Update.
15617         * modules/termios (Depends-on): Update.
15618         * modules/time (Depends-on): Update.
15619         * modules/unistd (Depends-on): Update.
15620         * modules/wchar (Depends-on): Update.
15621         * modules/wctype-h (Depends-on): Update.
15622         * MODULES.html.sh (Support for building libraries and executables):
15623         Update.
15624
15625         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15626         * modules/snippet/unused-parameter: Renamed from
15627         modules/unused-parameter.
15628         (Files, Makefile.am): Update.
15629         * build-aux/snippet/unused-parameter.h: Renamed from
15630         build-aux/unused-parameter.h.
15631         * modules/selinux-h (Depends-on): Update.
15632         * modules/unistr/base (Depends-on): Update.
15633         * MODULES.html.sh (Core language properties): Update.
15634
15635         Rename module 'link-warning' to 'snippet/link-warning'.
15636         * modules/snippet/link-warning: Renamed from modules/link-warning.
15637         (Files, Makefile.am): Update.
15638         * build-aux/snippet/link-warning.h: Renamed from
15639         build-aux/link-warning.h.
15640         * MODULES.html.sh (Support for building libraries and executables):
15641         Update.
15642
15643         Rename module 'c++defs' to 'snippet/c++defs'.
15644         * modules/snippet/c++defs: Renamed from modules/c++defs.
15645         (Files, Makefile.am): Update.
15646         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15647         * modules/arpa_inet (Depends-on): Update.
15648         * modules/ctype (Depends-on): Update.
15649         * modules/dirent (Depends-on): Update.
15650         * modules/fcntl-h (Depends-on): Update.
15651         * modules/glob (Depends-on): Update.
15652         * modules/iconv-h (Depends-on): Update.
15653         * modules/langinfo (Depends-on): Update.
15654         * modules/locale (Depends-on): Update.
15655         * modules/math (Depends-on): Update.
15656         * modules/netdb (Depends-on): Update.
15657         * modules/poll-h (Depends-on): Update.
15658         * modules/pty (Depends-on): Update.
15659         * modules/search (Depends-on): Update.
15660         * modules/signal (Depends-on): Update.
15661         * modules/spawn (Depends-on): Update.
15662         * modules/stdio (Depends-on): Update.
15663         * modules/stdlib (Depends-on): Update.
15664         * modules/string (Depends-on): Update.
15665         * modules/strings (Depends-on): Update.
15666         * modules/sys_ioctl (Depends-on): Update.
15667         * modules/sys_select (Depends-on): Update.
15668         * modules/sys_socket (Depends-on): Update.
15669         * modules/sys_stat (Depends-on): Update.
15670         * modules/sys_time (Depends-on): Update.
15671         * modules/sys_wait (Depends-on): Update.
15672         * modules/termios (Depends-on): Update.
15673         * modules/time (Depends-on): Update.
15674         * modules/unistd (Depends-on): Update.
15675         * modules/wchar (Depends-on): Update.
15676         * modules/wctype-h (Depends-on): Update.
15677
15678         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15679         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15680         (Files, Makefile.am): Update.
15681         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15682         * modules/argv-iter (Depends-on): Update.
15683         * modules/arpa_inet (Depends-on): Update.
15684         * modules/dirent (Depends-on): Update.
15685         * modules/fcntl-h (Depends-on): Update.
15686         * modules/fnmatch (Depends-on): Update.
15687         * modules/getopt-posix (Depends-on): Update.
15688         * modules/glob (Depends-on): Update.
15689         * modules/iconv-h (Depends-on): Update.
15690         * modules/inttypes-incomplete (Depends-on): Update.
15691         * modules/locale (Depends-on): Update.
15692         * modules/math (Depends-on): Update.
15693         * modules/netdb (Depends-on): Update.
15694         * modules/search (Depends-on): Update.
15695         * modules/signal (Depends-on): Update.
15696         * modules/spawn (Depends-on): Update.
15697         * modules/stdio (Depends-on): Update.
15698         * modules/stdlib (Depends-on): Update.
15699         * modules/string (Depends-on): Update.
15700         * modules/strings (Depends-on): Update.
15701         * modules/sys_socket (Depends-on): Update.
15702         * modules/sys_stat (Depends-on): Update.
15703         * modules/sys_time (Depends-on): Update.
15704         * modules/sys_times (Depends-on): Update.
15705         * modules/sys_utsname (Depends-on): Update.
15706         * modules/time (Depends-on): Update.
15707         * modules/unistd (Depends-on): Update.
15708         * modules/wchar (Depends-on): Update.
15709         * MODULES.html.sh (Support for building libraries and executables):
15710         Update.
15711
15712 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15713
15714         Improvements on _Noreturn and related modules.
15715
15716         modules/_Exit-tests: test _Noreturn too
15717         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15718         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15719         (main): Use them.
15720
15721         stdnoreturn, stdnoreturn-tests: remove modules
15722         They're not needed here and a bit premature for use elsewhere.  See
15723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15724         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15725         * tests/test-stdnoreturn.c: Remove files.
15726         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15727         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15728         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15729         and using noreturn.
15730         * modules/openat, modules/sigpipe-die, modules/xalloc:
15731         * modules/xmemdup0, modules/xstrtol:
15732         Remove dependency on stdnoreturn.
15733
15734         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15735         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15736         Reparenthesize to avoid GCC warning.
15737         Support Microsoft's syntax.
15738         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15739
15740         _Noreturn-tests: remove module
15741         * modules/_Noreturn-tests: Remove.
15742         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15743         * tests/test-_Noreturn.c: Remove.
15744         * tests/test-stdnoreturn.c: Merge from the old
15745         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15746
15747 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15748
15749         _Noreturn, stdnoreturn, and related modules.
15750
15751         * top/maint.mk: Adjust to new noreturn support.
15752         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15753         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15754
15755         xalloc: use stdnoreturn.h
15756         * lib/xalloc.h: Include <stdnoreturn.h>.
15757         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15758         * modules/xalloc (Depends-on): Add stdnoreturn.
15759
15760         xstrtol: use stdnoreturn.h
15761         * lib/xstrtol.h: Include <stdnoreturn.h>.
15762         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15763         * modules/xstrtol (Depends-on): Add stdnoreturn.
15764
15765         xmemdup0: use stdnoreturn.h
15766         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15767         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15768         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15769
15770         sigpipe-die: use stdnoreturn.h
15771         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15772         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15773         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15774
15775         openat: use stdnoreturn.h
15776         * lib/openat.h: Include <stdnoreturn.h>.
15777         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15778         * modules/openat (Depends-on): Add stdnoreturn.
15779
15780         * lib/openat-die.c (openat_save_fail): Modernize comment.
15781
15782         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15783
15784         * lib/glthread/thread.h: Modernize comment.
15785
15786         obstack: use _Noreturn
15787         * lib/obstack.c (__attribute__): Remove macro.
15788         (print_and_abort): Use _Noreturn.
15789
15790         c-stack: use _Noreturn
15791         * lib/c-stack.c (die, overflow_handler, segv_handler):
15792         Use _Noreturn rather than __attribute__((noreturn)).
15793
15794         argmatch-tests, exclude_tests: use _Noreturn
15795         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15796         Remove.
15797         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15798
15799         stdlib: use _Noreturn
15800         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15801         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15802         * modules/stdlib (Depends-on): Add _Noreturn.
15803         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15804
15805         stdnoreturn-tests: new module
15806         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15807
15808         stdnoreturn: new module
15809         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15810         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15811
15812         _Noreturn-tests: new module
15813         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15814
15815         _Noreturn: new module
15816         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15817         New section, mentioning it.
15818         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15819
15820         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15821
15822 2011-07-11  Eric Blake  <eblake@redhat.com>
15823
15824         ffs: new module
15825         * modules/ffs: New file.
15826         * m4/ffs.m4: Likewise.
15827         * lib/ffs.c: Likewise.
15828         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15829         * modules/strings (Makefile.am): Substitute witness.
15830         (Depends-on): Add c++defs.
15831         * lib/strings.in.h (ffs): Declare.
15832         * modules/ffs-tests: New test file.
15833         * tests/test-ffs.c: Test new module.
15834         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15835         * doc/posix-functions/ffs.texi (ffs): Likewise.
15836
15837         regex: avoid compiler warning
15838         * lib/regex.c (includes): Include <strings.h>, for use of
15839         strcasecmp in regcomp.c.
15840         Reported by Joachim Schmitz.
15841
15842 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         stdint: respect system's intmax_t if INTMAX_MAX
15845         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15846         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15847         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15848         long but int64_t is long long, and where we will clash with the
15849         system intmax_t if we override it.  See
15850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15851         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15852         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15853         similarly for UINTMAX_C.
15854
15855 2011-07-08  Bruno Haible  <bruno@clisp.org>
15856
15857         pthread_sigmask tests: Avoid a compiler warning.
15858         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15859         non-zero.
15860
15861         sigprocmask tests: A better way to avoid a compiler warning.
15862         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15863         (main): Complain if system() returns non-zero.
15864         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15865
15866 2011-07-08  Bruno Haible  <bruno@clisp.org>
15867
15868         pthread_sigmask: Work around IRIX bug.
15869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15870         bug.
15871         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15872         there may be unblocked pending signals.
15873         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15874
15875 2011-07-08  Bruno Haible  <bruno@clisp.org>
15876
15877         pthread_sigmask: Work around Cygwin bug.
15878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15879         bug.
15880         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15881         the system's pthread_sigmask function.
15882         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15883
15884 2011-07-08  Bruno Haible  <bruno@clisp.org>
15885
15886         pthread_sigmask: Work around bug in single-threaded implementation.
15887         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15888         FreeBSD, HP-UX, Solaris bug.
15889         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15890         * lib/pthread_sigmask.c: Include <stddef.h>.
15891         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15892         the system's pthread_sigmask function.
15893         * modules/pthread_sigmask (configure.ac): Invoke
15894         gl_PREREQ_PTHREAD_SIGMASK.
15895         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15896         HP-UX, Solaris.
15897
15898 2011-07-08  Eric Blake  <eblake@redhat.com>
15899
15900         test-sigprocmask: avoid compiler warning
15901         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15902         * tests/test-sigprocmask.c (main): Use it to silence warning.
15903         Reported by Jim Meyering.
15904
15905         test-snprintf: avoid compiler warning
15906         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15907         * tests/test-vsnprintf.c (main): Likewise.
15908         Reported by Jim Meyering.
15909
15910 2011-07-08  Bruno Haible  <bruno@clisp.org>
15911
15912         Tests for module 'pthread_sigmask'.
15913         * modules/pthread_sigmask-tests: New file.
15914         * tests/test-pthread_sigmask1.c: New file, based on
15915         tests/test-sigprocmask.c.
15916         * tests/test-pthread_sigmask2.c: New file.
15917
15918 2011-07-08  Jim Meyering  <meyering@redhat.com>
15919
15920         test-getopt.h: avoid warning about an unused variable
15921         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15922
15923 2011-07-07  Jim Meyering  <meyering@redhat.com>
15924
15925         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15926         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15927         now that it no longer contains leading TABs.
15928         Remove unused "url=FIXME" statement.
15929
15930 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15931
15932         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15933         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15934         When gl_THREADLIB is not in use, assume that the POSIX sematics
15935         are desired.  This is better for Emacs, which uses POSIX semantics
15936         on GNUish and/or POSIXish platforms, and does not use threads at
15937         all otherwise.
15938
15939         pthread_sigmask: fix typo when testing for libraries
15940         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15941         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15942
15943 2011-07-08  Eric Blake  <eblake@redhat.com>
15944
15945         fts: introduce FTS_NOATIME
15946         * lib/fts_.h (FTS_NOATIME): New bit flag.
15947         (FTS_OPTIONMASK): Adjust.
15948         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15949         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15950
15951 2011-07-08  Bruno Haible  <bruno@clisp.org>
15952
15953         Tests for module 'thread'.
15954         * modules/thread-tests: New file.
15955         * tests/test-thread_self.c: New file.
15956         * tests/test-thread_create.cc: New file.
15957
15958 2011-07-08  Bruno Haible  <bruno@clisp.org>
15959
15960         thread: Avoid gcc warnings when using gl_thread_self().
15961         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15962         'void *'.
15963         (gl_thread_self_pointer): Update.
15964
15965 2011-07-07  Bruno Haible  <bruno@clisp.org>
15966
15967         signal-c++-tests: Check declaration of pthread_sigmask.
15968         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15969         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15970         $(LIB_PTHREAD_SIGMASK).
15971
15972 2011-07-07  Bruno Haible  <bruno@clisp.org>
15973
15974         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15975         * lib/signal.in.h (pthread_sigmask): Override if
15976         REPLACE_PTHREAD_SIGMASK is 1.
15977         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15978         REPLACE_PTHREAD_SIGMASK.
15979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15980         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15981         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15982         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15983         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15984
15985 2011-07-07  Bruno Haible  <bruno@clisp.org>
15986
15987         pthread_sigmask: Ensure declaration in <signal.h>.
15988         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15989         include <pthread.h>.
15990         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15991         problem.
15992
15993 2011-07-07  Bruno Haible  <bruno@clisp.org>
15994
15995         pthread_sigmask: Document the module.
15996         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15997
15998 2011-07-07  Bruno Haible  <bruno@clisp.org>
15999
16000         pthread_sigmask: Follow gnulib conventions.
16001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16002         gl_PTHREAD_SIGMASK.
16003         * modules/pthread_sigmask (configure.ac): Update.
16004
16005 2011-07-07  Bruno Haible  <bruno@clisp.org>
16006
16007         pthread_sigmask: Make declaration C++ safe.
16008         * lib/signal.in.h: In two special conditions, just do an #include_next.
16009         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16010         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16011         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16012         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16013         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16014         not REPLACE_PTHREAD_MASK.
16015         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16016         not REPLACE_PTHREAD_MASK.
16017         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16018
16019 2011-07-07  Bruno Haible  <bruno@clisp.org>
16020
16021         pthread_sigmask: Fix return value.
16022         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16023         * lib/pthread_sigmask.c: New file.
16024         * modules/pthread_sigmask (Files): Add it.
16025         (configure.ac): Invoke AC_LIBOBJ.
16026
16027 2011-07-07  Eric Blake  <eblake@redhat.com>
16028
16029         getopt: more portable argv creation
16030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16031         const, use char arrays rather than strings.
16032         Suggested by Paul Eggert.
16033
16034 2011-07-07  Bruno Haible  <bruno@clisp.org>
16035
16036         Tests for module 'sigprocmask'.
16037         * modules/sigprocmask-tests: New file.
16038         * tests/test-sigprocmask.c: New file.
16039
16040 2011-07-07  Bruno Haible  <bruno@clisp.org>
16041
16042         float tests: Tweak.
16043         * tests/test-float.c (main): Tweak skip message.
16044
16045 2011-07-07  Eric Blake  <eblake@redhat.com>
16046
16047         getopt: avoid compiler warning during configure
16048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16049         assigning string literals to non-const pointer.
16050
16051         getopt-gnu: avoid crash in glibc getopt
16052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16053         * tests/test-getopt.h (test_getopt): Enhance test.
16054         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16055         * doc/posix-functions/getopt.texi (getopt): Document it.
16056         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16057         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16058         Likewise.
16059
16060 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16061
16062         getopt: handle W; without long options in getopt [BZ #12922]
16063         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16064         but no long options are defined, just return 'W'.
16065
16066 2011-07-07  Bruno Haible  <bruno@clisp.org>
16067
16068         Avoid literal tabs.
16069         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16070         variable containing a tab instead of a literal tab.
16071         Reported by Jim Meyering.
16072
16073 2011-07-07  Bruno Haible  <bruno@clisp.org>
16074
16075         Comments.
16076         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16077
16078 2011-07-06  Bruno Haible  <bruno@clisp.org>
16079
16080         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16081         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16082         <winsock2.h>.
16083         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16084         lib/sys_socket.in.h.
16085         (close, gethostname): Hide declarations from <winsock2.h>.
16086         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16087         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16088         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16089         (select): Don't override if gnulib's <sys/select.h> was already
16090         included.
16091         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16092         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16093         setsockopt, shutdown, select): Tweak indentation.
16094
16095 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16098         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16099         in an application that does not use the sys_select module.
16100
16101 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16102
16103         poll: do not return 0 on timeout=-1
16104         * lib/poll.c: Loop with yield if no events occurred.
16105
16106 2011-07-06  Eric Blake  <eblake@redhat.com>
16107
16108         pthread_sigmask: always replace when not using pthread
16109         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16110         replacement when using some threading other than pthread.  Fix
16111         logic bug.
16112
16113 2011-07-06  Bruno Haible  <bruno@clisp.org>
16114
16115         Comments.
16116         * m4/printf.m4: Update comments about mingw.
16117
16118 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16119
16120         sys_select: define sigset_t more portably
16121         * lib/sys_select.in.h: Always include <sys/types.h>, since
16122         we now need sigset_t and mingw defines it there.
16123         Include <signal.h> before split inclusion guard, to avoid
16124         mishaps on Solaris, whose <signal.h> eventually includes us.
16125         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16126         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16127         which come from ...
16128         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16129         gl_CHECK_TYPE_SIGSET_T.
16130         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16131         does the real work.
16132         * modules/sys_select (Depends-on): Add 'signal'.
16133
16134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16135         Suggested by Bruno Haible.
16136
16137         pselect: Use pthread_sigmask, not sigprocmask.
16138         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16139         multithreaded apps better than sigprocmask does.
16140         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16141         sigprocmask directly.
16142
16143 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16144
16145         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16146         Don't #undef,  since we don't need any underlying pselect.
16147         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16148         (Depends-on): Add select.
16149         (Link): Add $(LIBSOCKET).
16150         These changes suggested by Bruno Haible.
16151
16152         pselect: document better
16153         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16154         * doc/posix-functions/pselect.texi (pselect): Document new module.
16155
16156         pthread_sigmask: new module
16157         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16158         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16159         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16160         This is done only as a macro; I don't know how well that'll
16161         work for C++.  Move <sys/types.h> include before the include_next,
16162         to avoid mishap on Solaris.
16163         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16164         * modules/signal (Makefile.am): Substitute the check's results.
16165         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16166
16167         test-pselect: new module
16168         * modules/pselect-tests, tests/test-pselect.c: New files.
16169         * tests/test-select.c, tests/test-sys_select-c++.cc:
16170         If TEST_PSELECT is defined, test pselect instead of testing select.
16171
16172         * tests/test-sys_select.c (sigset_t): Test for it, too.
16173         Suggested by Bruno Haible.
16174
16175 2011-07-05  Eric Blake  <eblake@redhat.com>
16176
16177         snprintf: guarantee %1$d, for libintl
16178         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16179         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16180         * doc/posix-functions/snprintf.texi (snprintf): Update.
16181         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16182         * tests/test-snprintf.c (main): Enhance test.
16183         * tests/test-vsnprintf.c (main): Likewise.
16184
16185 2011-07-05  Jim Meyering  <meyering@redhat.com>
16186
16187         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16188         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16189         per Bruno's request, to accommodate this idiom (no space after "#")
16190         even when the function is inside an #if block:
16191         char *
16192         gets (char *s)
16193         #undef gets
16194         {
16195           ...
16196         }
16197
16198 2011-07-04  Jim Meyering  <meyering@redhat.com>
16199
16200         maint: indent with spaces, not TABs, and add a rule to check this
16201         * tests/test-userspec.c: Indent with spaces, not TABs.
16202         * tests/test-argp.c: Likewise.
16203         * tests/test-c-stack2.sh: Likewise.
16204         * tests/test-parse-duration.sh: Likewise
16205         * m4/strtod.m4: Likewise.
16206         * m4/alloca.m4: Likewise.
16207         * m4/pselect.m4: Likewise.
16208         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16209
16210 2011-07-03  Jim Meyering  <meyering@redhat.com>
16211
16212         maint.mk: correct omissions in prohibit_argmatch_without_use check
16213         This rule would mistakenly report that argmatch.h is included without
16214         use even when both the argmatch and invalid_arg macro were used.
16215         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16216         of argmatch and invalid_arg.
16217
16218 2011-07-03  Bruno Haible  <bruno@clisp.org>
16219
16220         Comments about EINTR.
16221         * lib/safe-read.h: Explain the purpose of this module.
16222         * lib/safe-write.h: Likewise.
16223         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16224         module.
16225         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16226         module.
16227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16228
16229 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16230
16231         xnanosleep: Rewrite to use new dtotimespec module.
16232         It has the conversion code that used to be in xnanosleep.
16233         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16234         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16235         (TIME_T_MAX): Remove.
16236         (xnanosleep): Rewrite in terms of dtotimespec.
16237         * modules/xnanosleep (Depends-on): Add dtotimespec.
16238         Remove intprops, stdbool.
16239
16240         timespec-add, timespec-sub: new modules
16241         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16242         * lib/timespec-add.c, lib/timespec-sub.c:
16243         * modules/timespec-add, modules/timespec-sub: New files.
16244
16245         dtotimespec: new module
16246         * lib/timespec.h (dtotimespec): New decl.
16247         * lib/dtotimespec.c, modules/dtotimespec: New files.
16248
16249         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16250
16251         pselect: new module
16252         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16253         (pselect): New decls.
16254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16255         since the standard pselect decl uses 'restrict'.
16256         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16257         HAVE_PSELECT, REPLACE_PSELECT.
16258         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16259         HAVE_PSELECT, REPLACE_PSELECT.
16260         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16261
16262         sys_select: don't depend on sys_socket
16263         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16265         This fix works on GNU and GNU-like platforms, but has not been tested
16266         on native Windows.
16267         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16269         gl_HEADER_SYS_SOCKET.
16270         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16271         gl_PREREQ_SYS_H_WINSOCK2.
16272
16273 2011-06-29  Eric Blake  <eblake@redhat.com>
16274
16275         pipe2: fix C89 compile problem
16276         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16277         Reported by Bruno Haible.
16278
16279         pipe, pipe2: don't corrupt fd on error
16280         * lib/pipe.c (pipe): Leave fd unchanged on error.
16281         * lib/pipe2.c (pipe2): Likewise.
16282         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16283         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16284
16285 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16286
16287         mmap-anon: do not use regular expressions inadvertently
16288         * m4/mmap-anon.m4: Remove trailing period from strings sought
16289         in the output.
16290
16291 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16292
16293         nanosleep: fix integer overflow problem
16294         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16295         arithmetic wraps around on overflow.
16296
16297         nanosleep: simplify carrying
16298         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16299         first call to the underyling nanosleep, not for the last one.
16300         This doesn't fix any bugs, but it simplifies the computation of
16301         the remaining delay.  Found while auditing integer overflow issues.
16302
16303         dup2: remove test for existence of fcntl
16304         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16305         "#if HAVE_FCNTL", in the configure-time test program.
16306         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16307         and therefore speeds up "configure" a bit.  Found while
16308         adding the dup2 module to Emacs.
16309
16310 2011-06-24  Eric Blake  <eblake@redhat.com>
16311
16312         maint.mk: enhance useless header checks
16313         * top/maint.mk (_sc_header_without_use): Check both include
16314         styles.
16315         (sc_prohibit_assert_without_use)
16316         (sc_prohibit_close_stream_without_use)
16317         (sc_prohibit_getopt_without_use)
16318         (sc_prohibit_quotearg_without_use)
16319         (sc_prohibit_quote_without_use)
16320         (sc_prohibit_long_options_without_use)
16321         (sc_prohibit_inttostr_without_use)
16322         (sc_prohibit_ignore_value_without_use)
16323         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16324         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16325         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16326         (sc_prohibit_hash_pjw_without_use)
16327         (sc_prohibit_safe_read_without_use)
16328         (sc_prohibit_argmatch_without_use)
16329         (sc_prohibit_canonicalize_without_use)
16330         (sc_prohibit_root_dev_ino_without_use)
16331         (sc_prohibit_openat_without_use)
16332         (sc_prohibit_c_ctype_without_use)
16333         (sc_prohibit_signal_without_use)
16334         (sc_prohibit_stdio--_without_use)
16335         (sc_prohibit_stdio-safer_without_use)
16336         (sc_prohibit_strings_without_use)
16337         (sc_prohibit_intprops_without_use)
16338         (sc_prohibit_stddef_without_use)
16339         (sc_prohibit_xfreopen_without_use): Update clients.
16340
16341 2011-06-24  Jim Meyering  <meyering@redhat.com>
16342
16343         syntax-check: keep one maint.mk rule in sync with its header
16344         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16345         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16346         I prefer to avoid temporary files here, so use <(...), but that
16347         is not supported by /bin/sh, so...
16348         (SHELL): Define to /bin/bash.
16349
16350 2011-06-24  Eric Blake  <eblake@redhat.com>
16351
16352         maint.mk: update sc_prohibit_intprops_without_use
16353         * top/maint.mk (_intprops_names): Match recent changes.
16354
16355 2011-06-24  Bruno Haible  <bruno@clisp.org>
16356
16357         strerror-override: No-op tweak.
16358         * lib/strerror-override.h (strerror_override): Reorder conditions,
16359         for consistency with lib/strerror-override.c.
16360
16361 2011-06-23  Eric Blake  <eblake@redhat.com>
16362
16363         maint.mk: test further PATH_MAX issues
16364         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16365         (sc_prohibit_path_max_allocation): ...and also test alloca.
16366         Suggested by Jim Meyering.
16367
16368 2011-06-22  Eric Blake  <eblake@redhat.com>
16369
16370         maint.mk: add syntax-check to avoid char[PATH_MAX]
16371         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16372
16373         stat: be robust to PATH_MAX definition
16374         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16375         * modules/stat (Depends-on): Add verify.
16376
16377         link: work around IRIX bug
16378         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16379         * lib/link.c (rpl_link): Work around it.
16380         * tests/test-link.h (test_link): Enhance test.
16381         * doc/posix-functions/link.texi (link): Document the bug.
16382
16383         getopt: silence clang warning
16384         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16385         dereference.
16386         Reported by Gustavo Martin Domato.
16387
16388 2011-06-22  Jim Meyering  <meyering@redhat.com>
16389
16390         bootstrap: do not insert a blank line into each .gitignore file
16391         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16392
16393 2011-06-21  Eric Blake  <eblake@redhat.com>
16394
16395         perror: test for output mismatch
16396         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16397         perror on IRIX.
16398
16399         strerror_r: fix OpenBSD behavior on out-of-range
16400         * lib/strerror_r.c (strerror_r): Always use maximal string.
16401         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16402
16403         strerror_r: fix OpenBSD behavior on 0
16404         * lib/strerror-override.c (strerror_override): Also override 0
16405         when needed.
16406         * lib/strerror-override.h (strerror_override): Likewise.
16407         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16408         earlier.
16409         * lib/strerror_r.c (strerror_r): Likewise.
16410         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16411         behavior...
16412         (gl_FUNC_STRERROR_0): ...into new macro.
16413         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16414         is overridden.
16415         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16416         * modules/strerror-override (Files): Add strerror.m4.
16417         (configure.ac): Also provide override for 0 when needed.
16418         * doc/posix-functions/strerror.texi (strerror): Document this.
16419         * doc/posix-functions/perror.texi (perror): Likewise.
16420
16421         perror: adjust array size
16422         * modules/perror (Depends-on): Add strerror-override.
16423         * lib/perror.c (perror): Use it to avoid magic number.
16424
16425         strerror-override: reduce size
16426         * lib/strerror-override.c (strerror_override): Use fewer lines.
16427
16428 2011-06-20  Bruno Haible  <bruno@clisp.org>
16429
16430         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16431         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16432
16433 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16434
16435         alloca: port to compilers that can optimize like GCC 4.6.0
16436         * lib/alloca.c (find_stack_direction): New signature, taken from
16437         Autoconf git.  This works with GCC 4.6.0.  This code should never
16438         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16439         be used with other compilers that optimize as well as GCC 4.6.0 does.
16440         (alloca): Adjust to new signature.
16441         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16442         New macro, which patches Autoconf in a similar way.
16443
16444         c-stack: stop worrying about stack direction
16445         * lib/c-stack.c (find_stack_direction): Remove.
16446         (segv_handler): Don't worry about stack direction growth, as it's
16447         too much of a pain to configure this correctly, given how compilers
16448         are optimizing-away our stack-growth detection code.  Instead, assume
16449         that any access to just before or just after the stack is OK.
16450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16451         Don't require AC_FUNC_ALLOCA; no longer needed.
16452
16453 2011-06-20  Eric Blake  <eblake@redhat.com>
16454
16455         test-stat: don't allocate PATH_MAX bytes
16456         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16457         PATH_MAX-sized buffer.
16458         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16459         * modules/stat-tests (Depends-on): Likewise.
16460         * tests/test-fstatat.c (includes): Drop pathmax.h.
16461         * tests/test-stat.c (includes): Likewise.
16462         Reported by Bruno Haible.
16463
16464 2011-06-20  Bruno Haible  <bruno@clisp.org>
16465
16466         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16467         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16468         * lib/float.c: New file.
16469         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16470         REPLACE_FLOAT_LDBL.
16471         * modules/float (Files): Add lib/float.c.
16472         (configure.ac): Invoke AC_LIBOBJ.
16473         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16474
16475 2011-06-20  Bruno Haible  <bruno@clisp.org>
16476
16477         Tests for module 'float'.
16478         * modules/float-tests: New file.
16479         * tests/test-float.c: New file.
16480
16481 2011-06-19  Bruno Haible  <bruno@clisp.org>
16482
16483         isinf: Coding style.
16484         * lib/isinf.c: Use GNU coding style.
16485
16486 2011-06-19  Bruno Haible  <bruno@clisp.org>
16487
16488         linkat test: Avoid test failure on AIX 7.1.
16489         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16490         * tests/test-link.h (test_link): Likewise.
16491
16492 2011-06-19  Bruno Haible  <bruno@clisp.org>
16493
16494         pread test: Avoid test failure on OpenBSD 4.9.
16495         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16496
16497 2011-06-19  Bruno Haible  <bruno@clisp.org>
16498
16499         sprintf-posix: Fix test failure on AIX 7.1.
16500         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16501         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16502         on AIX.
16503         * doc/posix-functions/fprintf.texi: Likewise.
16504         * doc/posix-functions/printf.texi: Likewise.
16505         * doc/posix-functions/snprintf.texi: Likewise.
16506         * doc/posix-functions/sprintf.texi: Likewise.
16507         * doc/posix-functions/vdprintf.texi: Likewise.
16508         * doc/posix-functions/vfprintf.texi: Likewise.
16509         * doc/posix-functions/vprintf.texi: Likewise.
16510         * doc/posix-functions/vsnprintf.texi: Likewise.
16511         * doc/posix-functions/vsprintf.texi: Likewise.
16512
16513 2011-06-19  Bruno Haible  <bruno@clisp.org>
16514
16515         roundl-ieee: Fix test failure on AIX 7.1.
16516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16517         * doc/posix-functions/roundl.texi: Mention problem with negative
16518         arguments.
16519
16520 2011-06-19  Bruno Haible  <bruno@clisp.org>
16521
16522         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16523         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16524         * doc/posix-functions/round.texi: Mention problem with negative
16525         arguments.
16526         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16527
16528 2011-06-19  Bruno Haible  <bruno@clisp.org>
16529
16530         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16532         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16533         * doc/posix-functions/roundf.texi: Mention problem with negative
16534         arguments.
16535         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16536
16537 2011-06-19  Bruno Haible  <bruno@clisp.org>
16538
16539         ceilf-ieee: Work around bug on MacOS X 10.5.
16540         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16541
16542         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16543         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16544         IEEE compliant, avoid compiler optimizations.
16545         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16546         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16547         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16548         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16549         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16550         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16552         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16553         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16554         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16555
16556 2011-06-19  Bruno Haible  <bruno@clisp.org>
16557
16558         ceilf-ieee: Work around bug on AIX 7.1.
16559         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16560         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16561
16562 2011-06-19  Bruno Haible  <bruno@clisp.org>
16563
16564         ceil-ieee: Work around bug on AIX 7.1.
16565         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16566         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16567
16568 2011-06-18  Bruno Haible  <bruno@clisp.org>
16569
16570         fsync test: Avoid test failure on MacOS X and AIX.
16571         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16572         EINVAL.
16573
16574 2011-06-18  Bruno Haible  <bruno@clisp.org>
16575
16576         openat, fdopendir tests: Fix link errors.
16577         * modules/openat-tests (Depends-on): Add progname.
16578         * modules/fdopendir-tests (Depends-on): Likewise.
16579         * tests/test-fchownat.c: Include progname.h.
16580         (main): Call set_program_name.
16581         * tests/test-fstatat.c: Include progname.h.
16582         (main): Call set_program_name.
16583         * tests/test-mkdirat.c: Include progname.h.
16584         (main): Call set_program_name.
16585         * tests/test-openat.c: Include progname.h.
16586         (main): Call set_program_name.
16587         * tests/test-unlinkat.c: Include progname.h.
16588         (main): Call set_program_name.
16589         * tests/test-fdopendir.c: Include progname.h.
16590         (main): Call set_program_name.
16591
16592 2011-06-18  Bruno Haible  <bruno@clisp.org>
16593
16594         Doc update.
16595         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16596         HP-UX.
16597         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16598
16599 2011-06-18  Bruno Haible  <bruno@clisp.org>
16600
16601         getcwd tests: Avoid compilation error on HP-UX 11.31.
16602         * modules/getcwd-tests (Depends-on): Add pathmax.
16603         * tests/test-getcwd.c: Include pathmax.h.
16604
16605 2011-06-18  Bruno Haible  <bruno@clisp.org>
16606
16607         isfinite, isinf: Fix link error on AIX 6 and 7.
16608         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16609         needed, also test the macro with a 'float' argument.
16610         * m4/isinf.m4 (gl_ISINF): Likewise.
16611
16612 2011-06-18  Bruno Haible  <bruno@clisp.org>
16613
16614         getloadavg: Don't clobber LIBS. Regression from previous commit.
16615         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16616         AC_CHECK_LIB from here...
16617         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16618         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16619         gl_func_getloadavg_done.
16620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16621
16622 2011-06-18  Bruno Haible  <bruno@clisp.org>
16623
16624         clean-temp: Improve documentation.
16625         * lib/clean-temp.h: Explain better how to use this module.
16626         Reported by John Darrington <john@darrington.wattle.id.au>.
16627
16628 2011-06-17  Bruno Haible  <bruno@clisp.org>
16629
16630         pread, pwrite: Avoid cc warning on AIX.
16631         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16632         (pwrite): Likewise.
16633
16634 2011-06-17  Bruno Haible  <bruno@clisp.org>
16635
16636         spawn-pipe tests: Fix link error.
16637         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16639
16640 2011-06-17  Bruno Haible  <bruno@clisp.org>
16641
16642         Tests: Remove unnecessary dependency.
16643         * modules/canonicalize-tests (Depends-on): Remove progname.
16644         * modules/chown-tests (Depends-on): Likewise.
16645         * modules/dirname-tests (Depends-on): Likewise.
16646         * modules/fdopendir-tests (Depends-on): Likewise.
16647         * modules/fdutimensat-tests (Depends-on): Likewise.
16648         * modules/hash-tests (Depends-on): Likewise.
16649         * modules/lchown-tests (Depends-on): Likewise.
16650         * modules/linkat-tests (Depends-on): Likewise.
16651         * modules/renameat-tests (Depends-on): Likewise.
16652         * modules/spawn-pipe-tests (Depends-on): Likewise.
16653         * modules/utimensat-tests (Depends-on): Likewise.
16654
16655 2011-06-17  Bruno Haible  <bruno@clisp.org>
16656
16657         spawn-pipe tests: Fix link error.
16658         * tests/test-spawn-pipe-child.c: Undefine fflush.
16659
16660 2011-06-17  Bruno Haible  <bruno@clisp.org>
16661
16662         Fix tests link errors.
16663         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16664         * modules/chown-tests (Makefile.am): Don't link test-chown with
16665         LIBINTL.
16666         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16667         LIBINTL.
16668         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16669         LIBINTL.
16670         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16671         LIBINTL.
16672
16673 2011-06-16  Bruno Haible  <bruno@clisp.org>
16674
16675         crypto/gc-sha1: Fix recent regression.
16676         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16677         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16678
16679         crypto/gc-md5: Fix recent regression.
16680         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16681
16682         crypto/gc-md4: Fix recent regression.
16683         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16684         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16685
16686         crypto/gc-arctwo: Fix recent regression.
16687         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16688         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16689
16690         crypto/gc-rijndael: Fix recent regression.
16691         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16692         (configure.ac): Invoke AC_LIBOBJ here.
16693         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16695
16696         crypto/gc-hmac-sha1: Fix recent regression.
16697         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16698         (configure.ac): Invoke AC_LIBOBJ here.
16699         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16701
16702         crypto/gc-hmac-md5: Fix recent regression.
16703         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16704         (configure.ac): Invoke AC_LIBOBJ here.
16705         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16707
16708         crypto/gc-des: Fix recent regression.
16709         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16710         (configure.ac): Invoke AC_LIBOBJ here.
16711         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16713
16714         crypto/gc-arcfour: Fix recent regression.
16715         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16716         (configure.ac): Invoke AC_LIBOBJ here.
16717         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16719
16720 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16721
16722         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16723         After the 2011-05-21 change, this macro requires
16724         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16725         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16726
16727 2011-06-16  Bruno Haible  <bruno@clisp.org>
16728
16729         fprintftime: Move AC_LIBOBJ invocations to module description.
16730         * m4/fprintftime.m4: Remove file.
16731         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16732         (configure.ac): Remove gl_FPRINTFTIME call.
16733         (Makefile.am): Augment lib_SOURCES.
16734         Reported by Jim Meyering.
16735
16736 2011-06-16  Bruno Haible  <bruno@clisp.org>
16737
16738         tmpfile-safer: Finish 2011-05-23 commit.
16739         * m4/stdio-safer.m4: Really remove file.
16740         Reported by Jim Meyering.
16741
16742 2011-06-16  Bruno Haible  <bruno@clisp.org>
16743
16744         syntax-check: Fix typo.
16745         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16746         printf-posix.m4.
16747         Reported by Jim Meyering.
16748
16749 2011-06-13  Jim Meyering  <meyering@redhat.com>
16750
16751         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16752         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16753
16754 2011-05-23  Bruno Haible  <bruno@clisp.org>
16755
16756         yesno: Move AC_LIBOBJ invocations to module description.
16757         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16758         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16759
16760 2011-05-23  Bruno Haible  <bruno@clisp.org>
16761
16762         xstrtol: Move AC_LIBOBJ invocations to module description.
16763         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16764         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16765
16766 2011-05-23  Bruno Haible  <bruno@clisp.org>
16767
16768         xstrtold: Move AC_LIBOBJ invocations to module description.
16769         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16770         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16771
16772 2011-05-23  Bruno Haible  <bruno@clisp.org>
16773
16774         xstrtod: Move AC_LIBOBJ invocations to module description.
16775         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16776         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16777
16778 2011-05-23  Bruno Haible  <bruno@clisp.org>
16779
16780         xnanosleep: Move AC_LIBOBJ invocations to module description.
16781         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16782         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16783
16784 2011-05-23  Bruno Haible  <bruno@clisp.org>
16785
16786         xgetcwd: Move AC_LIBOBJ invocations to module description.
16787         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16788         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16789
16790 2011-05-23  Bruno Haible  <bruno@clisp.org>
16791
16792         xalloc: Move AC_LIBOBJ invocations to module description.
16793         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16794         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16795
16796 2011-05-23  Bruno Haible  <bruno@clisp.org>
16797
16798         write-any-file: Move AC_LIBOBJ invocations to module description.
16799         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16800         invocation.
16801         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16802
16803 2011-05-23  Bruno Haible  <bruno@clisp.org>
16804
16805         utimens: Move AC_LIBOBJ invocations to module description.
16806         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16807         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16808
16809 2011-05-23  Bruno Haible  <bruno@clisp.org>
16810
16811         utimecmp: Move AC_LIBOBJ invocations to module description.
16812         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16813         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16814
16815 2011-05-23  Bruno Haible  <bruno@clisp.org>
16816
16817         userspec: Move AC_LIBOBJ invocations to module description.
16818         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16819         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16820
16821 2011-05-23  Bruno Haible  <bruno@clisp.org>
16822
16823         unlinkdir: Move AC_LIBOBJ invocations to module description.
16824         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16825         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16826
16827 2011-05-23  Bruno Haible  <bruno@clisp.org>
16828
16829         unistd-safer: Move AC_LIBOBJ invocations to module description.
16830         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16831         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16832
16833 2011-05-23  Bruno Haible  <bruno@clisp.org>
16834
16835         tempname: Move AC_LIBOBJ invocations to module description.
16836         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16837         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16838
16839 2011-05-23  Bruno Haible  <bruno@clisp.org>
16840
16841         strftime: Move AC_LIBOBJ invocations to module description.
16842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16843         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16844
16845 2011-05-23  Bruno Haible  <bruno@clisp.org>
16846
16847         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16848         * m4/stdlib-safer.m4: Remove file.
16849         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16850         (configure.ac): Remove gl_STDLIB_SAFER call.
16851         (Makefile.am): Augment lib_SOURCES.
16852
16853 2011-05-23  Bruno Haible  <bruno@clisp.org>
16854
16855         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16856         * m4/stdio-safer.m4: Remove file.
16857         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16858         (configure.ac): Remove gl_TMPFILE_SAFER call.
16859         (Makefile.am): Augment lib_SOURCES.
16860
16861 2011-05-23  Bruno Haible  <bruno@clisp.org>
16862
16863         popen-safer: Move AC_LIBOBJ invocations to module description.
16864         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16865         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16866         (configure.ac): Remove gl_POPEN_SAFER call.
16867         (Makefile.am): Augment lib_SOURCES.
16868
16869 2011-05-23  Bruno Haible  <bruno@clisp.org>
16870
16871         freopen-safer: Move AC_LIBOBJ invocations to module description.
16872         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16873         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16874         (configure.ac): Remove gl_FREOPEN_SAFER call.
16875         (Makefile.am): Augment lib_SOURCES.
16876
16877 2011-05-23  Bruno Haible  <bruno@clisp.org>
16878
16879         fopen-safer: Move AC_LIBOBJ invocations to module description.
16880         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16881         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16882         (configure.ac): Remove gl_FOPEN_SAFER call.
16883         (Makefile.am): Augment lib_SOURCES.
16884
16885 2011-05-23  Bruno Haible  <bruno@clisp.org>
16886
16887         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16888         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16889         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16890
16891 2011-05-23  Bruno Haible  <bruno@clisp.org>
16892
16893         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16894         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16895         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16896
16897 2011-05-23  Bruno Haible  <bruno@clisp.org>
16898
16899         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16900         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16901         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16902
16903 2011-05-23  Bruno Haible  <bruno@clisp.org>
16904
16905         settime: Move AC_LIBOBJ invocations to module description.
16906         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16907         * modules/settime (Makefile.am): Augment lib_SOURCES.
16908
16909 2011-05-23  Bruno Haible  <bruno@clisp.org>
16910
16911         savedir: Move AC_LIBOBJ invocations to module description.
16912         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16913         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16914
16915 2011-05-23  Bruno Haible  <bruno@clisp.org>
16916
16917         save-cwd: Move AC_LIBOBJ invocations to module description.
16918         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16919         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16920
16921 2011-05-23  Bruno Haible  <bruno@clisp.org>
16922
16923         same: Move AC_LIBOBJ invocations to module description.
16924         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16925         * modules/same (Makefile.am): Augment lib_SOURCES.
16926
16927 2011-05-23  Bruno Haible  <bruno@clisp.org>
16928
16929         safe-write: Move AC_LIBOBJ invocations to module description.
16930         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16931         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16932         instead of gl_SAFE_WRITE.
16933         (Makefile.am): Augment lib_SOURCES.
16934
16935 2011-05-23  Bruno Haible  <bruno@clisp.org>
16936
16937         safe-read: Move AC_LIBOBJ invocations to module description.
16938         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16939         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16940         of gl_SAFE_READ.
16941         (Makefile.am): Augment lib_SOURCES.
16942
16943 2011-05-23  Bruno Haible  <bruno@clisp.org>
16944
16945         safe-alloc: Move AC_LIBOBJ invocations to module description.
16946         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16947         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16948
16949 2011-05-23  Bruno Haible  <bruno@clisp.org>
16950
16951         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16952         * m4/rijndael.m4: Remove file.
16953         * modules/crypto/rijndael (Files): Remove it.
16954         (configure.ac): Remove gl_RIJNDAEL call.
16955         (Makefile.am): Augment lib_SOURCES.
16956
16957 2011-05-23  Bruno Haible  <bruno@clisp.org>
16958
16959         readtokens: Move AC_LIBOBJ invocations to module description.
16960         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16961         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16962
16963 2011-05-23  Bruno Haible  <bruno@clisp.org>
16964
16965         read-file: Move AC_LIBOBJ invocations to module description.
16966         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16967         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16968         of gl_FUNC_READ_FILE.
16969         (Makefile.am): Augment lib_SOURCES.
16970
16971 2011-05-23  Bruno Haible  <bruno@clisp.org>
16972
16973         quotearg: Move AC_LIBOBJ invocations to module description.
16974         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16975         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16976
16977 2011-05-23  Bruno Haible  <bruno@clisp.org>
16978
16979         quote: Move AC_LIBOBJ invocations to module description.
16980         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16981         * modules/quote (Makefile.am): Augment lib_SOURCES.
16982
16983 2011-05-23  Bruno Haible  <bruno@clisp.org>
16984
16985         posixver: Move AC_LIBOBJ invocations to module description.
16986         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16987         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16988
16989 2011-05-23  Bruno Haible  <bruno@clisp.org>
16990
16991         posixtm: Move AC_LIBOBJ invocations to module description.
16992         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16993         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16994
16995 2011-05-23  Bruno Haible  <bruno@clisp.org>
16996
16997         physmem: Move AC_LIBOBJ invocations to module description.
16998         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16999         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17000
17001 2011-05-23  Bruno Haible  <bruno@clisp.org>
17002
17003         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17004         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17005         invocation.
17006         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17007
17008 2011-05-23  Bruno Haible  <bruno@clisp.org>
17009
17010         mpsort: Move AC_LIBOBJ invocations to module description.
17011         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17012         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17013
17014 2011-05-23  Bruno Haible  <bruno@clisp.org>
17015
17016         modechange: Move AC_LIBOBJ invocations to module description.
17017         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17018         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17019
17020 2011-05-23  Bruno Haible  <bruno@clisp.org>
17021
17022         mkdir-p: Move AC_LIBOBJ invocations to module description.
17023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17024         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17025
17026 2011-05-23  Bruno Haible  <bruno@clisp.org>
17027
17028         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17029         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17030         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17031
17032 2011-05-23  Bruno Haible  <bruno@clisp.org>
17033
17034         mgetgroups: Move AC_LIBOBJ invocations to module description.
17035         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17036         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17037
17038 2011-05-23  Bruno Haible  <bruno@clisp.org>
17039
17040         memxor: Move AC_LIBOBJ invocations to module description.
17041         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17042         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17043
17044 2011-05-23  Bruno Haible  <bruno@clisp.org>
17045
17046         memcoll: Move AC_LIBOBJ invocations to module description.
17047         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17048         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17049
17050 2011-05-23  Bruno Haible  <bruno@clisp.org>
17051
17052         memcasecmp: Move AC_LIBOBJ invocations to module description.
17053         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17054         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17055
17056 2011-05-23  Bruno Haible  <bruno@clisp.org>
17057
17058         crypto/md5: Move AC_LIBOBJ invocations to module description.
17059         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17060         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17061
17062 2011-05-23  Bruno Haible  <bruno@clisp.org>
17063
17064         crypto/md4: Move AC_LIBOBJ invocations to module description.
17065         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17066         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17067
17068 2011-05-23  Bruno Haible  <bruno@clisp.org>
17069
17070         crypto/md2: Move AC_LIBOBJ invocations to module description.
17071         * m4/md2.m4: Remove file.
17072         * modules/crypto/md2 (Files): Remove it.
17073         (configure.ac): Remove gl_MD2 call.
17074         (Makefile.am): Augment lib_SOURCES.
17075
17076 2011-05-23  Bruno Haible  <bruno@clisp.org>
17077
17078         long-options: Move AC_LIBOBJ invocations to module description.
17079         * m4/long-options.m4: Remove file.
17080         * modules/long-options (Files): Remove it.
17081         (configure.ac): Remove gl_LONG_OPTIONS call.
17082         (Makefile.am): Augment lib_SOURCES.
17083
17084 2011-05-23  Bruno Haible  <bruno@clisp.org>
17085
17086         i-ring: Move AC_LIBOBJ invocations to module description.
17087         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17088         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17089
17090 2011-05-23  Bruno Haible  <bruno@clisp.org>
17091
17092         idcache: Move AC_LIBOBJ invocations to module description.
17093         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17094         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17095
17096 2011-05-23  Bruno Haible  <bruno@clisp.org>
17097
17098         human: Move AC_LIBOBJ invocations to module description.
17099         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17100         * modules/human (Makefile.am): Augment lib_SOURCES.
17101
17102 2011-05-23  Bruno Haible  <bruno@clisp.org>
17103
17104         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17105         * m4/hmac-sha1.m4: Remove file.
17106         * modules/crypto/hmac-sha1 (Files): Remove it.
17107         (configure.ac): Remove gl_HMAC_SHA1 call.
17108         (Makefile.am): Augment lib_SOURCES.
17109
17110 2011-05-23  Bruno Haible  <bruno@clisp.org>
17111
17112         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17113         * m4/hmac-md5.m4: Remove file.
17114         * modules/crypto/hmac-md5 (Files): Remove it.
17115         (configure.ac): Remove gl_HMAC_MD5 call.
17116         (Makefile.am): Augment lib_SOURCES.
17117
17118 2011-05-23  Bruno Haible  <bruno@clisp.org>
17119
17120         hash: Move AC_LIBOBJ invocations to module description.
17121         * m4/hash.m4: Remove file.
17122         * modules/hash (Files): Remove it.
17123         (configure.ac): Remove gl_HASH call.
17124         (Makefile.am): Augment lib_SOURCES.
17125
17126 2011-05-23  Bruno Haible  <bruno@clisp.org>
17127
17128         hard-locale: Move AC_LIBOBJ invocations to module description.
17129         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17130         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17131
17132 2011-05-23  Bruno Haible  <bruno@clisp.org>
17133
17134         getugroups: Move AC_LIBOBJ invocations to module description.
17135         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17136         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17137
17138 2011-05-23  Bruno Haible  <bruno@clisp.org>
17139
17140         gettime: Move AC_LIBOBJ invocations to module description.
17141         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17142         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17143
17144 2011-05-23  Bruno Haible  <bruno@clisp.org>
17145
17146         getndelim2: Move AC_LIBOBJ invocations to module description.
17147         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17148         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17149
17150 2011-05-23  Bruno Haible  <bruno@clisp.org>
17151
17152         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17153         * m4/gc-pbkdf2-sha1.m4: Remove file.
17154         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17155         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17156         (Makefile.am): Augment lib_SOURCES.
17157
17158 2011-05-23  Bruno Haible  <bruno@clisp.org>
17159
17160         fts: Move AC_LIBOBJ invocations to module description.
17161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17162         * modules/fts (configure.ac): ... to here.
17163
17164 2011-05-23  Bruno Haible  <bruno@clisp.org>
17165
17166         file-type: Move AC_LIBOBJ invocations to module description.
17167         * m4/file-type.m4: Remove file.
17168         * modules/file-type (Files): Remove it.
17169         (configure.ac): Remove gl_FILE_TYPE call.
17170         (Makefile.am): Augment lib_SOURCES.
17171
17172 2011-05-23  Bruno Haible  <bruno@clisp.org>
17173
17174         filenamecat*: Respect rules for use of AC_LIBOBJ.
17175         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17176         Remove AC_LIBOBJ invocation.
17177         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17178         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17179
17180 2011-05-23  Bruno Haible  <bruno@clisp.org>
17181
17182         filemode: Move AC_LIBOBJ invocations to module description.
17183         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17184         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17185
17186 2011-05-23  Bruno Haible  <bruno@clisp.org>
17187
17188         openat-safer: Move AC_LIBOBJ invocations to module description.
17189         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17190         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17191
17192 2011-05-23  Bruno Haible  <bruno@clisp.org>
17193
17194         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17195         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17196         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17197
17198 2011-05-23  Bruno Haible  <bruno@clisp.org>
17199
17200         exclude: Move AC_LIBOBJ invocations to module description.
17201         * m4/exclude.m4: Remove file.
17202         * modules/exclude (Files): Remove it.
17203         (configure.ac): Remove gl_EXCLUDE call.
17204         (Makefile.am): Augment lib_SOURCES.
17205
17206 2011-05-23  Bruno Haible  <bruno@clisp.org>
17207
17208         dirname*: Respect rules for use of AC_LIBOBJ.
17209         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17210         invocations.
17211         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17212         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17213
17214 2011-05-23  Bruno Haible  <bruno@clisp.org>
17215
17216         dirent-safer: Move AC_LIBOBJ invocations to module description.
17217         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17218         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17219
17220 2011-05-23  Bruno Haible  <bruno@clisp.org>
17221
17222         crypto/des: Move AC_LIBOBJ invocations to module description.
17223         * m4/des.m4: Remove file.
17224         * modules/crypto/des (Files): Remove it.
17225         (configure.ac): Remove gl_DES call.
17226         (Makefile.am): Augment lib_SOURCES.
17227
17228 2011-05-23  Bruno Haible  <bruno@clisp.org>
17229
17230         cycle-check: Move AC_LIBOBJ invocations to module description.
17231         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17232         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17233
17234 2011-05-23  Bruno Haible  <bruno@clisp.org>
17235
17236         c-strtold: Move AC_LIBOBJ invocations to module description.
17237         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17238         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17239
17240 2011-05-23  Bruno Haible  <bruno@clisp.org>
17241
17242         c-strtod: Move AC_LIBOBJ invocations to module description.
17243         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17244         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17245
17246 2011-05-23  Bruno Haible  <bruno@clisp.org>
17247
17248         crc: Move AC_LIBOBJ invocations to module description.
17249         * m4/crc.m4: Remove file.
17250         * modules/crc (Files): Remove it.
17251         (configure.ac): Remove gl_CRC call.
17252         (Makefile.am): Augment lib_SOURCES.
17253
17254 2011-05-23  Bruno Haible  <bruno@clisp.org>
17255
17256         close-stream: Move AC_LIBOBJ invocations to module description.
17257         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17258         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17259
17260 2011-05-23  Bruno Haible  <bruno@clisp.org>
17261
17262         closeout: Move AC_LIBOBJ invocations to module description.
17263         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17264         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17265
17266 2011-05-23  Bruno Haible  <bruno@clisp.org>
17267
17268         closein: Move AC_LIBOBJ invocations to module description.
17269         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17270         * modules/closein (Makefile.am): Augment lib_SOURCES.
17271
17272 2011-05-23  Bruno Haible  <bruno@clisp.org>
17273
17274         cloexec: Move AC_LIBOBJ invocations to module description.
17275         * m4/cloexec.m4: Remove file.
17276         * modules/cloexec (Files): Remove it.
17277         (configure.ac): Remove gl_CLOEXEC call.
17278         (Makefile.am): Augment lib_SOURCES.
17279
17280 2011-05-23  Bruno Haible  <bruno@clisp.org>
17281
17282         check-version: Move AC_LIBOBJ invocations to module description.
17283         * m4/check-version.m4: Remove file.
17284         * modules/check-version (Files): Remove it.
17285         (configure.ac): Remove gl_CHECK_VERSION call.
17286         (Makefile.am): Augment lib_SOURCES.
17287
17288 2011-05-23  Bruno Haible  <bruno@clisp.org>
17289
17290         chdir-safer: Move AC_LIBOBJ invocations to module description.
17291         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17292         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17293
17294 2011-05-23  Bruno Haible  <bruno@clisp.org>
17295
17296         canonicalize: Move AC_LIBOBJ invocations to module description.
17297         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17298         AC_LIBOBJ invocation.
17299         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17300
17301 2011-05-23  Bruno Haible  <bruno@clisp.org>
17302
17303         canon-host: Move AC_LIBOBJ invocations to module description.
17304         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17305         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17306         instead of gl_CANON_HOST.
17307         (Makefile.am): Augment lib_SOURCES.
17308
17309 2011-05-23  Bruno Haible  <bruno@clisp.org>
17310
17311         backupfile: Move AC_LIBOBJ invocations to module description.
17312         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17313         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17314
17315 2011-05-23  Bruno Haible  <bruno@clisp.org>
17316
17317         argmatch: Move AC_LIBOBJ invocations to module description.
17318         * m4/argmatch.m4: Remove file.
17319         * modules/argmatch (Files): Remove it.
17320         (configure.ac): Remove gl_ARGMATCH call.
17321         (Makefile.am): Augment lib_SOURCES.
17322
17323 2011-05-23  Bruno Haible  <bruno@clisp.org>
17324
17325         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17326         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17327         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17328
17329 2011-05-23  Bruno Haible  <bruno@clisp.org>
17330
17331         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17332         * m4/arcfour.m4: Remove file.
17333         * modules/crypto/arcfour (Files): Remove it.
17334         (configure.ac): Remove gl_ARCFOUR call.
17335         (Makefile.am): Augment lib_SOURCES.
17336
17337 2011-05-22  Bruno Haible  <bruno@clisp.org>
17338
17339         write: Move AC_LIBOBJ invocations to module description.
17340         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17341         * modules/write (configure.ac): ... to here.
17342
17343 2011-05-22  Bruno Haible  <bruno@clisp.org>
17344
17345         wmemset: Move AC_LIBOBJ invocations to module description.
17346         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17347         here...
17348         * modules/wmemset (configure.ac): ... to here.
17349
17350 2011-05-22  Bruno Haible  <bruno@clisp.org>
17351
17352         wmemmove: Move AC_LIBOBJ invocations to module description.
17353         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17354         here...
17355         * modules/wmemmove (configure.ac): ... to here.
17356
17357 2011-05-22  Bruno Haible  <bruno@clisp.org>
17358
17359         wmemcpy: Move AC_LIBOBJ invocations to module description.
17360         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17361         here...
17362         * modules/wmemcpy (configure.ac): ... to here.
17363
17364 2011-05-22  Bruno Haible  <bruno@clisp.org>
17365
17366         wmemcmp: Move AC_LIBOBJ invocations to module description.
17367         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17368         here...
17369         * modules/wmemcmp (configure.ac): ... to here.
17370
17371 2011-05-22  Bruno Haible  <bruno@clisp.org>
17372
17373         wmemchr: Move AC_LIBOBJ invocations to module description.
17374         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17375         here...
17376         * modules/wmemchr (configure.ac): ... to here.
17377
17378 2011-05-22  Bruno Haible  <bruno@clisp.org>
17379
17380         wcswidth: Move AC_LIBOBJ invocations to module description.
17381         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17382         here...
17383         * modules/wcswidth (configure.ac): ... to here.
17384
17385 2011-05-22  Bruno Haible  <bruno@clisp.org>
17386
17387         wcwidth: Respect rules for use of AC_LIBOBJ.
17388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17389         invocation from here...
17390         * modules/wcwidth (configure.ac): ... to here.
17391         (Depends-on): Update conditions.
17392
17393 2011-05-22  Bruno Haible  <bruno@clisp.org>
17394
17395         wctype: Move AC_LIBOBJ invocations to module description.
17396         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17397         invocation from here...
17398         * modules/wctype (configure.ac): ... to here.
17399         (Depends-on): Update conditions.
17400
17401 2011-05-22  Bruno Haible  <bruno@clisp.org>
17402
17403         wctrans: Move AC_LIBOBJ invocations to module description.
17404         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17405         invocation from here...
17406         * modules/wctrans (configure.ac): ... to here.
17407
17408 2011-05-22  Bruno Haible  <bruno@clisp.org>
17409
17410         wctomb: Move AC_LIBOBJ invocations to module description.
17411         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17412         invocations from here...
17413         * modules/wctomb (configure.ac): ... to here.
17414
17415 2011-05-22  Bruno Haible  <bruno@clisp.org>
17416
17417         wctob: Move AC_LIBOBJ invocations to module description.
17418         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17419         gl_PREREQ_WCTOB invocations from here...
17420         * modules/wctob (configure.ac): ... to here.
17421         (Depends-on): Update conditions.
17422
17423 2011-05-22  Bruno Haible  <bruno@clisp.org>
17424
17425         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17426         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17427         here...
17428         * modules/wcsxfrm (configure.ac): ... to here.
17429
17430 2011-05-22  Bruno Haible  <bruno@clisp.org>
17431
17432         wcstok: Move AC_LIBOBJ invocations to module description.
17433         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17434         * modules/wcstok (configure.ac): ... to here.
17435
17436 2011-05-22  Bruno Haible  <bruno@clisp.org>
17437
17438         wcsstr: Move AC_LIBOBJ invocations to module description.
17439         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17440         * modules/wcsstr (configure.ac): ... to here.
17441
17442 2011-05-22  Bruno Haible  <bruno@clisp.org>
17443
17444         wcsspn: Move AC_LIBOBJ invocations to module description.
17445         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17446         * modules/wcsspn (configure.ac): ... to here.
17447
17448 2011-05-22  Bruno Haible  <bruno@clisp.org>
17449
17450         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17451         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17452         gl_PREREQ_WCSRTOMBS invocations from here...
17453         * modules/wcsrtombs (configure.ac): ... to here.
17454
17455 2011-05-22  Bruno Haible  <bruno@clisp.org>
17456
17457         wcsrchr: Move AC_LIBOBJ invocations to module description.
17458         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17459         here...
17460         * modules/wcsrchr (configure.ac): ... to here.
17461
17462 2011-05-22  Bruno Haible  <bruno@clisp.org>
17463
17464         wcspbrk: Move AC_LIBOBJ invocations to module description.
17465         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17466         here...
17467         * modules/wcspbrk (configure.ac): ... to here.
17468
17469 2011-05-22  Bruno Haible  <bruno@clisp.org>
17470
17471         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17472         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17473         gl_PREREQ_WCSNRTOMBS invocations from here...
17474         * modules/wcsnrtombs (configure.ac): ... to here.
17475
17476 2011-05-22  Bruno Haible  <bruno@clisp.org>
17477
17478         wcsnlen: Move AC_LIBOBJ invocations to module description.
17479         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17480         here...
17481         * modules/wcsnlen (configure.ac): ... to here.
17482
17483 2011-05-22  Bruno Haible  <bruno@clisp.org>
17484
17485         wcsncpy: Move AC_LIBOBJ invocations to module description.
17486         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17487         here...
17488         * modules/wcsncpy (configure.ac): ... to here.
17489
17490 2011-05-22  Bruno Haible  <bruno@clisp.org>
17491
17492         wcsncmp: Move AC_LIBOBJ invocations to module description.
17493         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17494         here...
17495         * modules/wcsncmp (configure.ac): ... to here.
17496
17497 2011-05-22  Bruno Haible  <bruno@clisp.org>
17498
17499         wcsncat: Move AC_LIBOBJ invocations to module description.
17500         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17501         here...
17502         * modules/wcsncat (configure.ac): ... to here.
17503
17504 2011-05-22  Bruno Haible  <bruno@clisp.org>
17505
17506         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17507         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17508         from here...
17509         * modules/wcsncasecmp (configure.ac): ... to here.
17510
17511 2011-05-22  Bruno Haible  <bruno@clisp.org>
17512
17513         wcslen: Move AC_LIBOBJ invocations to module description.
17514         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17515         * modules/wcslen (configure.ac): ... to here.
17516
17517 2011-05-22  Bruno Haible  <bruno@clisp.org>
17518
17519         wcsdup: Move AC_LIBOBJ invocations to module description.
17520         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17521         * modules/wcsdup (configure.ac): ... to here.
17522
17523 2011-05-22  Bruno Haible  <bruno@clisp.org>
17524
17525         wcscspn: Move AC_LIBOBJ invocations to module description.
17526         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17527         here...
17528         * modules/wcscspn (configure.ac): ... to here.
17529
17530 2011-05-22  Bruno Haible  <bruno@clisp.org>
17531
17532         wcscpy: Move AC_LIBOBJ invocations to module description.
17533         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17534         * modules/wcscpy (configure.ac): ... to here.
17535
17536 2011-05-22  Bruno Haible  <bruno@clisp.org>
17537
17538         wcscoll: Move AC_LIBOBJ invocations to module description.
17539         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17540         here...
17541         * modules/wcscoll (configure.ac): ... to here.
17542
17543 2011-05-22  Bruno Haible  <bruno@clisp.org>
17544
17545         wcscmp: Move AC_LIBOBJ invocations to module description.
17546         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17547         * modules/wcscmp (configure.ac): ... to here.
17548
17549 2011-05-22  Bruno Haible  <bruno@clisp.org>
17550
17551         wcschr: Move AC_LIBOBJ invocations to module description.
17552         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17553         * modules/wcschr (configure.ac): ... to here.
17554
17555 2011-05-22  Bruno Haible  <bruno@clisp.org>
17556
17557         wcscat: Move AC_LIBOBJ invocations to module description.
17558         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17559         * modules/wcscat (configure.ac): ... to here.
17560
17561 2011-05-22  Bruno Haible  <bruno@clisp.org>
17562
17563         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17564         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17565         here...
17566         * modules/wcscasecmp (configure.ac): ... to here.
17567
17568 2011-05-22  Bruno Haible  <bruno@clisp.org>
17569
17570         wcrtomb: Move AC_LIBOBJ invocations to module description.
17571         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17572         invocations from here...
17573         * modules/wcrtomb (configure.ac): ... to here.
17574
17575 2011-05-22  Bruno Haible  <bruno@clisp.org>
17576
17577         wcpncpy: Move AC_LIBOBJ invocations to module description.
17578         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17579         here...
17580         * modules/wcpncpy (configure.ac): ... to here.
17581
17582 2011-05-22  Bruno Haible  <bruno@clisp.org>
17583
17584         wcpcpy: Move AC_LIBOBJ invocations to module description.
17585         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17586         * modules/wcpcpy (configure.ac): ... to here.
17587
17588 2011-05-22  Bruno Haible  <bruno@clisp.org>
17589
17590         waitpid: Move AC_LIBOBJ invocations to module description.
17591         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17592         invocation from here...
17593         * modules/waitpid (configure.ac): ... to here.
17594
17595 2011-05-22  Bruno Haible  <bruno@clisp.org>
17596
17597         utimensat: Move AC_LIBOBJ invocations to module description.
17598         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17599         here...
17600         * modules/utimensat (configure.ac): ... to here.
17601
17602 2011-05-22  Bruno Haible  <bruno@clisp.org>
17603
17604         usleep: Move AC_LIBOBJ invocations to module description.
17605         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17606         here...
17607         * modules/usleep (configure.ac): ... to here.
17608
17609 2011-05-22  Bruno Haible  <bruno@clisp.org>
17610
17611         unlockpt: Move AC_LIBOBJ invocations to module description.
17612         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17613         gl_PREREQ_UNLOCKPT invocations from here...
17614         * modules/unlockpt (configure.ac): ... to here.
17615
17616 2011-05-22  Bruno Haible  <bruno@clisp.org>
17617
17618         unlink: Respect rules for use of AC_LIBOBJ.
17619         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17620         * modules/unlink (configure.ac): ... to here.
17621
17622 2011-05-22  Bruno Haible  <bruno@clisp.org>
17623
17624         uname: Move AC_LIBOBJ invocations to module description.
17625         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17626         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17627         here...
17628         * modules/uname (configure.ac): ... to here.
17629
17630 2011-05-22  Bruno Haible  <bruno@clisp.org>
17631
17632         ttyname_r: Move AC_LIBOBJ invocations to module description.
17633         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17634         gl_PREREQ_TTYNAME_R invocations from here...
17635         * modules/ttyname_r (configure.ac): ... to here.
17636
17637 2011-05-22  Bruno Haible  <bruno@clisp.org>
17638
17639         tsearch: Move AC_LIBOBJ invocations to module description.
17640         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17641         invocations from here...
17642         * modules/tsearch (configure.ac): ... to here.
17643
17644 2011-05-22  Bruno Haible  <bruno@clisp.org>
17645
17646         towctrans: Move AC_LIBOBJ invocations to module description.
17647         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17648         AC_LIBOBJ invocation from here...
17649         * modules/towctrans (configure.ac): ... to here.
17650
17651 2011-05-22  Bruno Haible  <bruno@clisp.org>
17652
17653         tmpfile: Move AC_LIBOBJ invocations to module description.
17654         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17655         invocations from here...
17656         * modules/tmpfile (configure.ac): ... to here.
17657
17658 2011-05-22  Bruno Haible  <bruno@clisp.org>
17659
17660         times: Move AC_LIBOBJ invocations to module description.
17661         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17662         * modules/times (configure.ac): ... to here.
17663
17664 2011-05-22  Bruno Haible  <bruno@clisp.org>
17665
17666         time_r: Move AC_LIBOBJ invocations to module description.
17667         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17668         invocations from here...
17669         * modules/time_r (configure.ac): ... to here.
17670
17671 2011-05-22  Bruno Haible  <bruno@clisp.org>
17672
17673         timegm: Move AC_LIBOBJ invocations to module description.
17674         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17675         invocations from here...
17676         * modules/timegm (configure.ac): ... to here.
17677
17678 2011-05-22  Bruno Haible  <bruno@clisp.org>
17679
17680         tcgetsid: Move AC_LIBOBJ invocations to module description.
17681         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17682         and gl_PREREQ_TCGETSID invocations from here...
17683         * modules/tcgetsid (configure.ac): ... to here.
17684         (Depends-on): Update conditions.
17685
17686 2011-05-22  Bruno Haible  <bruno@clisp.org>
17687
17688         symlinkat: Move AC_LIBOBJ invocations to module description.
17689         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17690         here...
17691         * modules/symlinkat (configure.ac): ... to here.
17692
17693 2011-05-22  Bruno Haible  <bruno@clisp.org>
17694
17695         symlink: Move AC_LIBOBJ invocations to module description.
17696         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17697         here...
17698         * modules/symlink (configure.ac): ... to here.
17699
17700 2011-05-22  Bruno Haible  <bruno@clisp.org>
17701
17702         strverscmp: Move AC_LIBOBJ invocations to module description.
17703         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17705         from here...
17706         * modules/strverscmp (configure.ac): ... to here.
17707
17708 2011-05-22  Bruno Haible  <bruno@clisp.org>
17709
17710         strtok_r: Move AC_LIBOBJ invocations to module description.
17711         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17712         and gl_PREREQ_STRTOK_R invocations from here...
17713         * modules/strtok_r (configure.ac): ... to here.
17714         (Depends-on): Update conditions.
17715
17716 2011-05-22  Bruno Haible  <bruno@clisp.org>
17717
17718         strtoumax: Move AC_LIBOBJ invocations to module description.
17719         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17721         from here...
17722         * modules/strtoumax (configure.ac): ... to here.
17723
17724 2011-05-22  Bruno Haible  <bruno@clisp.org>
17725
17726         strtoimax: Move AC_LIBOBJ invocations to module description.
17727         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17728         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17729         from here...
17730         * modules/strtoimax (configure.ac): ... to here.
17731
17732 2011-05-22  Bruno Haible  <bruno@clisp.org>
17733
17734         strtoull: Move AC_LIBOBJ invocations to module description.
17735         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17737         from here...
17738         * modules/strtoull (configure.ac): ... to here.
17739
17740 2011-05-22  Bruno Haible  <bruno@clisp.org>
17741
17742         strtoll: Move AC_LIBOBJ invocations to module description.
17743         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17745         here...
17746         * modules/strtoll (configure.ac): ... to here.
17747
17748 2011-05-22  Bruno Haible  <bruno@clisp.org>
17749
17750         strtoul: Move AC_LIBOBJ invocations to module description.
17751         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17752         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17753         * modules/strtoul (configure.ac): ... to here.
17754
17755 2011-05-22  Bruno Haible  <bruno@clisp.org>
17756
17757         strtol: Move AC_LIBOBJ invocations to module description.
17758         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17759         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17760         * modules/strtol (configure.ac): ... to here.
17761
17762 2011-05-22  Bruno Haible  <bruno@clisp.org>
17763
17764         strtod: Move AC_LIBOBJ invocations to module description.
17765         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17766         invocations from here...
17767         * modules/strtod (configure.ac): ... to here.
17768
17769 2011-05-22  Bruno Haible  <bruno@clisp.org>
17770
17771         strstr*: Move AC_LIBOBJ invocations to module description.
17772         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17773         invocations from here...
17774         * modules/strstr-simple (configure.ac): ... to here.
17775         * modules/strstr (configure.ac): ... and here.
17776
17777 2011-05-22  Bruno Haible  <bruno@clisp.org>
17778
17779         strsignal: Move AC_LIBOBJ invocations to module description.
17780         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17781         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17782         * modules/strsignal (configure.ac): ... to here.
17783         (Depends-on): Update conditions.
17784
17785 2011-05-22  Bruno Haible  <bruno@clisp.org>
17786
17787         strsep: Move AC_LIBOBJ invocations to module description.
17788         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17789         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17790         here...
17791         * modules/strsep (configure.ac): ... to here.
17792
17793 2011-05-22  Bruno Haible  <bruno@clisp.org>
17794
17795         strptime: Move AC_LIBOBJ invocations to module description.
17796         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17797         gl_PREREQ_STRPTIME invocations from here...
17798         * modules/strptime (configure.ac): ... to here.
17799
17800 2011-05-22  Bruno Haible  <bruno@clisp.org>
17801
17802         strpbrk: Move AC_LIBOBJ invocations to module description.
17803         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17805         here...
17806         * modules/strpbrk (configure.ac): ... to here.
17807
17808 2011-05-22  Bruno Haible  <bruno@clisp.org>
17809
17810         strnlen: Move AC_LIBOBJ invocations to module description.
17811         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17812         invocations from here...
17813         * modules/strnlen (configure.ac): ... to here.
17814
17815 2011-05-22  Bruno Haible  <bruno@clisp.org>
17816
17817         strndup: Move AC_LIBOBJ invocations to module description.
17818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17819         invocations from here...
17820         * modules/strndup (configure.ac): ... to here.
17821         (Depends-on): Update conditions.
17822
17823 2011-05-22  Bruno Haible  <bruno@clisp.org>
17824
17825         strncat: Move AC_LIBOBJ invocations to module description.
17826         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17827         invocations from here...
17828         * modules/strncat (configure.ac): ... to here.
17829
17830 2011-05-22  Bruno Haible  <bruno@clisp.org>
17831
17832         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17833         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17834         invocations from here...
17835         * modules/strdup (configure.ac): ... to here.
17836         * modules/strdup-posix (configure.ac): ... and here.
17837
17838 2011-05-22  Bruno Haible  <bruno@clisp.org>
17839
17840         strcspn: Move AC_LIBOBJ invocations to module description.
17841         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17842         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17843         here...
17844         * modules/strcspn (configure.ac): ... to here.
17845
17846 2011-05-22  Bruno Haible  <bruno@clisp.org>
17847
17848         strchrnul: Move AC_LIBOBJ invocations to module description.
17849         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17850         gl_PREREQ_STRCHRNUL invocations from here...
17851         * modules/strchrnul (configure.ac): ... to here.
17852
17853 2011-05-22  Bruno Haible  <bruno@clisp.org>
17854
17855         strcasestr*: Move AC_LIBOBJ invocations to module description.
17856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17857         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17858         * modules/strcasestr-simple (configure.ac): ... to here.
17859         * modules/strcasestr (configure.ac): ... and here.
17860
17861 2011-05-22  Bruno Haible  <bruno@clisp.org>
17862
17863         strcase: Move AC_LIBOBJ invocations to module description.
17864         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17865         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17866         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17867         gl_PREREQ_STRNCASECMP invocations from here...
17868         * modules/strcase (configure.ac): ... to here.
17869
17870 2011-05-22  Bruno Haible  <bruno@clisp.org>
17871
17872         stpncpy: Move AC_LIBOBJ invocations to module description.
17873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17874         here...
17875         * modules/stpncpy (configure.ac): ... to here.
17876
17877 2011-05-22  Bruno Haible  <bruno@clisp.org>
17878
17879         stpcpy: Move AC_LIBOBJ invocations to module description.
17880         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17882         here...
17883         * modules/stpcpy (configure.ac): ... to here.
17884
17885 2011-05-21  Bruno Haible  <bruno@clisp.org>
17886
17887         stat: Move AC_LIBOBJ invocations to module description.
17888         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17889         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17890         here...
17891         * modules/stat (configure.ac): ... to here.
17892
17893 2011-05-21  Bruno Haible  <bruno@clisp.org>
17894
17895         sleep: Move AC_LIBOBJ invocations to module description.
17896         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17897         * modules/sleep (configure.ac): ... to here.
17898
17899 2011-05-21  Bruno Haible  <bruno@clisp.org>
17900
17901         signbit: Move AC_LIBOBJ invocations to module description.
17902         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17903         * modules/signbit (configure.ac): ... to here.
17904
17905 2011-05-21  Bruno Haible  <bruno@clisp.org>
17906
17907         sigprocmask: Move AC_LIBOBJ invocations to module description.
17908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17909         gl_PREREQ_SIGPROMASK invocations from here...
17910         * modules/sigprocmask (configure.ac): ... to here.
17911
17912 2011-05-21  Bruno Haible  <bruno@clisp.org>
17913
17914         sigaction: Move AC_LIBOBJ invocations to module description.
17915         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17916         gl_PREREQ_SIGACTION invocations from here...
17917         * modules/sigaction (configure.ac): ... to here.
17918
17919 2011-05-21  Bruno Haible  <bruno@clisp.org>
17920
17921         sig2str: Move AC_LIBOBJ invocations to module description.
17922         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17923         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17924         here...
17925         * modules/sig2str (configure.ac): ... to here.
17926
17927 2011-05-21  Bruno Haible  <bruno@clisp.org>
17928
17929         setlocale: Move AC_LIBOBJ invocations to module description.
17930         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17931         gl_PREREQ_SETLOCALE invocations from here...
17932         * modules/setlocale (configure.ac): ... to here.
17933
17934 2011-05-21  Bruno Haible  <bruno@clisp.org>
17935
17936         unsetenv: Move AC_LIBOBJ invocations to module description.
17937         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17938         and gl_PREREQ_UNSETENV invocations from here...
17939         * modules/unsetenv (configure.ac): ... to here.
17940         (Depends-on): Update.
17941
17942 2011-05-21  Bruno Haible  <bruno@clisp.org>
17943
17944         setenv: Move AC_LIBOBJ invocations to module description.
17945         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17946         here...
17947         * modules/setenv (configure.ac): ... to here.
17948
17949 2011-05-21  Bruno Haible  <bruno@clisp.org>
17950
17951         selinux-h: Move AC_LIBOBJ invocations to module description.
17952         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17953         AC_LIBOBJ invocation from here...
17954         * modules/selinux-h (configure.ac): ... to here.
17955
17956 2011-05-21  Bruno Haible  <bruno@clisp.org>
17957
17958         select: Respect rules for use of AC_LIBOBJ.
17959         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17960         here...
17961         * modules/select (configure.ac): ... to here.
17962
17963 2011-05-21  Bruno Haible  <bruno@clisp.org>
17964
17965         scandir: Move AC_LIBOBJ invocations to module description.
17966         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17967         invocations from here...
17968         * modules/scandir (configure.ac): ... to here.
17969
17970 2011-05-21  Bruno Haible  <bruno@clisp.org>
17971
17972         rpmatch: Move AC_LIBOBJ invocations to module description.
17973         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17975         here...
17976         * modules/rpmatch (configure.ac): ... to here.
17977
17978 2011-05-21  Bruno Haible  <bruno@clisp.org>
17979
17980         rmdir: Respect rules for use of AC_LIBOBJ.
17981         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17982         * modules/rmdir (configure.ac): ... to here.
17983
17984 2011-05-21  Bruno Haible  <bruno@clisp.org>
17985
17986         renameat: Move AC_LIBOBJ invocations to module description.
17987         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17988         here...
17989         * modules/renameat (configure.ac): ... to here.
17990
17991 2011-05-21  Bruno Haible  <bruno@clisp.org>
17992
17993         rename: Respect rules for use of AC_LIBOBJ.
17994         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17995         here...
17996         * modules/rename (configure.ac): ... to here.
17997
17998 2011-05-21  Bruno Haible  <bruno@clisp.org>
17999
18000         remove: Move AC_LIBOBJ invocations to module description.
18001         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18002         here...
18003         * modules/remove (configure.ac): ... to here.
18004
18005 2011-05-21  Bruno Haible  <bruno@clisp.org>
18006
18007         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18008         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18009         macro.
18010         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18011         * modules/relocatable-lib (configure.ac): ... to here.
18012         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18013         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18014
18015 2011-05-21  Bruno Haible  <bruno@clisp.org>
18016
18017         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18018         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18019         here...
18020         * modules/relocatable-prog (configure.ac): ... to here.
18021
18022 2011-05-21  Bruno Haible  <bruno@clisp.org>
18023
18024         regex: Move AC_LIBOBJ invocations to module description.
18025         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18026         invocations from here...
18027         * modules/regex (configure.ac): ... to here.
18028
18029 2011-05-21  Bruno Haible  <bruno@clisp.org>
18030
18031         realloc-*: Move AC_LIBOBJ invocations to module description.
18032         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18033         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18034         AC_LIBOBJ invocations from here...
18035         * modules/realloc-gnu (configure.ac): ... to here.
18036         * modules/realloc-posix (configure.ac): ... and here.
18037
18038 2011-05-21  Bruno Haible  <bruno@clisp.org>
18039
18040         readutmp: Move AC_LIBOBJ invocations to module description.
18041         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18042         * modules/readutmp (configure.ac): ... to here.
18043
18044 2011-05-21  Bruno Haible  <bruno@clisp.org>
18045
18046         readlinkat: Move AC_LIBOBJ invocations to module description.
18047         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18048         here...
18049         * modules/readlinkat (configure.ac): ... to here.
18050
18051 2011-05-21  Bruno Haible  <bruno@clisp.org>
18052
18053         readlink: Move AC_LIBOBJ invocations to module description.
18054         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18055         gl_PREREQ_READLINK invocations from here...
18056         * modules/readlink (configure.ac): ... to here.
18057
18058 2011-05-21  Bruno Haible  <bruno@clisp.org>
18059
18060         readline: Move AC_LIBOBJ invocations to module description.
18061         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18062         gl_PREREQ_READLINE invocations from here...
18063         * modules/readline (configure.ac): ... to here.
18064
18065 2011-05-21  Bruno Haible  <bruno@clisp.org>
18066
18067         read: Move AC_LIBOBJ invocations to module description.
18068         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18069         * modules/read (configure.ac): ... to here.
18070
18071 2011-05-21  Bruno Haible  <bruno@clisp.org>
18072
18073         rawmemchr: Move AC_LIBOBJ invocations to module description.
18074         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18076         from here...
18077         * modules/rawmemchr (configure.ac): ... to here.
18078
18079 2011-05-21  Bruno Haible  <bruno@clisp.org>
18080
18081         random_r: Move AC_LIBOBJ invocations to module description.
18082         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18083         gl_PREREQ_RANDOM_R invocations from here...
18084         * modules/random_r (configure.ac): ... to here.
18085
18086 2011-05-21  Bruno Haible  <bruno@clisp.org>
18087
18088         pwrite: Move AC_LIBOBJ invocations to module description.
18089         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18090         * modules/pwrite (configure.ac): ... to here.
18091
18092 2011-05-21  Bruno Haible  <bruno@clisp.org>
18093
18094         putenv: Move AC_LIBOBJ invocations to module description.
18095         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18096         * modules/putenv (configure.ac): ... to here.
18097
18098 2011-05-21  Bruno Haible  <bruno@clisp.org>
18099
18100         login_tty: Move AC_LIBOBJ invocations to module description.
18101         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18102         * modules/login_tty (configure.ac): ... to here.
18103
18104 2011-05-21  Bruno Haible  <bruno@clisp.org>
18105
18106         openpty: Move AC_LIBOBJ invocations to module description.
18107         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18108         * modules/openpty (configure.ac): ... to here.
18109
18110 2011-05-21  Bruno Haible  <bruno@clisp.org>
18111
18112         forkpty: Move AC_LIBOBJ invocations to module description.
18113         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18114         * modules/forkpty (configure.ac): ... to here.
18115
18116 2011-05-21  Bruno Haible  <bruno@clisp.org>
18117
18118         ptsname: Move AC_LIBOBJ invocations to module description.
18119         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18120         invocations from here...
18121         * modules/ptsname (configure.ac): ... to here.
18122
18123 2011-05-21  Bruno Haible  <bruno@clisp.org>
18124
18125         pread: Move AC_LIBOBJ invocations to module description.
18126         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18127         * modules/pread (configure.ac): ... to here.
18128
18129 2011-05-21  Bruno Haible  <bruno@clisp.org>
18130
18131         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18132         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18133         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18134         * modules/posix_spawn (configure.ac): ... to here.
18135         * modules/posix_spawnp (configure.ac): ... and here.
18136
18137 2011-05-21  Bruno Haible  <bruno@clisp.org>
18138
18139         popen: Move AC_LIBOBJ invocations to module description.
18140         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18141         invocations from here...
18142         * modules/popen (configure.ac): ... to here.
18143
18144 2011-05-21  Bruno Haible  <bruno@clisp.org>
18145
18146         poll: Move AC_LIBOBJ invocations to module description.
18147         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18148         invocations from here...
18149         * modules/poll (configure.ac): ... to here.
18150
18151 2011-05-21  Bruno Haible  <bruno@clisp.org>
18152
18153         pipe-posix: Move AC_LIBOBJ invocations to module description.
18154         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18155         * modules/pipe-posix (configure.ac): ... to here.
18156
18157 2011-05-21  Bruno Haible  <bruno@clisp.org>
18158
18159         openat: Respect rules for use of AC_LIBOBJ.
18160         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18161         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18162         * modules/openat (configure.ac): ... to here.
18163
18164 2011-05-21  Bruno Haible  <bruno@clisp.org>
18165
18166         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18167         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18168         invocation from here...
18169         * modules/obstack-printf (configure.ac): ... to here.
18170         * modules/obstack-printf-posix (configure.ac): ... and here.
18171
18172 2011-05-21  Bruno Haible  <bruno@clisp.org>
18173
18174         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18175         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18176         from here...
18177         * modules/nl_langinfo (configure.ac): ... to here.
18178
18179 2011-05-21  Bruno Haible  <bruno@clisp.org>
18180
18181         nanosleep: Move AC_LIBOBJ invocations to module description.
18182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18183         gl_PREREQ_NANOSLEEP invocations from here...
18184         * modules/nanosleep (configure.ac): ... to here.
18185
18186 2011-05-21  Bruno Haible  <bruno@clisp.org>
18187
18188         mountlist: Move AC_LIBOBJ invocations to module description.
18189         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18190         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18191         * modules/mountlist (configure.ac): ... to here.
18192
18193 2011-05-21  Bruno Haible  <bruno@clisp.org>
18194
18195         mktime: Respect rules for use of AC_LIBOBJ.
18196         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18197         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18198         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18199         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18200         * modules/mktime (configure.ac): ... to here.
18201         * modules/mktime-internal (configure.ac): ... and here.
18202         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18203
18204 2011-05-21  Bruno Haible  <bruno@clisp.org>
18205
18206         mkstemps: Move AC_LIBOBJ invocations to module description.
18207         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18208         here...
18209         * modules/mkstemps (configure.ac): ... to here.
18210
18211 2011-05-21  Bruno Haible  <bruno@clisp.org>
18212
18213         mkstemp: Move AC_LIBOBJ invocations to module description.
18214         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18215         gl_PREREQ_MKSTEMP invocations from here...
18216         * modules/mkstemp (configure.ac): ... to here.
18217
18218 2011-05-21  Bruno Haible  <bruno@clisp.org>
18219
18220         mkostemps: Move AC_LIBOBJ invocations to module description.
18221         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18222         here...
18223         * modules/mkostemps (configure.ac): ... to here.
18224
18225 2011-05-21  Bruno Haible  <bruno@clisp.org>
18226
18227         mkostemp: Move AC_LIBOBJ invocations to module description.
18228         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18229         gl_PREREQ_MKOSTEMP invocations from here...
18230         * modules/mkostemp (configure.ac): ... to here.
18231
18232 2011-05-21  Bruno Haible  <bruno@clisp.org>
18233
18234         mknod: Move AC_LIBOBJ invocations to module description.
18235         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18236         * modules/mknod (configure.ac): ... to here.
18237
18238 2011-05-21  Bruno Haible  <bruno@clisp.org>
18239
18240         mkfifoat: Move AC_LIBOBJ invocations to module description.
18241         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18242         here...
18243         * modules/mkfifoat (configure.ac): ... to here.
18244
18245 2011-05-21  Bruno Haible  <bruno@clisp.org>
18246
18247         mkfifo: Respect rules for use of AC_LIBOBJ.
18248         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18249         here...
18250         * modules/mkfifo (configure.ac): ... to here.
18251
18252 2011-05-21  Bruno Haible  <bruno@clisp.org>
18253
18254         mkdtemp: Move AC_LIBOBJ invocations to module description.
18255         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18256         invocations from here...
18257         * modules/mkdtemp (configure.ac): ... to here.
18258
18259 2011-05-21  Bruno Haible  <bruno@clisp.org>
18260
18261         mkdir: Move AC_LIBOBJ invocations to module description.
18262         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18263         * modules/mkdir (configure.ac): ... to here.
18264
18265 2011-05-21  Bruno Haible  <bruno@clisp.org>
18266
18267         memset: Move AC_LIBOBJ invocations to module description.
18268         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18270         here...
18271         * modules/memset (configure.ac): ... to here.
18272
18273 2011-05-21  Bruno Haible  <bruno@clisp.org>
18274
18275         memrchr: Move AC_LIBOBJ invocations to module description.
18276         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18277         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18278         here...
18279         * modules/memrchr (configure.ac): ... to here.
18280
18281 2011-05-21  Bruno Haible  <bruno@clisp.org>
18282
18283         mempcpy: Move AC_LIBOBJ invocations to module description.
18284         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18286         here...
18287         * modules/mempcpy (configure.ac): ... to here.
18288
18289 2011-05-21  Bruno Haible  <bruno@clisp.org>
18290
18291         memmove: Move AC_LIBOBJ invocations to module description.
18292         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18294         here...
18295         * modules/memmove (configure.ac): ... to here.
18296
18297 2011-05-21  Bruno Haible  <bruno@clisp.org>
18298
18299         memmem*: Move AC_LIBOBJ invocations to module description.
18300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18301         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18302         here...
18303         (gl_FUNC_MEMMEM): ... and here...
18304         * modules/memmem-simple (configure.ac): ... to here.
18305         * modules/memmem (configure.ac): ... and here.
18306
18307 2011-05-21  Bruno Haible  <bruno@clisp.org>
18308
18309         memcpy: Move AC_LIBOBJ invocations to module description.
18310         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18311         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18312         here...
18313         * modules/memcpy (configure.ac): ... to here.
18314
18315 2011-05-21  Bruno Haible  <bruno@clisp.org>
18316
18317         memcmp: Simplify autoconf macro.
18318         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18319         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18320         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18321
18322 2011-05-21  Bruno Haible  <bruno@clisp.org>
18323
18324         memcmp: Move AC_LIBOBJ invocations to module description.
18325         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18326         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18327         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18328         * modules/memcmp (configure.ac): ... to here.
18329         (Depends-on): Update conditions.
18330
18331 2011-05-21  Bruno Haible  <bruno@clisp.org>
18332
18333         memchr: Respect rules for use of AC_LIBOBJ.
18334         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18335         invocations from here...
18336         * modules/memchr (configure.ac): ... to here.
18337
18338 2011-05-21  Bruno Haible  <bruno@clisp.org>
18339
18340         mbtowc: Move AC_LIBOBJ invocations to module description.
18341         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18342         invocations from here...
18343         * modules/mbtowc (configure.ac): ... to here.
18344
18345 2011-05-21  Bruno Haible  <bruno@clisp.org>
18346
18347         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18348         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18349         gl_PREREQ_MBSRTOWCS invocations from here...
18350         * modules/mbsrtowcs (configure.ac): ... to here.
18351
18352 2011-05-21  Bruno Haible  <bruno@clisp.org>
18353
18354         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18355         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18356         gl_PREREQ_MBSNRTOWCS invocations from here...
18357         * modules/mbsnrtowcs (configure.ac): ... to here.
18358
18359 2011-05-21  Bruno Haible  <bruno@clisp.org>
18360
18361         mbsinit: Move AC_LIBOBJ invocations to module description.
18362         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18363         invocations from here...
18364         * modules/mbsinit (configure.ac): ... to here.
18365
18366 2011-05-21  Bruno Haible  <bruno@clisp.org>
18367
18368         mbrlen: Move AC_LIBOBJ invocations to module description.
18369         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18370         invocations from here...
18371         * modules/mbrlen (configure.ac): ... to here.
18372
18373 2011-05-21  Bruno Haible  <bruno@clisp.org>
18374
18375         mbrtowc: Respect rules for use of AC_LIBOBJ.
18376         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18377         invocations from here...
18378         * modules/mbrtowc (configure.ac): ... to here.
18379
18380 2011-05-21  Bruno Haible  <bruno@clisp.org>
18381
18382         malloc-*: Move AC_LIBOBJ invocations to module description.
18383         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18384         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18385         AC_LIBOBJ invocations from here...
18386         * modules/malloc-gnu (configure.ac): ... to here.
18387         * modules/malloc-posix (configure.ac): ... and here.
18388
18389 2011-05-21  Bruno Haible  <bruno@clisp.org>
18390
18391         lstat, openat: Respect rules for use of AC_LIBOBJ.
18392         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18393         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18394         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18395         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18396         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18397         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18398         here.
18399         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18400
18401 2011-05-21  Bruno Haible  <bruno@clisp.org>
18402
18403         lseek: Move AC_LIBOBJ invocations to module description.
18404         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18405         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18406         * modules/lseek (configure.ac): ... to here.
18407
18408 2011-05-21  Bruno Haible  <bruno@clisp.org>
18409
18410         linkat: Move AC_LIBOBJ invocations to module description.
18411         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18412         here...
18413         * modules/linkat (configure.ac): ... to here.
18414
18415 2011-05-21  Bruno Haible  <bruno@clisp.org>
18416
18417         link: Respect rules for use of AC_LIBOBJ.
18418         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18419         * modules/link (configure.ac): ... to here.
18420
18421 2011-05-21  Bruno Haible  <bruno@clisp.org>
18422
18423         lchown: Move AC_LIBOBJ invocations to module description.
18424         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18425         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18426         * modules/lchown (configure.ac): ... to here.
18427
18428 2011-05-21  Bruno Haible  <bruno@clisp.org>
18429
18430         iswctype: Move AC_LIBOBJ invocations to module description.
18431         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18432         here...
18433         * modules/iswctype (configure.ac): ... to here.
18434
18435 2011-05-21  Bruno Haible  <bruno@clisp.org>
18436
18437         iswblank: Move AC_LIBOBJ invocations to module description.
18438         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18439         here...
18440         * modules/iswblank (configure.ac): ... to here.
18441
18442 2011-05-21  Bruno Haible  <bruno@clisp.org>
18443
18444         atanl: Move AC_LIBOBJ invocations to module description.
18445         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18446         * modules/atanl (configure.ac): ... to here.
18447
18448 2011-05-21  Bruno Haible  <bruno@clisp.org>
18449
18450         acosl: Move AC_LIBOBJ invocations to module description.
18451         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18452         * modules/acosl (configure.ac): ... to here.
18453
18454 2011-05-21  Bruno Haible  <bruno@clisp.org>
18455
18456         asinl: Respect rules for use of AC_LIBOBJ.
18457         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18458         * modules/asinl (configure.ac): ... to here.
18459
18460 2011-05-21  Bruno Haible  <bruno@clisp.org>
18461
18462         tanl: Move AC_LIBOBJ invocations to module description.
18463         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18464         * modules/tanl (configure.ac): ... to here.
18465
18466 2011-05-21  Bruno Haible  <bruno@clisp.org>
18467
18468         cosl: Move AC_LIBOBJ invocations to module description.
18469         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18470         * modules/cosl (configure.ac): ... to here.
18471
18472 2011-05-21  Bruno Haible  <bruno@clisp.org>
18473
18474         sinl: Move AC_LIBOBJ invocations to module description.
18475         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18476         * modules/sinl (configure.ac): ... to here.
18477
18478 2011-05-21  Bruno Haible  <bruno@clisp.org>
18479
18480         logl: Move AC_LIBOBJ invocations to module description.
18481         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18482         * modules/logl (configure.ac): ... to here.
18483
18484 2011-05-21  Bruno Haible  <bruno@clisp.org>
18485
18486         expl: Move AC_LIBOBJ invocations to module description.
18487         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18488         * modules/expl (configure.ac): ... to here.
18489
18490 2011-05-21  Bruno Haible  <bruno@clisp.org>
18491
18492         roundl: Move AC_LIBOBJ invocations to module description.
18493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18494         * modules/roundl (configure.ac): ... to here.
18495
18496 2011-05-21  Bruno Haible  <bruno@clisp.org>
18497
18498         round: Move AC_LIBOBJ invocations to module description.
18499         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18500         * modules/round (configure.ac): ... to here.
18501
18502 2011-05-21  Bruno Haible  <bruno@clisp.org>
18503
18504         roundf: Move AC_LIBOBJ invocations to module description.
18505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18506         * modules/roundf (configure.ac): ... to here.
18507
18508 2011-05-21  Bruno Haible  <bruno@clisp.org>
18509
18510         truncl: Move AC_LIBOBJ invocations to module description.
18511         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18512         * modules/truncl (configure.ac): ... to here.
18513
18514 2011-05-21  Bruno Haible  <bruno@clisp.org>
18515
18516         trunc: Move AC_LIBOBJ invocations to module description.
18517         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18518         * modules/trunc (configure.ac): ... to here.
18519
18520 2011-05-21  Bruno Haible  <bruno@clisp.org>
18521
18522         truncf: Move AC_LIBOBJ invocations to module description.
18523         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18524         * modules/truncf (configure.ac): ... to here.
18525
18526 2011-05-21  Bruno Haible  <bruno@clisp.org>
18527
18528         ceill: Move AC_LIBOBJ invocations to module description.
18529         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18530         * modules/ceill (configure.ac): ... to here.
18531
18532 2011-05-21  Bruno Haible  <bruno@clisp.org>
18533
18534         ceil: Move AC_LIBOBJ invocations to module description.
18535         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18536         * modules/ceil (configure.ac): ... to here.
18537
18538 2011-05-21  Bruno Haible  <bruno@clisp.org>
18539
18540         ceilf: Move AC_LIBOBJ invocations to module description.
18541         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18542         * modules/ceilf (configure.ac): ... to here.
18543
18544 2011-05-21  Bruno Haible  <bruno@clisp.org>
18545
18546         floorl: Respect rules for use of AC_LIBOBJ.
18547         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18548         * modules/floorl (configure.ac): ... to here.
18549
18550 2011-05-21  Bruno Haible  <bruno@clisp.org>
18551
18552         floor: Respect rules for use of AC_LIBOBJ.
18553         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18554         * modules/floor (configure.ac): ... to here.
18555
18556 2011-05-21  Bruno Haible  <bruno@clisp.org>
18557
18558         floorf: Move AC_LIBOBJ invocations to module description.
18559         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18560         * modules/floorf (configure.ac): ... to here.
18561
18562 2011-05-20  Bruno Haible  <bruno@clisp.org>
18563
18564         sqrtl: Respect rules for use of AC_LIBOBJ.
18565         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18566         * modules/sqrtl (configure.ac): ... to here.
18567
18568 2011-05-20  Bruno Haible  <bruno@clisp.org>
18569
18570         ldexpl: Respect rules for use of AC_LIBOBJ.
18571         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18572         * modules/ldexpl (configure.ac): ... to here.
18573
18574 2011-05-20  Bruno Haible  <bruno@clisp.org>
18575
18576         frexpl*: Respect rules for use of AC_LIBOBJ.
18577         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18578         invocation from here...
18579         * modules/frexpl (configure.ac): ... to here.
18580         * modules/frexpl-nolibm (configure.ac): ... and here.
18581
18582 2011-05-20  Bruno Haible  <bruno@clisp.org>
18583
18584         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18585         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18586         invocation from here...
18587         * modules/frexp (configure.ac): ... to here.
18588         * modules/frexp-nolibm (configure.ac): ... and here.
18589
18590 2011-05-20  Bruno Haible  <bruno@clisp.org>
18591
18592         isnan: Respect rules for use of AC_LIBOBJ.
18593         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18594         invocations here.
18595         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18596         REPLACE_ISNAN.
18597         * modules/isnand (configure.ac): Likewise.
18598         * modules/isnanl (configure.ac): Likewise.
18599
18600 2011-05-20  Bruno Haible  <bruno@clisp.org>
18601
18602         isnanl*: Respect rules for use of AC_LIBOBJ.
18603         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18604         invocation from here...
18605         * modules/isnanl (configure.ac): ... to here.
18606         * modules/isnanl-nolibm (configure.ac): ... and here.
18607
18608 2011-05-20  Bruno Haible  <bruno@clisp.org>
18609
18610         isnand*: Move AC_LIBOBJ invocations to module description.
18611         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18612         invocation from here...
18613         * modules/isnand (configure.ac): ... to here.
18614         * modules/isnand-nolibm (configure.ac): ... and here.
18615
18616 2011-05-20  Bruno Haible  <bruno@clisp.org>
18617
18618         isnanf*: Move AC_LIBOBJ invocations to module description.
18619         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18620         invocation from here...
18621         * modules/isnanf (configure.ac): ... to here.
18622         * modules/isnanf-nolibm (configure.ac): ... and here.
18623
18624 2011-05-20  Bruno Haible  <bruno@clisp.org>
18625
18626         isnan*: Separate the AC_LIBOBJ invocations.
18627         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18628         AC_LIBOBJ invocation.
18629         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18630         here.
18631         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18632         AC_LIBOBJ invocation.
18633         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18634         here.
18635         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18636         AC_LIBOBJ invocation.
18637         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18638         here.
18639         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18640
18641 2011-05-08  Bruno Haible  <bruno@clisp.org>
18642
18643         isinf: Move AC_LIBOBJ invocations to module description.
18644         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18645         * modules/isinf (configure.ac): ... to here.
18646
18647 2011-05-08  Bruno Haible  <bruno@clisp.org>
18648
18649         isfinite: Move AC_LIBOBJ invocations to module description.
18650         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18651         * modules/isfinite (configure.ac): ... to here.
18652
18653 2011-05-08  Bruno Haible  <bruno@clisp.org>
18654
18655         isblank: Move AC_LIBOBJ invocations to module description.
18656         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18657         here...
18658         * modules/isblank (configure.ac): ... to here.
18659
18660 2011-05-08  Bruno Haible  <bruno@clisp.org>
18661
18662         isapipe: Move AC_LIBOBJ invocations to module description.
18663         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18664         gl_PREREQ_ISAPIPE invocations from here...
18665         * modules/isapipe (configure.ac): ... to here.
18666         (Depends-on): Update condition.
18667
18668 2011-05-08  Bruno Haible  <bruno@clisp.org>
18669
18670         ioctl: Move AC_LIBOBJ invocations to module description.
18671         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18672         invocations from here...
18673         * modules/ioctl (configure.ac): ... to here.
18674         (Depends-on): Update condition.
18675
18676 2011-05-08  Bruno Haible  <bruno@clisp.org>
18677
18678         imaxdiv: Move AC_LIBOBJ invocations to module description.
18679         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18680         invocations from here...
18681         * modules/imaxdiv (configure.ac): ... to here.
18682
18683 2011-05-08  Bruno Haible  <bruno@clisp.org>
18684
18685         imaxabs: Move AC_LIBOBJ invocations to module description.
18686         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18687         invocations from here...
18688         * modules/imaxabs (configure.ac): ... to here.
18689
18690 2011-05-08  Bruno Haible  <bruno@clisp.org>
18691
18692         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18694         AC_LIBOBJ invocations from here...
18695         * modules/getaddrinfo (configure.ac): ... to here.
18696         (Depends-on): Add conditions.
18697
18698 2011-05-08  Bruno Haible  <bruno@clisp.org>
18699
18700         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18701         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18702         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18703         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18704         (gl_PREREQ_INET_PTON): ... from here.
18705         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18706         gl_PREREQ_INET_PTON here.
18707         (Depends-on): Update condition.
18708
18709 2011-05-08  Bruno Haible  <bruno@clisp.org>
18710
18711         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18712         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18713         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18714         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18715         (gl_PREREQ_INET_NTOP): ... from here.
18716         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18717         gl_PREREQ_INET_NTOP here.
18718         (Depends-on): Update condition.
18719
18720 2011-05-08  Bruno Haible  <bruno@clisp.org>
18721
18722         iconv_open: Move AC_LIBOBJ invocations to module description.
18723         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18724         AC_LIBOBJ invocations from here...
18725         * modules/iconv_open (configure.ac): ... to here.
18726
18727 2011-05-08  Bruno Haible  <bruno@clisp.org>
18728
18729         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18730         If module 'iconv_open' is among the main modules and module
18731         'iconv_open-utf' is among the tests dependencies, then
18732         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18733         return the special iconv_t values. Therefore iconv() and iconv_close()
18734         must support these special iconv_t values, already in lib, not only in
18735         tests.
18736         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18737         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18738         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18739         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18740         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18741         (Depends-on): Add the dependencies of iconv_open-utf.
18742         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18743         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18744         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18745
18746 2011-05-08  Bruno Haible  <bruno@clisp.org>
18747
18748         group-member: Move AC_LIBOBJ invocations to module description.
18749         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18750         gl_PREREQ_GROUP_MEMBER invocations from here...
18751         * modules/group-member (configure.ac): ... to here.
18752
18753 2011-05-08  Bruno Haible  <bruno@clisp.org>
18754
18755         grantpt: Move AC_LIBOBJ invocations to module description.
18756         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18757         invocations from here...
18758         * modules/grantpt (configure.ac): ... to here.
18759
18760 2011-05-08  Bruno Haible  <bruno@clisp.org>
18761
18762         glob: Move AC_LIBOBJ invocations to module description.
18763         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18764         from here...
18765         * modules/glob (configure.ac): ... to here.
18766
18767 2011-05-08  Bruno Haible  <bruno@clisp.org>
18768
18769         getusershell: Move AC_LIBOBJ invocations to module description.
18770         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18771         Move AC_LIBOBJ invocation from here...
18772         * modules/getusershell (configure.ac): ... to here.
18773         (Depends-on): Update condition.
18774
18775 2011-05-08  Bruno Haible  <bruno@clisp.org>
18776
18777         gettimeofday: Move AC_LIBOBJ invocations to module description.
18778         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18779         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18780         gl_PREREQ_GETTIMEOFDAY invocations from here...
18781         * modules/gettimeofday (configure.ac): ... to here.
18782
18783 2011-05-08  Bruno Haible  <bruno@clisp.org>
18784
18785         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18786         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18787         just gl_FUNC_TZSET.
18788         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18789         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18790         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18791         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18792
18793 2011-05-08  Bruno Haible  <bruno@clisp.org>
18794
18795         getsubopt: Move AC_LIBOBJ invocations to module description.
18796         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18797         gl_PREREQ_GETSUBOPT invocations from here...
18798         * modules/getsubopt (configure.ac): ... to here.
18799
18800 2011-05-08  Bruno Haible  <bruno@clisp.org>
18801
18802         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18803         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18804         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18805         * modules/getpass-gnu (configure.ac): ... to here.
18806
18807 2011-05-08  Bruno Haible  <bruno@clisp.org>
18808
18809         getpass: Move AC_LIBOBJ invocations to module description.
18810         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18811         gl_PREREQ_GETPASS invocations from here...
18812         * modules/getpass (configure.ac): ... to here.
18813
18814 2011-05-08  Bruno Haible  <bruno@clisp.org>
18815
18816         getpagesize: Move AC_LIBOBJ invocations to module description.
18817         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18818         from here...
18819         * modules/getpagesize (configure.ac): ... to here.
18820
18821 2011-05-08  Bruno Haible  <bruno@clisp.org>
18822
18823         getopt: Move AC_LIBOBJ invocations to module description.
18824         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18825         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18826         invocations from here...
18827         * modules/getopt-gnu (configure.ac): ... to here.
18828         * modules/getopt-posix (configure.ac): ... and here.
18829         (Depends-on): Update condition.
18830
18831 2011-05-08  Bruno Haible  <bruno@clisp.org>
18832
18833         getopt, argp: Respect rules for use of AC_LIBOBJ.
18834         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18835         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18836         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18837         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18838
18839 2011-05-08  Bruno Haible  <bruno@clisp.org>
18840
18841         getlogin_r: Move AC_LIBOBJ invocations to module description.
18842         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18843         gl_PREREQ_GETLOGIN_R invocations from here...
18844         * modules/getlogin_r (configure.ac): ... to here.
18845
18846 2011-05-08  Bruno Haible  <bruno@clisp.org>
18847
18848         getlogin: Move AC_LIBOBJ invocations to module description.
18849         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18850         here...
18851         * modules/getlogin (configure.ac): ... to here.
18852
18853 2011-05-08  Bruno Haible  <bruno@clisp.org>
18854
18855         getloadavg: Move AC_LIBOBJ invocations to module description.
18856         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18857         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18858         * modules/getloadavg (configure.ac): ... to here.
18859
18860 2011-05-08  Bruno Haible  <bruno@clisp.org>
18861
18862         gethrxtime: Move AC_LIBOBJ invocations to module description.
18863         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18864         LIB_GETHRXTIME from here...
18865         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18866         invocations from here...
18867         * modules/gethrxtime (configure.ac): ... to here.
18868
18869 2011-05-08  Bruno Haible  <bruno@clisp.org>
18870
18871         gethostname: Move AC_LIBOBJ invocations to module description.
18872         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18873         gl_PREREQ_GETHOSTNAME invocations from here...
18874         * modules/gethostname (configure.ac): ... to here.
18875
18876 2011-05-08  Bruno Haible  <bruno@clisp.org>
18877
18878         getgroups: Move AC_LIBOBJ invocations to module description.
18879         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18880         here...
18881         * modules/getgroups (configure.ac): ... to here.
18882
18883 2011-05-08  Bruno Haible  <bruno@clisp.org>
18884
18885         getdtablesize: Move AC_LIBOBJ invocations to module description.
18886         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18887         invocation from here...
18888         * modules/getdtablesize (configure.ac): ... to here.
18889
18890 2011-05-08  Bruno Haible  <bruno@clisp.org>
18891
18892         getdomainname: Move AC_LIBOBJ invocations to module description.
18893         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18894         gl_PREREQ_GETDOMAINNAME invocations from here...
18895         * modules/getdomainname (configure.ac): ... to here.
18896
18897 2011-05-08  Bruno Haible  <bruno@clisp.org>
18898
18899         getline: Move AC_LIBOBJ invocations to module description.
18900         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18901         invocations from here...
18902         * modules/getline (configure.ac): ... to here.
18903
18904 2011-05-08  Bruno Haible  <bruno@clisp.org>
18905
18906         getline: Simplify.
18907         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18908         It's already handled through the module dependency.
18909
18910 2011-05-08  Bruno Haible  <bruno@clisp.org>
18911
18912         getdelim: Move AC_LIBOBJ invocations to module description.
18913         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18914         and gl_PREREQ_GETDELIM invocations from here...
18915         * modules/getdelim (configure.ac): ... to here.
18916         (Depends-on): Fix condition.
18917
18918 2011-05-08  Bruno Haible  <bruno@clisp.org>
18919
18920         getcwd: Move AC_LIBOBJ invocations to module description.
18921         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18922         invocations from here...
18923         * modules/getcwd (configure.ac): ... to here.
18924
18925 2011-05-08  Bruno Haible  <bruno@clisp.org>
18926
18927         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18928         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18929         here...
18930         * modules/getcwd-lgpl (configure.ac): ... to here.
18931
18932 2011-05-07  Bruno Haible  <bruno@clisp.org>
18933
18934         crypto/gc: Move AC_LIBOBJ invocations to module description.
18935         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18936         * modules/crypto/gc (configure.ac): ... to here.
18937
18938 2011-05-07  Bruno Haible  <bruno@clisp.org>
18939
18940         fwriting: Move AC_LIBOBJ invocations to module description.
18941         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18942         here...
18943         * modules/fwriting (configure.ac): ... to here.
18944
18945 2011-05-07  Bruno Haible  <bruno@clisp.org>
18946
18947         fwritable: Move AC_LIBOBJ invocations to module description.
18948         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18949         here...
18950         * modules/fwritable (configure.ac): ... to here.
18951
18952 2011-05-07  Bruno Haible  <bruno@clisp.org>
18953
18954         futimens: Move AC_LIBOBJ invocations to module description.
18955         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18956         here...
18957         * modules/futimens (configure.ac): ... to here.
18958
18959 2011-05-07  Bruno Haible  <bruno@clisp.org>
18960
18961         ftruncate: Move AC_LIBOBJ invocations to module description.
18962         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18963         gl_PREREQ_FTRUNCATE invocations from here...
18964         * modules/ftruncate (configure.ac): ... to here.
18965
18966 2011-05-07  Bruno Haible  <bruno@clisp.org>
18967
18968         fsync: Move AC_LIBOBJ invocations to module description.
18969         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18970         invocations from here...
18971         * modules/fsync (configure.ac): ... to here.
18972
18973 2011-05-07  Bruno Haible  <bruno@clisp.org>
18974
18975         fsusage: Move AC_LIBOBJ invocations to module description.
18976         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18977         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18978         * modules/fsusage (configure.ac): ... to here.
18979
18980 2011-05-07  Bruno Haible  <bruno@clisp.org>
18981
18982         freopen: Move AC_LIBOBJ invocations to module description.
18983         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18984         invocations from here...
18985         * modules/freopen (configure.ac): ... to here.
18986
18987 2011-05-07  Bruno Haible  <bruno@clisp.org>
18988
18989         free: Move AC_LIBOBJ invocations to module description.
18990         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18991         invocations from here...
18992         * modules/free (configure.ac): ... to here.
18993
18994 2011-05-07  Bruno Haible  <bruno@clisp.org>
18995
18996         freadable: Move AC_LIBOBJ invocations to module description.
18997         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18998         here...
18999         * modules/freadable (configure.ac): ... to here.
19000
19001 2011-05-07  Bruno Haible  <bruno@clisp.org>
19002
19003         fpurge: Move AC_LIBOBJ invocations to module description.
19004         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19005         invocations from here...
19006         * modules/fpurge (configure.ac): ... to here.
19007
19008 2011-05-07  Bruno Haible  <bruno@clisp.org>
19009
19010         fpending: Move AC_LIBOBJ invocations to module description.
19011         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19012         gl_FUNC_FPENDING.
19013         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19014         invocations from here...
19015         * modules/fpending (configure.ac): ... to here.
19016
19017 2011-05-07  Bruno Haible  <bruno@clisp.org>
19018
19019         fopen: Move AC_LIBOBJ invocations to module description.
19020         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19021         invocations from here...
19022         * modules/fopen (configure.ac): ... to here.
19023
19024 2011-05-07  Bruno Haible  <bruno@clisp.org>
19025
19026         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19027         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19028         gl_FUNC_FNMATCH_POSIX.
19029         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19030         invocations from here...
19031         * modules/fnmatch (configure.ac): ... to here.
19032         * modules/fnmatch-gnu (configure.ac): ... and here.
19033
19034 2011-05-07  Bruno Haible  <bruno@clisp.org>
19035
19036         flock: Move AC_LIBOBJ invocations to module description.
19037         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19038         invocations from here...
19039         * modules/flock (configure.ac): ... to here.
19040
19041 2011-05-07  Bruno Haible  <bruno@clisp.org>
19042
19043         fileblocks: Move AC_LIBOBJ invocations to module description.
19044         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19045         gl_PREREQ_FILEBLOCKS invocations from here...
19046         * modules/fileblocks (configure.ac): ... to here.
19047
19048 2011-05-06  Bruno Haible  <bruno@clisp.org>
19049
19050         fflush: Move AC_LIBOBJ invocations to module description.
19051         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19052         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19053         invocations from here...
19054         * modules/fflush (configure.ac): ... to here.
19055
19056 2011-05-06  Bruno Haible  <bruno@clisp.org>
19057
19058         fdopendir: Move AC_LIBOBJ invocations to module description.
19059         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19060         here...
19061         * modules/fdopendir (configure.ac): ... to here.
19062         (Depends-on): Improve conditions.
19063
19064 2011-05-06  Bruno Haible  <bruno@clisp.org>
19065
19066         _Exit: Move AC_LIBOBJ invocations to module description.
19067         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19068         invocations from here...
19069         * modules/_Exit (configure.ac): ... to here.
19070
19071 2011-05-21  Bruno Haible  <bruno@clisp.org>
19072
19073         euidaccess: Respect rules for use of AC_LIBOBJ.
19074         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19076         from here...
19077         * modules/euidaccess (configure.ac): ... to here.
19078
19079 2011-05-06  Bruno Haible  <bruno@clisp.org>
19080
19081         error: Move AC_LIBOBJ invocations to module description.
19082         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19083         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19084         invocations from here...
19085         * modules/error (configure.ac): ... to here.
19086
19087 2011-05-06  Bruno Haible  <bruno@clisp.org>
19088
19089         duplocale: Move AC_LIBOBJ invocations to module description.
19090         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19091         gl_PREREQ_DUPLOCALE invocations from here...
19092         * modules/duplocale (configure.ac): ... to here.
19093
19094 2011-05-05  Bruno Haible  <bruno@clisp.org>
19095
19096         dirfd: Move AC_LIBOBJ invocations to module description.
19097         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19098         gl_FUNC_DIRFD.
19099         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19100         here...
19101         * modules/dirfd (configure.ac): ... to here.
19102         (Depends-on): Fix condition.
19103
19104 2011-05-05  Bruno Haible  <bruno@clisp.org>
19105
19106         chown: Respect rules for use of AC_LIBOBJ.
19107         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19108         * modules/chown (configure.ac): ... to here.
19109
19110 2011-05-05  Bruno Haible  <bruno@clisp.org>
19111
19112         chdir-long: Move AC_LIBOBJ invocations to module description.
19113         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19114         gl_PREREQ_CHDIR_LONG invocations from here...
19115         * modules/chdir-long (configure.ac): ... to here.
19116
19117 2011-05-05  Bruno Haible  <bruno@clisp.org>
19118
19119         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19120         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19121         from here...
19122         * modules/canonicalize-lgpl (configure.ac): ... to here.
19123
19124 2011-05-05  Bruno Haible  <bruno@clisp.org>
19125
19126         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19127         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19128         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19129         REPLACE_CALLOC.
19130         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19131         * modules/calloc-gnu (configure.ac): Likewise.
19132
19133 2011-05-05  Bruno Haible  <bruno@clisp.org>
19134
19135         btowc: Move AC_LIBOBJ invocations to module description.
19136         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19137         invocations from here...
19138         * modules/btowc (configure.ac): ... to here.
19139
19140 2011-05-21  Bruno Haible  <bruno@clisp.org>
19141
19142         atexit: Move AC_LIBOBJ invocations to module description.
19143         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19144         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19145         here...
19146         * modules/atexit (configure.ac): ... to here.
19147
19148 2011-05-05  Bruno Haible  <bruno@clisp.org>
19149
19150         atoll: Move AC_LIBOBJ invocations to module description.
19151         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19152         invocations from here...
19153         * modules/atoll (configure.ac): ... to here.
19154
19155 2011-05-05  Bruno Haible  <bruno@clisp.org>
19156
19157         argz: Move AC_LIBOBJ invocations to module description.
19158         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19159         * modules/argz (configure.ac): ... to here.
19160
19161 2011-05-05  Bruno Haible  <bruno@clisp.org>
19162
19163         alphasort: Move AC_LIBOBJ invocations to module description.
19164         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19165         gl_PREREQ_ALPHASORT invocations from here...
19166         * modules/alphasort (configure.ac): ... to here.
19167
19168 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19169
19170         verify: new macro verify_expr; verify_true deprecated
19171         * NEWS: Mention this.
19172         * doc/verify.texi (Compile-time Assertions): Document this.
19173         * lib/verify.h (verify_true): Deprecate.
19174         (verify_expr): New macro.
19175         * tests/test-verify.c (function): Test verify_expr.
19176
19177 2011-06-14  Jim Meyering  <meyering@redhat.com>
19178
19179         init.sh: give more portable redirection-related advice in a comment
19180         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19181         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19182         for lots of discussion.  Stefano Lattarini suggested the solution
19183         of putting "9>&2" after the command.  Reported by Bruno Haible.
19184
19185 2011-06-13  Bruno Haible  <bruno@clisp.org>
19186
19187         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19188         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19189         'none'.
19190
19191 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19192
19193         ftoastr: use strtof only if HAVE_STRTOF
19194         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19196         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19197         * modules/ftoastr (configure.ac): Check for strtof.
19198
19199 2011-06-13  Bruno Haible  <bruno@clisp.org>
19200
19201         gnulib-tool: Addendum to 2011-06-08 commit.
19202         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19203         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19204
19205 2011-06-13  Bruno Haible  <bruno@clisp.org>
19206
19207         fseeko: Provide a non-inline replacement of fseek().
19208         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19209         * modules/fseeko (Depends-on): Add fseek.
19210         * modules/fseek (License): Change to LGPLv2+.
19211
19212 2011-06-13  Bruno Haible  <bruno@clisp.org>
19213
19214         ftello: Provide a non-inline replacement of ftell().
19215         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19216         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19217         not have ftello() (such as on mingw).
19218         * modules/ftello (Depends-on): Add ftell.
19219         * modules/ftell (License): Change to LGPLv2+.
19220
19221 2011-05-07  Bruno Haible  <bruno@clisp.org>
19222
19223         ftell: Move AC_LIBOBJ invocations to module description.
19224         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19225         * modules/ftell (configure.ac): ... to here.
19226
19227 2011-05-07  Bruno Haible  <bruno@clisp.org>
19228
19229         ftello: Respect rules for use of AC_LIBOBJ.
19230         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19231         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19232         here...
19233         * modules/ftello (configure.ac): ... to here.
19234
19235 2011-05-07  Bruno Haible  <bruno@clisp.org>
19236
19237         fseeko: Simplify.
19238         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19239         (gl_FUNC_FSEEKO): Inline it here.
19240
19241 2011-05-07  Bruno Haible  <bruno@clisp.org>
19242
19243         fseek: Move AC_LIBOBJ invocations to module description.
19244         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19245         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19246         * modules/fseek (configure.ac): ... to here.
19247
19248 2011-05-07  Bruno Haible  <bruno@clisp.org>
19249
19250         fseek: Respect rules for use of AC_LIBOBJ.
19251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19252         here...
19253         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19254
19255 2011-05-07  Bruno Haible  <bruno@clisp.org>
19256
19257         fseeko: Respect rules for use of AC_LIBOBJ.
19258         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19259         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19260         here...
19261         * modules/fseeko (configure.ac): ... to here.
19262
19263 2011-06-13  Bruno Haible  <bruno@clisp.org>
19264
19265         gnulib-tool: Allow comments in the 'Depends-on' section.
19266         * doc/gnulib.texi (Module description): Mention comment syntax in the
19267         Depends-on section.
19268         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19269
19270 2011-06-13  Bruno Haible  <bruno@clisp.org>
19271
19272         file-set.h: guard __attibute__ use, now that it's not always defined
19273         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19274         versions that support it.  This fixes a coreutils build failure with
19275         the vendor cc on HP-UX 11.31.
19276
19277 2011-06-12  Bruno Haible  <bruno@clisp.org>
19278
19279         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19280         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19281         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19282         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19283         (acl, aclsort): New declarations.
19284         (aclv_nontrivial): New declaration.
19285         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19286         (file_has_acl): Read also the second kind of HP-UX ACLs.
19287         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19288         kind of HP-UX ACLs if the first kind fails.
19289         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19290         second kind of HP-UX ACLs.
19291         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19292         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19293         agree.
19294         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19295         hpuxjfs.
19296         Handle hpuxjfs.
19297         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19298         hpuxjfs.
19299         Handle hpuxjfs.
19300         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19301         (func_test_same_acls): Use both lsacl and getacl.
19302         Handle hpuxjfs.
19303         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19304         (func_test_same_acls): Use both lsacl and getacl.
19305         Handle hpuxjfs.
19306
19307 2011-06-12  Bruno Haible  <bruno@clisp.org>
19308
19309         acl: Complete the 2010-08-10 fix.
19310         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19311         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19312         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19313         explicitly.
19314         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19315         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19316
19317 2011-06-12  Bruno Haible  <bruno@clisp.org>
19318
19319         spawn-pipe tests: Comments.
19320         * tests/test-spawn-pipe-child.c (main): Update comment.
19321         Reported by James Youngman <jay@gnu.org>.
19322
19323 2011-06-11  James Youngman  <jay@gnu.org>
19324
19325         New module 'stat-size'.
19326         * modules/stat-size: New module.  Provides macros for accessing
19327         file size information in instances of struct stat.  Depends on the
19328         fileblocks module because it calls st_blocks.
19329         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19330         * doc/gnulib.texi: Include stat-size.texi.
19331         * doc/stat-size.texi: Documentation for this module.
19332         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19333         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19334         AC_STRUCT_ST_BLOCKS.
19335
19336 2011-06-09  Bruno Haible  <bruno@clisp.org>
19337
19338         thread: Support pthreads-win32.
19339         * lib/glthread/thread.h (gl_thread_self): Define differently on
19340         pthreads-win32.
19341         (gl_null_thread): New declaration.
19342         (gl_thread_self_pointer): New macro.
19343         * lib/glthread/thread.c (gl_null_thread): New constant.
19344         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19345         gl_thread_self.
19346         * tests/test-tls.c: Likewise.
19347         Suggested by Paul Eggert. Reported by Eric Blake.
19348
19349 2011-06-09  Bruno Haible  <bruno@clisp.org>
19350
19351         thread: Fix confusion between NULL and 0.
19352         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19353         Reported by Paul Eggert.
19354
19355 2011-06-09  Bruno Haible  <bruno@clisp.org>
19356
19357         spawn-pipe tests: Avoid test failure on HP-UX 11.
19358         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19359         is closed.
19360
19361 2011-06-09  Bruno Haible  <bruno@clisp.org>
19362
19363         acl tests: Fix compilation error on HP-UX 11.
19364         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19365
19366 2011-06-09  Bruno Haible  <bruno@clisp.org>
19367
19368         rmdir: Avoid test failure on HP-UX 10.20.
19369         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19370         EEXIST.
19371
19372 2011-06-08  Eric Blake  <eblake@redhat.com>
19373
19374         perror: fix test on mingw
19375         * modules/perror-tests (Depends-on): Add dup2.
19376
19377         strerror_r-posix: fix on MacOS
19378         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19380         logic bug.
19381         * lib/strerror_r.c (strerror_r): Fix the bug.
19382         * lib/strerror.c (strerror): Likewise.
19383         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19384         problem.
19385         * doc/posix-functions/strerror.texi (strerror): Likewise.
19386         * doc/posix-functions/perror.texi (perror): Likewise.
19387         * tests/test-strerror.c (main): Enhance test.
19388         * tests/test-strerror_r.c (main): Likewise.
19389
19390 2011-06-08  Bruno Haible  <bruno@clisp.org>
19391
19392         gnulib-tool: Better isolation between different gnulib-tool invocations.
19393         * gnulib-tool: New option --witness-c-macro.
19394         (witness_c_macro): New variable.
19395         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19396         AM_CPPFLAGS define it as a C macro.
19397         (func_emit_tests_Makefile_am): Likewise.
19398         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19399         read it from there.
19400         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19401         m4_define, not AC_DEFUN.
19402         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19403         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19404         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19405         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19406         s|...|...|, to substitute the values of the GNULIB_* module indicator
19407         variables.
19408         * modules/dirent (Makefile.am): Likewise.
19409         * modules/fcntl-h (Makefile.am): Likewise.
19410         * modules/iconv-h (Makefile.am): Likewise.
19411         * modules/langinfo (Makefile.am): Likewise.
19412         * modules/locale (Makefile.am): Likewise.
19413         * modules/math (Makefile.am): Likewise.
19414         * modules/netdb (Makefile.am): Likewise.
19415         * modules/poll-h (Makefile.am): Likewise.
19416         * modules/pty (Makefile.am): Likewise.
19417         * modules/search (Makefile.am): Likewise.
19418         * modules/signal (Makefile.am): Likewise.
19419         * modules/spawn (Makefile.am): Likewise.
19420         * modules/stdio (Makefile.am): Likewise.
19421         * modules/stdlib (Makefile.am): Likewise.
19422         * modules/string (Makefile.am): Likewise.
19423         * modules/sys_ioctl (Makefile.am): Likewise.
19424         * modules/sys_select (Makefile.am): Likewise.
19425         * modules/sys_socket (Makefile.am): Likewise.
19426         * modules/sys_stat (Makefile.am): Likewise.
19427         * modules/sys_times (Makefile.am): Likewise.
19428         * modules/sys_utsname (Makefile.am): Likewise.
19429         * modules/sys_wait (Makefile.am): Likewise.
19430         * modules/termios (Makefile.am): Likewise.
19431         * modules/time (Makefile.am): Likewise.
19432         * modules/unistd (Makefile.am): Likewise.
19433         * modules/wchar (Makefile.am): Likewise.
19434
19435 2011-06-08  Eric Blake  <eblake@redhat.com>
19436
19437         strerror: simplify replacement
19438         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19439         * modules/strerror (configure.ac): No prereqs needed here...
19440         * modules/strerror-override (configure.ac): ...but this needs it.
19441         (Files): Add file for needed prereq macro.
19442
19443 2011-06-08  Bruno Haible  <bruno@clisp.org>
19444
19445         strerror_r-posix: Tweaks.
19446         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19447         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19448         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19449         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19450         (gl_FUNC_STRERROR_R): ... to here.
19451         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19452
19453 2011-06-07  Eric Blake  <eblake@redhat.com>
19454
19455         perror: document fixed bugs
19456         * doc/posix-functions/perror.texi (perror): Document recent
19457         patches.
19458
19459 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19460
19461         stat-time: get_stat_birthtime failure is better-defined
19462         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19463         return a timestamp whose tv_sec and tv_nsec values are both -1.
19464         Previously, the spec said only that the tv_nsec value was negative.
19465         This upward-compatible change simplifies GNU tar a bit.
19466
19467 2011-06-07  Eric Blake  <eblake@redhat.com>
19468
19469         strerror_r-posix: work around cygwin 1.7.9
19470         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19471         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19472         bug without replacing strerror_r.
19473         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19474         strerror_r is buggy, but without requiring strerror_r compilation.
19475         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19476
19477         test-perror: relax test to ignore cygwin bug
19478         * tests/test-perror2.c (main): Relax test on requiring detection
19479         of stream errors, and use unbuffered stream.
19480         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19481         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19482         * doc/posix-functions/fputc.texi (fputc): Likewise.
19483         * doc/posix-functions/fputs.texi (fputs): Likewise.
19484         * doc/posix-functions/fputws.texi (fputws): Likewise.
19485         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19486         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19487         * doc/posix-functions/getopt.texi (getopt): Likewise.
19488         * doc/posix-functions/perror.texi (perror): Likewise.
19489         * doc/posix-functions/printf.texi (printf): Likewise.
19490         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19491         * doc/posix-functions/psignal.texi (psignal): Likewise.
19492         * doc/posix-functions/putc.texi (putc): Likewise.
19493         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19494         Likewise.
19495         * doc/posix-functions/putchar.texi (putchar): Likewise.
19496         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19497         Likewise.
19498         * doc/posix-functions/puts.texi (puts): Likewise.
19499         * doc/posix-functions/putwc.texi (putwc): Likewise.
19500         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19501         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19502         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19503         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19504         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19505         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19506         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19507         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19508
19509 2011-05-22  Bruno Haible  <bruno@clisp.org>
19510
19511         strerror: Move AC_LIBOBJ invocations to module description.
19512         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19513         gl_PREREQ_STRERROR invocations from here...
19514         * modules/strerror (configure.ac): ... to here.
19515
19516 2011-05-21  Bruno Haible  <bruno@clisp.org>
19517
19518         perror: Use common idiom.
19519         * modules/perror (configure.ac): Reorder statements.
19520
19521 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19522
19523         tests: fix usage message in 'mktempd_'
19524         * tests/init.sh (mktempd_): In the usage message, use literal
19525         'mktempd_', not '$ME' (which is even undefined), as the name of
19526         the subroutine.
19527
19528 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19529
19530         tests init: new function 'fatal_', for hard errors
19531         Before this patch, the only way offered by tests/init.sh to
19532         properly signal a hard error was the `framework_failure_'
19533         function.  But the error message issued by that function,
19534         as its name would suggest, refers to a set-up failure in the
19535         testsuite, while hard errors can obviously also be due to
19536         other reasons.  The best way to fix this inconsistency is to
19537         introduce a new function with a more general error message.
19538         * tests/init.sh (fatal_): New function.
19539
19540 2011-06-06  Eric Blake  <eblake@redhat.com>
19541
19542         canonicalize-lgpl: use common idiom
19543         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19544         over newer POSIX -Rf.
19545         Reported by Bruno Haible.
19546
19547         canonicalize-lgpl: work around AIX realpath bug
19548         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19549         * doc/posix-functions/realpath.texi (realpath): Document it.
19550         Reported by Bruno Haible.
19551
19552         strerror: work around FreeBSD bug
19553         * lib/strerror.c (strerror): Special case 0.
19554         Reported by Bruno Haible.
19555
19556         strerror-override: avoid bloating errno module
19557         * modules/errno (Files, configure.ac): Move replacement strings...
19558         * modules/strerror-override: ...to new module.
19559         * modules/strerror (Depends-on): Add strerror-override.
19560         * modules/strerror_r-posix (Depends-on): Likewise.
19561         * MODULES.html.sh: Document new module.
19562         Reported by Bruno Haible.
19563
19564 2011-06-06  Bruno Haible  <bruno@clisp.org>
19565
19566         spawn-pipe tests: Rename program.
19567         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19568         * tests/test-spawn-pipe-child.c: Update comment.
19569         * tests/test-spawn-pipe.sh: Update.
19570         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19571
19572         spawn-pipe tests: Link the child program only against libc.
19573         * tests/test-spawn-pipe-child.c: New file, extracted from
19574         tests/test-spawn-pipe.c.
19575         (main): Expect only one argument.
19576         (is_open): New function, copied from tests/test-pipe.c.
19577         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19578         (child_main): Remove function.
19579         (test_pipe): Pass only one argument to the child program.
19580         (main): Remove child process code. Expect the child program's name as
19581         first argument.
19582         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19583         argument.
19584         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19585         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19586         test-spawn-pipe-child against no libraries.
19587
19588 2011-06-06  Bruno Haible  <bruno@clisp.org>
19589
19590         careadlinkat: Avoid mismatch between ssize_t and int.
19591         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19592         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19593
19594 2011-06-06  Jim Meyering  <meyering@redhat.com>
19595
19596         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19597         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19598         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19599
19600 2011-06-05  Bruno Haible  <bruno@clisp.org>
19601
19602         ansi-c++-opt: Interoperability with libtool.
19603         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19604         set the variable to "no", not to ":".
19605         * NEWS: Mention the change.
19606
19607 2011-06-05  Bruno Haible  <bruno@clisp.org>
19608
19609         acl: Fix test failure on AIX 7.
19610         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19611         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19612
19613 2011-06-05  Bruno Haible  <bruno@clisp.org>
19614
19615         pipe-filter-ii: Fix test failure on AIX and IRIX.
19616         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19617         with EAGAIN, retry with a smaller buffer size.
19618
19619 2011-06-05  Bruno Haible  <bruno@clisp.org>
19620
19621         localename: Fix link dependencies.
19622         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19623         * modules/localename-tests (Makefile.am): Link test-localename with
19624         $(LIBTHREAD).
19625
19626 2011-06-05  Bruno Haible  <bruno@clisp.org>
19627
19628         error: Avoid gcc warning.
19629         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19630
19631 2011-06-05  Bruno Haible  <bruno@clisp.org>
19632
19633         unsetenv: Avoid gcc warning.
19634         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19635
19636 2011-06-05  Bruno Haible  <bruno@clisp.org>
19637
19638         setenv: Avoid gcc warning.
19639         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19640
19641 2011-06-05  Bruno Haible  <bruno@clisp.org>
19642
19643         sys_select: Ensure memset is declared also on AIX 7.
19644         * lib/sys_select.in.h: Include <string.h> also on AIX.
19645         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19646         self-contained also on AIX 7.1.
19647
19648 2011-06-04  Jim Meyering  <meyering@redhat.com>
19649
19650         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19651         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19652         function name, "error".
19653         (_gl_translatable_diag_func_re): New configurable variable.
19654
19655 2011-06-04  Bruno Haible  <bruno@clisp.org>
19656
19657         getopt: Avoid gcc warning.
19658         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19659
19660 2011-06-04  Bruno Haible  <bruno@clisp.org>
19661
19662         strerror_r: Fix comments.
19663         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19664         commit.
19665
19666 2011-06-04  Bruno Haible  <bruno@clisp.org>
19667
19668         perror: Fix compilation error.
19669         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19670         Undefine fprintf, not sprintf.
19671         * modules/perror (Depends-on): Remove intprops, verify.
19672
19673 2011-06-04  Bruno Haible  <bruno@clisp.org>
19674
19675         setlocale: Enable replacement on Cygwin 1.5.
19676         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19677         Cygwin 1.5.x.
19678         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19679         LC_CTYPE category also exists on Cygwin 1.5.x.
19680
19681 2011-06-04  Bruno Haible  <bruno@clisp.org>
19682
19683         strerror-override: Don't disable symbol renamings.
19684         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19685         * lib/strerror-override.c: Include config.h.
19686         (strerror_override): Don't undefine.
19687
19688 2011-06-03  Bruno Haible  <bruno@clisp.org>
19689
19690         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19691         * lib/localename.h: Update copyright header.
19692         * lib/localename.c: Likewise.
19693         * lib/relocatable.h: Likewise.
19694         * lib/relocatable.c: Likewise.
19695
19696 2011-06-02  Bruno Haible  <bruno@clisp.org>
19697
19698         doc: Fix a module name.
19699         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19700
19701 2011-06-02  Bruno Haible  <bruno@clisp.org>
19702
19703         pipe2: Remove dependency on 'nonblocking' module.
19704         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19705         O_NONBLOCK is defined by gnulib.
19706         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19707         is zero.
19708         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19709         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19710         defined by gnulib.
19711         (get_nonblocking_flag): New function.
19712         (main): Test O_NONBLOCK flag only if it is nonzero.
19713         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19714
19715 2011-06-03  Jim Meyering  <meyering@redhat.com>
19716
19717         maint: three new prohibit-header-without-use rules
19718         Prohibit use of cloexec.h, posixver.h, same.h without use.
19719         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19720         (sc_prohibit_posixver_without_use): Likewise.
19721         (sc_prohibit_same_without_use): Likewise.
19722
19723 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19724
19725         allocator: 'die' routine is now given requested size
19726         * lib/allocator.h (struct allocator.die): New size arg.
19727         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19728         If the actual problem is an ssize_t limitation, not a size_t or
19729         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19730
19731 2011-06-01  Eric Blake  <eblake@redhat.com>
19732
19733         strerror: drop strerror_r dependency
19734         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19735         * lib/strerror-override.c (strerror_override): ...to new file.
19736         * lib/strerror-override.h: Add prototype.
19737         * lib/strerror-impl.h: Delete.
19738         * lib/strerror.c (strerror): New implementation.
19739         * modules/errno (Files): Add new files.
19740         (configure.ac): Compile new file as appropriate.
19741         * modules/strerror (Files): Drop unused file.
19742         (Depends-on): Drop strerror_r-posix.
19743         * MODULES.html.sh: Document strerror_r-posix.
19744         Requested by Sam Steingold.
19745
19746         perror: call strerror_r directly
19747         * modules/perror (Files): Drop strerror-impl.h.
19748         * lib/perror.c (perror): Use our own stack buffer, rather than
19749         calling a wrapper that uses static storage.
19750         * doc/posix-functions/perror.texi (perror): Document a limitation
19751         of our replacement.
19752
19753         strerror_r: fix includes for FreeBSD
19754         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19755         since we use abort on some platforms.
19756         Reported by Matthias Bolte.
19757
19758 2011-05-31  Bruno Haible  <bruno@clisp.org>
19759
19760         Fix link errors in tests: openat-die uses gettext-h.
19761         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19762         against $(LIBINTL).
19763         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19764         against $(LIBINTL).
19765         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19766         $(LIBINTL).
19767         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19768         against $(LIBINTL).
19769         * modules/linkat-tests (Makefile.am): Link test-linkat against
19770         $(LIBINTL).
19771         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19772         $(LIBINTL).
19773         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19774         against $(LIBINTL).
19775         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19776         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19777         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19778         $(LIBINTL).
19779         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19780         $(LIBINTL).
19781         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19782         $(LIBINTL).
19783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19784
19785 2011-05-31  Bruno Haible  <bruno@clisp.org>
19786
19787         Fix link errors in tests: wait-process uses gettext-h.
19788         * modules/nonblocking-pipe-tests (Makefile.am): Set
19789         test_nonblocking_pipe_main_LDADD.
19790         * modules/nonblocking-socket-tests (Makefile.am): Link
19791         test-nonblocking-socket-main against $(LIBINTL).
19792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19793
19794 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         assert-h: work around 'verify' incompatibility
19797         * lib/verify.h: Use @...@ directives, not ifdef.
19798         * modules/assert-h (assert.h): Implement the directives.
19799         (assert.h): Substitute the symbol-prefix more consistently.
19800
19801 2011-05-29  Jim Meyering  <meyering@redhat.com>
19802
19803         trim: remove three superfluous assignments
19804         * lib/trim.c (trim2): Remove three superfluous assignments
19805         and correct brace positioning.
19806
19807 2011-05-29  Bruno Haible  <bruno@clisp.org>
19808
19809         wctype-h: Avoid namespace pollution on Solaris 2.6.
19810         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19811         identifiers.
19812         * doc/posix-headers/wctype.texi: Mention the problem.
19813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19814
19815 2011-05-28  Jim Meyering  <meyering@redhat.com>
19816
19817         parse-datetime.y: accommodate -Wstrict-overflow
19818         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19819         placate -Wstrict-overflow.
19820
19821         trim: avoid a warning from -O2 -Wstrict-overflow
19822         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19823
19824 2011-05-29  Bruno Haible  <bruno@clisp.org>
19825
19826         gnulib-tool: Fix bug in yesterday's commit.
19827         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19828         twice.
19829
19830 2011-05-29  Bruno Haible  <bruno@clisp.org>
19831
19832         Allow multiple gnulib generated include files to be combined.
19833         * gnulib-tool (func_compute_include_guard_prefix): New function.
19834         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19835         ${gl_include_guard_prefix} references.
19836         (func_import, func_create_testdir): Invoke
19837         func_compute_include_guard_prefix.
19838         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19839         * lib/ctype.in.h: Likewise.
19840         * lib/dirent.in.h: Likewise.
19841         * lib/errno.in.h: Likewise.
19842         * lib/fcntl.in.h: Likewise.
19843         * lib/float.in.h: Likewise.
19844         * lib/getopt.in.h: Likewise.
19845         * lib/iconv.in.h: Likewise.
19846         * lib/langinfo.in.h: Likewise.
19847         * lib/locale.in.h: Likewise.
19848         * lib/math.in.h: Likewise.
19849         * lib/netdb.in.h: Likewise.
19850         * lib/netinet_in.in.h: Likewise.
19851         * lib/poll.in.h: Likewise.
19852         * lib/pthread.in.h: Likewise.
19853         * lib/pty.in.h: Likewise.
19854         * lib/sched.in.h: Likewise.
19855         * lib/se-selinux.in.h: Likewise.
19856         * lib/search.in.h: Likewise.
19857         * lib/signal.in.h: Likewise.
19858         * lib/spawn.in.h: Likewise.
19859         * lib/stdarg.in.h: Likewise.
19860         * lib/stddef.in.h: Likewise.
19861         * lib/stdint.in.h: Likewise.
19862         * lib/stdio.in.h: Likewise.
19863         * lib/stdlib.in.h: Likewise.
19864         * lib/string.in.h: Likewise.
19865         * lib/strings.in.h: Likewise.
19866         * lib/sys_file.in.h: Likewise.
19867         * lib/sys_ioctl.in.h: Likewise.
19868         * lib/sys_select.in.h: Likewise.
19869         * lib/sys_socket.in.h: Likewise.
19870         * lib/sys_stat.in.h: Likewise.
19871         * lib/sys_time.in.h: Likewise.
19872         * lib/sys_times.in.h: Likewise.
19873         * lib/sys_uio.in.h: Likewise.
19874         * lib/sys_utsname.in.h: Likewise.
19875         * lib/sys_wait.in.h: Likewise.
19876         * lib/sysexits.in.h: Likewise.
19877         * lib/termios.in.h: Likewise.
19878         * lib/time.in.h: Likewise.
19879         * lib/unistd.in.h: Likewise.
19880         * lib/wchar.in.h: Likewise.
19881         * lib/wctype.in.h: Likewise.
19882         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19883         * modules/ctype (Makefile.am): Likewise.
19884         * modules/dirent (Makefile.am): Likewise.
19885         * modules/errno (Makefile.am): Likewise.
19886         * modules/fcntl-h (Makefile.am): Likewise.
19887         * modules/float (Makefile.am): Likewise.
19888         * modules/getopt-posix (Makefile.am): Likewise.
19889         * modules/iconv-h (Makefile.am): Likewise.
19890         * modules/langinfo (Makefile.am): Likewise.
19891         * modules/locale (Makefile.am): Likewise.
19892         * modules/math (Makefile.am): Likewise.
19893         * modules/netdb (Makefile.am): Likewise.
19894         * modules/netinet_in (Makefile.am): Likewise.
19895         * modules/poll-h (Makefile.am): Likewise.
19896         * modules/pthread (Makefile.am): Likewise.
19897         * modules/pty (Makefile.am): Likewise.
19898         * modules/sched (Makefile.am): Likewise.
19899         * modules/search (Makefile.am): Likewise.
19900         * modules/selinux-h (Makefile.am): Likewise.
19901         * modules/signal (Makefile.am): Likewise.
19902         * modules/spawn (Makefile.am): Likewise.
19903         * modules/stdarg (Makefile.am): Likewise.
19904         * modules/stddef (Makefile.am): Likewise.
19905         * modules/stdint (Makefile.am): Likewise.
19906         * modules/stdio (Makefile.am): Likewise.
19907         * modules/stdlib (Makefile.am): Likewise.
19908         * modules/string (Makefile.am): Likewise.
19909         * modules/strings (Makefile.am): Likewise.
19910         * modules/sys_file (Makefile.am): Likewise.
19911         * modules/sys_ioctl (Makefile.am): Likewise.
19912         * modules/sys_select (Makefile.am): Likewise.
19913         * modules/sys_socket (Makefile.am): Likewise.
19914         * modules/sys_stat (Makefile.am): Likewise.
19915         * modules/sys_time (Makefile.am): Likewise.
19916         * modules/sys_times (Makefile.am): Likewise.
19917         * modules/sys_uio (Makefile.am): Likewise.
19918         * modules/sys_utsname (Makefile.am): Likewise.
19919         * modules/sys_wait (Makefile.am): Likewise.
19920         * modules/sysexits (Makefile.am): Likewise.
19921         * modules/termios (Makefile.am): Likewise.
19922         * modules/time (Makefile.am): Likewise.
19923         * modules/unistd (Makefile.am): Likewise.
19924         * modules/wchar (Makefile.am): Likewise.
19925         * modules/wctype-h (Makefile.am): Likewise.
19926         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19927
19928 2011-05-29  Bruno Haible  <bruno@clisp.org>
19929
19930         assert-h: Allow multiple gnulib generated replacements to coexist.
19931         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19932
19933 2011-05-29  Bruno Haible  <bruno@clisp.org>
19934
19935         argp: Allow coexistence with strerror_r-posix module.
19936         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19937         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19938         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19939         not the glibc signature.
19940
19941 2011-05-28  Bruno Haible  <bruno@clisp.org>
19942
19943         gnulib-tool: Alternative structure of testdirs, similar to --import.
19944         * gnulib-tool: New option --single-configure.
19945         (func_usage): Document it.
19946         (single_configure): New variable.
19947         (func_modules_transitive_closure_separately,
19948         func_modules_transitive_closure_separately,
19949         func_determine_use_libtests, func_modules_add_dummy_separately,
19950         func_modules_to_filelist_separately): New functions, extracted from
19951         func_import.
19952         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19953         (func_import): Use the new functions.
19954         (func_create_testdir): Set final_modules. Handle $single_configure =
19955         true case.
19956
19957 2011-05-28  Bruno Haible  <bruno@clisp.org>
19958
19959         getloadavg: Remove an unreliable safety check.
19960         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19961         getloadavg.c is in place.
19962         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19963         Reported by Sam Steingold <sds@gnu.org>.
19964
19965 2011-05-28  Bruno Haible  <bruno@clisp.org>
19966
19967         doc: Cleanup yet another file produced by texinfo.tex.
19968         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19969
19970 2011-05-28  Bruno Haible  <bruno@clisp.org>
19971
19972         Finish the conditional dependencies mechanism.
19973         * gnulib-tool: New option --no-conditional-dependencies.
19974         (func_usage): Document it. Don't mark --conditional-dependencies as
19975         experimental.
19976         (cond_dependencies): The possible values can now be true, false, empty.
19977         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19978         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19979         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19980
19981 2011-05-28  Bruno Haible  <bruno@clisp.org>
19982
19983         doc: Use a recent texinfo.tex.
19984         * doc/Makefile (tex_opts): New variable.
19985         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19986
19987 2011-05-28  Jim Meyering  <meyering@redhat.com>
19988
19989         intprops.h: adjust comment to match code change
19990         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19991         only once, it *may* have side effects.  Also fix an unrelated typo.
19992         (_GL_INT_SIGNED): Likewise.
19993
19994 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19995
19996         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19997
19998 2011-05-26  Bruno Haible  <bruno@clisp.org>
19999
20000         mbsrchr: Avoid collision with system function on Interix.
20001         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20002         Reported by Markus Duft <mduft@gentoo.org>.
20003
20004 2011-05-15  James Youngman  <jay@gnu.org>
20005
20006         getopt: for ambiguous options, enumerate the possibilities.
20007         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20008         the ambiguous options when an ambiguous prefix is given. This was
20009         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20010         glibc change was
20011         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20012
20013 2011-05-25  Eric Blake  <eblake@redhat.com>
20014
20015         getcwd: work around mingw bug
20016         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20017         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20018         Reported by Matthias Bolte.
20019
20020 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20021
20022         test-intprops: disable -Wtype-limits diagnostics
20023         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20024         diagnostics.  Otherwise, the integer overflow macros generate many
20025         diagnostics.  Reported by Jim Meyering in
20026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20027
20028         intprops: shorten, to pacify gcc -Woverlength-strings
20029         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20030         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20031         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20032         likely to run afoul of C compiler limits for string constant lengths.
20033         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20034
20035 2011-05-24  Eric Blake  <eblake@redhat.com>
20036
20037         docs: document recently fixed glibc printf bug
20038         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20039         * doc/posix-functions/printf.texi (printf): Likewise.
20040         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20041         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20042
20043         closein-tests: convert to init.sh
20044         * modules/closein-tests (Files): Add init.sh
20045         * tests/test-closein.sh Use it.
20046
20047         yesno-tests: convert to init.sh
20048         * modules/yesno-tests (Files): Add init.sh.
20049         * tests/test-yesno.sh: Use it.
20050
20051         atexit-tests: ensure reliable exit status
20052         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20053         Reported by Bruno Haible.
20054
20055 2011-05-24  Bruno Haible  <bruno@clisp.org>
20056
20057         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20059         gl_PREREQ_STRERROR_R invocations from here...
20060         * modules/strerror_r-posix (configure.ac): ... to here.
20061
20062 2011-05-24  Eric Blake  <eblake@redhat.com>
20063
20064         strerror_r: fix missing header
20065         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20066
20067         strerror_r: fix AIX test failures
20068         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20069         ERANGE failure.
20070
20071         strerror_r: fix Solaris test failures
20072         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20073         failures.
20074         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20075
20076         strerror_r: enforce POSIX recommendations
20077         * lib/strerror_r.c (safe_copy): New helper method.
20078         (strerror_r): Guarantee a non-empty string.
20079         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20080         recent POSIX rulings and to match our strerror guarantees.
20081         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20082
20083 2011-05-24  Jim Meyering  <meyering@redhat.com>
20084
20085         test-perror2.c: avoid warning about unused variable
20086         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20087
20088 2011-05-24  Eric Blake  <eblake@redhat.com>
20089
20090         perror: avoid spurious test failure on HP-UX
20091         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20092
20093         tests: fix logic bug in init.sh
20094         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20095         shell.
20096
20097 2011-05-24  Jim Meyering  <meyering@redhat.com>
20098
20099         utimensat: do not reference an out-of-scope buffer
20100         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20101         declared in an inner scope, yet "times" would be dereferenced outside
20102         the scope in which "ts" was valid.
20103         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20104         of ts[2] "out/up", so that the use of aliased "times" (via
20105         "times = ts;") does not end up referencing an out-of-scope "ts"
20106
20107         opendir-safer.c: don't clobber errno; don't close negative FD
20108         * lib/opendir-safer.c (opendir_safer):
20109         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20110         file descriptor, and more importantly, don't clobber the
20111         offending errno value with EINVAL.  Before, upon failure
20112         of dup_safer, we would pass the negative file descriptor to
20113         fdopendir, which would clobber errno.
20114
20115 2011-05-23  Bruno Haible  <bruno@clisp.org>
20116
20117         idcache: Fix module description.
20118         * modules/idcache (Include): Set to "idcache.h".
20119
20120 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20121
20122         gnulib-tool: fix portability problem with MacOS sed
20123         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20124         before the "}".  Problem reported by Leo in
20125         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20126         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20127         sed_extract_condition1, sed_extract_condition2.
20128
20129 2011-05-23  Bruno Haible  <bruno@clisp.org>
20130
20131         hash: Simplify autoconf macro.
20132         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20133
20134 2011-05-23  Bruno Haible  <bruno@clisp.org>
20135
20136         getugroups: Fix module description.
20137         * modules/getugroups (Include): Set to "getugroups.h".
20138
20139 2011-05-23  Bruno Haible  <bruno@clisp.org>
20140
20141         linkat: Simplify autoconf macro.
20142         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20143
20144 2011-05-23  Bruno Haible  <bruno@clisp.org>
20145             Eric Blake  <eblake@redhat.com>
20146
20147         linkat, renameat: Update dependencies.
20148         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20149         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20150         symlinkat.
20151
20152 2011-05-23  Jim Meyering  <meyering@redhat.com>
20153
20154         maint.mk: more tight_scope improvements
20155         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20156         (_gl_TS_headers): Define only in if-0'd block.
20157         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20158         sometimes we must *not* use it.  Adjust uses accordingly.
20159         (sc_tight_scope): Use much simpler grep-based test to determine
20160         whether we skip this rule.
20161
20162         maint.mk: generalize/improve the tight-scope rule
20163         * top/maint.mk: Emit a warning when the test is skipped.
20164         (_gl_TS_dir): Add $(srcdir)/ prefix.
20165         (_gl_TS_function_match): Simplify, rather than trying
20166         to enumerate common types.  Otherwise, it would fail to match an
20167         "extern unsigned char const *" declaration in idutils.
20168         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20169         a way to support use of that type of macro.
20170         (_gl_TS_var_match): Simplify regexp.
20171         (_gl_TS_obj_files): New configurable variable.
20172         (_gl_TS_headers): Likewise.
20173
20174 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20175
20176         verify: fix bug when gnulib <assert.h> is also included
20177         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20178         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20179         Perhaps there's a better way, but this fixes the immediate problem.
20180         Problem reported by Bruno Haible in
20181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20182
20183 2011-05-22  Bruno Haible  <bruno@clisp.org>
20184
20185         xgetcwd: Simplify autoconf macro.
20186         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20187
20188 2011-05-22  Bruno Haible  <bruno@clisp.org>
20189
20190         New module 'mktime-internal'.
20191         * modules/mktime-internal: New file.
20192         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20193         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20194         mktime_internal as a C macro if libc has __mktime_internal.
20195         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20196         conditions.
20197         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20198
20199 2011-05-22  Bruno Haible  <bruno@clisp.org>
20200
20201         timegm: Correct mktime replacement statements.
20202         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20203         defining mktime as a C macro. This completes a 2009-07-28 commit.
20204
20205 2011-05-22  Bruno Haible  <bruno@clisp.org>
20206
20207         timegm: Simplify autoconf macro.
20208         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20209
20210 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20211
20212         clock-time: change to LGPLv2+.
20213         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20214         BSD-like but we have no mark for that; this is good enough for now.
20215
20216 2011-05-21  Bruno Haible  <bruno@clisp.org>
20217
20218         strerror_r: Fix comments.
20219         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20220
20221 2011-05-21  Bruno Haible  <bruno@clisp.org>
20222
20223         relocatable-prog-wrapper: Fix possible link error.
20224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20225         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20226         (gl_FUNC_SETENV): ... to here.
20227         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20228         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20229
20230 2011-05-21  Bruno Haible  <bruno@clisp.org>
20231
20232         relocatable-prog-wrapper: Assume strerror() exists.
20233         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20234         m4/strerror.m4.
20235         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20236         * lib/relocwrapper.c: Remove mention of strerror module.
20237         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20239         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20240         C macro.
20241
20242 2011-05-21  Bruno Haible  <bruno@clisp.org>
20243
20244         select: Simplify replacement idiom.
20245         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20246         Win32 platforms.
20247         * lib/sys_select.in.h (select): Simplify accordingly.
20248         * modules/select (Depends-on): Likewise.
20249
20250 2011-05-21  Bruno Haible  <bruno@clisp.org>
20251
20252         mkdir-p: Simplify autoconf macro.
20253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20254         gl_FUNC_LCHOWN.
20255
20256 2011-05-21  Eric Blake  <eblake@redhat.com>
20257
20258         strerror_r: avoid clobbering strerror on cygwin
20259         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20260         fall back instead to sys_errlist.
20261         * modules/strerror (configure.ac): Add witness.
20262         * tests/test-strerror_r.c (main): Enhance test.
20263         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20264         * tests/test-perror2.c (main): Free memory before exit.
20265
20266 2011-05-21  Bruno Haible  <bruno@clisp.org>
20267
20268         mkdtemp: Use gnulib naming conventions.
20269         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20270         * modules/mkdtemp (configure.ac): Update.
20271
20272 2011-05-20  Eric Blake  <eblake@redhat.com>
20273
20274         strerror_r: avoid corrupting errno on Solaris
20275         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20276         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20277
20278         strerror_r: avoid compiler warning
20279         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20280
20281         strerror_r: simplify AIX code
20282         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20283
20284         test-perror: avoid spurious failure on FreeBSD
20285         * modules/perror-tests (Depends-on): Add strerror, now that
20286         strerror_r no longer pulls it in.
20287
20288 2011-05-20  Bruno Haible  <bruno@clisp.org>
20289
20290         strerror_r-posix: Remove unused dependencies.
20291         * modules/strerror_r-posix (Depends-on): Remove strerror.
20292         Reported by Eric Blake.
20293
20294 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20295
20296         intprops: remove assumption about A|B representation
20297         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20298         is a valid integer if both A and B are.  Although this is true for
20299         all known practical hosts, the C standard doesn't guarantee it,
20300         and the code need not assume it.  Also, this change may work around
20301         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20303
20304 2011-05-20  Eric Blake  <eblake@redhat.com>
20305
20306         perror: work around FreeBSD bug
20307         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20308         is broken.  Move AC_LIBOBJ...
20309         * modules/perror (configure.ac): Here.
20310         * doc/posix-functions/perror.texi (perror): Document this.
20311         * tests/test-perror2.c (main): Enhance test.
20312
20313         test-perror: check for strerror interactions
20314         * tests/macros.h (STREQ): Add macro.
20315         * modules/perror-tests (Files): Add second test.
20316         * tests/test-perror2.c (main): New file.
20317         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20318
20319         test-perror: rewrite to use init script
20320         * modules/perror-tests (Files): Add init.sh.
20321         * tests/test-perror.sh: Use temporary directory.
20322
20323 2011-05-20  Jim Meyering  <meyering@redhat.com>
20324
20325         maint: replace misused "a" with "an"
20326         * doc/intprops.texi: "a integer"
20327         * doc/regex.texi: "a explanation"
20328         * lib/alignof.h: "a object"
20329         * lib/argmatch.h: "a explanation"
20330         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20331         * lib/stdint.in.h: "a integer"
20332         * lib/userspec.c: "a owner"
20333         * doc/gnulib.texi: Fix "a idea", and reword.
20334
20335 2011-05-19  Jim Meyering  <meyering@redhat.com>
20336
20337         maint: correct misuse of "a" and "an"
20338         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20339         * lib/argp-help.c: "an docum...": s/an/a/
20340         * lib/argp-parse.c: "An vector": s/An/A/
20341         * lib/execute.c: "an native": s/an/a/
20342         * lib/spawn-pipe.c: Likewise.
20343         * lib/gc.h: "an Gc_rc": s/an/a/
20344         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20345         * lib/fts.c: "an stat.st_dev": s/an/a/
20346
20347 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20348
20349         intprops-tests: work around HP-UX 11.23 cc bug with constants
20350         * tests/test-intprops.c (VERIFY): New macro.
20351         (main): Use it, instead of verify, to work around the compiler bug; see
20352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20353
20354         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20355         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20356         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20357         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20358         (_GL_REMAINDER_OVERFLOW): Use it.
20359
20360         intprops-tests: revert unsigned part of previous change
20361         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20362         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20363         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20365
20366 2011-05-19  Bruno Haible  <bruno@clisp.org>
20367
20368         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20369         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20370         strerror_r() returned without filling the buffer.
20371         Reported by Eric Blake.
20372
20373 2011-05-19  Eric Blake  <eblake@redhat.com>
20374
20375         strerror_r: guarantee unchanged errno
20376         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20377         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20378         failure.
20379         * tests/test-strerror_r.c (main): Enhance test.
20380
20381 2011-05-19  Bruno Haible  <bruno@clisp.org>
20382
20383         strerror_r: Reorder #if blocks.
20384         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20385         for consistency with the previous commit.
20386
20387 2011-05-19  Bruno Haible  <bruno@clisp.org>
20388
20389         perror: Avoid clobbering the strerror buffer when possible.
20390         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20391         * lib/strerror.c: Include it.
20392         * modules/strerror (Files): Add lib/strerror-impl.h.
20393         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20394         (my_strerror): New function, defined through lib/strerror-impl.h.
20395         (perror): Use it instead of strerror.
20396         * modules/perror (Files): Add lib/strerror-impl.h.
20397         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20398
20399 2011-05-19  Eric Blake  <eblake@redhat.com>
20400
20401         strerror_r: fix on newer cygwin
20402         * lib/strerror_r.c (strerror_r): Cygwin now has
20403         __xpg_strerror_r, use it.
20404
20405 2011-05-19  Bruno Haible  <bruno@clisp.org>
20406
20407         strerror_r: Avoid clobbering the strerror buffer when possible.
20408         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20409         (sys_nerr, sys_errlist): New declarations.
20410         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20411         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20412         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20413
20414 2011-05-19  Bruno Haible  <bruno@clisp.org>
20415
20416         strerror_r: Fix test failure on mingw.
20417         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20418         EXTEND_STRERROR_R.
20419         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20420         macros from errno.in.h instead.
20421
20422 2011-05-19  Eric Blake  <eblake@redhat.com>
20423
20424         strerror: relax test for Solaris
20425         * tests/test-strerror.c (main): Permit Solaris behavior.
20426         * tests/test-strerror_r.c (main): Likewise.
20427
20428         strerror: enforce POSIX ruling on strerror(0)
20429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20431         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20432         * doc/posix-functions/strerror.texi (strerror): Document it.
20433         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20434         * tests/test-strerror.c (main): Strengthen test.
20435         * tests/test-strerror_r.c (main): Likewise.
20436
20437 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20438
20439         intprop-tests: port to older and more-pedantic compilers
20440         * modules/intprops-tests (Files): Add tests/macros.h.
20441         * tests/test-intprops.c: Include macros.h.
20442         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20443         it's no longer documented to expand to an integer constant expression.
20444         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20445         argument is floating point, as it's no longer documented to expand
20446         to an integer constant expression in that case.
20447         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20448         compiler bugs reported by Bruno Haible.  See
20449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20450         (U0, U1): New constants, to work around the same bugs.  Also,
20451         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20452
20453         intprops: work around C compiler bugs
20454         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20455         bug in Sun C 5.11 2010/08/13 and other compilers; see
20456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20457
20458         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20459         * doc/intprops.texi (Integer Type Determination): Fix
20460         documentation for TYPE_IS_INTEGER: it returns an constant
20461         expression, not an integer constant expression.  Fix doc for
20462         TYPE_SIGNED: it returns an integer constant expression only if its
20463         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20464         hardly worth documented that way....)
20465
20466 2011-05-18  Bruno Haible  <bruno@clisp.org>
20467
20468         strerror_r: Avoid clobbering the strerror buffer when possible.
20469         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20470         Handle gnulib defined errno values here. When strerror() returns NULL
20471         or an empty string, return EINVAL.
20472         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20473         gnulib defined errno values here.
20474         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20475
20476 2011-05-18  Eric Blake  <eblake@redhat.com>
20477
20478         fnmatch: avoid compiler warning
20479         * lib/fnmatch_loop.c (FCT): Use correct type.
20480         Reported by Matthias Bolte.
20481
20482 2011-05-13  Jim Meyering  <meyering@redhat.com>
20483
20484         maint.mk: three new prohibit_<HDR>_without_use rules
20485         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20486         (sc_prohibit_stdio-safer_without_use): Likewise.
20487         (sc_prohibit_xfreopen_without_use): Likewise.
20488
20489 2011-05-17  Jim Meyering  <meyering@redhat.com>
20490
20491         announce-gen: fail if the NEWS delta is empty
20492         If there's nothing noteworthy in NEWS, then either you forgot
20493         or you shouldn't be releasing.
20494         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20495
20496 2011-05-17  Pádraig Brady <P@draigBrady.com>
20497
20498         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20499         reserved symbols starting with double underscore from the check.
20500
20501 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         intprops: add doc
20504         * doc/intprops.texi: New file, documenting intprops.
20505         * doc/gnulib.texi (Particular Modules): Include it.
20506
20507         verify: add doc to gnulib manual and fix example
20508         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20509         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20510         (Compile-time Assertions): Fix example so it can't overflow.
20511
20512 2011-05-17  Jim Meyering  <meyering@redhat.com>
20513
20514         warnings.m4: don't usurp save_CPPFLAGS variable name
20515         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20516
20517         doc: fix typo
20518         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20519
20520 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20521             Bruno Haible  <bruno@clisp.org>
20522
20523         doc: Tweak recent change.
20524         * README (Portability guidelines): Tweak new text.
20525         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20526         Interix 6.1.
20527
20528 2011-05-16  Eric Blake  <eblake@redhat.com>
20529
20530         inttypes: avoid autoconf warning
20531         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20532         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20533
20534 2011-05-16  Sam Steingold <sds@gnu.org>
20535         and Eric Blake  <eblake@redhat.com>
20536
20537         vc-list-files: accept multiple directory operands
20538         * build-aux/vc-list-files: Iterate over all remaining operands.
20539
20540 2011-05-16  Bruno Haible  <bruno@clisp.org>
20541
20542         Fix confusion regarding deprecated modules.
20543         * modules/calloc (Status, Notice): Mark module as deprecated, not
20544         obsolete.
20545         * modules/fnmatch-posix (Status, Notice): Likewise.
20546         * modules/getdate (Status, Notice): Likewise.
20547         * modules/getopt (Status, Notice): Likewise.
20548         * modules/malloc (Status, Notice): Likewise.
20549         * modules/pipe (Status, Notice): Likewise.
20550         * modules/realloc (Status, Notice): Likewise.
20551         * modules/rename-dest-slash (Status, Notice): Likewise.
20552         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20553         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20554         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20555         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20556         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20557
20558 2011-05-16  Bruno Haible  <bruno@clisp.org>
20559
20560         doc: List the target platforms.
20561         * doc/gnulib-intro.texi (Target Platforms): New section.
20562         * doc/gnulib.texi (Introduction): Update menu.
20563         * README (Portability guidelines): Refer to the new section. Update
20564         statement about oldest supported environment. Remove rationale why
20565         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20566         unportable C89 function.
20567         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20568         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20569
20570 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20571
20572         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20573
20574 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20575
20576         intprops-tests: new module
20577         * modules/intprops-tests, tests/test-intprops.c: New files.
20578
20579         intprops: add safe, portable integer overflow checking
20580         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20581         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20582         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20583         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20584         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20585         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20586         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20587         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20588         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20589         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20590         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20591
20592 2011-05-12  James Youngman  <jay@gnu.org>
20593
20594         Add a test for glibc's Bugzilla bug #12378.
20595         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20596         doesn't allow the literal matching of a lone "[" (which is
20597         required by POSIX).
20598         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20599
20600 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20601
20602         Sync glibc change fixing Bugzilla bug #12378.
20603         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20604         beginning and fall back to matching as normal character if the
20605         string ends before the matching ']' is found.  This is what POSIX
20606         requires.
20607
20608 2011-05-13  Eric Blake  <eblake@redhat.com>
20609
20610         getcwd-lgpl: relax test for FreeBSD
20611         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20612         issue.
20613         * tests/test-getcwd-lgpl.c (main): Relax test.
20614         Reported by Matthias Bolte.
20615
20616 2011-05-11  Eric Blake  <eblake@redhat.com>
20617
20618         test-fflush: silence compiler warning
20619         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20620
20621 2011-05-11  Bruno Haible  <bruno@clisp.org>
20622
20623         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20624         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20625         * modules/canonicalize (Depends-on): Add 'nocrash'.
20626         * modules/canonicalize-lgpl (Depends-on): Likewise.
20627         * doc/posix-functions/realpath.texi: Update platforms list.
20628         Reported by Ryan Schmidt <ryandesign@macports.org>.
20629
20630 2011-05-11  Bruno Haible  <bruno@clisp.org>
20631
20632         group-member: Declare function in <unistd.h>.
20633         * lib/unistd.in.h (group_member): New declaration.
20634         * lib/group-member.h: Remove file.
20635         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20636         * tests/test-unistd-c++.cc: Check signature of group_member.
20637         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20638         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20639         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20640         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20641         HAVE_GROUP_MEMBER.
20642         * modules/group-member (Files): Remove lib/group-member.h.
20643         (Depends-on): Add unistd. Specify conditions.
20644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20645         (Include): Change to <unistd.h>.
20646         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20647         HAVE_GROUP_MEMBER.
20648         * NEWS: Mention the change.
20649         * lib/euidaccess.c: Don't include group-member.h.
20650
20651 2011-05-11  Bruno Haible  <bruno@clisp.org>
20652
20653         group-member: Document module.
20654         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20655         module.
20656
20657 2011-05-11  Bruno Haible  <bruno@clisp.org>
20658
20659         fclose: Fix mistake earlier today.
20660         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20661
20662 2011-05-11  Eric Blake  <eblake@redhat.com>
20663
20664         fclose: preserve fflush errors
20665         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20666         Reported by Jim Meyering.
20667
20668         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20669         * build-aux/bootstrap (check_versions): When no specific version
20670         is required, merely check that the app produces an exit status
20671         that indicates its existence.
20672
20673         maint.mk: drop redundant check
20674         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20675         the same but better.
20676
20677 2011-05-11  Bruno Haible  <bruno@clisp.org>
20678
20679         fclose: Fix possible link error.
20680         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20681         unregister_shadow_fd. Improve comments.
20682         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20683         Eric Blake.
20684
20685 2011-05-11  Jim Meyering  <meyering@redhat.com>
20686
20687         maint.mk: improve "can not" detection and generalize rule name
20688         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20689         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20690         Use the same technique as in sc_prohibit_doubled_word, so that
20691         we recognize "can not" also when the words are separated by a newline.
20692         Suggested by Eric Blake.
20693         (perl_filename_lineno_text_): Define.  Factored out of...
20694         (prohibit_doubled_word_): ...here.  Use the new definition.
20695         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20696         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20697         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20698
20699 2011-05-10  Eric Blake  <eblake@redhat.com>
20700
20701         fclose: avoid double close race when possible
20702         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20703         all but WINDOWS_SOCKETS.
20704
20705 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20706
20707         openat: correct new comment
20708         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20709
20710 2011-05-10  Jim Meyering  <meyering@redhat.com>
20711
20712         openat: add comments
20713         * lib/openat-proc.c (openat_proc_name): Add comments,
20714         mostly from Eric Blake.
20715
20716 2011-05-09  Eric Blake  <eblake@redhat.com>
20717
20718         openat: reduce syscalls in first probe of /proc
20719         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20720         be a directory.  Simplify the probe for .. bugs.
20721         * modules/openat (Depends-on): Drop same-inode.
20722         Reported by Bastien ROUCARIES.
20723
20724 2011-05-09  Jim Meyering  <meyering@redhat.com>
20725
20726         maint.mk: change semantics/name of tight_scope variables
20727         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20728         Rename variables to align with semantics that make them more useful.
20729
20730         maint.mk: tweak new rule's name not to impinge
20731         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20732         (sc_tight_scope): Use new rule name rather than $@-0.
20733
20734         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20735         * top/maint.mk (sc_tight_scope): New rule.
20736         (sc_tight_scope-0): New rule, ifdef'd out.
20737         (_gl_TS_dir): Default.
20738         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20739         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20740
20741 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20742
20743         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20744         Haible <bruno@clisp.org>.
20745
20746 2011-05-08  Bruno Haible  <bruno@clisp.org>
20747
20748         Comments.
20749         * m4/isnanf.m4: Add comment.
20750         * m4/isnanl.m4: Likewise.
20751
20752 2011-05-08  Bruno Haible  <bruno@clisp.org>
20753
20754         glob: Remove obsolete macro.
20755         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20756
20757 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20758
20759         intprops: Sun C 5.11 supports __typeof__
20760         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20761         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20762         which is new.
20763         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20764
20765         intprops: switch to usual gnulib indenting and naming
20766         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20767         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20768
20769         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20770
20771 2011-05-08  Jim Meyering  <meyering@redhat.com>
20772
20773         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20774         * top/maint.mk (release-prep): Use make's --no-print-directory
20775         option when generating the announcement.  This eliminates the
20776         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20777         generated announcement template.
20778
20779 2011-05-08  Bruno Haible  <bruno@clisp.org>
20780
20781         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20783         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20784
20785 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         ignore-value, verify: Omit include files from lib_SOURCES.
20788         * modules/ignore-value, modules/verify (Makefile.am):
20789         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20790         that leads Automake to duplicate use of am__objects_... variables
20791         in Makefile.in.  See
20792         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20793
20794 2011-05-07  Bruno Haible  <bruno@clisp.org>
20795
20796         fclose: Simplify autoconf macro.
20797         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20798         defined.
20799
20800 2011-05-07  Bruno Haible  <bruno@clisp.org>
20801
20802         canonicalize-lgpl: Fix autoconf macro ordering bug.
20803         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20804         gl_STDLIB_H_DEFAULTS.
20805
20806 2011-05-06  Eric Blake  <eblake@redhat.com>
20807
20808         maintainer-makefile: make sc_po_check easier to tune
20809         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20810         to probe for strings, such as an alternate location for gnulib.
20811
20812         fclose: guarantee behavior on seekable stdin
20813         * modules/fclose (Depends-on): Add fflush.
20814         * doc/posix-functions/fclose.texi (fclose): Document this.
20815         * tests/test-fclose.c (main): Make test for this unconditional.
20816
20817 2011-05-06  Bruno Haible  <bruno@clisp.org>
20818
20819         fflush, fpurge: Relicense under LGPLv2+.
20820         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20821         * modules/fpurge (License): Likewise.
20822         With permission from Eric Blake and Jim Meyering.
20823         Suggested by Eric Blake.
20824
20825 2011-05-06  Karl Berry  <karl@gnu.org>
20826
20827         * MODULES.html.sh (func_all_modules): remove exit.
20828
20829 2011-05-06  Jim Meyering  <meyering@redhat.com>
20830
20831         maint.mk: use info-gnu@ as the default only for a stable release
20832         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20833         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20834         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20835         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20836
20837 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20838
20839         assert-h: new module, which supports C1X-style static_assert
20840         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20841         * lib/verify.h: Revamp so that this can be copied into assert.h,
20842         while retaining the ability to use it standalone as before.
20843         Rename private identifiers so as not to encroach on the
20844         standard C namespace, since this is now used by assert.h.
20845         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20846         the old verify_true.
20847         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20848         the old verify_true.  Use _GL_VERIFY_TYPE.
20849         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20850         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20851         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20852         defined when this file is copied into the replacement assert.h.
20853         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20854         and _Static_assert is not built in.
20855         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20856         defined, and use the new macros mentioned above.
20857         * doc/posix-headers/assert.texi: Document this.
20858
20859 2011-05-05  Bruno Haible  <bruno@clisp.org>
20860
20861         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20863         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20864         gl_REPLACE_FCLOSE here.
20865         * modules/fflush (Depends-on): Remove fclose.
20866         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20867         combination with module 'fclose'.
20868
20869 2011-05-05  Bruno Haible  <bruno@clisp.org>
20870
20871         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20872         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20873         gl_FUNC_FFLUSH.
20874         (gl_FUNC_FFLUSH): Use it.
20875         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20877         gl_REPLACE_FSEEKO here.
20878
20879 2011-05-05  Bruno Haible  <bruno@clisp.org>
20880
20881         tzset: Relicense under LGPL.
20882         * modules/tzset (License): Change to LGPL.
20883         No agreement needed; it's a no-op.
20884
20885         strtoimax, strtoumax: Relicense under LGPL.
20886         * modules/strtoimax (License): Change to LGPL.
20887         * modules/strtoumax (License): Likewise.
20888         With permission from Jim Meyering, Paul Eggert:
20889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20891
20892         getgroups: Relicense under LGPL.
20893         * modules/getgroups (License): Change to LGPL.
20894         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20898
20899         nanosleep: Relicense under LGPL.
20900         * modules/nanosleep (License): Change to LGPL.
20901         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20902         Haible:
20903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20907
20908         futimens: Relicense under LGPL.
20909         * modules/futimens (License): Change to LGPL.
20910         With permission from Eric Blake:
20911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20912
20913         fflush: Relicense under LGPL.
20914         * modules/fflush (License): Change to LGPL.
20915         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20919
20920         tmpfile: Relicense under LGPL.
20921         * modules/tmpfile (License): Change to LGPL.
20922         With permission from Ben Pfaff:
20923         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20924
20925         isfinite: Relicense under LGPL.
20926         * modules/isfinite (License): Change to LGPL.
20927         With permission from Ben Pfaff, Bruno Haible:
20928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20930
20931         acosl..tanl: Relicense under LGPL.
20932         * modules/acosl (License): Change to LGPL.
20933         * modules/asinl (License): Likewise.
20934         * modules/atanl (License): Likewise.
20935         * modules/cosl (License): Likewise.
20936         * modules/expl (License): Likewise.
20937         * modules/logl (License): Likewise.
20938         * modules/sinl (License): Likewise.
20939         * modules/sqrtl (License): Likewise.
20940         * modules/tanl (License): Likewise.
20941         Source code originally from glibc and Paolo Bonzini. Agreements:
20942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20944
20945 2011-05-05  Bruno Haible  <bruno@clisp.org>
20946
20947         signal: Define sighandler_t.
20948         * lib/signal.in.h (sighandler_t): New type.
20949         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20950         whether sighandler_t is defined.
20951         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20952         * modules/signal (Depends-on): Add extensions.
20953         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20954         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20955         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20956
20957 2011-05-05  Eric Blake  <eblake@redhat.com>
20958
20959         maint: remove useless REPLACE_*_H macros
20960         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20961         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20962         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20963         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20964         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20965         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20966         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20967         * m4/btowc.m4: Update callers.
20968         * m4/dirfd.m4: Likewise.
20969         * m4/duplocale.m4: Likewise.
20970         * m4/fchdir.m4: Likewise.
20971         * m4/fdopendir.m4: Likewise.
20972         * m4/inet_ntop.m4: Likewise.
20973         * m4/inet_pton.m4: Likewise.
20974         * m4/ioctl.m4: Likewise.
20975         * m4/mbrlen.m4: Likewise.
20976         * m4/mbrtowc.m4: Likewise.
20977         * m4/mbsinit.m4: Likewise.
20978         * m4/mbsnrtowcs.m4: Likewise.
20979         * m4/mbsrtowcs.m4: Likewise.
20980         * m4/poll.m4: Likewise.
20981         * m4/setlocale.m4: Likewise.
20982         * m4/wcrtomb.m4: Likewise.
20983         * m4/wcsnrtombs.m4: Likewise.
20984         * m4/wcsrtombs.m4: Likewise.
20985         * m4/wctob.m4: Likewise.
20986         * m4/wcwidth.m4: Likewise.
20987         * modules/posix_spawn: Likewise.
20988         * modules/posix_spawn_file_actions_addclose: Likewise.
20989         * modules/posix_spawn_file_actions_adddup2: Likewise.
20990         * modules/posix_spawn_file_actions_addopen: Likewise.
20991         * modules/posix_spawn_file_actions_destroy: Likewise.
20992         * modules/posix_spawn_file_actions_init: Likewise.
20993         * modules/posix_spawnattr_destroy: Likewise.
20994         * modules/posix_spawnattr_getflags: Likewise.
20995         * modules/posix_spawnattr_getpgroup: Likewise.
20996         * modules/posix_spawnattr_getschedparam: Likewise.
20997         * modules/posix_spawnattr_getschedpolicy: Likewise.
20998         * modules/posix_spawnattr_getsigdefault: Likewise.
20999         * modules/posix_spawnattr_getsigmask: Likewise.
21000         * modules/posix_spawnattr_init: Likewise.
21001         * modules/posix_spawnattr_setflags: Likewise.
21002         * modules/posix_spawnattr_setpgroup: Likewise.
21003         * modules/posix_spawnattr_setschedparam: Likewise.
21004         * modules/posix_spawnattr_setschedpolicy: Likewise.
21005         * modules/posix_spawnattr_setsigdefault: Likewise.
21006         * modules/posix_spawnattr_setsigmask: Likewise.
21007         * modules/posix_spawnp: Likewise.
21008
21009 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21010
21011         Add option to do-release-commit-and-tag to specify branch.
21012         * build-aux/do-release-commit-and-tag: Add --branch.
21013
21014 2011-05-03  Bruno Haible  <bruno@clisp.org>
21015
21016         Avoid unnecessary compilation units, through conditional dependencies.
21017         * modules/accept (Depends-on): Add conditions to the dependencies.
21018         * modules/acosl (Depends-on): Likewise.
21019         * modules/argz (Depends-on): Likewise.
21020         * modules/asinl (Depends-on): Likewise.
21021         * modules/atanl (Depends-on): Likewise.
21022         * modules/atoll (Depends-on): Likewise.
21023         * modules/bind (Depends-on): Likewise.
21024         * modules/btowc (Depends-on): Likewise.
21025         * modules/canonicalize-lgpl (Depends-on): Likewise.
21026         * modules/ceil (Depends-on): Likewise.
21027         * modules/ceilf (Depends-on): Likewise.
21028         * modules/ceill (Depends-on): Likewise.
21029         * modules/chdir-long (Depends-on): Likewise.
21030         * modules/chown (Depends-on): Likewise.
21031         * modules/close (Depends-on): Likewise.
21032         * modules/connect (Depends-on): Likewise.
21033         * modules/cosl (Depends-on): Likewise.
21034         * modules/dirfd (Depends-on): Likewise.
21035         * modules/dprintf (Depends-on): Likewise.
21036         * modules/dprintf-posix (Depends-on): Likewise.
21037         * modules/error (Depends-on): Likewise.
21038         * modules/euidaccess (Depends-on): Likewise.
21039         * modules/expl (Depends-on): Likewise.
21040         * modules/faccessat (Depends-on): Likewise.
21041         * modules/fchdir (Depends-on): Likewise.
21042         * modules/fclose (Depends-on): Likewise.
21043         * modules/fcntl (Depends-on): Likewise.
21044         * modules/fdopendir (Depends-on): Likewise.
21045         * modules/fflush (Depends-on): Likewise.
21046         * modules/floor (Depends-on): Likewise.
21047         * modules/floorf (Depends-on): Likewise.
21048         * modules/floorl (Depends-on): Likewise.
21049         * modules/fnmatch (Depends-on): Likewise.
21050         * modules/fopen (Depends-on): Likewise.
21051         * modules/fprintf-posix (Depends-on): Likewise.
21052         * modules/frexp (Depends-on): Likewise.
21053         * modules/frexp-nolibm (Depends-on): Likewise.
21054         * modules/frexpl (Depends-on): Likewise.
21055         * modules/frexpl-nolibm (Depends-on): Likewise.
21056         * modules/fseek (Depends-on): Likewise.
21057         * modules/fsusage (Depends-on): Likewise.
21058         * modules/ftell (Depends-on): Likewise.
21059         * modules/ftello (Depends-on): Likewise.
21060         * modules/futimens (Depends-on): Likewise.
21061         * modules/getcwd (Depends-on): Likewise.
21062         * modules/getcwd-lgpl (Depends-on): Likewise.
21063         * modules/getdelim (Depends-on): Likewise.
21064         * modules/getdomainname (Depends-on): Likewise.
21065         * modules/getgroups (Depends-on): Likewise.
21066         * modules/gethostname (Depends-on): Likewise.
21067         * modules/getline (Depends-on): Likewise.
21068         * modules/getlogin_r (Depends-on): Likewise.
21069         * modules/getopt-posix (Depends-on): Likewise.
21070         * modules/getpeername (Depends-on): Likewise.
21071         * modules/getsockname (Depends-on): Likewise.
21072         * modules/getsockopt (Depends-on): Likewise.
21073         * modules/getsubopt (Depends-on): Likewise.
21074         * modules/getusershell (Depends-on): Likewise.
21075         * modules/glob (Depends-on): Likewise.
21076         * modules/grantpt (Depends-on): Likewise.
21077         * modules/iconv_open (Depends-on): Likewise.
21078         * modules/iconv_open-utf (Depends-on): Likewise.
21079         * modules/inet_ntop (Depends-on): Likewise.
21080         * modules/inet_pton (Depends-on): Likewise.
21081         * modules/ioctl (Depends-on): Likewise.
21082         * modules/isapipe (Depends-on): Likewise.
21083         * modules/isfinite (Depends-on): Likewise.
21084         * modules/isinf (Depends-on): Likewise.
21085         * modules/lchown (Depends-on): Likewise.
21086         * modules/ldexpl (Depends-on): Likewise.
21087         * modules/link (Depends-on): Likewise.
21088         * modules/linkat (Depends-on): Likewise.
21089         * modules/listen (Depends-on): Likewise.
21090         * modules/logl (Depends-on): Likewise.
21091         * modules/lstat (Depends-on): Likewise.
21092         * modules/mbrlen (Depends-on): Likewise.
21093         * modules/mbrtowc (Depends-on): Likewise.
21094         * modules/mbsinit (Depends-on): Likewise.
21095         * modules/mbsnrtowcs (Depends-on): Likewise.
21096         * modules/mbsrtowcs (Depends-on): Likewise.
21097         * modules/mbtowc (Depends-on): Likewise.
21098         * modules/memcmp (Depends-on): Likewise.
21099         * modules/mkdir (Depends-on): Likewise.
21100         * modules/mkdtemp (Depends-on): Likewise.
21101         * modules/mkfifo (Depends-on): Likewise.
21102         * modules/mkfifoat (Depends-on): Likewise.
21103         * modules/mknod (Depends-on): Likewise.
21104         * modules/mkostemp (Depends-on): Likewise.
21105         * modules/mkostemps (Depends-on): Likewise.
21106         * modules/mkstemp (Depends-on): Likewise.
21107         * modules/mkstemps (Depends-on): Likewise.
21108         * modules/mktime (Depends-on): Likewise.
21109         * modules/nanosleep (Depends-on): Likewise.
21110         * modules/open (Depends-on): Likewise.
21111         * modules/openat (Depends-on): Likewise.
21112         * modules/perror (Depends-on): Likewise.
21113         * modules/poll (Depends-on): Likewise.
21114         * modules/popen (Depends-on): Likewise.
21115         * modules/posix_spawn (Depends-on): Likewise.
21116         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21117         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21118         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21119         * modules/posix_spawnp (Depends-on): Likewise.
21120         * modules/pread (Depends-on): Likewise.
21121         * modules/printf-posix (Depends-on): Likewise.
21122         * modules/ptsname (Depends-on): Likewise.
21123         * modules/putenv (Depends-on): Likewise.
21124         * modules/pwrite (Depends-on): Likewise.
21125         * modules/readline (Depends-on): Likewise.
21126         * modules/readlink (Depends-on): Likewise.
21127         * modules/readlinkat (Depends-on): Likewise.
21128         * modules/recv (Depends-on): Likewise.
21129         * modules/recvfrom (Depends-on): Likewise.
21130         * modules/regex (Depends-on): Likewise.
21131         * modules/remove (Depends-on): Likewise.
21132         * modules/rename (Depends-on): Likewise.
21133         * modules/renameat (Depends-on): Likewise.
21134         * modules/rmdir (Depends-on): Likewise.
21135         * modules/round (Depends-on): Likewise.
21136         * modules/roundf (Depends-on): Likewise.
21137         * modules/roundl (Depends-on): Likewise.
21138         * modules/rpmatch (Depends-on): Likewise.
21139         * modules/select (Depends-on): Likewise.
21140         * modules/send (Depends-on): Likewise.
21141         * modules/sendto (Depends-on): Likewise.
21142         * modules/setenv (Depends-on): Likewise.
21143         * modules/setlocale (Depends-on): Likewise.
21144         * modules/setsockopt (Depends-on): Likewise.
21145         * modules/shutdown (Depends-on): Likewise.
21146         * modules/sigaction (Depends-on): Likewise.
21147         * modules/signbit (Depends-on): Likewise.
21148         * modules/sigprocmask (Depends-on): Likewise.
21149         * modules/sinl (Depends-on): Likewise.
21150         * modules/sleep (Depends-on): Likewise.
21151         * modules/snprintf (Depends-on): Likewise.
21152         * modules/snprintf-posix (Depends-on): Likewise.
21153         * modules/socket (Depends-on): Likewise.
21154         * modules/sprintf-posix (Depends-on): Likewise.
21155         * modules/sqrtl (Depends-on): Likewise.
21156         * modules/stat (Depends-on): Likewise.
21157         * modules/strchrnul (Depends-on): Likewise.
21158         * modules/strdup-posix (Depends-on): Likewise.
21159         * modules/strerror (Depends-on): Likewise.
21160         * modules/strerror_r-posix (Depends-on): Likewise.
21161         * modules/strndup (Depends-on): Likewise.
21162         * modules/strnlen (Depends-on): Likewise.
21163         * modules/strptime (Depends-on): Likewise.
21164         * modules/strsep (Depends-on): Likewise.
21165         * modules/strsignal (Depends-on): Likewise.
21166         * modules/strstr-simple (Depends-on): Likewise.
21167         * modules/strtod (Depends-on): Likewise.
21168         * modules/strtoimax (Depends-on): Likewise.
21169         * modules/strtok_r (Depends-on): Likewise.
21170         * modules/strtoumax (Depends-on): Likewise.
21171         * modules/symlink (Depends-on): Likewise.
21172         * modules/symlinkat (Depends-on): Likewise.
21173         * modules/tanl (Depends-on): Likewise.
21174         * modules/tcgetsid (Depends-on): Likewise.
21175         * modules/tmpfile (Depends-on): Likewise.
21176         * modules/trunc (Depends-on): Likewise.
21177         * modules/truncf (Depends-on): Likewise.
21178         * modules/truncl (Depends-on): Likewise.
21179         * modules/uname (Depends-on): Likewise.
21180         * modules/unlink (Depends-on): Likewise.
21181         * modules/unlockpt (Depends-on): Likewise.
21182         * modules/unsetenv (Depends-on): Likewise.
21183         * modules/usleep (Depends-on): Likewise.
21184         * modules/utimensat (Depends-on): Likewise.
21185         * modules/vasprintf (Depends-on): Likewise.
21186         * modules/vdprintf (Depends-on): Likewise.
21187         * modules/vdprintf-posix (Depends-on): Likewise.
21188         * modules/vfprintf-posix (Depends-on): Likewise.
21189         * modules/vprintf-posix (Depends-on): Likewise.
21190         * modules/vsnprintf (Depends-on): Likewise.
21191         * modules/vsnprintf-posix (Depends-on): Likewise.
21192         * modules/vsprintf-posix (Depends-on): Likewise.
21193         * modules/wcrtomb (Depends-on): Likewise.
21194         * modules/wcscasecmp (Depends-on): Likewise.
21195         * modules/wcscspn (Depends-on): Likewise.
21196         * modules/wcsdup (Depends-on): Likewise.
21197         * modules/wcsncasecmp (Depends-on): Likewise.
21198         * modules/wcsnrtombs (Depends-on): Likewise.
21199         * modules/wcspbrk (Depends-on): Likewise.
21200         * modules/wcsrtombs (Depends-on): Likewise.
21201         * modules/wcsspn (Depends-on): Likewise.
21202         * modules/wcsstr (Depends-on): Likewise.
21203         * modules/wcstok (Depends-on): Likewise.
21204         * modules/wcswidth (Depends-on): Likewise.
21205         * modules/wctob (Depends-on): Likewise.
21206         * modules/wctomb (Depends-on): Likewise.
21207         * modules/wctype (Depends-on): Likewise.
21208         * modules/wcwidth (Depends-on): Likewise.
21209         * modules/write (Depends-on): Likewise.
21210
21211 2011-05-03  Bruno Haible  <bruno@clisp.org>
21212
21213         Support for conditional dependencies.
21214         * doc/gnulib.texi (Module description): Document the syntax of
21215         conditional dependencies.
21216         * gnulib-tool: New option --conditional-dependencies.
21217         (func_usage): Document it.
21218         (cond_dependencies): New variable.
21219         (func_get_automake_snippet_conditional,
21220         func_get_automake_snippet_unconditional): New functions, extracted from
21221         func_get_automake_snippet.
21222         (func_get_automake_snippet): Use them.
21223         (sed_first_32_chars): New variable.
21224         (func_module_shellfunc_name): New function.
21225         (func_module_shellvar_name): New function.
21226         (func_module_conditional_name): New function.
21227         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21228         func_cond_module_condition): New functions.
21229         (func_modules_transitive_closure): Add support for conditional
21230         dependencies.
21231         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21232         conditional automake snippet in an automake conditional.
21233         (func_emit_autoconf_snippets): Emit shell functions that contain the
21234         code for conditional modules.
21235         (func_import, func_create_testdir): Update specification.
21236
21237 2011-05-03  Eric Blake  <eblake@redhat.com>
21238
21239         test-getaddrinfo: report error information
21240         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21241
21242 2011-05-03  Jim Meyering  <meyering@redhat.com>
21243
21244         bootstrap: avoid build failure when $GZIP is set
21245         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21246         program name.  If defined at all, it is supposed to list gzip options.
21247         Reported by Alan Curry in http://debbugs.gnu.org/8609
21248
21249 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21250
21251         readme-release: new module with release instructions
21252         * modules/readme-release: New module.
21253         * top/README-release: New file, from coreutils, grep, diffutils.
21254         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21255
21256 2011-05-02  Eric Blake  <eblake@redhat.com>
21257
21258         fflush: also replace fclose when fixing fflush
21259         * modules/fflush (Depends-on): Add fclose.
21260         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21261         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21262         memstreams with no backing fd.
21263         * doc/posix-functions/fclose.texi (fclose): Document the use of
21264         fflush module to fix the bug.
21265         * tests/test-fclose.c (main): Relax test when fclose is used in
21266         isolation.
21267
21268         fclose: add some tests
21269         * modules/fclose-tests: New test module.
21270         * tests/test-fclose.c: New file.
21271         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21272
21273         fclose: reduced dependencies
21274         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21275         simpler lseek.
21276         * lib/fclose.c (rpl_fclose): Likewise.
21277         Reported by Simon Josefsson.
21278
21279         exit: drop remaining clients
21280         * modules/argmatch (Depends-on): Replace exit with stdlib.
21281         * modules/copy-file (Depends-on): Likewise.
21282         * modules/execute (Depends-on): Likewise.
21283         * modules/exitfail (Depends-on): Likewise.
21284         * modules/obstack (Depends-on): Likewise.
21285         * modules/pagealign_alloc (Depends-on): Likewise.
21286         * modules/pipe-filter-gi (Depends-on): Likewise.
21287         * modules/pipe-filter-ii (Depends-on): Likewise.
21288         * modules/savewd (Depends-on): Likewise.
21289         * modules/spawn-pipe (Depends-on): Likewise.
21290         * modules/wait-process (Depends-on): Likewise.
21291         * modules/xsetenv (Depends-on): Likewise.
21292         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21293         * modules/git-merge-changelog (Depends-on): Likewise.
21294         * modules/long-options (Depends-on): Likewise.
21295         * modules/pt_chown (Depends-on): Likewise.
21296         * modules/sysexits (Depends-on): Likewise.
21297
21298         freading: relax license from LGPLv3+ to LGPLv2+
21299         * modules/freading (License): Relax LGPL version.
21300
21301 2011-05-02  Bruno Haible  <bruno@clisp.org>
21302
21303         fchdir: Remove unused dependencies.
21304         * modules/fchdir (Depends-on): Remove include_next.
21305
21306 2011-05-02  Bruno Haible  <bruno@clisp.org>
21307
21308         gnulib-tool: Refactor.
21309         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21310         from func_emit_autoconf_snippets.
21311         (func_emit_autoconf_snippets): Use it.
21312
21313 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21314
21315         * NEWS: Document removal of 'exit'.
21316         * modules/exit: Remove file.
21317
21318 2011-05-01  Bruno Haible  <bruno@clisp.org>
21319
21320         Update DEPENDENCIES.
21321         * DEPENDENCIES (gettext): Recommend the newest release.
21322         Reported by Simon Josefsson.
21323
21324 2011-05-01  Bruno Haible  <bruno@clisp.org>
21325
21326         gnulib-tool: Reduce code duplication.
21327         * gnulib-tool (func_emit_autoconf_snippets): New function.
21328         (func_import, func_create_testdir): Use it.
21329
21330 2011-04-30  Eric Blake  <eblake@redhat.com>
21331
21332         fclose: don't fail on non-seekable input stream
21333         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21334         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21335         since fflush is allowed to fail in that case.
21336
21337 2011-04-30  Bruno Haible  <bruno@clisp.org>
21338
21339         dup3: cleanup
21340         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21341
21342 2011-04-30  Bruno Haible  <bruno@clisp.org>
21343
21344         netdb: Make it work in C++ mode.
21345         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21346         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21347         module.
21348         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21349         gl_MODULE_INDICATOR_FOR_TESTS.
21350         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21351         * modules/netdb-c++-tests: New file.
21352         * tests/test-netdb-c++.cc: New file.
21353
21354 2011-04-30  Bruno Haible  <bruno@clisp.org>
21355
21356         New modules 'vfscanf', 'vscanf'.
21357         * modules/vfscanf: New file.
21358         * modules/vscanf: New file.
21359         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21360         here.
21361         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21362         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21363
21364 2011-04-30  Bruno Haible  <bruno@clisp.org>
21365
21366         passfd: Add comments.
21367         * lib/passfd.c: Add comments about platforms.
21368
21369 2011-04-30  Bruno Haible  <bruno@clisp.org>
21370
21371         sys_uio: Make <sys/uio.h> self-contained.
21372         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21373         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21374
21375 2011-04-30  Bruno Haible  <bruno@clisp.org>
21376
21377         sys_socket: Ensure 'struct iovec' definition.
21378         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21379         <sys/socket.h>.
21380         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21381
21382 2011-04-30  Bruno Haible  <bruno@clisp.org>
21383
21384         sys_uio: Protect definition of 'struct iovec'.
21385         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21386         it as a C struct.
21387
21388 2011-04-30  Bruno Haible  <bruno@clisp.org>
21389
21390         manywarnings: fix indentation
21391         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21392
21393 2011-04-30  Pádraig Brady <P@draigBrady.com>
21394
21395         manywarnings: add -Wno-missing-field-initializers if needed.
21396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21397         option if it's needed to allow initialization with { 0, }
21398
21399 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21400
21401         announce-gen: cosmetic improvement
21402         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21403
21404 2011-04-29  Jim Meyering  <meyering@redhat.com>
21405
21406         vc-list-files: indent with spaces, not TABs
21407         * build-aux/vc-list-files: Convert leading TABs to spaces,
21408         to match the style of most other files in gnulib.
21409
21410         announce-gen: indent with spaces, not TABs
21411         * build-aux/announce-gen: Convert all TABs to spaces, to match
21412         the style of most other files in gnulib.
21413
21414 2011-04-29  Eric Blake  <eblake@redhat.com>
21415
21416         quotearg: avoid uninitialized variable use
21417         * lib/quotearg.c (quoting_options_from_style): Initialize
21418         remaining fields, and ensure that custom styles are only used via
21419         quoting_options rather than quoting_style.
21420
21421 2011-04-29  Jim Meyering  <meyering@redhat.com>
21422
21423         maint.mk: remove unused VC-tag variable
21424         * top/maint.mk (VC-tag): Remove unused variable.
21425
21426 2011-04-29  Bruno Haible  <bruno@clisp.org>
21427
21428         netdb: fix gai_strerror replacements
21429         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21430         * modules/netdb: Substitute it.
21431
21432 2011-04-29  Jim Meyering  <meyering@redhat.com>
21433
21434         test-getcwd.c: avoid new set-but-not-used warning
21435         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21436         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21437         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21438         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21439
21440         test-hash.c: avoid a new shadowing warning
21441         * tests/test-hash.c (main): Don't shadow "dup".
21442
21443 2011-04-28  Eric Blake  <eblake@redhat.com>
21444
21445         getaddrinfo: fix gai_strerror signature
21446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21447         and work around mingw with UNICODE defined.
21448         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21449         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21450         * modules/netdb (Makefile.am): Substitute it.
21451         * lib/netdb.in.h (gai_strerror): Declare replacement.
21452         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21453         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21454         the fix.
21455
21456         getsockopt: avoid compiler warning
21457         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21458         Reported by Matthias Bolte.
21459
21460         tests: drop unused link dependency
21461         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21462         * modules/dirent-safer-tests (Makefile.am): Likewise.
21463         * modules/fdopendir-tests (Makefile.am): Likewise.
21464         * modules/mkfifoat-tests (Makefile.am): Likewise.
21465         * modules/openat-safer-tests (Makefile.am): Likewise.
21466         * modules/openat-tests (Makefile.am): Likewise.
21467         * modules/readlinkat-tests (Makefile.am): Likewise.
21468         * modules/symlinkat-tests (Makefile.am): Likewise.
21469         * modules/linkat-tests (Makefile.am): Likewise.
21470         (Depends-on): Switch to filenamecat-lgpl.
21471         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21472         LIBINTL.
21473         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21474         * tests/test-linkat.c (main): Don't require xalloc.
21475
21476         hash, mgetgroups: drop xalloc dependency
21477         * lib/hash.c (includes): Adjust includes.
21478         * lib/mgetgroups.c (includes): Likewise.
21479         (xgetgroups): Move...
21480         * lib/xgetgroups.c: ...to new file.
21481         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21482         * modules/xgetgroups: New file, split from...
21483         * modules/mgetgroups: ...here.
21484         (Depends-on): Add xalloc-oversized.
21485         * modules/hash (Depends-on): Likewise.
21486         * modules/hash-tests (Depends-on): Drop xalloc.
21487         (test_hash_LDADD): Drop unused library.
21488         * tests/test-hash.c (main): Break xalloc dependency.
21489         (includes): Drop unused include.
21490
21491         xalloc-oversized: new module
21492         * modules/xalloc-oversized: New module.
21493         * modules/xalloc (Depends-on): Add it.
21494         * lib/xalloc.h (xalloc_oversized): Move...
21495         * lib/xalloc-oversized.h: ...into new file.
21496
21497         utimecmp: drop dependency on xmalloc
21498         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21499         due to memory pressure.
21500         * modules/utimecmp (Depends-on): Drop xalloc.
21501
21502 2011-04-27  Eric Blake  <eblake@redhat.com>
21503
21504         getcwd: fix mingw bugs
21505         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21506         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21507         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21508
21509 2011-04-27  Bruno Haible  <bruno@clisp.org>
21510
21511         mkstemps: Ensure declaration on MacOS X 10.5.
21512         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21513         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21514         MacOS X.
21515
21516 2011-04-27  Bruno Haible  <bruno@clisp.org>
21517
21518         mkstemp: More documentation.
21519         * doc/posix-functions/mkstemp.texi: Document header file problem on
21520         MacOS X.
21521
21522 2011-04-27  Bruno Haible  <bruno@clisp.org>
21523
21524         mkstemp: Tweak configure message when cross-compiling.
21525         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21526         result as a guess.
21527
21528 2011-04-27  Bruno Haible  <bruno@clisp.org>
21529
21530         clean-temp: Clarify what it does.
21531         * lib/clean-temp.h: Add more comments.
21532         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21533         module.
21534         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21535         * doc/glibc-functions/mkstemps.texi: Likewise.
21536         * doc/glibc-functions/mkostemps.texi: Likewise.
21537
21538 2011-04-27  Eric Blake  <eblake@redhat.com>
21539
21540         fchdir: avoid extra chdir and fix test
21541         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21542         getcwd-lgpl.
21543         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21544         have to be canonical.
21545         (canonicalize_file_name): Drop unused macro.
21546         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21547
21548         filenamecat-lgpl: fix licence
21549         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21550         when it was first created.
21551
21552         linkat, renameat: add missing dependency
21553         * modules/linkat (Depends-on): Require getcwd-lgpl.
21554         * modules/renameat (Depends-on): Likewise.
21555
21556         tests: reduce dependencies
21557         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21558         * tests/test-renameat.c (main): Likewise.
21559         * modules/linkat-tests (Depends-on): Relax dependency.
21560         * modules/renameat-tests (Depends-on): Likewise.
21561         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21562         dependency explicit.
21563
21564         save-cwd: reduce default dependency
21565         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21566         * lib/save-cwd.c: Update comments.
21567         * NEWS: Document the semantic change.
21568
21569         getcwd: enhance tests
21570         * tests/test-getcwd-lgpl.c: New file, taken from...
21571         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21572         repeat long path stress tests from m4 probe.
21573         * modules/getcwd-lgpl-tests: New module.
21574         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21575         * m4/getcwd-abort-bug.m4: Update comment.
21576         * m4/getcwd-path-max.m4: Likewise.
21577
21578         getcwd-lgpl: new module
21579         * modules/getcwd-lgpl: New module.
21580         * lib/getcwd-lgpl.c: New file.
21581         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21582         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21583         * modules/getcwd (configure.ac): Set C witness.
21584         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21585
21586         getcwd: tweak comments
21587         * m4/getcwd-abort-bug.m4: Fix comments.
21588         * m4/getcwd-path-max.m4: Likewise.
21589         * m4/getcwd.m4: Likewise.
21590
21591 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21592         and Eric Blake  <eblake@redhat.com>
21593
21594         mkstemp: replace if system version uses wrong permissions
21595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21596         read/write mode bits set in file created by mkstemp.
21597         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21598
21599 2011-04-27  Eric Blake  <eblake@redhat.com>
21600
21601         passfd: avoid compiler warning
21602         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21603         Reported by Laine Stump.
21604
21605 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21606
21607         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21608         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21609
21610 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21611         and Eric Blake  <eblake@redhat.com>
21612
21613         mkstemp: mention clean-temp module
21614         * lib/mkstemp.c: Add comment.
21615         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21616
21617 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21618
21619         inttypes: also provide default values for 32-bit tests
21620         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21621         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21622
21623 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21624
21625         strtoumax: remove dependency on strtoimax
21626         This is like the strtoull change of yesterday.
21627         * modules/strtoumax (Files): Add lib/strtoimax.c.
21628         (Depends-on): Remove strtoimax and add verify.
21629
21630         inttypes-incomplete: new module
21631         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21632         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21633         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21634         of gl_INTTYPES_H.
21635         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21636         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21637         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21638         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21639         * modules/strtoumax, modules/xstrtol (Depends-on):
21640         Depend on inttypes-incomplete, not inttypes.
21641         * modules/inttypes-incomplete: New module, containing the contents
21642         of the old modules/inttypes module, except that the Files: section
21643         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21644         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21645         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21646         (Depends-on): Depend only on inttypes-incomplete.
21647         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21648
21649         inttypes: omit now-redundant strtoimax and strtoumax work
21650         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21651         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21652
21653         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21654         This supports apps that need pointers to strtoimax and strtoumax,
21655         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21656         nonexistent functions.  See
21657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21658         et seq.
21659         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21660         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21661         a macro.
21662         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21663
21664 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21665
21666         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21667
21668 2011-04-25  Bruno Haible  <bruno@clisp.org>
21669
21670         strtol, strtoul: Mark modules as obsolete.
21671         * modules/strtol (Status, Notice): New sections.
21672         * modules/strtoul (Status, Notice): New sections.
21673
21674 2011-04-25  Bruno Haible  <bruno@clisp.org>
21675
21676         strtod: Remove check for strtod, unless supporting old platforms.
21677         * modules/strtod-obsolete: New file.
21678         * m4/strtod-obsolete.m4: New file.
21679         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21680         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21681         * modules/strtod (Depends-on): Add strtod-obsolete.
21682         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21683
21684 2011-04-25  Bruno Haible  <bruno@clisp.org>
21685
21686         strcase: Make module obsolete.
21687         * modules/strcase (Status, Notice): New sections.
21688
21689 2011-04-25  Bruno Haible  <bruno@clisp.org>
21690
21691         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21692         * modules/dup2-obsolete: New file.
21693         * m4/dup2-obsolete.m4: New file.
21694         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21695         gl_FUNC_DUP2_OBSOLETE is not also defined.
21696         * modules/dup2 (Depends-on): Add dup2-obsolete.
21697         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21698
21699 2011-04-25  Bruno Haible  <bruno@clisp.org>
21700
21701         strnlen: Avoid memchr related link error on old obsolete platforms.
21702         * modules/memchr-obsolete: New file.
21703         * m4/memchr-obsolete.m4: New file.
21704         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21705         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21706         * modules/memchr (Depends-on): Add memchr-obsolete.
21707         * modules/strnlen (Depends-on): Likewise.
21708         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21709
21710 2011-04-25  Jim Meyering  <meyering@redhat.com>
21711
21712         maint.mk: makefile_at_at_check extend and clean up
21713         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21714         in addition to */Makefile.am.
21715         Exempt legitimate uses of @VAR@ notation, e.g.,
21716         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21717         Remove obsolete coreutils-specific comment.
21718         Prompted by discussion here:
21719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21720
21721 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21722
21723         strtoul: remove dependency on strtol
21724         This is so that 'configure' need not check for strtol merely because
21725         the application needs strtoul.
21726         * modules/strtoul (Files): Add lib/strtol.c.
21727         (Depends-on): Remove strtol.
21728
21729         strtoull: remove dependency on strtoul
21730         This is like the strtoll change.
21731         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21732         (Depends-on): Remove strtoul.
21733
21734         strtoll: remove dependency on strtol
21735         This is so that 'configure' need not check for strtol merely because
21736         the application needs strtoll.
21737         * modules/strtoll (Files): Add lib/strtol.c.
21738         (Depends-on): Remove strtol.
21739
21740 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21741
21742         inttypes: Move some configure check to module 'imaxdiv'.
21743         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21744         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21745         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21746
21747 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21748
21749         inttypes: Move some configure check to module 'imaxabs'.
21750         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21751         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21752         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21753
21754 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21755
21756         inttypes: Remove configure tests that are not needed since 2009-12-31.
21757         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21758         gl_cv_header_working_inttypes_h.
21759
21760 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21761
21762         * modules/strnlen (Depends-on): Remove memchr.
21763         The strnlen implementation doesn't need the memchr module's fixes; see
21764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21765
21766         strtol: remove dependency on wchar
21767         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21768         * modules/strtol (Depends-on): Remove wchar.
21769
21770 2011-04-21  Eric Blake  <eblake@redhat.com>
21771
21772         passfd: fix test regression on Linux
21773         * modules/passfd-tests (configure.ac): Correct socketpair check.
21774
21775         passfd: speed up configure and drop unused code
21776         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21777         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21778         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21779         Instead of probing at configure for unix_scm_rights_bsd44_way,
21780         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21781         check to a struct member probe.
21782         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21783         (sendfd, recvfd): Update preprocessor checks.
21784         * modules/passfd (Files): Reflect rename, and drop unused file.
21785         (Depends-on): Drop unused dependency.
21786
21787         passfd: allow compilation on mingw
21788         * modules/sys_socket (Depends-on): Add sys_uio.
21789         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21790         iovec and a minimal struct msghdr.
21791         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21792         * tests/test-sys_socket.c (main): Enhance test.
21793         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21794         guaranteed to provide what we need.
21795         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21796         * modules/passfd-tests (Depends-on): Add sys_wait.
21797         * tests/test-passfd.c (main): Skip test on mingw, for now.
21798         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21799         partial 'struct msghdr' implementation.
21800
21801         sys_uio: new module
21802         * modules/sys_uio: New module.
21803         * modules/sys_uio-tests: Likewise.
21804         * lib/sys_uio.in.h: New file.
21805         * m4/sys_uio_h.m4: Likewise.
21806         * tests/test-sys_uio.c: Likewise.
21807         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21808         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21809
21810 2011-04-20  Jim Meyering  <meyering@redhat.com>
21811
21812         useless-if-before-free: avoid false-positive
21813         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21814         disjunct so that it too requires a terminating ";".  Without that,
21815         this script would identify as useless one statement from gcc that
21816         was not:
21817           if (aligned_ptr)
21818             free (((void **) aligned_ptr) [-1]);
21819
21820 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21821
21822         doc: update users.txt.
21823         * users.txt: Add barcode.
21824
21825 2011-04-19  Bruno Haible  <bruno@clisp.org>
21826
21827         ioctl: Remove link dependency on native Windows.
21828         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21829         (gl_close_fn, gl_ioctl_fn): New types.
21830         (struct fd_hook): Renamed from struct close_hook. Change type of
21831         private_close_fn field. Add private_ioctl_fn field.
21832         (close_hook_fn): Add parameter for primary close method.
21833         (execute_close_hooks, execute_all_close_hooks): Likewise.
21834         (ioctl_hook_fn): New type.
21835         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21836         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21837         argument.
21838         (unregister_fd_hook): Renamed from unregister_close_hook.
21839         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21840         Don't include <unistd.h>.
21841         (close): Remove undef.
21842         (anchor): Update.
21843         (execute_close_hooks): Add argument for primary close method.
21844         (execute_all_close_hooks): Likewise.
21845         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21846         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21847         argument. Allow each argument to be NULL.
21848         (unregister_fd_hook): Renamed from unregister_close_hook.
21849         * lib/close.c (rpl_close): Pass 'close' function pointer to
21850         execute_all_close_hooks.
21851         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21852         (primary_ioctl): New function.
21853         (ioctl): Don't call ioctlsocket here. Instead, call
21854         execute_all_ioctl_hooks.
21855         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21856         close method.
21857         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21858         (fd_sockets_hook): Renamed from close_sockets_hook.
21859         (gl_sockets_startup, gl_sockets_cleanup): Update.
21860         * modules/fd-hook: Renamed from modules/close-hook. Update.
21861         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21862         * modules/sockets (Depends-on): Likewise.
21863         * modules/ioctl (Depends-on): Add fd-hook.
21864         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21865         GNULIB_SOCKET.
21866
21867 2011-04-19  Bruno Haible  <bruno@clisp.org>
21868
21869         Move the support of O_NONBLOCK in open() to the 'open' module.
21870         * modules/nonblocking (Depends-on): Remove 'open'.
21871         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21872         gl_cv_have_open_O_NONBLOCK.
21873         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21874         O_NONBLOCK support.
21875         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21876
21877 2011-04-17  Bruno Haible  <bruno@clisp.org>
21878
21879         pipe2: Simplify code.
21880         * lib/pipe2.c (pipe2): Reduce code duplication.
21881
21882 2011-04-17  Bruno Haible  <bruno@clisp.org>
21883
21884         nonblocking: Add comment.
21885         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21886
21887 2011-04-17  Bruno Haible  <bruno@clisp.org>
21888
21889         nonblocking: Add tests for sockets.
21890         * tests/test-nonblocking-socket.sh: New file.
21891         * tests/test-nonblocking-socket-main.c: New file.
21892         * tests/test-nonblocking-socket-child.c: New file.
21893         * tests/test-nonblocking-socket.h: New file.
21894         * tests/socket-server.h: New file.
21895         * tests/socket-client.h: New file.
21896         * modules/nonblocking-socket-tests: New file.
21897         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21898
21899 2011-04-17  Bruno Haible  <bruno@clisp.org>
21900
21901         nonblocking: Add tests for pipes.
21902         * tests/test-nonblocking-pipe.sh: New file.
21903         * tests/test-nonblocking-pipe-main.c: New file.
21904         * tests/test-nonblocking-pipe-child.c: New file.
21905         * tests/test-nonblocking-pipe.h: New file.
21906         * tests/test-nonblocking-writer.h: New file.
21907         * tests/test-nonblocking-reader.h: New file.
21908         * tests/test-nonblocking-misc.h: New file.
21909         * modules/nonblocking-pipe-tests: New file.
21910         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21911
21912 2011-04-16  Bruno Haible  <bruno@clisp.org>
21913
21914         gettext: Clarify the needed programmer actions.
21915         * modules/gettext (Notice): New field.
21916         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21917
21918 2011-04-16  Bruno Haible  <bruno@clisp.org>
21919
21920         strchrnul: Tweak last commit.
21921         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21922         bug.
21923         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21924         as in _GL_FUNCDECL_SYS.
21925         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21926         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21927
21928 2011-04-15  Eric Blake  <eblake@redhat.com>
21929
21930         strchrnul: work around cygwin bug
21931         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21934         * modules/string (Makefile.am): Substitute it.
21935         * lib/string.in.h (strchrnul): Use it.
21936
21937 2011-04-15  Bruno Haible  <bruno@clisp.org>
21938
21939         Don't require lib/stdio-write.c when only module 'stdio' is used.
21940         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21941         invocation.
21942         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21943
21944 2011-04-14  Bruno Haible  <bruno@clisp.org>
21945
21946         Support non-blocking pipe I/O in read() on native Windows.
21947         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21948         (read): New declaration.
21949         * lib/read.c: New file.
21950         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21951         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21952         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21953         vscanf): New declarations.
21954         * lib/stdio-read.c: New file.
21955         * m4/read.m4: New file.
21956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21957         REPLACE_READ.
21958         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21959         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21960         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21961         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21962         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21963         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21964         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21965         * modules/read: New file.
21966         * modules/nonblocking (Files): Add lib/stdio-read.c.
21967         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21968         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21969         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21970         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21971         * modules/pread (Depends-on): Add read.
21972         * modules/safe-read (Depends-on): Likewise.
21973         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21974         gets, scanf, vfscanf, vscanf): Verify signatures.
21975         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21976         problem with non-blocking pipes.
21977         * doc/posix-functions/fgetc.texi: Likewise.
21978         * doc/posix-functions/fgets.texi: Likewise.
21979         * doc/posix-functions/fread.texi: Likewise.
21980         * doc/posix-functions/fscanf.texi: Likewise.
21981         * doc/posix-functions/getc.texi: Likewise.
21982         * doc/posix-functions/getchar.texi: Likewise.
21983         * doc/posix-functions/gets.texi: Likewise.
21984         * doc/posix-functions/scanf.texi: Likewise.
21985         * doc/posix-functions/vfscanf.texi: Likewise.
21986         * doc/posix-functions/vscanf.texi: Likewise.
21987
21988 2011-04-14  Bruno Haible  <bruno@clisp.org>
21989
21990         Support non-blocking pipe I/O in write() on native Windows.
21991         * lib/write.c (rpl_write): Split a write request that failed merely
21992         because the byte count was larger than the pipe buffer's size.
21993         * doc/posix-functions/write.texi: Mention the problem with large byte
21994         counts.
21995
21996 2011-04-14  Bruno Haible  <bruno@clisp.org>
21997
21998         wchar: Ensure that wchar_t gets defined on uClibc.
21999         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22000         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22001
22002 2011-04-13  Bruno Haible  <bruno@clisp.org>
22003
22004         safe-write, full-read: Avoid unnecessary compilation units.
22005         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22006         (Depends-on): Remove safe-read. Add ssize_t.
22007         * modules/full-read (Files): Add lib/full-write.c.
22008         (Depends-on): Add full-write.
22009
22010 2011-04-13  Bruno Haible  <bruno@clisp.org>
22011
22012         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22013         * modules/pwrite (Depends-on): Add 'write'.
22014
22015 2011-04-13  Bruno Haible  <bruno@clisp.org>
22016
22017         Support non-blocking pipe I/O in write() on native Windows.
22018         * lib/unistd.in.h (write): Enable replacement also if
22019         GNULIB_UNISTD_H_NONBLOCKING is 1.
22020         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22021         (rpl_write): When failing to write on a non-blocking pipe, change
22022         errno from ENOSPC to EAGAIN.
22023         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22024         putchar, puts, vfprintf, vprintf): Enable replacement also if
22025         GNULIB_STDIO_H_NONBLOCKING is 1.
22026         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22027         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22028         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22029         CALL_WITH_SIGPIPE_EMULATION.
22030         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22031         * m4/nonblocking.m4: New file.
22032         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22033         for non-blocking I/O support.
22034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22035         GNULIB_UNISTD_H_NONBLOCKING.
22036         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22037         required for non-blocking I/O support.
22038         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22039         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22040         lib/stdio-write.c, m4/asm-underscore.m4.
22041         (Depends-on): Add stdio, unistd.
22042         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22043         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22044         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22045         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22046         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22047         problem with non-blocking pipes.
22048         * doc/posix-functions/fputc.texi: Likewise.
22049         * doc/posix-functions/fputs.texi: Likewise.
22050         * doc/posix-functions/fwrite.texi: Likewise.
22051         * doc/posix-functions/printf.texi: Likewise.
22052         * doc/posix-functions/putc.texi: Likewise.
22053         * doc/posix-functions/putchar.texi: Likewise.
22054         * doc/posix-functions/puts.texi: Likewise.
22055         * doc/posix-functions/vfprintf.texi: Likewise.
22056         * doc/posix-functions/vprintf.texi: Likewise.
22057         * doc/posix-functions/write.texi: Likewise.
22058
22059 2011-04-10  Jim Meyering  <meyering@redhat.com>
22060
22061         maint.mk: prohibit doubled words
22062         Detect them also when they're separated by a newline.
22063         There are 3 ways to customize it:
22064           - disable the test on a per file basis, as usual with rules using
22065             $(VC_LIST_EXCEPT)
22066           - replace the default doubled-word-selecting regexp (affects all files)
22067           - ignore a particular file-vs-doubled-word match
22068         I nearly used that last one to ignore the "is is" match in
22069         coreutils' NEWS file, since the text was "ls -is is ..."
22070         To do that, I would have added this line to cfg.mk:
22071           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22072         but it would have ignored any "is is" match in NEWS.
22073         Low probability, but still...
22074         Instead, I changed the text, slightly:
22075           -  ls -is is now consistent with ls -lis in ignoring values returned
22076           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22077         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22078         (prohibit_doubled_word_): Define.
22079         (sc_prohibit_doubled_word): New rule.
22080         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22081
22082 2011-04-10  Jim Meyering  <meyering@redhat.com>
22083
22084         maint: fix doubled-word typo in comment
22085         * m4/gethostname.m4: s/is is/it is/
22086         * m4/getdomainname.m4: Likewise.
22087
22088 2011-04-10  Jim Meyering  <meyering@redhat.com>
22089
22090         maint: remove doubled word: s/it it/it/
22091         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22092
22093 2011-04-10  Jim Meyering  <meyering@redhat.com>
22094
22095         maint.mk: remove useless semicolon and backslash
22096         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22097         semicolon and backslash.
22098
22099 2011-04-10  Bruno Haible  <bruno@clisp.org>
22100
22101         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22102         * modules/stdint-tests (Depends-on): Add wchar.
22103
22104 2011-04-10  Jim Meyering  <meyering@redhat.com>
22105
22106         maint: remove doubled words in comments, e.g., s/a a/a/
22107         * lib/strptime.c (day_of_the_week): s/the the/the/
22108         * tests/test-chown.h (test_chown): s/a a/a/
22109
22110         test-chown.h: correct a cast
22111         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22112         when the destination is a stat.st_gid.
22113
22114 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22115
22116         getaddrinfo: Fix test for sa_len member.
22117         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22118         include <sys/types.h> before <sys/socket.h>.
22119
22120 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22121
22122         maint: change "can not" to "cannot"
22123         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22124         boundaries.
22125
22126 2011-04-09  Jim Meyering  <meyering@redhat.com>
22127
22128         maint: change "a a" to "a"
22129         * tests/test-lchown.h (test_lchown): s/a a/a/
22130
22131         maint.mk: prohibit \<the the\>
22132         * top/maint.mk (sc_prohibit_the_the): New rule.
22133
22134         maint: fix "the the" in comment
22135         * lib/count-one-bits.h: s/the the/the/
22136
22137         maint: change "can not" to "cannot"
22138         But do not change the occurrences in maintain.texi or in
22139         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22140         * doc/gnulib-tool.texi: s/can not/cannot/
22141         * doc/posix-functions/accept.texi (accept): Likewise.
22142         * doc/posix-functions/socket.texi (socket): Likewise.
22143         * lib/mbrtowc.c: Likewise.
22144
22145         maint.mk: prohibit use of "can not"
22146         * top/maint.mk (sc_prohibit_can_not): New rule.
22147         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22148
22149 2011-04-09  Bruno Haible  <bruno@clisp.org>
22150
22151         careadlinkat: Guard against misuse of careadlinkatcwd.
22152         * lib/careadlinkat.c: Include <stdlib.h>.
22153         (careadlinkatcwd): Check that the fd argument is as expected.
22154
22155 2011-04-09  Bruno Haible  <bruno@clisp.org>
22156
22157         careadlinkat: Use common coding style.
22158         * lib/careadlinkat.c: Move gnulib includes after system includes.
22159
22160 2011-04-09  Bruno Haible  <bruno@clisp.org>
22161
22162         careadlinkat: Clarify specification.
22163         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22164         (careadlinkatcwd): Add comment.
22165         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22166
22167 2011-04-09  Bruno Haible  <bruno@clisp.org>
22168
22169         areadlinkat: Avoid link error on many platforms.
22170         * modules/areadlinkat (Depends-on): Add areadlink.
22171
22172 2011-04-09  Bruno Haible  <bruno@clisp.org>
22173
22174         allocator, careadlinkat: Fix double-inclusion guard.
22175         * lib/allocator.h: Fix double-inclusion guard.
22176         * lib/careadlinkat.h: Likewise.
22177
22178 2011-04-09  Bruno Haible  <bruno@clisp.org>
22179
22180         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22181         * lib/relocwrapper.c: Update dependencies hierarchy.
22182         * build-aux/install-reloc: Update list of files to be compiled.
22183         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22184         lib/allocator.[hc].
22185
22186 2011-04-08  Eric Blake  <eblake@redhat.com>
22187
22188         strftime: silence gnulib-tool warning
22189         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22190
22191 2011-04-08  Bruno Haible  <bruno@clisp.org>
22192
22193         verify: Fix syntax error with GCC 4.6 in C++ mode.
22194         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22195         (HAVE_STATIC_ASSERT): New macro.
22196         (verify_true, verify): Use 'static_assert' if it is supported and
22197         '_Static_assert' is not supported.
22198
22199 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22200
22201         allocator: New module.
22202         * modules/allocator, lib/allocator.c: New files.
22203         * lib/allocator.h (stdlib_allocator): New decl.
22204         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22205         Remove.  Do not include <stdlib.h>.
22206         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22207         * modules/careadlinkat (Files): Remove lib/allocator.h.
22208         (Depends-on): Add allocator.
22209
22210         stdlib: let modules use system malloc, realloc
22211         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22212         if !_GL_USE_STDLIB_ALLOC.
22213         (malloc, realloc): Limit this change to a smaller scope.
22214
22215         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22216         (malloc, realloc): Don't #undef; no longer needed.
22217         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22218         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22219         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22220         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22221         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22222         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22223         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22224         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22225
22226         careadlinkat: rename members to avoid problem
22227         * lib/allocator.h (struct allocator): Rename members from
22228         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22229         and realloc are #define'd.  Reported by Eric Blake in
22230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22231         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22232
22233 2011-04-08  Eric Blake  <eblake@redhat.com>
22234
22235         nonblocking: reduce dependency
22236         * tests/test-nonblocking.c: Only test sockets when in use.
22237         * modules/nonblocking-tests (Depends-on): Drop socket.
22238         (Makefile.am): Link even if sockets are not present.
22239         * modules/pipe2-tests (Makefile.am): Likewise.
22240         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22241
22242         pipe2: fix O_NONBLOCK support on mingw
22243         * modules/pipe2 (Depends-on): Add nonblocking.
22244         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22245         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22246         * tests/test-nonblocking.c (main): Likewise.
22247         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22248
22249         fcntl-h: fix O_ACCMODE on cygwin
22250         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22251         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22252
22253         pipe-filter: drop O_NONBLOCK workarounds
22254         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22255         * modules/pipe-filter-ii (Depends-on): Likewise.
22256         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22257
22258         nonblocking: provide O_NONBLOCK for mingw
22259         * modules/nonblocking (Depends-on): Add open.
22260         (configure.ac): Set new witness macro.
22261         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22262         * modules/fcntl-h (Makefile.am): Substitute it.
22263         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22264         nonblocking module is in use.
22265         * lib/nonblocking.c: Adjust portability test.
22266         * lib/open.c (open): Don't let native open see gnulib flag.
22267         * tests/test-fcntl-h.c (main): Enhance test.
22268         * tests/test-open.h (test_open): Likewise.
22269         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22270
22271         careadlinkat: fix compilation error on mingw
22272         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22273         within struct allocator.
22274
22275 2011-04-06  Eric Blake  <eblake@redhat.com>
22276
22277         binary-io: relicense under LGPLv2+
22278         * modules/binary-io (License): Relax to LGPLv2+.
22279         Requested for libvirt, and required by pipe2.
22280
22281 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22282
22283         verify: use _Static_assert if available
22284         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22285         (verify_true, verify): Use it if available.  This generates better
22286         diagnostics with GCC 4.6.0 and later.
22287
22288 2011-04-05  Bruno Haible  <bruno@clisp.org>
22289
22290         Remove leftover generated .h files after config.status changed.
22291
22292         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22293         GL_GENERATE_ALLOCA_H.
22294         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22295         GL_GENERATE_ALLOCA_H evaluates to false.
22296
22297         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22298         GL_GENERATE_ARGZ_H.
22299         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22300         evaluates to false.
22301
22302         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22303         GL_GENERATE_BYTESWAP_H.
22304         * modules/byteswap (Makefile.am): Remove byteswap.h if
22305         GL_GENERATE_BYTESWAP_H evaluates to false.
22306
22307         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22308         GL_GENERATE_ERRNO_H.
22309         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22310         evaluates to false.
22311
22312         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22313         GL_GENERATE_FLOAT_H.
22314         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22315         evaluates to false.
22316
22317         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22318         GL_GENERATE_FNMATCH_H.
22319         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22320         GL_GENERATE_FNMATCH_H evaluates to false.
22321
22322         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22323         GL_GENERATE_GLOB_H.
22324         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22325         evaluates to false.
22326
22327         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22328         automake conditional GL_GENERATE_ICONV_H.
22329         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22330         evaluates to false.
22331
22332         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22333         GL_GENERATE_NETINET_IN_H.
22334         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22335         GL_GENERATE_NETINET_IN_H evaluates to false.
22336
22337         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22338         conditional GL_GENERATE_PTHREAD_H.
22339         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22340         * modules/pthread (Makefile.am): Remove pthread.h if
22341         GL_GENERATE_PTHREAD_H evaluates to false.
22342
22343         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22344         GL_GENERATE_SCHED_H.
22345         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22346         evaluates to false.
22347
22348         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22349         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22350         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22351         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22352
22353         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22354         GL_GENERATE_STDARG_H.
22355         * modules/stdarg (Makefile.am): Remove stdarg.h if
22356         GL_GENERATE_STDARG_H evaluates to false.
22357
22358         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22359         GL_GENERATE_STDBOOL_H.
22360         * modules/stdbool (Makefile.am): Remove stdbool.h if
22361         GL_GENERATE_STDBOOL_H evaluates to false.
22362
22363         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22364         conditional GL_GENERATE_STDDEF_H.
22365         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22366         * modules/stddef (Makefile.am): Remove stddef.h if
22367         GL_GENERATE_STDDEF_H evaluates to false.
22368
22369         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22370         GL_GENERATE_STDINT_H.
22371         * modules/stdint (Makefile.am): Remove stdint.h if
22372         GL_GENERATE_STDINT_H evaluates to false.
22373
22374         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22375         GL_GENERATE_SYSEXITS_H.
22376         * modules/sysexits (Makefile.am): Remove sysexits.h if
22377         GL_GENERATE_SYSEXITS_H evaluates to false.
22378
22379         Reported by Karl Berry and Ralf Wildenhues.
22380
22381 2011-04-05  Bruno Haible  <bruno@clisp.org>
22382
22383         Ensure to rebuild generated .h files when config.status has changed.
22384         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22385         config.status.
22386         * modules/ctype (Makefile.am): Likewise.
22387         * modules/dirent (Makefile.am): Likewise.
22388         * modules/errno (Makefile.am): Likewise.
22389         * modules/fcntl-h (Makefile.am): Likewise.
22390         * modules/float (Makefile.am): Likewise.
22391         * modules/getopt-posix (Makefile.am): Likewise.
22392         * modules/glob (Makefile.am): Likewise.
22393         * modules/iconv-h (Makefile.am): Likewise.
22394         * modules/inttypes (Makefile.am): Likewise.
22395         * modules/langinfo (Makefile.am): Likewise.
22396         * modules/locale (Makefile.am): Likewise.
22397         * modules/math (Makefile.am): Likewise.
22398         * modules/netdb (Makefile.am): Likewise.
22399         * modules/netinet_in (Makefile.am): Likewise.
22400         * modules/poll-h (Makefile.am): Likewise.
22401         * modules/pthread (Makefile.am): Likewise.
22402         * modules/pty (Makefile.am): Likewise.
22403         * modules/sched (Makefile.am): Likewise.
22404         * modules/search (Makefile.am): Likewise.
22405         * modules/selinux-h (Makefile.am): Likewise.
22406         * modules/signal (Makefile.am): Likewise.
22407         * modules/spawn (Makefile.am): Likewise.
22408         * modules/stdarg (Makefile.am): Likewise.
22409         * modules/stdbool (Makefile.am): Likewise.
22410         * modules/stddef (Makefile.am): Likewise.
22411         * modules/stdint (Makefile.am): Likewise.
22412         * modules/stdio (Makefile.am): Likewise.
22413         * modules/stdlib (Makefile.am): Likewise.
22414         * modules/string (Makefile.am): Likewise.
22415         * modules/strings (Makefile.am): Likewise.
22416         * modules/sys_file (Makefile.am): Likewise.
22417         * modules/sys_ioctl (Makefile.am): Likewise.
22418         * modules/sys_select (Makefile.am): Likewise.
22419         * modules/sys_socket (Makefile.am): Likewise.
22420         * modules/sys_stat (Makefile.am): Likewise.
22421         * modules/sys_time (Makefile.am): Likewise.
22422         * modules/sys_times (Makefile.am): Likewise.
22423         * modules/sys_utsname (Makefile.am): Likewise.
22424         * modules/sys_wait (Makefile.am): Likewise.
22425         * modules/sysexits (Makefile.am): Likewise.
22426         * modules/termios (Makefile.am): Likewise.
22427         * modules/time (Makefile.am): Likewise.
22428         * modules/unistd (Makefile.am): Likewise.
22429         * modules/wchar (Makefile.am): Likewise.
22430         * modules/wctype-h (Makefile.am): Likewise.
22431         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22432
22433 2011-04-05  Bruno Haible  <bruno@clisp.org>
22434
22435         pipe2: Relicense under LGPLv2+.
22436         * modules/pipe2 (License): Change to LGPLv2+.
22437         Requested by Eric Blake, for libvirt.
22438
22439 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22440
22441         bootstrap: compute gnulib_extra_files after updating build_aux
22442         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22443         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22444
22445 2011-04-05  Eric Blake  <eblake@redhat.com>
22446
22447         bootstrap: preserve git whitelist item sorting
22448         * build-aux/bootstrap (sort_patterns): New function.
22449         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22450
22451 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22452
22453         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22454         sc_space_tab check.
22455
22456 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22457
22458         areadlink, areadlinkat: rewrite in terms of careadlinkat
22459         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22460         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22461         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22462         (malloc, realloc): Remove #undefs.
22463         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22464         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22465         readlink, ssize_t, stdint, unistd.
22466         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22467         areadlink, stdint.
22468
22469         careadlinkat: new module
22470         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22471         * modules/careadlinkat: New files, written by me with
22472         a review and feedback from Ben Pfaff in
22473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22474
22475 2011-04-01  Bruno Haible  <bruno@clisp.org>
22476
22477         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22478         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22479         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22480         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22481         Reported by Bruce Korb <bruce.korb@gmail.com>.
22482
22483 2011-04-01  Bruno Haible  <bruno@clisp.org>
22484
22485         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22486         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22487         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22488         * modules/wcpcpy (Depends-on): Add extensions.
22489         * modules/wcpncpy (Depends-on): Likewise.
22490         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22491         systems.
22492         * doc/posix-functions/wcpncpy.texi: Likewise.
22493         * doc/posix-functions/wcwidth.texi: Likewise.
22494
22495 2011-03-31  Eric Blake  <eblake@redhat.com>
22496
22497         nonblocking: fix mingw test failures
22498         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22499         non-blocking flag on regular file.
22500         (get_nonblocking_flag): Set errno on invalid fd.
22501         * tests/test-nonblocking.c (main): Avoid test failure on
22502         directories if fchdir is not active.
22503         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22504
22505 2011-03-31  Bruno Haible  <bruno@clisp.org>
22506
22507         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22508         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22509         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22510         Reported by Simon Josefsson <simon@josefsson.org>.
22511
22512 2011-03-31  Bruno Haible  <bruno@clisp.org>
22513         and Eric Blake  <eblake@redhat.com>
22514
22515         nonblocking: new module
22516         * modules/nonblocking: New module.
22517         * modules/nonblocking-tests: Likewise.
22518         * lib/nonblocking.h: New file.
22519         * lib/nonblocking.c: Likewise.
22520         * tests/test-nonblocking.c: New test.
22521         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22522
22523 2011-03-30  Bruno Haible  <bruno@clisp.org>
22524
22525         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22526         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22527         instead of 'printf' format for GCC >= 4.4.
22528         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22529         (fprintf, printf, vfprintf, vprintf): Declare with
22530         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22531         the system's vfprintf() function.
22532         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22533
22534 2011-03-30  Eric Blake  <eblake@redhat.com>
22535
22536         passfd: fix scoping bug
22537         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22538         before sendmsg/recvmsg.
22539
22540         passfd: standardize coding conventions
22541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22542         can be learned at compile time.
22543         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22544         ifdefs.
22545         (sendfd, recvfd): Follow gnulib code conventions.
22546
22547         passfd: fix incorrect sendmsg arguments
22548         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22549         incorrect msg_controllen value.
22550         * modules/passfd-tests (Depends-on): Check for alarm.
22551         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22552         Reported by Bastien ROUCARIES.
22553
22554 2011-03-30  Bruno Haible  <bruno@clisp.org>
22555
22556         c-strcasestr: Relicense under LGPLv2+.
22557         * modules/c-strcasestr (License): Change to LGPLv2+.
22558         Requested by Eric Blake, for libvirt.
22559
22560 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22561
22562         * users.txt: Add libidn2.  Fix libtasn1 link.
22563
22564 2011-03-30  Jim Meyering  <meyering@redhat.com>
22565
22566         tests: readlink* ("",... fails with EINVAL on newer kernels
22567         readlink and readlinkat have typically failed with ENOENT for
22568         the invalid, empty file name,  "".  However, with the advent
22569         of linux-2.6.39, they fail with EINVAL.
22570         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22571         when operating on the empty file name.
22572         * tests/test-readlink.h (test_readlink): Likewise.
22573
22574 2011-03-29  Bruno Haible  <bruno@clisp.org>
22575
22576         Relicense some modules under LGPLv2+, for libidn2.
22577         * modules/array-mergesort (License): Change to LGPLv2+.
22578         * modules/c-strcaseeq (License): Likewise.
22579         * modules/striconveh (License): Likewise.
22580         * modules/striconveha (License): Likewise.
22581         * modules/uniconv/base (License): Likewise.
22582         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22583         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22584         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22585         * modules/unictype/base (License): Likewise.
22586         * modules/unictype/bidiclass-of (License): Likewise.
22587         * modules/unictype/category-M (License): Likewise.
22588         * modules/unictype/category-none (License): Likewise.
22589         * modules/unictype/category-of (License): Likewise.
22590         * modules/unictype/category-test (License): Likewise.
22591         * modules/unictype/category-test-withtable (License): Likewise.
22592         * modules/unictype/combining-class (License): Likewise.
22593         * modules/unictype/joiningtype-of (License): Likewise.
22594         * modules/unictype/scripts (License): Likewise.
22595         * modules/uninorm/base (License): Likewise.
22596         * modules/uninorm/canonical-decomposition (License): Likewise.
22597         * modules/uninorm/composition (License): Likewise.
22598         * modules/uninorm/decompose-internal (License): Likewise.
22599         * modules/uninorm/decomposition-table (License): Likewise.
22600         * modules/uninorm/nfc (License): Likewise.
22601         * modules/uninorm/nfd (License): Likewise.
22602         * modules/uninorm/u32-normalize (License): Likewise.
22603         * modules/unistr/base (License): Likewise.
22604         * modules/unistr/u32-cpy (License): Likewise.
22605         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22606         * modules/unistr/u32-to-u8 (License): Likewise.
22607         * modules/unistr/u32-uctomb (License): Likewise.
22608         * modules/unistr/u8-check (License): Likewise.
22609         * modules/unistr/u8-mblen (License): Likewise.
22610         * modules/unistr/u8-mbtouc (License): Likewise.
22611         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22612         * modules/unistr/u8-mbtoucr (License): Likewise.
22613         * modules/unistr/u8-prev (License): Likewise.
22614         * modules/unistr/u8-strlen (License): Likewise.
22615         * modules/unistr/u8-to-u32 (License): Likewise.
22616         * modules/unistr/u8-uctomb (License): Likewise.
22617         * modules/unitypes (License): Likewise.
22618         Requested by Simon Josefsson.
22619
22620 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22621
22622         lib-symbol-visibility: Add a notice.
22623         * modules/lib-symbol-visibility (Notice): New field.
22624
22625 2011-03-29  Bruno Haible  <bruno@clisp.org>
22626
22627         getaddrinfo: Doc fix.
22628         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22629         section "fixed in Gnulib".
22630
22631 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22632
22633         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22634         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22635
22636 2011-03-26  Bruno Haible  <bruno@clisp.org>
22637
22638         unictype/property-byname: Reduce the number of load-time relocations.
22639         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22640         (UC_PROPERTY_INDEX_*): New enumeration values.
22641         (uc_property_byname): Convert an index from the lookup table to an
22642         uc_property_t.
22643         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22644         values.
22645
22646 2011-03-26  Bruno Haible  <bruno@clisp.org>
22647
22648         unictype/property-byname: Allow omitted word separators and aliases.
22649         * lib/unictype/pr_byname.gperf: Add property names without word
22650         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22651         for 'space'.
22652
22653 2011-03-26  Bruno Haible  <bruno@clisp.org>
22654
22655         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22656         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22657         also hyphens to space.
22658         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22659         without spaces.
22660         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22661
22662 2011-03-26  Bruno Haible  <bruno@clisp.org>
22663
22664         unictype/joiningtype-byname: Recognize long names as well.
22665         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22666         a long name.
22667         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22668         unictype/joiningtype_byname.h.
22669         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22670         * lib/unictype/joiningtype_byname.gperf: New file.
22671         * modules/unictype/joiningtype-byname (Files): Add
22672         lib/unictype/joiningtype_byname.gperf.
22673         (Depends-on): Add gperf.
22674         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22675         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22676         long names.
22677
22678         Tests for module 'unictype/joiningtype-longname'.
22679         * modules/unictype/joiningtype-longname-tests: New file.
22680         * tests/unictype/test-joiningtype_longname.c: New file.
22681
22682         New module 'unictype/joiningtype-longname'.
22683         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22684         * lib/unictype/joiningtype_longname.c: New file.
22685         * modules/unictype/joiningtype-longname: New file.
22686         * modules/unictype/joiningtype-all (Depends-on): Add
22687         unictype/joiningtype-longname.
22688
22689 2011-03-26  Bruno Haible  <bruno@clisp.org>
22690
22691         unictype/bidiclass-byname: Recognize long names as well.
22692         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22693         name.
22694         * lib/unictype/bidi_byname.c: Include <string.h>,
22695         unictype/bidi_byname.h.
22696         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22697         * lib/unictype/bidi_byname.gperf: New file.
22698         * modules/unictype/bidiclass-byname (Files): Add
22699         lib/unictype/bidi_byname.gperf.
22700         (Depends-on): Add gperf.
22701         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22702         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22703         long names.
22704
22705         Tests for module 'unictype/bidiclass-longname'.
22706         * modules/unictype/bidiclass-longname-tests: New file.
22707         * tests/unictype/test-bidi_longname.c: New file.
22708
22709         New module 'unictype/bidiclass-longname'.
22710         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22711         * lib/unictype/bidi_longname.c: New file.
22712         * modules/unictype/bidiclass-longname: New file.
22713         * modules/unictype/bidiclass-all (Depends-on): Add
22714         unictype/bidiclass-longname.
22715
22716 2011-03-26  Bruno Haible  <bruno@clisp.org>
22717
22718         unictype/bidi*: Rename modules.
22719         * modules/unictype/bidiclass-all: Renamed from
22720         modules/unictype/bidicategory-all.
22721         * modules/unictype/bidiclass-name: Renamed from
22722         modules/unictype/bidiclass-name.
22723         (Description): Update.
22724         * modules/unictype/bidiclass-name-tests: Renamed from
22725         modules/unictype/bidicategory-name-tests.
22726         * modules/unictype/bidiclass-byname: Renamed from
22727         modules/unictype/bidicategory-byname.
22728         (Description): Update.
22729         * modules/unictype/bidiclass-byname-tests: Renamed from
22730         modules/unictype/bidicategory-byname-tests.
22731         * modules/unictype/bidiclass-of: Renamed from
22732         modules/unictype/bidicategory-of.
22733         (Description): Update.
22734         * modules/unictype/bidiclass-of-tests: Renamed from
22735         modules/unictype/bidicategory-of-tests.
22736         * modules/unictype/bidiclass-test: Renamed from
22737         modules/unictype/bidicategory-test.
22738         (Description): Update.
22739         * modules/unictype/bidiclass-test-tests: Renamed from
22740         modules/unictype/bidicategory-test-tests.
22741         * modules/unictype/bidicategory-all: New file, a simple redirection.
22742         * modules/unictype/bidicategory-name: Likewise.
22743         * modules/unictype/bidicategory-byname: Likewise.
22744         * modules/unictype/bidicategory-of: Likewise.
22745         * modules/unictype/bidicategory-test: Likewise.
22746         * modules/unictype/property-bidi-* (Dependencies): Update.
22747         * lib/unictype/bidi_*.c: Update comment.
22748
22749 2011-03-26  Bruno Haible  <bruno@clisp.org>
22750
22751         unictype/bidi*: Rename functions, part 2.
22752         * modules/unictype/bidicategory-name (configure.ac): Update required
22753         libunistring version.
22754         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22755
22756 2011-03-25  Bruno Haible  <bruno@clisp.org>
22757
22758         New module 'unictype/combining-class-all'.
22759         * modules/unictype/combining-class-all: New file.
22760
22761         Tests for module 'unictype/combining-class-byname'.
22762         * modules/unictype/combining-class-byname-tests: New file.
22763         * tests/unictype/test-combiningclass_byname.c: New file.
22764
22765         New module 'unictype/combining-class-byname'.
22766         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22767         * lib/unictype/combiningclass_byname.c: New file.
22768         * lib/unictype/combiningclass_byname.gperf: New file.
22769         * modules/unictype/combining-class-byname: New file.
22770
22771         Tests for module 'unictype/combining-class-longname'.
22772         * modules/unictype/combining-class-longname-tests: New file.
22773         * tests/unictype/test-combiningclass_longname.c: New file.
22774
22775         New module 'unictype/combining-class-longname'.
22776         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22777         * lib/unictype/combiningclass_longname.c: New file.
22778         * modules/unictype/combining-class-longname: New file.
22779
22780         Tests for module 'unictype/combining-class-name'.
22781         * modules/unictype/combining-class-name-tests: New file.
22782         * tests/unictype/test-combiningclass_name.c: New file.
22783
22784         New module 'unictype/combining-class-name'.
22785         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22786         * lib/unictype/combiningclass_name.c: New file.
22787         * modules/unictype/combining-class-name: New file.
22788
22789 2011-03-25  Bruno Haible  <bruno@clisp.org>
22790
22791         unictype/combining-class: Rename source files.
22792         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22793         of unictype/combining.h.
22794         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22795         Update.
22796         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22797         * modules/unictype/combining-class (Description): Fix.
22798         (Files, Makefile.am): Update.
22799         * tests/unictype/test-combiningclass.c: Renamed from
22800         tests/unictype/test-combining.c.
22801         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22802
22803 2011-03-25  Bruno Haible  <bruno@clisp.org>
22804
22805         unictype: Update list of canonical combining classes.
22806         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22807
22808 2011-03-25  Bruno Haible  <bruno@clisp.org>
22809
22810         unictype/category-byname: Recognize long names as well.
22811         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22812         a long name.
22813         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22814         unictype/categ_byname.h.
22815         (UC_CATEGORY_INDEX_*): New enumeration values.
22816         (uc_general_category_byname): Use uc_general_category_lookup and
22817         convert from index to value.
22818         * lib/unictype/categ_byname.gperf: New file.
22819         * modules/unictype/category-byname (Files): Add
22820         lib/unictype/categ_byname.gperf.
22821         (Depends-on): Add gperf.
22822         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22823         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22824         long names.
22825
22826         Tests for module 'unictype/category-longname'.
22827         * modules/unictype/category-longname-tests: New file.
22828         * tests/unictype/test-categ_longname.c: New file.
22829
22830         New module 'unictype/category-longname'.
22831         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22832         * lib/unictype/categ_longname.c: New file.
22833         * modules/unictype/category-longname: New file.
22834         * modules/unictype/category-all (Depends-on): Add it.
22835
22836 2011-03-25  Bruno Haible  <bruno@clisp.org>
22837
22838         Tests for module 'unictype/category-LC'.
22839         * modules/unictype/category-LC-tests: New file.
22840         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22841
22842         New module 'unictype/category-LC'.
22843         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22844         (UC_CATEGORY_LC): New declaration.
22845         (UC_CASED_LETTER): New macro.
22846         * lib/gen-uni-tables.c (is_category_LC): New function.
22847         (output_categories): Also handle category LC.
22848         (UC_CATEGORY_MASK_LC): New enumeration value.
22849         (general_category_byname): Also handle category LC.
22850         * lib/unictype/categ_LC.c: New file.
22851         * lib/unictype/categ_LC.h: New file, automatically generated.
22852         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22853         category LC.
22854         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22855         * modules/unictype/category-LC: New file.
22856         * modules/unictype/category-byname (Depends-on): Add
22857         unictype/category-LC.
22858         * modules/unictype/category-all (Depends-on): Likewise.
22859
22860 2011-03-25  Eric Blake  <eblake@redhat.com>
22861
22862         xmalloc: revert yesterday's regression
22863         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22864         realloc's underlying behavior (allowing allocation of zero-size
22865         objects, especially if malloc-gnu is also in use).
22866
22867 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22868
22869         maint.mk: add missing version to VC-tag
22870         * top/maint.mk: git tag was missing actual tag name; add it.
22871
22872         valgrind: do leak checking, and exit with code 1 on error (not 0)
22873         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22874         to VALGRIND.
22875
22876 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22877
22878         posix-modules: say what it does.
22879         * posix-modules: Add a line to the --help output saying what it does.
22880
22881 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22882
22883         xmalloc: Do not leak if underlying realloc is C99 compatible.
22884         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22885         This avoids a leak on C99-based systems.  See
22886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22887
22888 2011-03-24  Eric Blake  <eblake@redhat.com>
22889
22890         realloc: document portability problem
22891         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22892         passing 0 size to realloc.
22893
22894 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22895
22896         doc: update users.txt
22897         * users.txt: Add cvsps, tmpwatch
22898
22899 2011-03-23  Matt Rice  <ratmice@gmail.com>
22900
22901         doc: update users.txt
22902         * users.txt: Add gdb.
22903
22904 2011-03-23  Jim Meyering  <meyering@redhat.com>
22905
22906         doc: update users.txt
22907         Looking through matches up to the following URL (there are still
22908         several more pages), I found several projects that use gnulib:
22909         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22910         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22911         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22912
22913 2011-03-22  Bruno Haible  <bruno@clisp.org>
22914
22915         unictype/bidi*: Rename functions.
22916         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22917         uc_bidi_class, uc_is_bidi_class): New declarations.
22918         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22919         uc_bidi_category_byname.
22920         (uc_bidi_category_byname): New function.
22921         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22922         u_bidi_category_name.
22923         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22924         (uc_bidi_category_name): New function.
22925         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22926         uc_bidi_category.
22927         (uc_bidi_category): New function.
22928         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22929         uc_is_bidi_category. Invoke uc_bidi_class.
22930         (uc_is_bidi_category): New function.
22931         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22932         instead of uc_bidi_category_byname.
22933         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22934         instead of uc_bidi_category_name.
22935         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22936         uc_bidi_category.
22937         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22938         instead of uc_is_bidi_category.
22939
22940 2011-03-21  Bruno Haible  <bruno@clisp.org>
22941
22942         New module 'unictype/joininggroup-all'.
22943         * modules/unictype/joininggroup-all: New file.
22944
22945         Tests for module 'unictype/joininggroup-of'.
22946         * modules/unictype/joininggroup-of-tests: New file.
22947         * tests/unictype/test-joininggroup_of.c: New file.
22948         * tests/unictype/test-joininggroup_of.h: New file, automatically
22949         generated by gen-uni-tables.
22950
22951         New module 'unictype/joininggroup-of'.
22952         * modules/unictype/joininggroup-of: New file.
22953         * lib/unictype/joininggroup_of.c: New file.
22954         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22955         gen-uni-tables.
22956
22957         Tests for module 'unictype/joininggroup-byname'.
22958         * modules/unictype/joininggroup-byname-tests: New file.
22959         * tests/unictype/test-joininggroup_byname.c: New file.
22960
22961         New module 'unictype/joininggroup-byname'.
22962         * modules/unictype/joininggroup-byname: New file.
22963         * lib/unictype/joininggroup_byname.c: New file.
22964         * lib/unictype/joininggroup_byname.gperf: New file.
22965
22966         Tests for module 'unictype/joininggroup-name'.
22967         * modules/unictype/joininggroup-name-tests: New file.
22968         * tests/unictype/test-joininggroup_name.c: New file.
22969
22970         New module 'unictype/joininggroup-name'.
22971         * modules/unictype/joininggroup-name: New file.
22972         * lib/unictype/joininggroup_name.c: New file.
22973         * lib/unictype/joininggroup_name.h: New file.
22974
22975         New module 'unictype/joiningtype-all'.
22976         * modules/unictype/joiningtype-all: New file.
22977
22978         Tests for module 'unictype/joiningtype-of'.
22979         * modules/unictype/joiningtype-of-tests: New file.
22980         * tests/unictype/test-joiningtype_of.c: New file.
22981         * tests/unictype/test-joiningtype_of.h: New file, automatically
22982         generated by gen-uni-tables.
22983
22984         New module 'unictype/joiningtype-of'.
22985         * modules/unictype/joiningtype-of: New file.
22986         * lib/unictype/joiningtype_of.c: New file.
22987         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22988         gen-uni-tables.
22989
22990         Tests for module 'unictype/joiningtype-byname'.
22991         * modules/unictype/joiningtype-byname-tests: New file.
22992         * tests/unictype/test-joiningtype_byname.c: New file.
22993
22994         New module 'unictype/joiningtype-byname'.
22995         * modules/unictype/joiningtype-byname: New file.
22996         * lib/unictype/joiningtype_byname.c: New file.
22997
22998         Tests for module 'unictype/joiningtype-name'.
22999         * modules/unictype/joiningtype-name-tests: New file.
23000         * tests/unictype/test-joiningtype_name.c: New file.
23001
23002         New module 'unictype/joiningtype-name'.
23003         * modules/unictype/joiningtype-name: New file.
23004         * lib/unictype/joiningtype_name.c: New file.
23005
23006         unictype: Add support for Arabic shaping properties.
23007         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23008         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23009         declarations.
23010         (UC_JOINING_GROUP_*): New enumeration values.
23011         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23012         declarations.
23013         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23014         (unicode_joining_type): New variable.
23015         (UC_JOINING_GROUP_*): New enumeration values.
23016         (unicode_joining_group): New variable.
23017         (fill_arabicshaping, joining_type_as_c_identifier,
23018         output_joining_type_test, output_joining_type,
23019         joining_group_as_c_identifier, output_joining_group_test,
23020         output_joining_group): New functions.
23021         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23022         fill_arabicshaping and output_joining_type_test, output_joining_type,
23023         output_joining_group_test, output_joining_group.
23024         Reported by Simon Josefsson.
23025
23026 2011-03-21  Jim Meyering  <meyering@redhat.com>
23027
23028         strftime: fix a bug in yesterday's change
23029         * lib/strftime.c (add): Accommodate width's initial value of -1.
23030         Otherwise, nstrftime would copy uninitialized data into
23031         the result buffer.
23032
23033 2011-03-21  Jim Meyering  <meyering@redhat.com>
23034
23035         tests: add strftime-tests module
23036         * tests/test-strftime.c: New file.
23037         * modules/strftime-tests: New module.
23038
23039 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23040
23041         strftime: don't assume a byte count fits in 'int'
23042         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23043         found this problem by static analysis, using gcc -Wstrict-overflow
23044         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23045         on an integer overflow having undefined behavior, but it turns out
23046         that the argument is a size, which might not fit in 'int' anyway,
23047
23048 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23049
23050         stdio: don't require ignore_value around fwrite
23051
23052         This patch works around libc bug 11959
23053         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23054         Without this patch, applications must often write
23055         ignore_value (fwrite (...)) even though the ignore_value is
23056         not helpful here.  It's common to write many objects, using
23057         fwrite/printf/etc., and then use ferror to detect output error.
23058
23059         I considered making this patch optional, but decided against it,
23060         because libc is obviously being inconsistent here: there is no
23061         reason libc should insist that user code must inspect fwrite
23062         return's value without also insisting that it inspect printf's,
23063         putchar's, etc.  If user code wants to have a strict style where
23064         all these functions' values are checked (so that ferror need not
23065         be checked), we could add support for that style in a new gnulib
23066         module, but in the meantime it's better to be consistent and to
23067         support common usage.
23068
23069         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23070         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23071         that we are compiling in checking mode, and if not C++, and
23072         if not already wrapping fwrite for some other reason.
23073         (fwrite): #define to rpl_fwrite if the latter is defined.
23074
23075 2011-03-20  Bruno Haible  <bruno@clisp.org>
23076
23077         verror: Fix compilation error introduced on 2011-02-13.
23078         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23079         instead of __attribute__.
23080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23081
23082 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23083             Bruno Haible  <bruno@clisp.org>
23084
23085         socklen: do not depend on sys_socket
23086         While trying to modify Emacs to use gnulib's socklen module,
23087         I discovered a circular dependency: socklen depends on sys_socket
23088         and vice versa.  Emacs can use socklen, but it does not need
23089         sys_socket because it has its own substitute for sys/socket.h.
23090         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23091         gl_TYPE_SOCKLEN_T.
23092         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23093         gl_PREREQ_SYS_H_SOCKET.
23094         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23095         gl_PREREQ_SYS_H_SOCKET.
23096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23097         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23098         * modules/socklen (Depends-on): Do not depend on sys_socket.
23099         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23100
23101 2011-03-20  Jim Meyering  <meyering@redhat.com>
23102
23103         maint.mk: sort file names *after* new transformation
23104         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23105         prefix would have led to an unwarranted failure in GNU parted.
23106         Sort after that transformation.
23107
23108 2011-03-19  Jim Meyering  <meyering@redhat.com>
23109
23110         maint.mk: fix po-file syntax-check rule
23111         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23112         Patch by Bruno Haible.
23113
23114 2011-03-19  Bruno Haible  <bruno@clisp.org>
23115
23116         socklen: Update comment.
23117         * m4/socklen.m4: Update comment about platforms.
23118
23119 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23120             Bruno Haible  <bruno@clisp.org>
23121
23122         inet_ntop, inet_pton: Simplify.
23123         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23124         documented to provide socklen_t and we already depend on sys_socket.
23125         * modules/inet_pton (Depends-on): Likewise.
23126         * lib/arpa_inet.in.h: Adjust comment.
23127
23128 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23129             Bruno Haible  <bruno@clisp.org>
23130
23131         netdb: Simplify.
23132         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23133         documented to provide socklen_t and we already depend on sys_socket.
23134         * lib/netdb.in.h: Adjust comment.
23135
23136 2011-03-19  Bruno Haible  <bruno@clisp.org>
23137
23138         sys_socket, netdb: Document problem with socklen_t.
23139         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23140         platforms.
23141         * doc/posix-headers/netdb.texi: Likewise.
23142
23143 2011-03-18  Eric Blake  <eblake@redhat.com>
23144
23145         maint.mk: let po check work in VPATH build
23146         * top/maint.mk (po_file): Allow cfg.mk override.
23147         (sc_po_check): Allow VPATH use.
23148         Reported by Jiri Denemark.
23149
23150 2011-03-16  Jim Meyering  <meyering@redhat.com>
23151
23152         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23153         Before, you would have had to create one .x-sc_ file per rule in order
23154         to exempt offending files.  Now, you may instead use a Make variable --
23155         usually defined in cfg.mk -- whose name identifies the affected rule.
23156         * top/maint.mk (_sc_excl): Define.
23157         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23158         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23159
23160 2011-03-13  Bruno Haible  <bruno@clisp.org>
23161
23162         ignore-value tests: Avoid warnings.
23163         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23164         empty for gcc < 3.4.
23165
23166 2011-03-13  Bruno Haible  <bruno@clisp.org>
23167
23168         passfd: Fix link error on Solaris.
23169         * modules/passfd (Description): Correct.
23170         (Depends-on): Add socketlib.
23171         (Link): New section.
23172         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23173
23174 2011-03-13  Bruno Haible  <bruno@clisp.org>
23175
23176         passfd: Fix link error on AIX 5.2.
23177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23178
23179 2011-03-13  Bruno Haible  <bruno@clisp.org>
23180
23181         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23182         * lib/sys_socket.in.h: Include <stddef.h>.
23183         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23184         CMSG_FIRSTHDR. Remove unused variable.
23185
23186 2011-03-13  Bruno Haible  <bruno@clisp.org>
23187
23188         passfd: Fix compilation error on OpenBSD.
23189         * lib/passfd.c: Include <sys/uio.h>.
23190
23191 2011-03-13  Bruno Haible  <bruno@clisp.org>
23192
23193         passfd test: Fix warnings.
23194         * tests/test-passfd.c: Include <sys/wait.h>.
23195         (main): Fix typo.
23196
23197 2011-03-13  Bruno Haible  <bruno@clisp.org>
23198
23199         passfd module, part 4, tweaks.
23200         * tests/test-passfd.c: Reorder includes.
23201         (main): Fix perror and printf calls.
23202
23203 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23204
23205         passfd module, part 4.
23206         * modules/passfd-tests: New file.
23207         * tests/test-passfd.c: New file.
23208
23209 2011-03-13  Jim Meyering  <meyering@redhat.com>
23210
23211         Makefile: rely on GNU make; derive syntax-check rule names
23212         Rather than requiring that each sc_ rule be listed as a dependent
23213         of "check", use features of GNU make to derive the list.
23214         * Makefile (syntax-check-rules): Define.
23215         (check): Depend on the new variable, not the hard-coded list.
23216
23217 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23218             Bruno Haible  <bruno@clisp.org>
23219
23220         passfd module, part 3.
23221         * lib/passfd.h (recvfd): Add a flags argument.
23222         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23223         (recvfd): Add a flags argument.
23224         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23225         exists.
23226         * modules/passfd (Depends-on): Add cloexec.
23227         Suggested by Eric Blake.
23228
23229 2011-03-13  Bruno Haible  <bruno@clisp.org>
23230
23231         passfd module, part 2, tweaks.
23232         * modules/passfd (Files): Reorder.
23233         (Depends-on): Remove errno.
23234         (Include): Remove <sys/socket.h>, <sys/un.h>.
23235         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23236         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23237         specification header. Include <sys/socket.h> always. Don't include
23238         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23239         (sendfd): Clarify that it sets errno when it fails.
23240         (recvfd): Fix specification.
23241
23242 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23243
23244         passfd module, part 2.
23245         * modules/passfd: New file.
23246         * lib/passfd.h: New file.
23247         * lib/passfd.c: New file.
23248
23249 2011-03-12  Bruno Haible  <bruno@clisp.org>
23250
23251         wcswidth, mbswidth: Avoid integer overflow.
23252         * lib/wcswidth.c: Include <limits.h>.
23253         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23254         * lib/mbswidth.c: Include <limits.h>.
23255         (mbsnwidth): Avoid 'int' overflow.
23256         Reported by Jim Meyering.
23257
23258 2011-03-12  Bruno Haible  <bruno@clisp.org>
23259
23260         futimens, utimensat: Avoid endless recursion on Solaris 10.
23261         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23262         Solaris.
23263         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23264         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23265
23266 2011-03-11  Jim Meyering  <meyering@redhat.com>
23267
23268         maint.mk: relax a regexp to accommodate other formatting styles
23269         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23270         between "ngettext" and the following "(".
23271
23272 2011-03-11  Pádraig Brady <P@draigBrady.com>
23273
23274         maint.mk: suppress a false positive warning
23275         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23276         diagnostics are marked with ngettext.
23277
23278 2011-03-10  Eric Blake  <eblake@redhat.com>
23279
23280         wchar: add explicit dependencies, for Tru64
23281         * modules/mbmemcasecoll (Depends-on): Add wchar.
23282         * modules/mbtowc (Depends-on): Likewise.
23283         * modules/vasnprintf (Depends-on): Likewise.
23284         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23285         * modules/wctomb (Depends-on): Likewise.
23286         Reported by Peter O'Gorman.
23287
23288 2011-03-08  Bruno Haible  <bruno@clisp.org>
23289
23290         passfd module, part 1, tweaks.
23291         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23292         Improve indentation. Improve AC_MSG_CHECKING messages.
23293         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23294         gl_SOCKET_FAMILIES.
23295
23296 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23297
23298         passfd module, part 1.
23299         * m4/afunix.m4: New file.
23300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23301         sockets.
23302
23303 2011-03-08  Bruno Haible  <bruno@clisp.org>
23304
23305         regex-quote: New API.
23306         * lib/regex-quote.h: Include <stdbool.h>.
23307         (struct regex_quote_spec): New type.
23308         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23309         New declarations.
23310         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23311         'const struct regex_quote_spec *' argument.
23312         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23313         (pcre_special): New constant.
23314         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23315         New functions.
23316         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23317         'const struct regex_quote_spec *' argument.
23318         * modules/regex-quote (Depends-on): Add stdbool.
23319         * tests/test-regex-quote.c (check): Update for new API. Add test for
23320         anchored results.
23321         * NEWS: Mention the API change.
23322         Reported by Reuben Thomas and Eric Blake.
23323
23324 2011-03-06  Bruno Haible  <bruno@clisp.org>
23325
23326         regex-quote: Fix creation of POSIX extended regular expressions.
23327         * lib/regex-quote.c (ere_special): Add grouping and alternation
23328         operators.
23329
23330 2011-03-05  Bruno Haible  <bruno@clisp.org>
23331
23332         doc: Improve doc regarding autopoint vs. gnulib.
23333         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23334         disable autopoint while running autoreconf.
23335         Suggested by Ralf Wildenhues.
23336
23337 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23338
23339         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23340         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23341
23342 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23343
23344         parse-duration: remove xalloc.h dependency
23345         * lib/parse-duration.c (parse_period): handle NULL return from
23346         strdup instead of calling xstrdup().
23347         * modules/parse-duration: remove "xalloc" dependency
23348
23349 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23350
23351         bootstrap: honor m4_base when running aclocal
23352         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23353
23354 2011-03-02  Jim Meyering  <meyering@redhat.com>
23355
23356         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23357         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23358         on request from Matt Booth.
23359
23360 2011-03-01  Eric Blake  <eblake@redhat.com>
23361
23362         test-link: work on Hurd
23363         * tests/test-link.h (test_link): Hurd rejects linking directories
23364         with EISDIR instead of the POSIX-mandated EPERM.
23365
23366 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23367
23368         stdio: simplify by moving files to printf-posix, sigpipe
23369         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23370         since this symbol is needed only if printf is replaced.
23371         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23372         Require gl_ASM_SYMBOL_PREFIX.
23373         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23374         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23375         (Depends-on): Add 'raise'.
23376         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23377         * modules/stdio (Files): Remove lib/stdio-write.c,
23378         m4/asm-underscore.m4.
23379         (Depends-on): Remove 'raise'.
23380
23381         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23382         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23383         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23384         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23385
23386 2011-02-28  Bruno Haible  <bruno@clisp.org>
23387
23388         localcharset: Assume ANSI C behaviour of free().
23389         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23390         calling free().
23391         Suggested by Simon Josefsson <simon@josefsson.org>.
23392
23393 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23394             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23395             Bruno Haible  <bruno@clisp.org>  (tiny change)
23396
23397         On Cygwin, use /proc file system instead of win32 API.
23398         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23399         Win32 file names.
23400         (DllMain): Simplify by removing Cygwin specific code.
23401         (find_shared_library_fullname): Use Linux specific implementation also
23402         for Cygwin.
23403         (get_shared_library_fullname): Update accordingly.
23404         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23405         Win32 file names.
23406         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23407         Cygwin specific code.
23408
23409 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23410             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23411
23412         Fix OpenMP flag detection for various Fortran compilers.
23413         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23414         OpenMP-conditional compilation construct, to force compile
23415         failure with missing OpenMP flag.
23416         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23417
23418 2011-02-25  Eric Blake  <eblake@redhat.com>
23419
23420         strstr: expand test coverage
23421         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23422         compilation.
23423         * tests/test-memmem.c (main): Duplicate tests.
23424         * tests/test-strcasestr.c (main): Likewise.
23425         * tests/test-c-strcasestr.c (main): Likewise.
23426
23427 2011-02-25  Jim Meyering  <meyering@redhat.com>
23428
23429         maint.mk: detect missing-NL-at-EOF, too
23430         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23431         it also detects when a file lacks a newline at EOF.
23432         (require_exactly_one_NL_at_EOF_): Renamed from
23433         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23434         since people may well have .x-sc_... file names tied to the
23435         existing name.  Suggested by Eric Blake.
23436
23437 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23438
23439         dirname: move m4/dos.m4 functionality into lib/dosname.h
23440
23441         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23442         extracts symbols from it, puts them into config.h; but it's much
23443         easier to use the symbols directly.  filename.h already does this,
23444         but it disagrees with dos.m4 in some respects.  This patch
23445         introduces a different include file dosname.h that packages up
23446         dos.m4, and then later we can work on merging filename.h and
23447         dosname.h.  Applications that need only the easy-to-configure
23448         symbols should consider including dosname.h rather than dirname.h.
23449         * NEWS: Mention incompatible changes.
23450         * m4/dos.m4: Remove.
23451         * lib/dosname.h, modules/dosname: New files.
23452         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23453         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23454         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23455         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23456         Include dosname.h, not dirname.h.
23457         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23458         Include dosname.h, for definitions of symbols like ISSLASH
23459         that used to be in config.h.
23460         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23461         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23462         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23463         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23464         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23465         * modules/rmdir (Files): Likewise.
23466         * modules/stat (Files): Likewise.
23467         * modules/unlink (Files): Likewise.
23468         * modules/dirname-lgpl (Depends-on): Add dosname.
23469         * modules/lstat (Depends-on): Likewise.
23470         * modules/openat (Depends-on): Likewise.
23471         * modules/rmdir (Depends-on): Likewise.
23472         * modules/savewd (Depends-on): Likewise.
23473         * modules/stat (Depends-on): Likewise.
23474         * modules/unlink (Depends-on): Likewise.
23475         * modules/openat (Depends-on): Remove dirname-lgpl.
23476         * modules/savewd (Depends-on): Likewise.
23477         * tests/test-dirname.c: Do not use removed symbols like
23478         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23479         the remaining symbols, e.g., ISSLASH ('\\').
23480
23481 2011-02-25  Eric Blake  <eblake@redhat.com>
23482
23483         strstr: revert patches that introduced bug and pessimization
23484         * lib/str-two-way.h: Add another reference.
23485         (two_way_short_needle, two_way_long_needle): Revert changes from
23486         2011-02-24; they pessimize search speed.
23487         (critical_factorization): Partially revert changes from
23488         2010-06-22; they violate the requirement that the left half of the
23489         needle be smaller than the period of the needle.
23490
23491 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23492
23493         filenamecat: remove unnecessary dependency on dirname-lgpl
23494         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23495         is no direct dependency, just an indirect one via filenamecat-lgpl.
23496
23497         remove: remove unnecessary use of m4/dos.m4
23498         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23499         * modules/remove (FILES): Remove m4/dos.m4.
23500
23501         * lib/openat-proc.c: Don't include dirname.h; not needed.
23502
23503         backupfile: remove unnecessary use of m4/dos.m4
23504         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23505         of its symbols are used by the backupfile code.  backupfile.c does
23506         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23507         for the rare case of programs that want all their backup file
23508         names to live within 8+3 limits, and dos.m4 doesn't address that.
23509         * modules/backupfile (Files): Remove m4/dos.m4.
23510
23511 2011-02-24  Jim Meyering  <meyering@redhat.com>
23512
23513         strstr: fix a bug whereby strstr would mistakenly return NULL
23514         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23515         in period calculation.
23516         (two_way_long_needle): Likewise.
23517         The original problem was reported by Mike Stump in
23518         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23519         Ralf Wildenhues provided the short needle and haystack.
23520         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23521         Add a more involved test to trigger the bug in two_way_long_needle.
23522
23523 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23524
23525         gnulib-tool: remove use of bold display in help screen
23526         * gnulib-tool (func_usage): Do not use bold display anymore in the
23527         help screen.  That was just meant to be a temporary emphasis for a
23528         backward-incompatible change.
23529
23530 2011-02-23  Bruno Haible  <bruno@clisp.org>
23531
23532         Fix misindentation of preprocessor directives.
23533         * lib/argp-namefrob.h: Reindent preprocessor directives.
23534         * lib/getopt_int.h (struct _getopt_data): Likewise.
23535         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23536         * lib/vasnprintf.c (decode_long_double): Likewise.
23537         * tests/test-argmatch.c: Insert blank lines, for clarity.
23538         * tests/test-exclude.c: Likewise.
23539
23540 2011-02-22  Bruno Haible  <bruno@clisp.org>
23541
23542         ioctl: Fix for MacOS X in 64-bit mode.
23543         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23544         value.
23545         Suggested by Eric Blake.
23546         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23547
23548 2011-02-22  Jim Meyering  <meyering@redhat.com>
23549
23550         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23551         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23552         in lib/.
23553
23554 2011-02-22  Eric Blake  <eblake@redhat.com>
23555
23556         maint: avoid any CDPATH issue
23557         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23558
23559         maint: adjust cpp indentation for my modules, as well
23560         * Makefile (sc_cpp_indent_check): Add my name.
23561         * lib/fbufmode.c: Filter through cppi.
23562         * lib/fpurge.c: Likewise.
23563         * lib/freadable.c: Likewise.
23564         * lib/freading.c: Likewise.
23565         * lib/fwritable.c: Likewise.
23566         * lib/fwriting.c: Likewise.
23567         * lib/sigaction.c: Likewise.
23568
23569 2011-02-22  Jim Meyering  <meyering@redhat.com>
23570
23571         maint: adjust cpp indentation to reflect nesting depth
23572         I.e., in a block of code that begins with an unnested "#if",
23573         put one space between the "#" in column 1 and following token.
23574         For example,
23575         -#include <sys/vfs.h>
23576         +# include <sys/vfs.h>
23577         Do this only in .c files that are part of a module I maintain.
23578         * lib/linkat.c: Filter through cppi.
23579         * lib/nanosleep.c: Likewise.
23580         * lib/openat.c: Likewise.
23581         * lib/openat-die.c: Likewise.
23582         * lib/dup3.c: Likewise.
23583         * lib/fchownat.c: Likewise.
23584         * lib/flock.c: Likewise.
23585         * lib/fsync.c: Likewise.
23586         * lib/fts.c: Likewise.
23587         * lib/getpass.c: Likewise.
23588         * lib/gettimeofday.c: Likewise.
23589         * lib/userspec.c: Likewise.
23590         * Makefile (sc_cpp_indent_check): New rule, to check this.
23591
23592 2011-02-22  Bruno Haible  <bruno@clisp.org>
23593
23594         New module 'wctomb'.
23595         * lib/stdlib.in.h (wctomb): New declaration.
23596         * lib/wctomb.c: New file.
23597         * lib/wctomb-impl.h: New file.
23598         * m4/wctomb.m4: New file.
23599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23600         REPLACE_WCTOMB.
23601         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23602         REPLACE_WCTOMB.
23603         * modules/wctomb: New file.
23604         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23605         * doc/posix-functions/wctomb.texi: Mention the new module.
23606         * modules/wctob (Depends-on): Add wctomb.
23607
23608 2011-02-22  Bruno Haible  <bruno@clisp.org>
23609
23610         New module 'mbtowc'.
23611         * lib/stdlib.in.h (mbtowc): New declaration.
23612         * lib/mbtowc.c: New file.
23613         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23614         * m4/mbtowc.m4: New file.
23615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23616         REPLACE_MBTOWC.
23617         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23618         REPLACE_MBTOWC.
23619         * modules/mbtowc: New file.
23620         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23621         * doc/posix-functions/mbtowc.texi: Mention the new module.
23622         * modules/btowc (Depends-on): Add mbtowc.
23623
23624 2011-02-22  Bruno Haible  <bruno@clisp.org>
23625
23626         wcrtomb: Add more tests for native Windows platforms.
23627         * tests/test-wcrtomb-w32-1.sh: New file.
23628         * tests/test-wcrtomb-w32-2.sh: New file.
23629         * tests/test-wcrtomb-w32-3.sh: New file.
23630         * tests/test-wcrtomb-w32-4.sh: New file.
23631         * tests/test-wcrtomb-w32-5.sh: New file.
23632         * tests/test-wcrtomb-w32.c: New file.
23633         * modules/wcrtomb-tests (Files): Add them.
23634         (Makefile.am): Arrange to run these tests.
23635         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23636         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23637
23638 2011-02-20  Bruno Haible  <bruno@clisp.org>
23639
23640         wcrtomb: Enhance test.
23641         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23642
23643 2011-02-20  Bruno Haible  <bruno@clisp.org>
23644
23645         mbrtowc: Tiny optimization.
23646         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23647
23648 2011-02-20  Jim Meyering  <meyering@redhat.com>
23649
23650         test-exclude.c: remove unmatched #endif
23651         * tests/test-exclude.c: Remove stray #endif, left over from
23652         the change of a week ago.
23653
23654 2011-02-19  Jim Meyering  <meyering@redhat.com>
23655
23656         git-version-gen: skip "-dirty" check when appropriate
23657         * build-aux/git-version-gen: Don't run any git commands when the
23658         version string comes from .tarball-version.  Prior to this, we
23659         would run git update-index --refresh even from a just-unpacked
23660         tarball directory, and that could affect a .git/ directory in a
23661         parent of the build directory.  Reported by Mike Frysinger.
23662
23663 2011-02-19  Bruno Haible  <bruno@clisp.org>
23664
23665         unictype/property-byname: Reduce the size of the 'data' segment.
23666         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23667
23668 2011-02-19  Bruno Haible  <bruno@clisp.org>
23669
23670         unictype/scripts: Reduce the size of the 'data' segment.
23671         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23672         '%pic'.
23673         * lib/unictype/scripts_byname.gperf: Regenerated.
23674
23675 2011-02-19  Bruno Haible  <bruno@clisp.org>
23676
23677         stdint: Update documentation.
23678         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23679
23680 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23681
23682         stdint: omit redundant check for wchar.h
23683         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23684         always tests whether wchar.h exists, so remove the now-redundant test.
23685
23686 2011-02-18  Bruno Haible  <bruno@clisp.org>
23687
23688         stdint: Cut dependency to module 'wchar'.
23689         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23690         include the necessary prerequisites.
23691         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23692         * modules/stdint (Depends-on): Remove wchar.
23693         (Makefile.am): Substitute HAVE_WCHAR_H.
23694         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23695
23696 2011-02-18  Eric Blake  <eblake@redhat.com>
23697
23698         longlong: skip, rather than fail, on cross-compilation
23699         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23700         when cross-compiling; regression from 2011-02-16.
23701
23702 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23703
23704         * NEWS: Mention 2011-02-08 change to stdlib.
23705
23706 2011-02-17  Bruno Haible  <bruno@clisp.org>
23707
23708         getloadavg: Add comments about platforms.
23709         * m4/getloadavg.m4: Add comment.
23710         * lib/getloadavg.c: Likewise.
23711
23712 2011-02-17  Bruno Haible  <bruno@clisp.org>
23713
23714         getloadavg: Fix link error on Solaris 2.6.
23715         * modules/getloadavg (Link): New section.
23716         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23717         linking test-getloadavg.
23718         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23719         getloadavg.
23720
23721 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23722
23723         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23724         It was 'int', but this doesn't match the IRIX 6.5 manual.
23725         Suggested by Bruno Haible in
23726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23727
23728 2011-02-17  Bruno Haible  <bruno@clisp.org>
23729
23730         havelib: Fix comments.
23731         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23732         change.
23733
23734 2011-02-17  Bruno Haible  <bruno@clisp.org>
23735
23736         havelib: Update config.rpath.
23737         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23738
23739 2011-02-17  Bruno Haible  <bruno@clisp.org>
23740
23741         getloadavg test: Add some plausibility checks.
23742         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23743         is improbable.
23744
23745 2011-02-16  Eric Blake  <eblake@redhat.com>
23746
23747         maintainer-makefile: make syntax-check a no-op from tarballs
23748         * top/maint.mk (no-vc-detected): New rule.
23749         (local-checks-available): Use it to avoid hanging if someone tries
23750         'make syntax-check' from a tarball.  Also append to any non-syntax
23751         checks already defined in cfg.mk.
23752
23753 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23754
23755         longlong: tune, particularly for common case of c99
23756
23757         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23758         or running anything if c99, or if unsigned long long int does not
23759         work.  In either case, we know the answer without further tests.
23760         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23761         it at most once, and use its results for both long long int and
23762         unsigned long long int.  This is more likely to be efficient in
23763         the common case where the program wants to check for both long
23764         long int and unsigned long long int.
23765         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23766         since the answer is already known.
23767
23768 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23769
23770         getloadavg: set errno
23771         * lib/getloadavg.c: Set errno when returning -1.  If no other
23772         error number looks appropriate, set it to ENOSYS if the getloadavg
23773         looks like it can't possibly ever work, ENOTSUP otherwise.
23774         Suggested by Bruno Haible in
23775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23776
23777         getloadavg: trim unused parts and speed up 'configure'
23778         * NEWS: Document this.
23779         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23780         always compiled if getloadavg is absent.
23781         Move test code to ...
23782         * tests/test-getloadavg.c: New file, containing previous
23783         contents of test from lib/getloadavg.c.  It also contains
23784         suggestions by Bruno Haible in
23785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23786         * modules/getloadavg-tests: New file.
23787         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23788         Do tests in the same order as they're needed for getloadavg.c.
23789         Omit setgid-related tests that generate symbols KMEM_GROUP,
23790         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23791         Do only the tests that are needed to see whether the system has
23792         getloadavg, moving the other tests into ...
23793         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23794         NLIST_NAME_UNION; nobody should be using it.  Do not define
23795         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23796         relevant, as the user of this module shouldn't care how getloadavg
23797         is implemented.
23798
23799         getloadavg: omit unused var
23800         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23801
23802 2011-02-15  Jim Meyering  <meyering@redhat.com>
23803
23804         doc: update users.txt
23805         * users.txt: Update iwhd's URL.
23806
23807 2011-02-13  Bruno Haible  <bruno@clisp.org>
23808
23809         Consistent macro naming for macros that use GCC __attribute__.
23810         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23811         _ATTRIBUTE_NONNULL_.
23812         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23813         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23814         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23815         ATTRIBUTE_DEPRECATED.
23816         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23817         ATTRIBUTE_NORETURN.
23818         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23819         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23820         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23821         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23822         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23823         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23824         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23825         ATTRIBUTE_SENTINEL.
23826         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23827         ATTRIBUTE_RETURN_CHECK.
23828         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23829         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23830         ATTRIBUTE_NORETURN.
23831         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23832         Reported by Paul Eggert.
23833
23834 2011-02-13  Bruno Haible  <bruno@clisp.org>
23835
23836         Don't interfere with a program's definition of __attribute__.
23837         * lib/argp.h (__attribute__): Remove definition.
23838         (_GL_ATTRIBUTE_FORMAT): New macro.
23839         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23840         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23841         (_GL_ATTRIBUTE_FORMAT): New macro.
23842         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23843         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23844         GCC 3 or newer.
23845         * lib/error.h (__attribute__): Remove definition.
23846         (_GL_ATTRIBUTE_FORMAT): New macro.
23847         (error, error_at_line): Use it.
23848         * lib/hash.h (__attribute__): Remove definition.
23849         (ATTRIBUTE_WUR): Update definition. Define always.
23850         * lib/openat.h (__attribute__): Remove definition.
23851         (ATTRIBUTE_NORETURN): Update definition. Define always.
23852         * lib/sigpipe-die.h (__attribute__): Remove definition.
23853         (ATTRIBUTE_NORETURN): Update definition. Define always.
23854         * lib/vasnprintf.h (__attribute__): Remove definition.
23855         (_GL_ATTRIBUTE_FORMAT): New macro.
23856         (asnprintf, vasnprintf): Use it.
23857         * lib/xalloc.h (__attribute__): Remove definition.
23858         (ATTRIBUTE_NORETURN): Update definition. Define always.
23859         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23860         * lib/xmemdup0.h (__attribute__): Remove definition.
23861         (ATTRIBUTE_NORETURN): Update definition. Define always.
23862         * lib/xprintf.h (__attribute__): Remove definition.
23863         (_GL_ATTRIBUTE_FORMAT): New macro.
23864         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23865         * lib/xstrtol.h (__attribute__): Remove definition.
23866         (ATTRIBUTE_NORETURN): Update definition. Define always.
23867         * lib/xvasprintf.h (__attribute__): Remove definition.
23868         (_GL_ATTRIBUTE_FORMAT): New macro.
23869         (xasprintf, xvasprintf): Use it.
23870         * tests/test-argmatch.c (__attribute__): Remove definition.
23871         (ATTRIBUTE_NORETURN): Update definition. Define always.
23872         * tests/test-exclude.c (__attribute__): Remove definition.
23873         (ATTRIBUTE_NORETURN): Update definition. Define always.
23874         Reported by Paul Eggert.
23875
23876 2011-02-13  Bruno Haible  <bruno@clisp.org>
23877
23878         mbrtowc: Add more tests for native Windows platforms.
23879         * tests/test-mbrtowc-w32-1.sh: New file.
23880         * tests/test-mbrtowc-w32-2.sh: New file.
23881         * tests/test-mbrtowc-w32-3.sh: New file.
23882         * tests/test-mbrtowc-w32-4.sh: New file.
23883         * tests/test-mbrtowc-w32-5.sh: New file.
23884         * tests/test-mbrtowc-w32.c: New file.
23885         * modules/mbrtowc-tests (Files): Add them.
23886         (Makefile.am): Arrange to run these tests.
23887         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23888         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23889
23890 2011-02-13  Bruno Haible  <bruno@clisp.org>
23891
23892         mbrtowc: Work around native Windows bug.
23893         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23894         guess when no suitable locale for testing was found.
23895         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23896
23897 2011-02-13  Bruno Haible  <bruno@clisp.org>
23898
23899         mbsinit: Work around mingw bug.
23900         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23901         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23902         Windows.
23903         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23904
23905 2011-02-13  Bruno Haible  <bruno@clisp.org>
23906
23907         mbsinit: Don't crash for a NULL argument.
23908         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23909         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23910
23911 2011-02-13  Bruno Haible  <bruno@clisp.org>
23912
23913         Don't interfere with a program's definition of __attribute__.
23914         * lib/stdio.in.h (__attribute__): Remove definition.
23915         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23916         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23917         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23918         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23919         * lib/string.in.h (__attribute__): Remove definition.
23920         Reported by Paul Eggert.
23921
23922 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23923
23924         stdlib: don't get in the way of non-GCC __attribute__
23925         See thread starting at
23926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23927         Revert previous stdlib change, installing the following instead:
23928         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23929         to get in the way of a non-GCC compiler that supports __attribute__.
23930         (_GL_ATTRIBUTE_RETURN): New macro.
23931         (_Exit): Use it instead of __attribute__.
23932
23933 2011-02-12  Bruno Haible  <bruno@clisp.org>
23934
23935         quotearg test: Avoid test failure on mingw.
23936         * tests/test-quotearg.sh: Convert the locale identifier from native
23937         Windows syntax to Unix syntax.
23938
23939 2011-02-12  Bruno Haible  <bruno@clisp.org>
23940
23941         setlocale: Prefer gnulib's override over libintl's override.
23942         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23943         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23944         GNULIB_defined_setlocale is set.
23945
23946 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23947
23948         stdlib: support non-GCC __attribute__
23949
23950         Fix a serious and tricky problem encountered when attempting to
23951         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23952         5.5, but it crashed due to memory corruption on Solaris 10 with
23953         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23954         bits that are otherwise zero.  This tagging is optional inside
23955         Emacs but is preferred and is used when __attribute__ ((__aligned
23956         (8))) works, as it does with both recent-enough GCC and with Sun C
23957         5.11.  However, Sun C 5.11 is not GCC and does not #define
23958         __GNUC__ and __GNUC_MINOR__.
23959
23960         When I added the getloadavg module to Emacs, it brought in
23961         stdlib.in.h, which contained this fragment:
23962
23963            #ifndef __attribute__
23964            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23965            #  define __attribute__(Spec)   /* empty */
23966            # endif
23967            #endif
23968
23969         When files that include <stdlib.h> were compiled with Sun C 5.11,
23970         the above code disabled __attribute__ ((__aligned (8))), which
23971         caused variables to not be properly aligned, which eventually led
23972         to the pointer corruption mentioned above.  (This was a bit hard
23973         to diagnose, unfortunately.)
23974
23975         Several "#define __attribute__(X) /* empty */" code snippets need
23976         to be eradicated from Gnulib to work with non-GCC compilers that
23977         support __attribute__.  The Autoconf way to do this is to test for
23978         each kind of attribute that we want support for, and selectively
23979         enable that in source code.
23980
23981         Fix this problem just for stdlib.h, by adding a test for the
23982         __noreturn__ attribute, and change stdlib.in.h to use that test
23983         when needed.  This technique can be easily generalized to the
23984         other *.in.h files and attributes, and a similar technique can be
23985         used for *.h and *.c files.  This patch is enough to solve the
23986         problem for Emacs + getloadavg, and I thought I'd publish it for
23987         feedback before undertaking further, similar fixes in other
23988         modules.
23989
23990         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23991         because it's not needed for stdlib.h.  It merely substitutes the
23992         value directly into stdlib.h.  We may well need to #define it, or
23993         similar symbols, for other modules, but it's nice to also have an
23994         option to not #define it for applications like Emacs that do not
23995         need it.
23996
23997         * lib/stdlib.in.h (__attribute__): Do not #define.
23998         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23999         be defined only if the _Exit module is also used.
24000         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24002         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24003         platforms.
24004         * modules/_Exit (Files): Add m4/attribute.m4.
24005         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24006         * m4/attribute.m4: New file.
24007
24008 2011-02-12  Bruno Haible  <bruno@clisp.org>
24009
24010         wcsrtombs: Work around bug on native Windows.
24011         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24012         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24013         instead of len.
24014         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24015
24016 2011-02-12  Bruno Haible  <bruno@clisp.org>
24017
24018         mbsrtowcs: Work around bug on native Windows.
24019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24020         against mingw bug.
24021         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24022
24023 2011-02-12  Bruno Haible  <bruno@clisp.org>
24024
24025         Avoid setlocale bugs in tests.
24026         * modules/btowc (Dependencies): Add setlocale.
24027         * modules/c-strcase (Dependencies): Likewise.
24028         * modules/mbmemcasecmp (Dependencies): Likewise.
24029         * modules/mbmemcasecoll (Dependencies): Likewise.
24030         * modules/mbrtowc (Dependencies): Likewise.
24031         * modules/mbscasecmp (Dependencies): Likewise.
24032         * modules/mbscasestr (Dependencies): Likewise.
24033         * modules/mbschr (Dependencies): Likewise.
24034         * modules/mbscspn (Dependencies): Likewise.
24035         * modules/mbsinit (Dependencies): Likewise.
24036         * modules/mbsncasecmp (Dependencies): Likewise.
24037         * modules/mbsnrtowcs (Dependencies): Likewise.
24038         * modules/mbspbrk (Dependencies): Likewise.
24039         * modules/mbspcasecmp (Dependencies): Likewise.
24040         * modules/mbsrchr (Dependencies): Likewise.
24041         * modules/mbsrtowcs (Dependencies): Likewise.
24042         * modules/mbsspn (Dependencies): Likewise.
24043         * modules/mbsstr (Dependencies): Likewise.
24044         * modules/nl_langinfo (Dependencies): Likewise.
24045         * modules/quotearg (Dependencies): Likewise.
24046         * modules/unicase/locale-language (Dependencies): Likewise.
24047         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24048         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24049         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24050         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24051         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24052         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24053         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24054         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24055         * modules/vasnprintf-posix (Dependencies): Likewise.
24056         * modules/wcrtomb (Dependencies): Likewise.
24057         * modules/wcsnrtombs (Dependencies): Likewise.
24058         * modules/wcsrtombs (Dependencies): Likewise.
24059
24060 2011-02-12  Bruno Haible  <bruno@clisp.org>
24061
24062         setlocale: Workaround native Windows bug.
24063         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24064         succeeds but sets LC_CTYPE to "C", report a failure.
24065         * tests/test-setlocale2.sh: New file.
24066         * tests/test-setlocale2.c: New file.
24067         * modules/setlocale-tests (Files): Add the new files.
24068         (Makefile.am): Enable test-setlocale2.sh test.
24069         * doc/posix-functions/setlocale.texi: Mention workaround.
24070
24071 2011-02-11  Bruno Haible  <bruno@clisp.org>
24072
24073         Tests for module 'setlocale'.
24074         * modules/setlocale-tests: New file.
24075         * tests/test-setlocale1.sh: New file.
24076         * tests/test-setlocale1.c: New file.
24077
24078         New module 'setlocale'.
24079         * lib/locale.in.h (setlocale): New declaration.
24080         * lib/setlocale.c: New file, based on
24081         gettext/gettext-runtime/intl/setlocale.c.
24082         * m4/setlocale.m4: New file.
24083         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24084         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24085         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24086         REPLACE_SETLOCALE.
24087         * modules/setlocale: New file.
24088         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24089         * doc/posix-functions/setlocale.texi: Mention the new module.
24090
24091 2011-02-11  Bruno Haible  <bruno@clisp.org>
24092
24093         Prepare for locale dependent tests on mingw.
24094         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24095         because it has the wrong locale encoding.
24096         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24097         French_France.1252 instead of "fr".
24098         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24099         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24100         because it has the wrong locale encoding.
24101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24102         native Windows, try Turkish_Turkey.65001.
24103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24104         Chinese_China.54936.
24105
24106         Prepare for locale dependent tests on mingw.
24107         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24108         differently.
24109         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24110         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24112         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24113
24114 2011-02-11  Eric Blake  <eblake@redhat.com>
24115
24116         strptime: avoid compiler warnings
24117         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24118         compiler warnings about dead code.
24119         Reported by Daniel P. Berrange.
24120
24121 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24122
24123         doc: update users.txt
24124         * users.txt: Add rcs.
24125
24126 2011-02-10  John W. Eaton  <jwe@gnu.org>
24127
24128         doc: update users.txt
24129         * users.txt: Add octave.
24130
24131 2011-02-10  Jim Meyering  <meyering@redhat.com>
24132
24133         doc: update users.txt
24134         * users.txt: Add iwhd.
24135
24136 2011-02-09  Bruno Haible  <bruno@clisp.org>
24137
24138         gnulib-tool: Make copyright notice adjustment more robust.
24139         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24140         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24141         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24142         License".
24143         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24144
24145 2011-02-06  Bruno Haible  <bruno@clisp.org>
24146
24147         New module 'towctrans'.
24148         * modules/towctrans: New file.
24149         * lib/wctype.in.h (towctrans): New declaration.
24150         * lib/towctrans.c: New file.
24151         * lib/towctrans-impl.h: New file.
24152         * m4/towctrans.m4: New file.
24153         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24154         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24155         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24156         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24157         * doc/posix-functions/towctrans.texi: Mention the new module.
24158
24159 2011-02-06  Bruno Haible  <bruno@clisp.org>
24160
24161         New module 'wctrans'.
24162         * modules/wctrans: New file.
24163         * lib/wctype.in.h (wctrans): New declaration.
24164         * lib/wctrans.c: New file.
24165         * lib/wctrans-impl.h: New file.
24166         * m4/wctrans.m4: New file.
24167         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24168         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24169         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24170         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24171         * doc/posix-functions/wctrans.texi: Mention the new module.
24172
24173 2011-02-06  Bruno Haible  <bruno@clisp.org>
24174
24175         New module 'iswctype'.
24176         * modules/iswctype: New file.
24177         * lib/wctype.in.h (iswctype): New declaration.
24178         * lib/iswctype.c: New file.
24179         * lib/iswctype-impl.h: New file.
24180         * m4/iswctype.m4: New file.
24181         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24182         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24183         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24184         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24185         * doc/posix-functions/iswctype.texi: Mention the new module and the
24186         HP-UX 11.00 problem.
24187
24188 2011-02-06  Bruno Haible  <bruno@clisp.org>
24189
24190         New module 'wctype'.
24191         * modules/wctype: Change to represent the wctype() substitute.
24192         * lib/wctype.in.h (wctype): New declaration.
24193         * lib/wctype.c: New file.
24194         * lib/wctype-impl.h: New file.
24195         * m4/wctype.m4: New file.
24196         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24197         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24198         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24199         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24200         * doc/posix-functions/wctype.texi: Mention the new module and the
24201         HP-UX 11.00 problem.
24202
24203 2011-02-06  Bruno Haible  <bruno@clisp.org>
24204
24205         wctype-h: Ensure wctype_t and wctrans_t are defined.
24206         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24207         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24208         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24209         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24210         HAVE_WCTRANS_T.
24211         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24212
24213 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         flock: fix license typo
24216
24217         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24218         omitted.
24219
24220 2011-02-08  Bruno Haible  <bruno@clisp.org>
24221
24222         Split large sed scripts, for HP-UX sed.
24223         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24224         to avoid HP-UX limit of 99 commands, in the near future.
24225         * modules/stdlib (Makefile.am): Likewise.
24226         * modules/unistd (Makefile.am): Likewise.
24227         * modules/wchar (Makefile.am): Likewise.
24228         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24229         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24230         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24231
24232 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24233             Bruno Haible  <bruno@clisp.org>
24234
24235         stdlib: improve random_r modularization
24236         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24237         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24238         you also need the random_r module to get this material right.
24239         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24240         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24241         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24242
24243 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24244
24245         stdlib: don't depend on stdint
24246         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24247         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24248         be independent of whether stdint.h is needed.
24249         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24250         here, instead of ...
24251         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24252         struct random_data should be using the random_r module, not just
24253         the stdlib module (which wouldn't make sense: what package needs
24254         just struct random_data without also needing random_r?).
24255         * modules/stdlib (Depends-on): Remove stdint.
24256
24257         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24258         See the thread rooted at
24259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24260         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24261         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24262         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24263         __VMS)); previously it was always included (via fcntl--.h).
24264         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24265         hand; this is good enough for load averages.  Also, do not use
24266         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24267         flags directly if available and don't bother otherwise.  (Packages
24268         that need the extra reliability should use the modules that define
24269         these flags on older platforms that lack them.)
24270         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24271         fcntl-safer.
24272
24273 2011-02-08  Jim Meyering  <meyering@redhat.com>
24274
24275         di-set.h, ino-map.h: add multiple-inclusion guard
24276         Technically, the guard is required only for ino-map.h, due to its
24277         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24278         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24279         * lib/ino-map.h: Likewise.
24280
24281 2011-02-06  Bruno Haible  <bruno@clisp.org>
24282
24283         iswblank: Ensure declaration on glibc systems.
24284         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24285         * modules/iswblank (Dependencies): Add 'extensions'.
24286         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24287
24288 2011-02-06  Bruno Haible  <bruno@clisp.org>
24289
24290         New module 'iswblank'.
24291         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24292         * modules/iswblank: New file.
24293         * modules/wctype-h (Files): Remove lib/iswblank.c.
24294         (Makefile.am): Substitute GNULIB_ISWBLANK.
24295         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24296         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24297         (gl_WCTYPE_H_DEFAULTS): New macro.
24298         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24299         * modules/iswblank-tests: New file.
24300         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24301         * tests/test-wctype-h.c (main): Remove iswblank tests.
24302         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24303         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24304         of 'wctype-h'.
24305         * NEWS: Mention the change.
24306         * modules/mbchar (Depends-on): Add iswblank.
24307
24308 2011-02-08  Bruno Haible  <bruno@clisp.org>
24309
24310         di-set tests: Refactor.
24311         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24312         unnecessary includes.
24313         (ASSERT): Remove macro.
24314         (main): Make C90 compliant by avoiding variable declaration after
24315         statement.
24316         * modules/di-set-tests (Files): Add tests/macros.h.
24317
24318 2011-02-08  Bruno Haible  <bruno@clisp.org>
24319
24320         ino-map tests: Refactor.
24321         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24322         unnecessary includes.
24323         (ASSERT): Remove macro.
24324         (main): Make C90 compliant by avoiding variable declaration after
24325         statement.
24326         * modules/ino-map-tests (Files): Add tests/macros.h.
24327
24328 2011-02-08  Jim Meyering  <meyering@redhat.com>
24329
24330         di-set: add "const" to a cast
24331         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24332         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24333
24334 2011-02-06  Bruno Haible  <bruno@clisp.org>
24335
24336         Rename module 'wctype' to 'wctype-h'.
24337         * modules/wctype-h: Renamed from modules/wctype.
24338         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24339         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24340         (Files, Depends-on, Makefile.am): Update.
24341         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24342         (Files, Makefile.am): Update.
24343         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24344         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24345         * doc/posix-headers/wctype.texi: Update.
24346         * doc/posix-functions/iswalnum.texi: Update.
24347         * doc/posix-functions/iswalpha.texi: Update.
24348         * doc/posix-functions/iswblank.texi: Update.
24349         * doc/posix-functions/iswcntrl.texi: Update.
24350         * doc/posix-functions/iswdigit.texi: Update.
24351         * doc/posix-functions/iswgraph.texi: Update.
24352         * doc/posix-functions/iswlower.texi: Update.
24353         * doc/posix-functions/iswprint.texi: Update.
24354         * doc/posix-functions/iswpunct.texi: Update.
24355         * doc/posix-functions/iswspace.texi: Update.
24356         * doc/posix-functions/iswupper.texi: Update.
24357         * doc/posix-functions/iswxdigit.texi: Update.
24358         * doc/posix-functions/towlower.texi: Update.
24359         * doc/posix-functions/towupper.texi: Update.
24360         * NEWS: Mention the change.
24361         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24362         * modules/mbchar (Dependencies): Likewise.
24363         * modules/mbswidth (Dependencies): Likewise.
24364         * modules/quotearg (Dependencies): Likewise.
24365         * modules/regex (Dependencies): Likewise.
24366         * modules/wcscasecmp (Dependencies): Likewise.
24367         * modules/wcsncasecmp (Dependencies): Likewise.
24368         * modules/wcwidth (Dependencies): Likewise.
24369
24370 2011-02-06  Bruno Haible  <bruno@clisp.org>
24371
24372         New module 'wcswidth'.
24373         * modules/wcswidth: New file.
24374         * lib/wchar.in.h (wcswidth): New declaration.
24375         * lib/wcswidth.c: New file.
24376         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24377         * m4/wcswidth.m4: New file.
24378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24380         REPLACE_WCSWIDTH.
24381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24382         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24383         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24384         * doc/posix-functions/wcswidth.texi: Mention the new module.
24385
24386 2011-02-06  Bruno Haible  <bruno@clisp.org>
24387
24388         New module 'wcstok'.
24389         * modules/wcstok: New file.
24390         * lib/wchar.in.h (wcstok): New declaration.
24391         * lib/wcstok.c: New file.
24392         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24393         * m4/wcstok.m4: New file.
24394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24397         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24398         * doc/posix-functions/wcstok.texi: Mention the new module.
24399
24400 2011-02-06  Bruno Haible  <bruno@clisp.org>
24401
24402         New module 'wcsstr'.
24403         * modules/wcsstr: New file.
24404         * lib/wchar.in.h (wcsstr): New declaration.
24405         * lib/wcsstr.c: New file.
24406         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24407         * m4/wcsstr.m4: New file.
24408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24411         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24412         * doc/posix-functions/wcsstr.texi: Mention the new module.
24413
24414 2011-02-06  Bruno Haible  <bruno@clisp.org>
24415
24416         New module 'wcspbrk'.
24417         * modules/wcspbrk: New file.
24418         * lib/wchar.in.h (wcspbrk): New declaration.
24419         * lib/wcspbrk.c: New file.
24420         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24421         * m4/wcspbrk.m4: New file.
24422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24425         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24426         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24427
24428 2011-02-06  Bruno Haible  <bruno@clisp.org>
24429
24430         New module 'wcsspn'.
24431         * modules/wcsspn: New file.
24432         * lib/wchar.in.h (wcsspn): New declaration.
24433         * lib/wcsspn.c: New file.
24434         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24435         * m4/wcsspn.m4: New file.
24436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24439         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24440         * doc/posix-functions/wcsspn.texi: Mention the new module.
24441
24442 2011-02-06  Bruno Haible  <bruno@clisp.org>
24443
24444         New module 'wcscspn'.
24445         * modules/wcscspn: New file.
24446         * lib/wchar.in.h (wcscspn): New declaration.
24447         * lib/wcscspn.c: New file.
24448         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24449         * m4/wcscspn.m4: New file.
24450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24453         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24454         * doc/posix-functions/wcscspn.texi: Mention the new module.
24455
24456 2011-02-06  Bruno Haible  <bruno@clisp.org>
24457
24458         New module 'wcsrchr'.
24459         * modules/wcsrchr: New file.
24460         * lib/wchar.in.h (wcsrchr): New declaration.
24461         * lib/wcsrchr.c: New file.
24462         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24463         * m4/wcsrchr.m4: New file.
24464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24467         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24468         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24469
24470 2011-02-06  Bruno Haible  <bruno@clisp.org>
24471
24472         New module 'wcschr'.
24473         * modules/wcschr: New file.
24474         * lib/wchar.in.h (wcschr): New declaration.
24475         * lib/wcschr.c: New file.
24476         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24477         * m4/wcschr.m4: New file.
24478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24481         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24482         * doc/posix-functions/wcschr.texi: Mention the new module.
24483
24484 2011-02-06  Bruno Haible  <bruno@clisp.org>
24485
24486         New module 'wcsdup'.
24487         * modules/wcsdup: New file.
24488         * lib/wchar.in.h (wcsdup): New declaration.
24489         * lib/wcsdup.c: New file.
24490         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24491         * m4/wcsdup.m4: New file.
24492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24495         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24496         * doc/posix-functions/wcsdup.texi: Mention the new module.
24497
24498 2011-02-06  Bruno Haible  <bruno@clisp.org>
24499
24500         New module 'wcsxfrm'.
24501         * modules/wcsxfrm: New file.
24502         * lib/wchar.in.h (wcsxfrm): New declaration.
24503         * lib/wcsxfrm.c: New file.
24504         * lib/wcsxfrm-impl.h: New file.
24505         * m4/wcsxfrm.m4: New file.
24506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24509         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24510         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24511
24512 2011-02-06  Bruno Haible  <bruno@clisp.org>
24513
24514         New module 'wcscoll'.
24515         * modules/wcscoll: New file.
24516         * lib/wchar.in.h (wcscoll): New declaration.
24517         * lib/wcscoll.c: New file.
24518         * lib/wcscoll-impl.h: New file.
24519         * m4/wcscoll.m4: New file.
24520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24523         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24524         * doc/posix-functions/wcscoll.texi: Mention the new module.
24525
24526 2011-02-06  Bruno Haible  <bruno@clisp.org>
24527
24528         New module 'wcsncasecmp'.
24529         * modules/wcsncasecmp: New file.
24530         * lib/wchar.in.h (wcsncasecmp): New declaration.
24531         * lib/wcsncasecmp.c: New file.
24532         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24533         * m4/wcsncasecmp.m4: New file.
24534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24537         HAVE_WCSNCASECMP.
24538         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24539         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24540
24541 2011-02-06  Bruno Haible  <bruno@clisp.org>
24542
24543         New module 'wcscasecmp'.
24544         * modules/wcscasecmp: New file.
24545         * lib/wchar.in.h (wcscasecmp): New declaration.
24546         * lib/wcscasecmp.c: New file.
24547         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24548         * m4/wcscasecmp.m4: New file.
24549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24552         HAVE_WCSCASECMP.
24553         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24554         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24555
24556 2011-02-05  Bruno Haible  <bruno@clisp.org>
24557
24558         New module 'wcsncmp'.
24559         * modules/wcsncmp: New file.
24560         * lib/wchar.in.h (wcsncmp): New declaration.
24561         * lib/wcsncmp.c: New file.
24562         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24563         * m4/wcsncmp.m4: New file.
24564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24567         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24568         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24569
24570 2011-02-05  Bruno Haible  <bruno@clisp.org>
24571
24572         New module 'wcscmp'.
24573         * modules/wcscmp: New file.
24574         * lib/wchar.in.h (wcscmp): New declaration.
24575         * lib/wcscmp.c: New file.
24576         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24577         * m4/wcscmp.m4: New file.
24578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24581         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24582         * doc/posix-functions/wcscmp.texi: Mention the new module.
24583
24584 2011-02-05  Bruno Haible  <bruno@clisp.org>
24585
24586         New module 'wcsncat'.
24587         * modules/wcsncat: New file.
24588         * lib/wchar.in.h (wcsncat): New declaration.
24589         * lib/wcsncat.c: New file.
24590         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24591         * m4/wcsncat.m4: New file.
24592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24595         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24596         * doc/posix-functions/wcsncat.texi: Mention the new module.
24597
24598 2011-02-05  Bruno Haible  <bruno@clisp.org>
24599
24600         New module 'wcscat'.
24601         * modules/wcscat: New file.
24602         * lib/wchar.in.h (wcscat): New declaration.
24603         * lib/wcscat.c: New file.
24604         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24605         * m4/wcscat.m4: New file.
24606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24609         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24610         * doc/posix-functions/wcscat.texi: Mention the new module.
24611
24612 2011-02-05  Bruno Haible  <bruno@clisp.org>
24613
24614         New module 'wcpncpy'.
24615         * modules/wcpncpy: New file.
24616         * lib/wchar.in.h (wcpncpy): New declaration.
24617         * lib/wcpncpy.c: New file.
24618         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24619         * m4/wcpncpy.m4: New file.
24620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24622         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24623         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24624         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24625
24626 2011-02-05  Bruno Haible  <bruno@clisp.org>
24627
24628         New module 'wcsncpy'.
24629         * modules/wcsncpy: New file.
24630         * lib/wchar.in.h (wcsncpy): New declaration.
24631         * lib/wcsncpy.c: New file.
24632         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24633         * m4/wcsncpy.m4: New file.
24634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24637         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24638         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24639
24640 2011-02-05  Bruno Haible  <bruno@clisp.org>
24641
24642         New module 'wcpcpy'.
24643         * modules/wcpcpy: New file.
24644         * lib/wchar.in.h (wcpcpy): New declaration.
24645         * lib/wcpcpy.c: New file.
24646         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24647         * m4/wcpcpy.m4: New file.
24648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24650         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24651         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24652         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24653
24654 2011-02-05  Bruno Haible  <bruno@clisp.org>
24655
24656         New module 'wcscpy'.
24657         * modules/wcscpy: New file.
24658         * lib/wchar.in.h (wcscpy): New declaration.
24659         * lib/wcscpy.c: New file.
24660         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24661         * m4/wcscpy.m4: New file.
24662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24665         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24666         * doc/posix-functions/wcscpy.texi: Mention the new module.
24667
24668 2011-02-05  Bruno Haible  <bruno@clisp.org>
24669
24670         New module 'wcsnlen'.
24671         * modules/wcsnlen: New file.
24672         * lib/wchar.in.h (wcsnlen): New declaration.
24673         * lib/wcsnlen.c: New file.
24674         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24675         * m4/wcsnlen.m4: New file.
24676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24679         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24680         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24681
24682 2011-02-05  Bruno Haible  <bruno@clisp.org>
24683
24684         New module 'wcslen'.
24685         * modules/wcslen: New file.
24686         * lib/wchar.in.h (wcslen): New declaration.
24687         * lib/wcslen.c: New file.
24688         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24689         * m4/wcslen.m4: New file.
24690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24693         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24694         * doc/posix-functions/wcslen.texi: Mention the new module.
24695
24696 2011-02-05  Bruno Haible  <bruno@clisp.org>
24697
24698         New module 'wmemset'.
24699         * modules/wmemset: New file.
24700         * lib/wchar.in.h (wmemset): New declaration.
24701         * lib/wmemset.c: New file.
24702         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24703         * m4/wmemset.m4: New file.
24704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24706         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24707         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24708         * doc/posix-functions/wmemset.texi: Mention the new module.
24709
24710 2011-02-05  Bruno Haible  <bruno@clisp.org>
24711
24712         New module 'wmemmove'.
24713         * modules/wmemmove: New file.
24714         * lib/wchar.in.h (wmemmove): New declaration.
24715         * lib/wmemmove.c: New file.
24716         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24717         * m4/wmemmove.m4: New file.
24718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24720         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24721         HAVE_WMEMMOVE.
24722         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24723         * doc/posix-functions/wmemmove.texi: Mention the new module.
24724
24725 2011-02-05  Bruno Haible  <bruno@clisp.org>
24726
24727         New module 'wmemcpy'.
24728         * modules/wmemcpy: New file.
24729         * lib/wchar.in.h (wmemcpy): New declaration.
24730         * lib/wmemcpy.c: New file.
24731         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24732         * m4/wmemcpy.m4: New file.
24733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24735         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24736         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24737         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24738
24739 2011-02-05  Bruno Haible  <bruno@clisp.org>
24740
24741         New module 'wmemcmp'.
24742         * modules/wmemcmp: New file.
24743         * lib/wchar.in.h (wmemcmp): New declaration.
24744         * lib/wmemcmp.c: New file.
24745         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24746         * m4/wmemcmp.m4: New file.
24747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24749         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24750         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24751         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24752
24753 2011-02-07  Jim Meyering  <meyering@redhat.com>
24754
24755         di-set, ino-map: new modules, from coreutils
24756         * lib/di-set.c: New file.
24757         * lib/di-set.h: Likewise.
24758         * lib/ino-map.c: Likewise.
24759         * lib/ino-map.h: Likewise.
24760         * modules/di-set: Likewise.
24761         * modules/di-set-tests: Likewise.
24762         * modules/ino-map: Likewise.
24763         * modules/ino-map-tests: Likewise.
24764         * tests/test-di-set.c: Likewise.
24765         * tests/test-ino-map.c: Likewise.
24766
24767 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24768
24769         getloadavg: merge minor changes from Emacs
24770
24771         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24772         (getloadavg): Use memset, not bzero.
24773
24774         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24775         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24776         clash (bug#86).
24777
24778 2010-11-14  Bruno Haible  <bruno@clisp.org>
24779
24780         Allow multiple gnulib generated replacements to coexist.
24781         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24782         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24783         * lib/langinfo.in.h (nl_item): Likewise.
24784         * lib/math.in.h (_NaN, NAN): Likewise.
24785         * lib/netdb.in.h (struct addrinfo): Likewise.
24786         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24787         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24788         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24789         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24790         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24791         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24792         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24793         pthread_mutexattr_init, pthread_mutexattr_settype,
24794         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24795         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24796         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24797         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24798         * lib/sched.in.h (struct sched_param): Likewise.
24799         * lib/se-selinux.in.h (security_class_t, security_context_t,
24800         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24801         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24802         lsetfilecon, fsetfilecon, security_check_context,
24803         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24804         Likewise.
24805         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24806         Likewise.
24807         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24808         _gl_function_taking_int_returning_void_t, union sigval,
24809         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24810         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24811         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24812         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24813         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24814         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24815         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24816         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24817         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24818         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24819         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24820         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24821         socklen_t, rpl_fd_isset): Likewise.
24822         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24823         * lib/sys_time.in.h (struct timeval): Likewise.
24824         * lib/sys_times.in.h (struct tms): Likewise.
24825         * lib/sys_utsname.in.h (struct utsname):
24826         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24827         * lib/unistd.in.h (getpagesize): Likewise.
24828         * lib/wchar.in.h (mbstate_t): Likewise.
24829         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24830         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24831         towlower, towupper): Likewise.
24832         Reported by Sam Steingold <sds@gnu.org>.
24833
24834 2011-02-05  Eric Blake  <eblake@redhat.com>
24835
24836         unsetenv: work around Haiku issues
24837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24838         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24839
24840 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24841
24842         libposix: avoid calling error() within libposix
24843         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24844         is defined.
24845
24846 2011-02-05  Eric Blake  <eblake@redhat.com>
24847
24848         strerror_r-posix: port to cygwin
24849         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24850         implementation.
24851         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24852         * tests/test-strerror_r.c (main): Fix test.
24853         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24854         issue.
24855
24856 2011-02-05  Bruno Haible  <bruno@clisp.org>
24857
24858         New module 'wmemchr'.
24859         * modules/wmemchr: New file.
24860         * lib/wchar.in.h (wmemchr): New declaration.
24861         * lib/wmemchr.c: New file.
24862         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24863         * m4/wmemchr.m4: New file.
24864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24866         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24867         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24868         * doc/posix-functions/wmemchr.texi: Mention the new module.
24869
24870 2011-02-04  Eric Blake  <eblake@redhat.com>
24871
24872         fdopendir: detect FreeBSD bug
24873         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24874         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24875
24876 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24877
24878         stdbool: do not define HAVE_STDBOOL_H
24879         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24880         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24881         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24882         imported from the latest Autoconf git.  It was motivated by Emacs,
24883         which uses gnulib but does not need HAVE_STDBOOL_H.
24884
24885 2011-02-04  Bruno Haible  <bruno@clisp.org>
24886
24887         wcsnrtombs: Prepare for new module wwcsnrtombs.
24888         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24889         * lib/wcsnrtombs.c: Include it.
24890         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24891
24892         wcsrtombs: Prepare for new module wwcsrtombs.
24893         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24894         * lib/wcsrtombs.c: Include it.
24895         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24896
24897         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24898         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24899         * lib/mbsnrtowcs.c: Include it.
24900         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24901
24902         mbsrtowcs: Prepare for new module mbsrtowwcs.
24903         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24904         * lib/mbsrtowcs.c: Include it.
24905         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24906
24907 2011-02-04  Bruno Haible  <bruno@clisp.org>
24908
24909         vasnprintf: Reduce use of malloc for small format strings.
24910         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24911         (arguments): Add room for the first 7 arguments.
24912         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24913         (char_directives, u8_directives, u16_directives, u32_directives): Add
24914         room for the first 7 directives.
24915         * lib/printf-parse.c: Include <string.h>.
24916         (PRINTF_PARSE): Change memory handling code so that it uses the first
24917         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24918         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24919         Reported by Pádraig Brady <P@draigbrady.com>.
24920
24921 2011-01-31  Eric Blake  <eblake@redhat.com>
24922
24923         dup2: work around Haiku bug
24924         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24925         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24926         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24927         * tests/test-dup2.c (main): Enhance test.
24928
24929 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24930
24931         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24932         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24933         declared by eglibc 2.11.2.
24934         * lib/stdio.in.h: Likewise.
24935
24936 2011-01-31  Eric Blake  <eblake@redhat.com>
24937
24938         ignore-value: add missing test dependency
24939         * tests/test-ignore-value.c: Revert previous change; stdio.h
24940         provides off_t.
24941         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24942
24943 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24944
24945         mktime: clarify long_int width checking
24946         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24947         the top level, to make it clearer that the assumption about
24948         long_int width is being checked.  See
24949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24950
24951 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24952
24953         ignore-value: Fix self-test.
24954         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24955
24956 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24957
24958         TYPE_MAXIMUM: avoid theoretically undefined behavior
24959         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24960         negative number, which the C Standard says has undefined behavior.
24961         In practice this is not a problem, but might as well do it by the book.
24962         Reported by Rich Felker and Eric Blake; see
24963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24964         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24965         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24967         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24968         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24969         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24970
24971         mktime: #undef mktime before #defining it
24972         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24973
24974         mktime: systematically normalize tm_isdst comparisons
24975         * lib/mktime.c (isdst_differ): New function.
24976         (__mktime_internal): Use it systematically for all isdst comparisons.
24977         This completes the fix for libc BZ #6723, and removes the need for
24978         normalizing tm_isdst.  See
24979         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24980         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24981
24982         mktime: fix some integer overflow issues and sidestep the rest
24983
24984         This was prompted by a bug report by Benjamin Lindner for MinGW
24985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24986         His bug is due to signed integer overflow (0 - INT_MIN), and I
24987         I scanned through mktime.c looking for other integer overflow
24988         problems, fixing all the bugs I found.
24989
24990         Although the C Standard says the resulting code is still not safe
24991         in the presence of integer overflow, in practice it should be good
24992         enough for all real-world two's-complement implementations, except
24993         for debugging environments that deliberately trap on integer
24994         overflow (e.g., gcc -ftrapv).
24995
24996         * lib/mktime.c (WRAPV): New macro.
24997         (SHR): Also check that long_int and time_t shift right in the
24998         usual way, before using the fast-but-unportable method.
24999         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25000         used.  The code already assumed two's complement, so there's
25001         no need to test for alternatives.  All uses removed.
25002         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25003         the C standard.  Problem reported by Rich Felker in
25004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25005         (twos_complement_arithmetic): Also check long_int and time_t.
25006         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25007         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25008         (__mktime_internal): Avoid integer overflow with unary subtraction
25009         in two instances where -1 - X is an adequate replacement for -X,
25010         since the calculations are approximate.
25011
25012 2011-01-29  Eric Blake  <eblake@redhat.com>
25013
25014         mktime: avoid infinite loop
25015         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25016         type; behavior is still undefined but portable to all known targets.
25017         Reported by Rich Felker.
25018
25019 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25020
25021         rename, unlink, same-inode: Relicense.
25022         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25023         * modules/unlink (License): Likewise.
25024         * modules/same-inode (License): Likewise.
25025
25026 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25027
25028         mktime: avoid problems on NetBSD 5 / i386
25029         * lib/mktime.c (long_int): New type.  This works around a problem
25030         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25031         but time_t is 64 bits, and where I expect the existing code is
25032         wrong in some cases.
25033         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25034         (ydhms_diff): Bring back the compile-time check for wide-enough
25035         year and yday.
25036
25037         mktime: fix misspelling in comment
25038         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25039         This merges all recent glibc changes of importance.
25040
25041 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25042
25043         move-if-change: cope with concurrent mv of identical file.
25044         * build-aux/move-if-change (CMPPROG): Accept environment
25045         variable as an override for `cmp'.
25046         (usage): Document CMPPROG.
25047         Adjust comparison to drop stdout.  Cope with failure of mv if
25048         the target file exists and is identical to the source, for
25049         parallel builds.
25050         Report from H.J. Lu against binutils in PR binutils/12283.
25051
25052 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25053
25054         * users.txt: Mention sharutils.
25055
25056 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25057
25058         * users.txt: Mention OATH Toolkit.
25059
25060 2011-01-27  Bruno Haible  <bruno@clisp.org>
25061
25062         Prepare for supporting FreeBSD 10.
25063         * build-aux/config.libpath: Remove handling of freebsd1*.
25064
25065 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25066
25067         Prepare for supporting FreeBSD 10.
25068         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25069         match FreeBSD 10.0.
25070
25071 2011-01-27  Bruno Haible  <bruno@clisp.org>
25072
25073         vma-iter, get-rusage-as: Add OpenBSD support.
25074         * modules/vma-iter (configure.ac): Test for mquery.
25075         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25076         * lib/vma-iter.c: Include <sys/mman.h>.
25077         (vma_iterate): Add an implementation based on mquery().
25078         * lib/resource-ext.h (get_rusage_as): Update comments.
25079         * lib/get-rusage-as.c: Likewise.
25080         * lib/get-rusage-data.c: Likewise.
25081
25082 2011-01-26  Karl Berry  <karl@gnu.org>
25083
25084         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25085         variables to make it easier to override the makeinfo program used.
25086
25087 2011-01-26  Eric Blake  <eblake@redhat.com>
25088
25089         fcntl: work around Haiku F_DUPFD bugs
25090         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25091         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25092         cloexec bit on duplication.
25093         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25094
25095 2011-01-26  Bruno Haible  <bruno@clisp.org>
25096
25097         Enable memory leak tests on AIX.
25098         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25099         * tests/test-fprintf-posix3.c (main): Likewise.
25100
25101 2011-01-26  Bruno Haible  <bruno@clisp.org>
25102
25103         Tests for module 'get-rusage-data'.
25104         * modules/get-rusage-data-tests: New file.
25105         * tests/test-get-rusage-data.c: New file.
25106
25107         New module 'get-rusage-data'.
25108         * lib/resource-ext.h (get_rusage_data): New declaration.
25109         * lib/get-rusage-data.c: New file.
25110         * modules/get-rusage-data: New file.
25111
25112 2011-01-25  Bruno Haible  <bruno@clisp.org>
25113
25114         get-rusage-as: Allow for easier testing.
25115         * lib/resource-ext.h (get_rusage_as): Add comment.
25116         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25117         (main): New function for interactive testing.
25118
25119 2011-01-25  Bruno Haible  <bruno@clisp.org>
25120
25121         vma-iter: Treat Haiku like BeOS.
25122         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25123         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25124
25125 2011-01-25  Eric Blake  <eblake@redhat.com>
25126
25127         c-stack: fix regression on cygwin when libsigsegv is present
25128         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25129
25130 2011-01-24  Bruno Haible  <bruno@clisp.org>
25131
25132         vma-iter: Avoid empty intervals.
25133         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25134         on an empty interval.
25135
25136 2011-01-24  Jim Meyering  <meyering@redhat.com>
25137
25138         u64: remove unnecessary #include
25139         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25140
25141 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25142
25143         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25144         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25145
25146 2011-01-23  Bruno Haible  <bruno@clisp.org>
25147
25148         New module 'vma-iter'.
25149         * lib/vma-iter.h: New file.
25150         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25151         * modules/vma-iter: New file.
25152         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25153         for get_rusage_as_via_iterator.
25154         (vma_iterate_callback): New function.
25155         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25156         * modules/get-rusage-as (Depends-on): Add vma-iter.
25157
25158 2011-01-23  Bruno Haible  <bruno@clisp.org>
25159
25160         uninorm: Tweak includes.
25161         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25162         Reported by Jim Meyering.
25163
25164 2011-01-23  Bruno Haible  <bruno@clisp.org>
25165
25166         get-rusage-as: Improve on NetBSD.
25167         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25168         /proc, like on FreeBSD.
25169
25170 2011-01-23  Jim Meyering  <meyering@redhat.com>
25171
25172         xreadlink.h: remove unnecessary #include
25173         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25174
25175         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25176         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25177
25178 2011-01-23  Bruno Haible  <bruno@clisp.org>
25179
25180         get-rusage-as: Fix bug.
25181         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25182         original limit when aborting the first loop.
25183
25184 2011-01-23  Bruno Haible  <bruno@clisp.org>
25185
25186         wctype: Ensure valid C syntax.
25187         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25188         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25189
25190 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25191
25192         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25194         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25195         as they are needed only for configure's test case.
25196         This removes two unnecessary symbols from config.h.
25197
25198         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25199         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25201         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25202         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25203         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25204         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25205         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25206         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25207         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25208         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25209         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25210         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25211         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25212         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25214         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25215         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25216
25217 2011-01-21  Eric Blake  <eblake@redhat.com>
25218
25219         maintainer-makefile: work with older git for submodule check
25220         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25221         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25222         Reported by Matthias Bolte.
25223
25224         bootstrap: minor portability fixes
25225         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25226         (usage): Omit leading capital and trailing . on help phrases, per
25227         GNU Coding Standards.
25228         (check_versions, top level): Prefix messages with script name.
25229
25230 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25231
25232         bootstrap: support --no-git option
25233         * build-aux/bootstrap: Add --no-git option, to be used when
25234         --gnulib-srcdir points to the exact desired checkout.
25235
25236 2011-01-21  Eric Blake  <eblake@redhat.com>
25237
25238         strerror_r-posix: work with glibc 2.13
25239         * lib/strerror_r.c (strerror_r): Fix return type.
25240
25241 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25242             Bruno Haible  <bruno@clisp.org>
25243
25244         uN_strstr: New unit tests.
25245         * modules/unistr/u8-strstr-tests: New file.
25246         * modules/unistr/u16-strstr-tests: New file.
25247         * modules/unistr/u32-strstr-tests: New file.
25248         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25249         * tests/unistr/test-u8-strstr.c: New file.
25250         * tests/unistr/test-u16-strstr.c: New file.
25251         * tests/unistr/test-u32-strstr.c: New file.
25252
25253 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25254             Bruno Haible  <bruno@clisp.org>
25255
25256         Make uN_strstr functions O(n) worst-case.
25257         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25258         16-bit and 32-bit unit cases, use the unibyte algorithm from
25259         lib/mbsstr.c.
25260         * lib/unistr/u8-strstr.c: Include <string.h>.
25261         (UNIT_IS_UINT8_T): New macro.
25262         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25263         (U_STRLEN, U_STRNLEN): New macros.
25264         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25265         (U_STRLEN, U_STRNLEN): New macros.
25266         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25267         (configure.ac): Update required libunistring version.
25268         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25269         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25270         malloca.
25271         (configure.ac): Update required libunistring version.
25272         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25273         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25274         malloca.
25275         (configure.ac): Update required libunistring version.
25276
25277 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25278             Bruno Haible  <bruno@clisp.org>
25279
25280         Prepare for faster uN_strstr functions.
25281         * lib/str-kmp.h: Support definable UNITs.
25282         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25283         needle_len argument.
25284         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25285         * lib/mbscasestr.c (mbscasestr): Likewise.
25286
25287 2011-01-21  Pádraig Brady <P@draigBrady.com>
25288
25289         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25290         * tests/test-malloca.c (main): Unset the environment variable
25291         to greatly speed up the test.
25292         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25293         * modules/malloca-tests: Depend on unsetenv.
25294
25295 2011-01-21  Pádraig Brady <P@draigBrady.com>
25296
25297         ignore-value: remove stdint dependency
25298         * lib/ignore-value.h: Remove <stdint.h>
25299         * modules/ignore-value: Remove stdint dependency.
25300
25301 2011-01-21  Jim Meyering  <meyering@redhat.com>
25302
25303         maint.mk: adjust variable name to be consistent with other gl_ vars
25304         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25305         to be lower case.
25306
25307 2011-01-20  Jim Meyering  <meyering@redhat.com>
25308
25309         maint.mk: make "check" depend on public-submodule-commit by default
25310         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25311
25312 2011-01-20  Bruno Haible  <bruno@clisp.org>
25313
25314         mbfile, mbiter: Complete change from 2008-12-21.
25315         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25316         * m4/mbiter.m4 (gl_MBITER): Likewise.
25317
25318 2011-01-20  Jim Meyering  <meyering@redhat.com>
25319
25320         init.sh: insert space between each function name and "()"
25321         * tests/init.sh: Make it a little easier to see that a function's
25322         name is "warn_", and not "warn" when looking at the first part of
25323         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25324
25325 2011-01-20  Jim Meyering  <meyering@redhat.com>
25326
25327         mountlist: clean up code formatting
25328         * lib/mountlist.c (read_file_system_list): Split a long line,
25329         correct bracing style, use NULL in place of "(struct statfs *)0",
25330         don't parenthesize return value, add spaces around "=" and after
25331         ";-in-for-stmt".
25332
25333 2011-01-14  Markus Duft <mduft@gentoo.org>
25334
25335         mountlist: add support for Interix
25336         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25337         Apply statvfs to all entries of /dev/fs.
25338         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25339         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25340
25341 2011-01-20  Jim Meyering  <meyering@redhat.com>
25342
25343         maint.mk: improve the public-submodule-commit rule
25344         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25345         to suppress printing of its commands... unless V=1.
25346         Add git submodule's --quiet option to suppress printing of e.g.,
25347         "Entering gnulib" output.
25348         "cd" into $(srcdir) before running git submodule.
25349
25350 2011-01-20  Bruno Haible  <bruno@clisp.org>
25351
25352         include_next: Fix bug introduced on 2011-01-18.
25353         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25354         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25355         ac_cv_header_... variable if the second argument is not 'check'.
25356         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25357         gl_NEXT_HEADERS_INTERNAL.
25358
25359 2011-01-20  Bruno Haible  <bruno@clisp.org>
25360
25361         Allow the user to avoid the GNULIB_TEST_* macros.
25362         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25363         Suggested by Paul Eggert.
25364
25365 2011-01-14  Jim Meyering  <meyering@redhat.com>
25366
25367         bootstrap: avoid failure when there is no .gitmodules file
25368         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25369         has been assigned to, even when its value is the empty string.
25370         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25371         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25372         Reported by John W. Eaton <jwe@gnu.org>.
25373
25374 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25375
25376         assume <ctype.h>, ..., <time.h> exist
25377         For years gnulib has been assuming the existence of the headers
25378         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25379         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25380         them, since they don't appear to be needed.
25381         * README (Portability guidelines): Document this.
25382         * lib/flock.c: Assume <fcntl.h> exists.
25383         * lib/regex_internal.h: Assume <locale.h> exists.
25384         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25386         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25387         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25388         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25389         * m4/regex.m4 (gl_REGEX): Likewise.
25390         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25391         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25392         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25393         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25394         * tests/test-argp.c: Likewise.
25395         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25396
25397         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25398         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25399         AA_APPLE_UNIVERSAL_BUILD.  See
25400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25401         * NEWS: Document this.
25402
25403 2011-01-19  Eric Blake  <eblake@redhat.com>
25404
25405         c-stack: assume stack overflow if SA_SIGINFO unsupported
25406         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25407         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25408         sigaction will work.
25409         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25410         behavior match Linux.
25411         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25412
25413         stdbool-tests: accommodate Haiku
25414         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25415
25416         binary-io: fix O_TEXT on Haiku
25417         * modules/binary-io (Depends-on): Add fcntl-h.
25418         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25419         than blindly undefining O_TEXT.
25420         Reported by Scott McCreary.
25421
25422 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25423
25424         include_next: do not check for standard headers like stddef.h
25425
25426         I found this problem when modifying Emacs to use gnulib.
25427         I noticed that it added HAVE_STDDEF_H to config.h, even though
25428         gnulib always assumes <stddef.h> exists as per README and this
25429         symbol is unnecessary.
25430         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25431         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25432         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25433         faster for headers like stddef.h that are known to exist.
25434         (gl_CHECK_NEXT_HEADERS): Use it.
25435         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25436         rather than gl_CHECK_NEXT_HEADERS.
25437         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25438         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25439
25440 2011-01-18  Eric Blake  <eblake@redhat.com>
25441
25442         ansi-c++-opt: skip C++ dependency style if C++ is unused
25443         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25444         tests when we know C++ compilation is not desired.
25445         Reported by Scott McCreary.
25446
25447 2011-01-18  Bruno Haible  <bruno@clisp.org>
25448
25449         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25450         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25451         (main): Perform test also when getrlimit and setrlimit don't exist or
25452         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25453         limiting the address space size using setrlimit, compare the address
25454         space size before and after the the test.
25455         * tests/test-dprintf-posix2.c: Likewise.
25456         * tests/test-fprintf-posix3.sh: Update skip messages.
25457         * tests/test-dprintf-posix2.sh: Likewise.
25458         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25459         * modules/dprintf-posix-tests (Depends-on): Likewise.
25460         Reported by Bruce Korb <bkorb@gnu.org> and
25461         Gary V. Vaughan <gary@gnu.org>.
25462
25463 2011-01-18  Bruno Haible  <bruno@clisp.org>
25464
25465         get-rusage-as: Improvement for Cygwin.
25466         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25467         areas that are merely reserved.
25468
25469 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25470
25471         strftime: remove dependencies on multibyte modules
25472
25473         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25474         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25475         only if __osf__ is defined, and I suspect OSF doesn't need these
25476         other modules.  If my guess is wrong, we'll need to come up with a
25477         variant of strftime that doesn't need the multibyte modules.
25478
25479         I discovered this problem when attempting modify Emacs to use the
25480         strftime module.  With the previous gnulib, this caused Emacs to
25481         need 31 new files, ranging from lib/config.charset to
25482         m4/wint_t.m4.  This was overkill and I expect would be offputting
25483         to the Emacs maintainers.  After this change, only 6 new files are
25484         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25485         stdbool.m4, and tm_gmtoff.m4.
25486
25487         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25488         Suggested by Bruno Haible in
25489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25490         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25491         and do not check for wchar.h.
25492         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25493         (Depends-on): Remove mbrlen, mbsinit, wchar.
25494
25495 2011-01-18  Bruno Haible  <bruno@clisp.org>
25496
25497         Tests for module 'get-rusage-as'.
25498         * modules/get-rusage-as-tests: New file.
25499         * tests/test-get-rusage-as.c: New file.
25500
25501         New module 'get-rusage-as'.
25502         * modules/get-rusage-as: New file.
25503         * lib/resource-ext.h: New file.
25504         * lib/get-rusage-as.c: New file.
25505
25506 2011-01-17  Eric Blake  <eblake@redhat.com>
25507
25508         sigaction: relax license from LGPLv3+ to LGPLv2+
25509         * modules/sigaction (License): Relax to LGPLv2+.
25510
25511 2011-01-14  Bruno Haible  <bruno@clisp.org>
25512
25513         filemode: Make function declarations usable in C++ mode.
25514         * lib/filemode.h: Enclose function declarations in extern "C" block.
25515         Reported by John W. Eaton <jwe@gnu.org>.
25516
25517 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25518
25519         save-cwd: no longer include "xgetcwd.h"
25520         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25521         This avoids a compilation failure in projects that use save-cwd
25522         without also using the xgetcwd module.
25523
25524 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25525
25526         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25527         This is so that a program like Emacs, which needs only dtoastr,
25528         does not have to bother with distributing and compiling ftoastr
25529         and ldtoastr.
25530         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25531         * modules/dtoastr, modules/ldtoastr: New files.
25532         * modules/ftoastr: Now works just for 'float'.
25533         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25534         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25535         dtoastr.c, ldtoastr.c.
25536
25537 2011-01-11  Jim Meyering  <meyering@redhat.com>
25538
25539         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25540         There is no need to work around the lack of the fchdir function,
25541         since gnulib can now provide a replacement when required.
25542         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25543         * modules/save-cwd (Depends-on): Add fchdir.
25544
25545 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25546
25547         openat, save-cwd: avoid xmalloc
25548
25549         This removes a direct (but undocumented) dependency of openat on
25550         xalloc, along with an indirect dependency via save-cwd.  It also
25551         removes a dependency of save-cwd on xgetcwd, and thereby
25552         indirectly on xalloc.  This change causes the openat substitute
25553         to fall back on save_cwd when memory is tight, and for save_cwd to
25554         fail instead of dying when memory is tight, but that's good enough.
25555         Problem and initial idea for fix reported by Bastien Roucaries in
25556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25557
25558         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25559         xalloc.h (for xmalloc).
25560         (openat_proc_name): Use malloc, not xmalloc.
25561         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25562         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25563
25564         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25565         This avoids heap allocation for file names whose lengths are in
25566         the range 512..1023, with the upper bound increasing to at most
25567         4031 depending on the platform's PATH_MAX.  (We do not want
25568         pathmax.h here as it might supply a non-constant PATH_MAX.)
25569         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25570         Perhaps they should be moved to malloca.h?
25571         (OPENAT_BUFFER_SIZE): Use them.
25572
25573 2011-01-10  Bruno Haible  <bruno@clisp.org>
25574
25575         doc: Update users.txt.
25576         * users.txt: Add recutils.
25577
25578 2011-01-09  Karl Berry  <karl@gnu.org>
25579
25580         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25581
25582         * doc/configmake.texi: New file.
25583         * doc/gnulib.texi: Include it.
25584         * modules/configmake: Move documentation from here.
25585
25586 2011-01-09  Bruno Haible  <bruno@clisp.org>
25587
25588         Update to Unicode 6.0.0.
25589         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25590         (get_lbp): Update for Unicode 6.0.0.
25591         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25592         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25593         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25594         U+11001, U+11038..U+11046. Remove U+06DE.
25595         (uc_width): Fix bounds of planes.
25596         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25597         lib/uniwidth/width.c.
25598         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25599         trailing whitespace removed.
25600         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25601         without comments, but with the original copyright notice.
25602         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25603         * lib/unicase/ignorable.h: Likewise.
25604         * lib/unicase/tocasefold.h: Likewise.
25605         * lib/unicase/tolower.h: Likewise.
25606         * lib/unicase/totitle.h: Likewise.
25607         * lib/unicase/toupper.h: Likewise.
25608         * lib/unictype/bidi_of.h: Likewise.
25609         * lib/unictype/blocks.h: Likewise.
25610         * lib/unictype/categ_C.h: Likewise.
25611         * lib/unictype/categ_Cn.h: Likewise.
25612         * lib/unictype/categ_L.h: Likewise.
25613         * lib/unictype/categ_Ll.h: Likewise.
25614         * lib/unictype/categ_Lm.h: Likewise.
25615         * lib/unictype/categ_Lo.h: Likewise.
25616         * lib/unictype/categ_Lu.h: Likewise.
25617         * lib/unictype/categ_M.h: Likewise.
25618         * lib/unictype/categ_Mc.h: Likewise.
25619         * lib/unictype/categ_Me.h: Likewise.
25620         * lib/unictype/categ_Mn.h: Likewise.
25621         * lib/unictype/categ_N.h: Likewise.
25622         * lib/unictype/categ_Nd.h: Likewise.
25623         * lib/unictype/categ_No.h: Likewise.
25624         * lib/unictype/categ_P.h: Likewise.
25625         * lib/unictype/categ_Po.h: Likewise.
25626         * lib/unictype/categ_S.h: Likewise.
25627         * lib/unictype/categ_Sc.h: Likewise.
25628         * lib/unictype/categ_Sk.h: Likewise.
25629         * lib/unictype/categ_Sm.h: Likewise.
25630         * lib/unictype/categ_So.h: Likewise.
25631         * lib/unictype/categ_of.h: Likewise.
25632         * lib/unictype/combining.h: Likewise.
25633         * lib/unictype/ctype_alnum.h: Likewise.
25634         * lib/unictype/ctype_alpha.h: Likewise.
25635         * lib/unictype/ctype_graph.h: Likewise.
25636         * lib/unictype/ctype_lower.h: Likewise.
25637         * lib/unictype/ctype_print.h: Likewise.
25638         * lib/unictype/ctype_punct.h: Likewise.
25639         * lib/unictype/ctype_upper.h: Likewise.
25640         * lib/unictype/decdigit.h: Likewise.
25641         * lib/unictype/digit.h: Likewise.
25642         * lib/unictype/numeric.h: Likewise.
25643         * lib/unictype/pr_alphabetic.h: Likewise.
25644         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25645         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25646         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25647         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25648         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25649         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25650         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25651         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25652         * lib/unictype/pr_case_ignorable.h: Likewise.
25653         * lib/unictype/pr_cased.h: Likewise.
25654         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25655         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25656         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25657         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25658         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25659         * lib/unictype/pr_combining.h: Likewise.
25660         * lib/unictype/pr_composite.h: Likewise.
25661         * lib/unictype/pr_currency_symbol.h: Likewise.
25662         * lib/unictype/pr_decimal_digit.h: Likewise.
25663         * lib/unictype/pr_deprecated.h: Likewise.
25664         * lib/unictype/pr_format_control.h: Likewise.
25665         * lib/unictype/pr_grapheme_base.h: Likewise.
25666         * lib/unictype/pr_grapheme_extend.h: Likewise.
25667         * lib/unictype/pr_grapheme_link.h: Likewise.
25668         * lib/unictype/pr_id_continue.h: Likewise.
25669         * lib/unictype/pr_id_start.h: Likewise.
25670         * lib/unictype/pr_ideographic.h: Likewise.
25671         * lib/unictype/pr_lowercase.h: Likewise.
25672         * lib/unictype/pr_math.h: Likewise.
25673         * lib/unictype/pr_numeric.h: Likewise.
25674         * lib/unictype/pr_other_alphabetic.h: Likewise.
25675         * lib/unictype/pr_other_id_continue.h: Likewise.
25676         * lib/unictype/pr_other_math.h: Likewise.
25677         * lib/unictype/pr_punctuation.h: Likewise.
25678         * lib/unictype/pr_sentence_terminal.h: Likewise.
25679         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25680         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25681         * lib/unictype/pr_unified_ideograph.h: Likewise.
25682         * lib/unictype/pr_uppercase.h: Likewise.
25683         * lib/unictype/pr_xid_continue.h: Likewise.
25684         * lib/unictype/pr_xid_start.h: Likewise.
25685         * lib/unictype/scripts.h: Likewise.
25686         * lib/unictype/scripts_byname.gperf: Likewise.
25687         * lib/unictype/sy_java_ident.h: Likewise.
25688         * lib/unigbrk/gbrkprop.h: Likewise.
25689         * lib/unilbrk/lbrkprop1.h: Likewise.
25690         * lib/unilbrk/lbrkprop2.h: Likewise.
25691         * lib/uninorm/decomposition-table2.h: Likewise.
25692         * lib/uniwbrk/wbrkprop.h: Likewise.
25693         * tests/unicase/test-cased.c: Likewise.
25694         * tests/unicase/test-ignorable.c: Likewise.
25695         * tests/unicase/test-uc_tolower.c: Likewise.
25696         * tests/unicase/test-uc_totitle.c: Likewise.
25697         * tests/unicase/test-uc_toupper.c: Likewise.
25698         * tests/unictype/test-categ_C.c: Likewise.
25699         * tests/unictype/test-categ_Cn.c: Likewise.
25700         * tests/unictype/test-categ_L.c: Likewise.
25701         * tests/unictype/test-categ_Ll.c: Likewise.
25702         * tests/unictype/test-categ_Lm.c: Likewise.
25703         * tests/unictype/test-categ_Lo.c: Likewise.
25704         * tests/unictype/test-categ_Lu.c: Likewise.
25705         * tests/unictype/test-categ_M.c: Likewise.
25706         * tests/unictype/test-categ_Mc.c: Likewise.
25707         * tests/unictype/test-categ_Me.c: Likewise.
25708         * tests/unictype/test-categ_Mn.c: Likewise.
25709         * tests/unictype/test-categ_N.c: Likewise.
25710         * tests/unictype/test-categ_Nd.c: Likewise.
25711         * tests/unictype/test-categ_No.c: Likewise.
25712         * tests/unictype/test-categ_P.c: Likewise.
25713         * tests/unictype/test-categ_Po.c: Likewise.
25714         * tests/unictype/test-categ_S.c: Likewise.
25715         * tests/unictype/test-categ_Sc.c: Likewise.
25716         * tests/unictype/test-categ_Sk.c: Likewise.
25717         * tests/unictype/test-categ_Sm.c: Likewise.
25718         * tests/unictype/test-categ_So.c: Likewise.
25719         * tests/unictype/test-ctype_alnum.c: Likewise.
25720         * tests/unictype/test-ctype_alpha.c: Likewise.
25721         * tests/unictype/test-ctype_graph.c: Likewise.
25722         * tests/unictype/test-ctype_lower.c: Likewise.
25723         * tests/unictype/test-ctype_print.c: Likewise.
25724         * tests/unictype/test-ctype_punct.c: Likewise.
25725         * tests/unictype/test-ctype_upper.c: Likewise.
25726         * tests/unictype/test-decdigit.h: Likewise.
25727         * tests/unictype/test-digit.h: Likewise.
25728         * tests/unictype/test-numeric.h: Likewise.
25729         * tests/unictype/test-pr_alphabetic.c: Likewise.
25730         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25731         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25732         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25733         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25734         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25735         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25736         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25737         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25738         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25739         * tests/unictype/test-pr_cased.c: Likewise.
25740         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25741         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25742         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25743         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25744         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25745         * tests/unictype/test-pr_combining.c: Likewise.
25746         * tests/unictype/test-pr_composite.c: Likewise.
25747         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25748         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25749         * tests/unictype/test-pr_deprecated.c: Likewise.
25750         * tests/unictype/test-pr_format_control.c: Likewise.
25751         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25752         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25753         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25754         * tests/unictype/test-pr_id_continue.c: Likewise.
25755         * tests/unictype/test-pr_id_start.c: Likewise.
25756         * tests/unictype/test-pr_ideographic.c: Likewise.
25757         * tests/unictype/test-pr_lowercase.c: Likewise.
25758         * tests/unictype/test-pr_math.c: Likewise.
25759         * tests/unictype/test-pr_numeric.c: Likewise.
25760         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25761         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25762         * tests/unictype/test-pr_other_math.c: Likewise.
25763         * tests/unictype/test-pr_punctuation.c: Likewise.
25764         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25765         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25766         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25767         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25768         * tests/unictype/test-pr_uppercase.c: Likewise.
25769         * tests/unictype/test-pr_xid_continue.c: Likewise.
25770         * tests/unictype/test-pr_xid_start.c: Likewise.
25771         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25772         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25773         changes.
25774         * lib/unictype/categ_Cc.h: Likewise.
25775         * lib/unictype/categ_Cf.h: Likewise.
25776         * lib/unictype/categ_Co.h: Likewise.
25777         * lib/unictype/categ_Cs.h: Likewise.
25778         * lib/unictype/categ_Lt.h: Likewise.
25779         * lib/unictype/categ_Nl.h: Likewise.
25780         * lib/unictype/categ_Pc.h: Likewise.
25781         * lib/unictype/categ_Pd.h: Likewise.
25782         * lib/unictype/categ_Pe.h: Likewise.
25783         * lib/unictype/categ_Pf.h: Likewise.
25784         * lib/unictype/categ_Pi.h: Likewise.
25785         * lib/unictype/categ_Ps.h: Likewise.
25786         * lib/unictype/categ_Z.h: Likewise.
25787         * lib/unictype/categ_Zl.h: Likewise.
25788         * lib/unictype/categ_Zp.h: Likewise.
25789         * lib/unictype/categ_Zs.h: Likewise.
25790         * lib/unictype/ctype_blank.h: Likewise.
25791         * lib/unictype/ctype_cntrl.h: Likewise.
25792         * lib/unictype/ctype_digit.h: Likewise.
25793         * lib/unictype/ctype_space.h: Likewise.
25794         * lib/unictype/ctype_xdigit.h: Likewise.
25795         * lib/unictype/mirror.h: Likewise.
25796         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25797         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25798         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25799         * lib/unictype/pr_bidi_control.h: Likewise.
25800         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25801         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25802         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25803         * lib/unictype/pr_bidi_pdf.h: Likewise.
25804         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25805         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25806         * lib/unictype/pr_dash.h: Likewise.
25807         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25808         * lib/unictype/pr_diacritic.h: Likewise.
25809         * lib/unictype/pr_extender.h: Likewise.
25810         * lib/unictype/pr_hex_digit.h: Likewise.
25811         * lib/unictype/pr_hyphen.h: Likewise.
25812         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25813         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25814         * lib/unictype/pr_ignorable_control.h: Likewise.
25815         * lib/unictype/pr_iso_control.h: Likewise.
25816         * lib/unictype/pr_join_control.h: Likewise.
25817         * lib/unictype/pr_left_of_pair.h: Likewise.
25818         * lib/unictype/pr_line_separator.h: Likewise.
25819         * lib/unictype/pr_logical_order_exception.h: Likewise.
25820         * lib/unictype/pr_non_break.h: Likewise.
25821         * lib/unictype/pr_not_a_character.h: Likewise.
25822         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25823         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25824         * lib/unictype/pr_other_id_start.h: Likewise.
25825         * lib/unictype/pr_other_lowercase.h: Likewise.
25826         * lib/unictype/pr_other_uppercase.h: Likewise.
25827         * lib/unictype/pr_paired_punctuation.h: Likewise.
25828         * lib/unictype/pr_paragraph_separator.h: Likewise.
25829         * lib/unictype/pr_pattern_syntax.h: Likewise.
25830         * lib/unictype/pr_pattern_white_space.h: Likewise.
25831         * lib/unictype/pr_private_use.h: Likewise.
25832         * lib/unictype/pr_quotation_mark.h: Likewise.
25833         * lib/unictype/pr_radical.h: Likewise.
25834         * lib/unictype/pr_soft_dotted.h: Likewise.
25835         * lib/unictype/pr_space.h: Likewise.
25836         * lib/unictype/pr_titlecase.h: Likewise.
25837         * lib/unictype/pr_variation_selector.h: Likewise.
25838         * lib/unictype/pr_white_space.h: Likewise.
25839         * lib/unictype/pr_zero_width.h: Likewise.
25840         * lib/unictype/sy_c_ident.h: Likewise.
25841         * lib/unictype/sy_c_whitespace.h: Likewise.
25842         * lib/unictype/sy_java_whitespace.h: Likewise.
25843         * lib/uninorm/composition-table.gperf: Likewise.
25844         * lib/uninorm/decomposition-table1.h: Likewise.
25845         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25846         LB8.
25847         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25848         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25849         * modules/unictype/*: Bump version number of expected libunistring
25850         version.
25851
25852 2011-01-09  Bruno Haible  <bruno@clisp.org>
25853
25854         Update to Unicode 5.2.0.
25855         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25856         trailing whitespace removed.
25857
25858 2011-01-09  Bruno Haible  <bruno@clisp.org>
25859
25860         New Unicode character properties, from Unicode 5.2.0.
25861         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25862         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25863         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25864         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25865         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25866         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25867         uc_is_property_cased, uc_is_property_case_ignorable,
25868         uc_is_property_changes_when_lowercased,
25869         uc_is_property_changes_when_uppercased,
25870         uc_is_property_changes_when_titlecased,
25871         uc_is_property_changes_when_casefolded,
25872         uc_is_property_changes_when_casemapped): New declarations.
25873         * lib/unictype/pr_byname.gperf: Add the new properties.
25874         * modules/unictype/property-byname (Depends-on): Depend on the new
25875         properties modules.
25876         * modules/unictype/property-all (Depends-on): Likewise.
25877         * MODULES.html.sh (Unicode string functions): Add
25878         unictype/property-case-ignorable, unictype/property-cased,
25879         unictype/property-changes-when-casefolded,
25880         unictype/property-changes-when-casemapped,
25881         unictype/property-changes-when-lowercased,
25882         unictype/property-changes-when-titlecased,
25883         unictype/property-changes-when-uppercased.
25884
25885         New module 'unictype/property-changes-when-casemapped'.
25886         * modules/unictype/property-changes-when-casemapped: New file.
25887         * lib/unictype/pr_changes_when_casemapped.c: New file.
25888         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25889         generated by gen-uni-tables.
25890         * modules/unictype/property-changes-when-casemapped-tests: New file.
25891         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25892         automatically generated by gen-uni-tables.
25893
25894         New module 'unictype/property-changes-when-casefolded'.
25895         * modules/unictype/property-changes-when-casefolded: New file.
25896         * lib/unictype/pr_changes_when_casefolded.c: New file.
25897         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25898         generated by gen-uni-tables.
25899         * modules/unictype/property-changes-when-casefolded-tests: New file.
25900         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25901         automatically generated by gen-uni-tables.
25902
25903         New module 'unictype/property-changes-when-titlecased'.
25904         * modules/unictype/property-changes-when-titlecased: New file.
25905         * lib/unictype/pr_changes_when_titlecased.c: New file.
25906         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25907         generated by gen-uni-tables.
25908         * modules/unictype/property-changes-when-titlecased-tests: New file.
25909         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25910         automatically generated by gen-uni-tables.
25911
25912         New module 'unictype/property-changes-when-uppercased'.
25913         * modules/unictype/property-changes-when-uppercased: New file.
25914         * lib/unictype/pr_changes_when_uppercased.c: New file.
25915         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25916         generated by gen-uni-tables.
25917         * modules/unictype/property-changes-when-uppercased-tests: New file.
25918         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25919         automatically generated by gen-uni-tables.
25920
25921         New module 'unictype/property-changes-when-lowercased'.
25922         * modules/unictype/property-changes-when-lowercased: New file.
25923         * lib/unictype/pr_changes_when_lowercased.c: New file.
25924         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25925         generated by gen-uni-tables.
25926         * modules/unictype/property-changes-when-lowercased-tests: New file.
25927         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25928         automatically generated by gen-uni-tables.
25929
25930         New module 'unictype/property-case-ignorable'.
25931         * modules/unictype/property-case-ignorable: New file.
25932         * lib/unictype/pr_case_ignorable.c: New file.
25933         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25934         by gen-uni-tables.
25935         * modules/unictype/property-case-ignorable-tests: New file.
25936         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25937         generated by gen-uni-tables.
25938
25939         New module 'unictype/property-cased'.
25940         * modules/unictype/property-cased: New file.
25941         * lib/unictype/pr_cased.c: New file.
25942         * lib/unictype/pr_cased.h: New file, automatically generated by
25943         gen-uni-tables.
25944         * modules/unictype/property-cased-tests: New file.
25945         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25946         gen-uni-tables.
25947
25948 2011-01-09  Bruno Haible  <bruno@clisp.org>
25949
25950         Update to Unicode 5.2.0.
25951         * lib/gen-uni-tables.c (output_predicate, output_category,
25952         output_combclass, output_bidi_category, output_decimal_digit_test,
25953         output_decimal_digit, output_digit_test, output_digit,
25954         output_numeric_test, output_numeric, output_mirror, output_scripts,
25955         output_scripts_byname, output_blocks, output_ident_category): Fix
25956         comment header.
25957         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25958         get_wbp.
25959         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25960         items.
25961         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25962         Changes_When_Lowercased, Changes_When_Uppercased,
25963         Changes_When_Titlecased, Changes_When_Casefolded,
25964         Changes_When_Casemapped.
25965         (is_property_alphabetic, is_property_default_ignorable_code_point):
25966         Update for Unicode 5.2.0.
25967         (is_property_cased, is_property_case_ignorable,
25968         is_property_changes_when_lowercased,
25969         is_property_changes_when_uppercased,
25970         is_property_changes_when_titlecased,
25971         is_property_changes_when_casefolded,
25972         is_property_changes_when_casemapped): New functions.
25973         (output_properties): Output also the properties cased, case_ignorable,
25974         changes_when_lowercased, changes_when_uppercased,
25975         changes_when_titlecased, changes_when_casefolded,
25976         changes_when_casemapped.
25977         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25978         Unicode TR#11 revision 17 -> 19.
25979         (LBP_CP): New enumeration value.
25980         (LBP_*): Adjust values accordingly.
25981         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25982         TR#14 revision 22 -> 24.
25983         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25984         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25985         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25986         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25987         is_WBP_MIDLETTER.
25988         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25989         the code1 and code2 of each composition rule.
25990         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25991         * lib/unicase/ignorable.h: Likewise.
25992         * lib/unicase/tocasefold.h: Likewise.
25993         * lib/unicase/tolower.h: Likewise.
25994         * lib/unicase/totitle.h: Likewise.
25995         * lib/unicase/toupper.h: Likewise.
25996         * lib/unictype/bidi_of.h: Likewise.
25997         * lib/unictype/blocks.h: Likewise.
25998         * lib/unictype/categ_C.h: Likewise.
25999         * lib/unictype/categ_Cf.h: Likewise.
26000         * lib/unictype/categ_Cn.h: Likewise.
26001         * lib/unictype/categ_L.h: Likewise.
26002         * lib/unictype/categ_Ll.h: Likewise.
26003         * lib/unictype/categ_Lm.h: Likewise.
26004         * lib/unictype/categ_Lo.h: Likewise.
26005         * lib/unictype/categ_Lu.h: Likewise.
26006         * lib/unictype/categ_M.h: Likewise.
26007         * lib/unictype/categ_Mc.h: Likewise.
26008         * lib/unictype/categ_Mn.h: Likewise.
26009         * lib/unictype/categ_N.h: Likewise.
26010         * lib/unictype/categ_Nd.h: Likewise.
26011         * lib/unictype/categ_Nl.h: Likewise.
26012         * lib/unictype/categ_No.h: Likewise.
26013         * lib/unictype/categ_P.h: Likewise.
26014         * lib/unictype/categ_Pd.h: Likewise.
26015         * lib/unictype/categ_Po.h: Likewise.
26016         * lib/unictype/categ_S.h: Likewise.
26017         * lib/unictype/categ_Sc.h: Likewise.
26018         * lib/unictype/categ_So.h: Likewise.
26019         * lib/unictype/categ_of.h: Likewise.
26020         * lib/unictype/combining.h: Likewise.
26021         * lib/unictype/ctype_alnum.h: Likewise.
26022         * lib/unictype/ctype_alpha.h: Likewise.
26023         * lib/unictype/ctype_graph.h: Likewise.
26024         * lib/unictype/ctype_lower.h: Likewise.
26025         * lib/unictype/ctype_print.h: Likewise.
26026         * lib/unictype/ctype_punct.h: Likewise.
26027         * lib/unictype/ctype_upper.h: Likewise.
26028         * lib/unictype/decdigit.h: Likewise.
26029         * lib/unictype/digit.h: Likewise.
26030         * lib/unictype/numeric.h: Likewise.
26031         * lib/unictype/pr_alphabetic.h: Likewise.
26032         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26033         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26034         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26035         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26036         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26037         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26038         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26039         * lib/unictype/pr_combining.h: Likewise.
26040         * lib/unictype/pr_composite.h: Likewise.
26041         * lib/unictype/pr_currency_symbol.h: Likewise.
26042         * lib/unictype/pr_dash.h: Likewise.
26043         * lib/unictype/pr_decimal_digit.h: Likewise.
26044         * lib/unictype/pr_deprecated.h: Likewise.
26045         * lib/unictype/pr_diacritic.h: Likewise.
26046         * lib/unictype/pr_extender.h: Likewise.
26047         * lib/unictype/pr_grapheme_base.h: Likewise.
26048         * lib/unictype/pr_grapheme_extend.h: Likewise.
26049         * lib/unictype/pr_grapheme_link.h: Likewise.
26050         * lib/unictype/pr_id_continue.h: Likewise.
26051         * lib/unictype/pr_id_start.h: Likewise.
26052         * lib/unictype/pr_ideographic.h: Likewise.
26053         * lib/unictype/pr_ignorable_control.h: Likewise.
26054         * lib/unictype/pr_logical_order_exception.h: Likewise.
26055         * lib/unictype/pr_lowercase.h: Likewise.
26056         * lib/unictype/pr_numeric.h: Likewise.
26057         * lib/unictype/pr_other_alphabetic.h: Likewise.
26058         * lib/unictype/pr_punctuation.h: Likewise.
26059         * lib/unictype/pr_sentence_terminal.h: Likewise.
26060         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26061         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26062         * lib/unictype/pr_unified_ideograph.h: Likewise.
26063         * lib/unictype/pr_uppercase.h: Likewise.
26064         * lib/unictype/pr_xid_continue.h: Likewise.
26065         * lib/unictype/pr_xid_start.h: Likewise.
26066         * lib/unictype/pr_zero_width.h: Likewise.
26067         * lib/unictype/scripts.h: Likewise.
26068         * lib/unictype/scripts_byname.gperf: Likewise.
26069         * lib/unictype/sy_java_ident.h: Likewise.
26070         * lib/unigbrk/gbrkprop.h: Likewise.
26071         * lib/unilbrk/lbrkprop1.h: Likewise.
26072         * lib/unilbrk/lbrkprop2.h: Likewise.
26073         * lib/unilbrk/lbrktables.h: Likewise.
26074         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26075         LBP_CP. Implement rule LB30.
26076         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26077         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26078         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26079         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26080         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26081         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26082         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26083         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26084         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26085         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26086         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26087         bits instead of 16 bits in the code1 and code2 of each composition
26088         rule.
26089         (uc_composition): Update for Unicode 5.2.0.
26090         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26091         * lib/uninorm/decomposition-table2.h: Likewise.
26092         * lib/uniwbrk/wbrkprop.h: Likewise.
26093         * tests/unicase/test-cased.c: Likewise.
26094         * tests/unicase/test-ignorable.c: Likewise.
26095         * tests/unicase/test-uc_tolower.c: Likewise.
26096         * tests/unicase/test-uc_totitle.c: Likewise.
26097         * tests/unicase/test-uc_toupper.c: Likewise.
26098         * tests/unictype/test-categ_C.c: Likewise.
26099         * tests/unictype/test-categ_Cf.c: Likewise.
26100         * tests/unictype/test-categ_Cn.c: Likewise.
26101         * tests/unictype/test-categ_L.c: Likewise.
26102         * tests/unictype/test-categ_Ll.c: Likewise.
26103         * tests/unictype/test-categ_Lm.c: Likewise.
26104         * tests/unictype/test-categ_Lo.c: Likewise.
26105         * tests/unictype/test-categ_Lu.c: Likewise.
26106         * tests/unictype/test-categ_M.c: Likewise.
26107         * tests/unictype/test-categ_Mc.c: Likewise.
26108         * tests/unictype/test-categ_Mn.c: Likewise.
26109         * tests/unictype/test-categ_N.c: Likewise.
26110         * tests/unictype/test-categ_Nd.c: Likewise.
26111         * tests/unictype/test-categ_Nl.c: Likewise.
26112         * tests/unictype/test-categ_No.c: Likewise.
26113         * tests/unictype/test-categ_P.c: Likewise.
26114         * tests/unictype/test-categ_Pd.c: Likewise.
26115         * tests/unictype/test-categ_Po.c: Likewise.
26116         * tests/unictype/test-categ_S.c: Likewise.
26117         * tests/unictype/test-categ_Sc.c: Likewise.
26118         * tests/unictype/test-categ_So.c: Likewise.
26119         * tests/unictype/test-ctype_alnum.c: Likewise.
26120         * tests/unictype/test-ctype_alpha.c: Likewise.
26121         * tests/unictype/test-ctype_graph.c: Likewise.
26122         * tests/unictype/test-ctype_lower.c: Likewise.
26123         * tests/unictype/test-ctype_print.c: Likewise.
26124         * tests/unictype/test-ctype_punct.c: Likewise.
26125         * tests/unictype/test-ctype_upper.c: Likewise.
26126         * tests/unictype/test-decdigit.h: Likewise.
26127         * tests/unictype/test-digit.h: Likewise.
26128         * tests/unictype/test-numeric.h: Likewise.
26129         * tests/unictype/test-pr_alphabetic.c: Likewise.
26130         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26131         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26132         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26133         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26134         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26135         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26136         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26137         * tests/unictype/test-pr_combining.c: Likewise.
26138         * tests/unictype/test-pr_composite.c: Likewise.
26139         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26140         * tests/unictype/test-pr_dash.c: Likewise.
26141         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26142         * tests/unictype/test-pr_deprecated.c: Likewise.
26143         * tests/unictype/test-pr_diacritic.c: Likewise.
26144         * tests/unictype/test-pr_extender.c: Likewise.
26145         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26146         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26147         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26148         * tests/unictype/test-pr_id_continue.c: Likewise.
26149         * tests/unictype/test-pr_id_start.c: Likewise.
26150         * tests/unictype/test-pr_ideographic.c: Likewise.
26151         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26152         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26153         * tests/unictype/test-pr_lowercase.c: Likewise.
26154         * tests/unictype/test-pr_numeric.c: Likewise.
26155         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26156         * tests/unictype/test-pr_punctuation.c: Likewise.
26157         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26158         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26159         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26160         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26161         * tests/unictype/test-pr_uppercase.c: Likewise.
26162         * tests/unictype/test-pr_xid_continue.c: Likewise.
26163         * tests/unictype/test-pr_xid_start.c: Likewise.
26164         * tests/unictype/test-pr_zero_width.c: Likewise.
26165         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26166         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26167         changed behaviour: line breaking is now disallowed between a letter
26168         or '=' and '('.
26169         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26170         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26171         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26172         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26173         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26174         lib/uniwidth/width.c.
26175         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26176         without comments, but with the original copyright notice.
26177         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26178         changes.
26179         * lib/unictype/categ_Cc.h: Likewise.
26180         * lib/unictype/categ_Co.h: Likewise.
26181         * lib/unictype/categ_Cs.h: Likewise.
26182         * lib/unictype/categ_Lt.h: Likewise.
26183         * lib/unictype/categ_Me.h: Likewise.
26184         * lib/unictype/categ_Pc.h: Likewise.
26185         * lib/unictype/categ_Pe.h: Likewise.
26186         * lib/unictype/categ_Pf.h: Likewise.
26187         * lib/unictype/categ_Pi.h: Likewise.
26188         * lib/unictype/categ_Ps.h: Likewise.
26189         * lib/unictype/categ_Sk.h: Likewise.
26190         * lib/unictype/categ_Sm.h: Likewise.
26191         * lib/unictype/categ_Z.h: Likewise.
26192         * lib/unictype/categ_Zl.h: Likewise.
26193         * lib/unictype/categ_Zp.h: Likewise.
26194         * lib/unictype/categ_Zs.h: Likewise.
26195         * lib/unictype/ctype_blank.h: Likewise.
26196         * lib/unictype/ctype_cntrl.h: Likewise.
26197         * lib/unictype/ctype_digit.h: Likewise.
26198         * lib/unictype/ctype_space.h: Likewise.
26199         * lib/unictype/ctype_xdigit.h: Likewise.
26200         * lib/unictype/mirror.h: Likewise.
26201         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26202         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26203         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26204         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26205         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26206         * lib/unictype/pr_bidi_control.h: Likewise.
26207         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26208         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26209         * lib/unictype/pr_bidi_pdf.h: Likewise.
26210         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26211         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26212         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26213         * lib/unictype/pr_format_control.h: Likewise.
26214         * lib/unictype/pr_hex_digit.h: Likewise.
26215         * lib/unictype/pr_hyphen.h: Likewise.
26216         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26217         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26218         * lib/unictype/pr_iso_control.h: Likewise.
26219         * lib/unictype/pr_join_control.h: Likewise.
26220         * lib/unictype/pr_left_of_pair.h: Likewise.
26221         * lib/unictype/pr_line_separator.h: Likewise.
26222         * lib/unictype/pr_math.h: Likewise.
26223         * lib/unictype/pr_non_break.h: Likewise.
26224         * lib/unictype/pr_not_a_character.h: Likewise.
26225         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26226         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26227         * lib/unictype/pr_other_id_continue.h: Likewise.
26228         * lib/unictype/pr_other_id_start.h: Likewise.
26229         * lib/unictype/pr_other_lowercase.h: Likewise.
26230         * lib/unictype/pr_other_math.h: Likewise.
26231         * lib/unictype/pr_other_uppercase.h: Likewise.
26232         * lib/unictype/pr_paired_punctuation.h: Likewise.
26233         * lib/unictype/pr_paragraph_separator.h: Likewise.
26234         * lib/unictype/pr_pattern_syntax.h: Likewise.
26235         * lib/unictype/pr_pattern_white_space.h: Likewise.
26236         * lib/unictype/pr_private_use.h: Likewise.
26237         * lib/unictype/pr_quotation_mark.h: Likewise.
26238         * lib/unictype/pr_radical.h: Likewise.
26239         * lib/unictype/pr_soft_dotted.h: Likewise.
26240         * lib/unictype/pr_space.h: Likewise.
26241         * lib/unictype/pr_titlecase.h: Likewise.
26242         * lib/unictype/pr_variation_selector.h: Likewise.
26243         * lib/unictype/pr_white_space.h: Likewise.
26244         * lib/unictype/sy_c_ident.h: Likewise.
26245         * lib/unictype/sy_c_whitespace.h: Likewise.
26246         * lib/unictype/sy_java_whitespace.h: Likewise.
26247         * modules/uni*/*: Bump version number of expected libunistring version.
26248         Reported by Simon Josefsson.
26249
26250 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26251
26252         useless-if-before-free: fix typo in --help and make the internal,
26253         automatic version date update process work once again.
26254         --help output contained a NUL character instead of the
26255         backslash-zero that was intended.  Also, the "must lie within
26256         the first 8 lines" line is on line 9, and hence not getting
26257         automatically updated.
26258         * build-aux/useless-if-before-free: Fix the former by adding a
26259         backslash, and the latter by condensing the three lines of what-it-does
26260         to a single line, leaving one line of slack for the future.
26261
26262 2011-01-09  Bruno Haible  <bruno@clisp.org>
26263
26264         uniwidth/width: Fix width of U+1D173..U+1D17A.
26265         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26266         symbolic_width, output_width_property_test): New functions.
26267         (main): Invoke output_nonspacing_property, output_width_property_test.
26268         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26269         U+1D173..U+1D17A.
26270         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26271         1.
26272         * modules/uniwidth/*: Bump version number of expected libunistring
26273         version.
26274         * modules/unilbrk/*: Likewise.
26275
26276 2011-01-08  Bruno Haible  <bruno@clisp.org>
26277
26278         uninorm tests: Preserve copyright of Unicode data file.
26279         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26280         Mention modifications.
26281
26282 2011-01-08  Bruno Haible  <bruno@clisp.org>
26283
26284         gen-uni-tables: Prepare for Unicode 5.2.0.
26285         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26286         (debug_output_lbp, output_lbp): Update.
26287
26288 2011-01-08  Bruno Haible  <bruno@clisp.org>
26289
26290         unilbrk: Clarify gen-uni-tables.c code.
26291         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26292         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26293         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26294
26295 2011-01-07  Bruno Haible  <bruno@clisp.org>
26296
26297         strtod: Restore errno when successfully parsing Infinity or NaN.
26298         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26299         restore the original errno.
26300
26301 2011-01-07  Bruno Haible  <bruno@clisp.org>
26302
26303         remove test: Avoid failure on HP-UX 11.
26304         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26305
26306 2011-01-07  Bruno Haible  <bruno@clisp.org>
26307
26308         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26309         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26310         error code.
26311
26312 2011-01-07  Pádraig Brady <P@draigBrady.com>
26313
26314         ignore-value: fixup comments, and add Eric Blake
26315         as an author since he rewrote the macros.
26316         * lib/ignore-value.h (ignore_value):  State that
26317         we now support aggregates.  Also specify exactly
26318         when the GCC warn_unused_result feature was added.
26319
26320 2011-01-06  Eric Blake  <eblake@redhat.com>
26321
26322         ignore-value: support aggregate types
26323         * lib/ignore-value.h (ignore_value): Provide separate gcc
26324         definition.
26325         * modules/ignore-value-tests: New test module.
26326         * tests/test-ignore-value.c: New test.
26327
26328         maint.mk: improve sc_prohibit_strcmp regex
26329         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26330         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26331         definition of STRNEQ.
26332
26333         signal: work around Haiku issue with SIGBUS
26334         * lib/siglist.h: Add comment.
26335         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26336         strsignal's favoring of SIGSEGV.
26337         * tests/test-signal.c (main): Avoid test failure.
26338         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26339         Reported by Scott McCreary.
26340
26341         maint.mk: add pre-release check to ensure submodule commits are public
26342         * top/maint.mk (public-submodule-commit): New rule.
26343         (submodule-checks): New variable.
26344         (alpha beta stable): Depend on the variable.
26345
26346 2011-01-05  Pádraig Brady <P@draigBrady.com>
26347         and Jim Meyering  <meyering@redhat.com>
26348
26349         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26350         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26351         (ATTRIBUTE_DEPRECATED): Define.
26352         (_ignore_case): New function.
26353         (ignore_value): New macro, to replace the old function.
26354         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26355         * modules/ignore-value (Depends-on): Add stdint.
26356
26357 2011-01-04  Eric Blake  <eblake@redhat.com>
26358
26359         doc: regenerate INSTALL
26360         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26361         @firstparagraphindent support, now that autoconf dropped it.
26362         (INSTALL_PRELUDE): Reinstate old macro.
26363         * doc/install.texi: Resync from autoconf.
26364         * doc/INSTALL: Reflect recent autoconf update.
26365         * doc/INSTALL.ISO: Likewise.
26366         * doc/INSTALL.UTF-8: Likewise.
26367         Reported by Karl Berry.
26368
26369 2011-01-04  Bruce Korb  <address@hidden>
26370
26371         git-version-gen: avoid a sub-shell
26372         * build-aux/git-version-gen: Redirect stderr in `...` via
26373         "exec 2>...", rather than via an added sub-shell.
26374
26375 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26376
26377         git-version-gen: use (...) rather than sh -c '...'
26378         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26379         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26380
26381 2011-01-03  Jim Meyering  <meyering@redhat.com>
26382
26383         git-version-gen: convert leading TABs to spaces
26384         * build-aux/git-version-gen: Expand leading TABs.
26385
26386         git-version-gen: handle failed "git rev-list"
26387         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26388         from git and proceeding as if it had succeeded but printed no SHA1
26389         checksums, suppress the diagnostic and handle the failure.
26390         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26391
26392         git-version-gen: include command name in one more diagnostic
26393         * build-aux/git-version-gen: When the required .tarball-version file
26394         was missing or unreadable, you might see the diagnostic from "cat",
26395         but no trace of the name of the invoking script.  Now, you still see
26396         the diagnostic from cat, but also get one from "git-version-gen: ".
26397         Inspired by a patch from Bruce Korb.
26398
26399         update-copyright: adjust test to match changed code
26400         * tests/test-update-copyright.sh: Change test's expected output
26401         to match new actual output.
26402
26403 2011-01-02  Bruno Haible  <bruno@clisp.org>
26404
26405         getlogin_r: Avoid test failure on HP-UX 11.
26406         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26407         ERANGE when the second argument is zero.
26408         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26409         portability problem.
26410
26411 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26412
26413         * build-aux/update-copyright: doc Simon's changes
26414
26415 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26416
26417         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26418         environment variable.
26419
26420 2011-01-02  Bruno Haible  <bruno@clisp.org>
26421
26422         unigbrk: Avoid gcc warnings.
26423         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26424         unused variable.
26425         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26426         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26427         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26428         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26429         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26430         Change type of first argument to 'const char *'.
26431         (main): Remove unused variable.
26432         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26433         type of first argument to 'const char *'.
26434         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26435         Likewise.
26436         (main): Change type of variable 's'.
26437         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26438         to 'int'.
26439
26440 2011-01-02  Bruno Haible  <bruno@clisp.org>
26441
26442         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26443         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26444         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26445         bug.
26446         * lib/pwrite.c: Undo 2010-12-31 patch.
26447         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26448
26449 2011-01-02  Bruno Haible  <bruno@clisp.org>
26450
26451         pread: Fix test whether it works.
26452         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26453
26454 2011-01-02  Bruno Haible  <bruno@clisp.org>
26455
26456         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26457         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26458         ends in "6". Don't require a specific month name. Try also the locale
26459         names found on HP-UX 11 and Solaris 7.
26460
26461 2011-01-02  Bruno Haible  <bruno@clisp.org>
26462
26463         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26464         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26465         C linkage.
26466         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26467
26468 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26469
26470         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26471         for consistency, since the "cluster" term is not used elsewhere.
26472         * lib/unigbrk.in.h: Update name.
26473         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26474         * lib/unigbrk/u16-grapheme-next.c: Update name.
26475         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26476         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26477         * lib/unigbrk/u32-grapheme-next.c: Update name.
26478         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26479         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26480         * lib/unigbrk/u8-grapheme-next.c: Update name.
26481         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26482         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26483         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26484         Suggested by Bruno Haible.
26485
26486 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26487
26488         Remove module 'u8-grapheme-len' as too redundant with
26489         'u8-grapheme-next'.
26490         * modules/unigbrk/u8-grapheme-len: Delete file.
26491         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26492         * lib/unigbrk.in.h: Remove prototype for deleted function.
26493         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26494         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26495
26496         Remove module 'u16-grapheme-len' as too redundant with
26497         'u16-grapheme-next'.
26498         * modules/unigbrk/u16-grapheme-len: Delete file.
26499         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26500         * lib/unigbrk.in.h: Remove prototype for deleted function.
26501         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26502         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26503
26504         Remove module 'u32-grapheme-len' as too redundant with
26505         'u32-grapheme-next'.
26506         * modules/unigbrk/u32-grapheme-len: Delete file.
26507         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26508         * lib/unigbrk.in.h: Remove prototype for deleted function.
26509         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26510         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26511
26512         Suggested by Bruno Haible.
26513
26514 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26515
26516         * unigbrk.in.h: Fix typo: "ben" => "been".
26517         Reported by Bruno Haible.
26518
26519 2011-01-01  Jim Meyering  <meyering@redhat.com>
26520
26521         maint: update almost all copyright ranges to include 2011
26522         Run the new "make update-copyright" rule.
26523
26524 2011-01-01  Jim Meyering  <meyering@redhat.com>
26525
26526         maint: update-copyright: exempt doc/INSTALL*
26527         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26528         since they are generated.  Suggested by Bruno Haible.
26529
26530 2011-01-01  Jim Meyering  <meyering@redhat.com>
26531
26532         maint: refine the update-copyright rule
26533         * Makefile (update-copyright): Also exclude any file that includes
26534         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26535         code that merely generates the comment.
26536
26537 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26538
26539         New module 'u8-grapheme-len'.
26540         * modules/unigbrk/u8-grapheme-len: New file.
26541         * modules/unigbrk/u8-grapheme-len-tests: New file.
26542         * lib/unigbrk.in.h: Add prototype for new function.
26543         * lib/unigbrk/u8-grapheme-len.c: New file.
26544         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26545
26546         New module 'u16-grapheme-len'.
26547         * modules/unigbrk/u16-grapheme-len: New file.
26548         * modules/unigbrk/u16-grapheme-len-tests: New file.
26549         * lib/unigbrk.in.h: Add prototype for new function.
26550         * lib/unigbrk/u16-grapheme-len.c: New file.
26551         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26552
26553         New module 'u32-grapheme-len'.
26554         * modules/unigbrk/u32-grapheme-len: New file.
26555         * modules/unigbrk/u32-grapheme-len-tests: New file.
26556         * lib/unigbrk.in.h: Add prototype for new function.
26557         * lib/unigbrk/u32-grapheme-len.c: New file.
26558         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26559
26560         New module 'u8-grapheme-next'.
26561         * modules/unigbrk/u8-grapheme-next: New file.
26562         * modules/unigbrk/u8-grapheme-next-tests: New file.
26563         * lib/unigbrk.in.h: Add prototype for new function.
26564         * lib/unigbrk/u8-grapheme-next.c: New file.
26565         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26566
26567         New module 'u16-grapheme-next'.
26568         * modules/unigbrk/u16-grapheme-next: New file.
26569         * modules/unigbrk/u16-grapheme-next-tests: New file.
26570         * lib/unigbrk.in.h: Add prototype for new function.
26571         * lib/unigbrk/u16-grapheme-next.c: New file.
26572         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26573
26574         New module 'u32-grapheme-next'.
26575         * modules/unigbrk/u32-grapheme-next: New file.
26576         * modules/unigbrk/u32-grapheme-next-tests: New file.
26577         * lib/unigbrk.in.h: Add prototype for new function.
26578         * lib/unigbrk/u32-grapheme-next.c: New file.
26579         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26580
26581         New module 'u8-grapheme-prev'.
26582         * modules/unigbrk/u8-grapheme-prev: New file.
26583         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26584         * lib/unigbrk.in.h: Add prototype for new function.
26585         * lib/unigbrk/u8-grapheme-prev.c: New file.
26586         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26587
26588         New module 'u16-grapheme-prev'.
26589         * modules/unigbrk/u16-grapheme-prev: New file.
26590         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26591         * lib/unigbrk.in.h: Add prototype for new function.
26592         * lib/unigbrk/u16-grapheme-prev.c: New file.
26593         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26594
26595         New module 'u32-grapheme-prev'.
26596         * modules/unigbrk/u32-grapheme-prev: New file.
26597         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26598         * lib/unigbrk.in.h: Add prototype for new function.
26599         * lib/unigbrk/u32-grapheme-prev.c: New file.
26600         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26601
26602         New module 'u8-grapheme-breaks'.
26603         * modules/unigbrk/u8-grapheme-breaks: New file.
26604         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26605         * lib/unigbrk.in.h: Add prototype for new function.
26606         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26607         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26608
26609         New module 'u16-grapheme-breaks'.
26610         * modules/unigbrk/u16-grapheme-breaks: New file.
26611         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26612         * lib/unigbrk.in.h: Add prototype for new function.
26613         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26614         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26615
26616         New module 'u32-grapheme-breaks'.
26617         * modules/unigbrk/u32-grapheme-breaks: New file.
26618         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26619         * lib/unigbrk.in.h: Add prototype for new function.
26620         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26621         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26622
26623         New module 'ulc-grapheme-breaks'.
26624         * modules/unigbrk/ulc-grapheme-breaks: New file.
26625         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26626         * m4/locale-ar.m4: New file.
26627         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26628         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26629         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26630
26631 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26632
26633         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26634         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26635         modified how this file was generated before I initially submitted
26636         the module, but failed to regenerate it.  This meant that several
26637         of the level2 entries were wrong.
26638         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26639         Remove the division-by-2 that is folded into the table now that
26640         gbrkprop.h has been regenerated properly.  Now -1 entries are
26641         handled correctly.
26642
26643         New module 'unigbrk/uc-gbrk-prop-tests'.
26644         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26645         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26646         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26647         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26648
26649 2011-01-01  Bruno Haible  <bruno@clisp.org>
26650
26651         Avoid use of hexadecimal escapes.
26652         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26653         instead of hexadecimal escapes.
26654
26655 2011-01-01  Jim Meyering  <meyering@redhat.com>
26656
26657         maint: new rule to update copyright year ranges
26658         * Makefile (update-copyright): New rule.
26659
26660         maint: indent with TABs in Makefile
26661         * Makefile: Expand leading sequences of spaces to TABs
26662
26663         version-etc: update the copyright year it reports
26664         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26665
26666 2010-12-31  Bruno Haible  <bruno@clisp.org>
26667
26668         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26669         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26670         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26671         zero.
26672
26673 2010-12-31  Bruno Haible  <bruno@clisp.org>
26674
26675         pwrite: Work around HP-UX 11.11 bug.
26676         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26677         works and set REPLACE_PWRITE if not.
26678         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26679         function.
26680         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26681
26682 2010-12-31  Bruno Haible  <bruno@clisp.org>
26683
26684         pread: Work around HP-UX 11 bugs.
26685         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26686         and set REPLACE_PREAD if not.
26687         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26688
26689 2010-12-31  Eric Blake  <eblake@redhat.com>
26690
26691         nl_langinfo: fix YESEXPR on Irix 6.5
26692         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26693         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26694         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26695         it.
26696
26697 2010-12-31  Bruno Haible  <bruno@clisp.org>
26698
26699         iconv: Document HP-UX 11 bug.
26700         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26701
26702 2010-12-31  Bruno Haible  <bruno@clisp.org>
26703
26704         ldexpl: Fix link error on HP-UX 11.
26705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26706         LDEXPL_LIBM, using $ISNANL_LIBM.
26707
26708 2010-12-31  Eric Blake  <eblake@redhat.com>
26709
26710         ftello: avoid compilation failure with SunStudio c89
26711         * lib/ftello.c (ftello): Use lseek, not llseek.
26712
26713         tests: avoid failing coreutils tests on cygwin
26714         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26715         (create_exe_shims_): Return 0 when skipping.
26716
26717 2010-12-31  Bruno Haible  <bruno@clisp.org>
26718
26719         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26720         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26721
26722 2010-12-31  Bruno Haible  <bruno@clisp.org>
26723
26724         waitpid: Fix link error in C++ mode.
26725         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26726
26727 2010-12-31  Bruno Haible  <bruno@clisp.org>
26728
26729         isnan: Use GCC built-ins when possible.
26730         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26731         __builtin_isnan.
26732         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26733         (isnan): Define using GCC built-ins for GCC >= 4.0.
26734
26735 2010-12-31  Bruno Haible  <bruno@clisp.org>
26736
26737         isnand: Fix mistake.
26738         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26739         __builtin_isnand.
26740
26741 2010-12-31  Bruno Haible  <bruno@clisp.org>
26742
26743         open: Avoid C++ error on HP-UX 11.
26744         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26745
26746 2010-12-31  Bruno Haible  <bruno@clisp.org>
26747
26748         time_r: Add missing declarations on HP-UX 11.
26749         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26750         instead of HAVE_LOCALTIME_R.
26751         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26752         HAVE_LOCALTIME_R always.
26753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26754         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26755         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26756         HAVE_LOCALTIME_R.
26757         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26758         * doc/posix-functions/localtime_r.texi: Likewise.
26759
26760 2010-12-29  Eric Blake  <eblake@redhat.com>
26761
26762         mountlist: tweak previous commit
26763         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26764         Reported by Paul Eggert.
26765
26766         mountlist: fix local drive detection on cygwin
26767         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26768         that works for cygwin.
26769
26770 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26771
26772         ftoastr, snprintf: ftoastr + snprintf module
26773         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26774         since the snprintf module now should be good enough here.
26775         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26776         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26777         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26778         GNULIB_SNPRINTF only for the test directory, and the latter
26779         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26780         seems to suffice by itself.
26781
26782 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         alloca: one step towards thread-safety
26785         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26786         need for a static variable.  All callers changed.  This does not
26787         make the alloca replacement thread-safe, but it's one step.
26788
26789         tests: minor indenting change
26790         * tests/init.sh: Sync from coreutils housekeeping patch
26791         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26792         to keep lines within 80 columns.
26793
26794 2010-12-28  Jim Meyering  <meyering@redhat.com>
26795
26796         regex: don't infloop on persistent failing calloc
26797         * lib/regexec.c (build_trtable): Return failure indication upon
26798         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26799         In glibc, this was fixed for version 2.13:
26800         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26801
26802 2010-12-28  Bruno Haible  <bruno@clisp.org>
26803             Paul Eggert <eggert@cs.ucla.edu>
26804
26805         linkat: Make implementation robust against system behaviour variations.
26806         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26807         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26808         way, and to -2 if it needs a generic runtime test.
26809         * lib/linkat.c (solaris_optimized_link_immediate,
26810         solaris_optimized_link_follow): New functions.
26811         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26812         (check_same_link): Use it.
26813
26814 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26815
26816         New module 'unigbrk/base'.
26817         * modules/unigbrk/base: New file.
26818         * lib/unigbrk.in.h: New file.
26819
26820         New module 'unigbrk/uc-gbrk-prop'.
26821         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26822         * modules/unigbrk/uc-gbrk-prop: New file.
26823         * lib/unigbrk/gbrkprop.h: New file.
26824         * lib/unigbrk/uc-gbrk-prop.c: New file.
26825
26826         New module 'unigbrk/uc-is-grapheme-break'.
26827         * modules/unigbrk/uc-is-grapheme-break: New file.
26828         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26829         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26830         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26831         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26832         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26833
26834         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26835
26836 2010-12-27  Bruno Haible  <bruno@clisp.org>
26837
26838         linkat test: Avoid failure on Solaris 11 2010-11.
26839         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26840
26841 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26842
26843         utimens: work around glibc rounding bug on more platforms
26844         * lib/utimens.c (fdutimens): Work around rounding bug even if
26845         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26846         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26847
26848 2010-12-27  Bruno Haible  <bruno@clisp.org>
26849
26850         select tests: Improve comments.
26851         * tests/test-select.c (do_select): Add comments.
26852
26853 2010-12-27  Bruno Haible  <bruno@clisp.org>
26854
26855         select tests: Safer way of handling timeout.
26856         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26857         at every invocation.
26858
26859 2010-12-27  Bruno Haible  <bruno@clisp.org>
26860
26861         select tests: Use 'bool' where appropriate.
26862         * tests/test-select.c (connect_to_socket): Change argument type to
26863         'bool'.
26864
26865 2010-12-27  Bruno Haible  <bruno@clisp.org>
26866
26867         select tests: Use existing modules.
26868         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26869         (configure.ac): Don't test for unistd.h.
26870         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26871         declared in <unistd.h>.
26872
26873 2010-12-27  Bruno Haible  <bruno@clisp.org>
26874
26875         mbrtowc: Work around a Solaris 7 bug.
26876         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26877         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26878         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26879         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26880         MBRTOWC_NULL_ARG1_BUG.
26881         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26882         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26883         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26884         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26885
26886 2010-12-27  Jim Meyering  <meyering@redhat.com>
26887
26888         read-file.c: tweak syntax
26889         * lib/read-file.c (fread_file): Remove space after "*" in function
26890         definitions.
26891
26892 2010-12-27  Bruno Haible  <bruno@clisp.org>
26893
26894         times test: Avoid gcc warnings on OSF/1.
26895         * tests/test-times.c (main): Cast printf arguments from clock_t to
26896         'long int'.
26897
26898 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26899
26900         utimens: work around glibc rounding bug on older Linux kernels
26901         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26902         on Linux with a glibc whose utimes might not work, then work
26903         around a longstanding glibc bug involving rounding rather than
26904         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26906
26907 2010-12-26  Bruno Haible  <bruno@clisp.org>
26908
26909         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26910         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26911         _GL_CXXALIAS_SYS.
26912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26913
26914 2010-12-26  Bruno Haible  <bruno@clisp.org>
26915
26916         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26917         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26918         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26919         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26920         looking for the declaration.
26921         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26922         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26923         problem.
26924         * doc/posix-functions/inet_pton.texi: Likewise.
26925
26926 2010-12-26  Bruno Haible  <bruno@clisp.org>
26927
26928         arpa_inet: Use the common idioms with C++ support.
26929         * lib/arpa_inet.in.h: Include c++defs.h.
26930         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26931         support.
26932         * modules/arpa_inet (Depends-on): Add c++defs.
26933         (Makefile.am): Substitute the contents of c++defs.h.
26934         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26935         * modules/arpa_inet-c++-tests: New file.
26936         * tests/test-arpa_inet-c++.cc: New file.
26937
26938 2010-12-25  Bruno Haible  <bruno@clisp.org>
26939
26940         Fix more C++ link errors on Solaris 8.
26941         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26942         $(LIB_EACCESS).
26943         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26944         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26945         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26946         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26947         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26948
26949 2010-12-25  Bruno Haible  <bruno@clisp.org>
26950
26951         printf-posix: Fix link error when a non-GCC compiler is used.
26952         * lib/stdio.in.h (printf): When not using GCC, override printf
26953         correctly.
26954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26955
26956 2010-12-25  Bruno Haible  <bruno@clisp.org>
26957
26958         strerror_r-posix: Update doc.
26959         * doc/posix-functions/strerror_r.texi: Update doc about the return
26960         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26961
26962 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26963
26964         utimens: simplify the logic of the previous change
26965         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26966         This should not affect whether the test succeeds or fails.
26967
26968         utimens: configure better on hosts with NFS clock skew
26969         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26970         uses the clock of the local host.  It might use the clock of the
26971         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26973
26974 2010-12-25  Bruno Haible  <bruno@clisp.org>
26975
26976         ptsname test: Avoid failure on Solaris.
26977         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26978         open a pseudo-terminal; don't use BSD-style ptys.
26979         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26980
26981 2010-12-25  Bruno Haible  <bruno@clisp.org>
26982
26983         ptsname: Avoid ERANGE failure on some systems.
26984         * lib/ptsname.c (buffer): Increase size.
26985
26986 2010-12-25  Bruno Haible  <bruno@clisp.org>
26987
26988         rename, renameat: Avoid test failures at NFS mounted locations.
26989         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26990         so that subsequent mkdir calls succeed.
26991
26992 2010-12-25  Bruno Haible  <bruno@clisp.org>
26993
26994         iswblank: Fix C++ link error on Solaris 8.
26995         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26996         _GL_FUNCDECL_SYS.
26997
26998 2010-12-25  Bruno Haible  <bruno@clisp.org>
26999
27000         unistd: Fix C++ link error on Solaris 8.
27001         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27002
27003 2010-12-25  Bruno Haible  <bruno@clisp.org>
27004
27005         readlink doc: Mention an old glibc bug.
27006         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27007
27008 2010-12-25  Bruno Haible  <bruno@clisp.org>
27009
27010         fcntl-h: Fix for use of C++ on glibc systems.
27011         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27012         also on glibc systems in C++ mode.
27013         Reported by Gary V. Vaughan <gary@gnu.org>.
27014
27015 2010-12-25  Bruno Haible  <bruno@clisp.org>
27016
27017         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27018         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27019
27020 2010-12-25  Bruno Haible  <bruno@clisp.org>
27021
27022         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27023         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27024         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27025         test whether truncl works according to ISO C 99 with IEC 60559.
27026         * m4/truncl-ieee.m4: New file.
27027         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27028         m4/signbit.m4.
27029         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27030
27031 2010-12-25  Bruno Haible  <bruno@clisp.org>
27032
27033         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27034         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27035         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27036         test whether ceill works according to ISO C 99 with IEC 60559.
27037         * m4/ceill-ieee.m4: New file.
27038         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27039         m4/signbit.m4.
27040         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27041
27042 2010-12-25  Bruno Haible  <bruno@clisp.org>
27043
27044         Ensure all prerequisites of <wchar.h> are included.
27045         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27046         before <wchar.h>.
27047         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27048         gl_MBRLEN_NUL_RETVAL): Likewise.
27049         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27050         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27051         AC_FUNC_MBRTOWC): Likewise.
27052         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27053         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27055         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27056         Likewise.
27057         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27058         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27059         (gl_WCHAR_H): Improve comments.
27060         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27061
27062 2010-12-25  Bruno Haible  <bruno@clisp.org>
27063
27064         strtok_r: Fix C syntax error in autoconf macro.
27065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27066         characters in test program.
27067
27068 2010-12-24  Bruno Haible  <bruno@clisp.org>
27069
27070         ceil, trunc, round: Fix gcc warnings.
27071         * lib/ceil.c (MIN): Undefine before redefining.
27072         * lib/trunc.c (MIN): Likewise.
27073         * lib/round.c (MIN): Likewise.
27074         Include <math.h> first.
27075
27076 2010-12-24  Bruno Haible  <bruno@clisp.org>
27077
27078         select tests: Avoid failures on OSF/1 5.1.
27079         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27080         failure of closing the last socket; it may fail with ECONNRESET.
27081
27082 2010-12-24  Eric Blake  <eblake@redhat.com>
27083
27084         stdint: avoid HP-UX 10.20 preprocessor bug
27085         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27086         than #if.
27087         * tests/test-floor2.c (main): Likewise.
27088         Reported by Peter O'Gorman.
27089
27090         pipe: make obsoletion transition easier
27091         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27092         * modules/pipe (Files): Include revived file.
27093         (Include): Drop reference, to mirror getdate's behavior.
27094
27095 2010-12-24  Bruno Haible  <bruno@clisp.org>
27096
27097         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27098         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27099         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27100         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27101
27102 2010-12-24  Bruno Haible  <bruno@clisp.org>
27103
27104         gethostname: Ensure declaration on NonStop Kernel.
27105         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27107
27108 2010-12-24  Bruno Haible  <bruno@clisp.org>
27109
27110         sys_select: Ensure all necessary types on NonStop Kernel.
27111         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27112         include <sys/time.h>.
27113         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27114         NonStop Kernel.
27115         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27116
27117 2010-12-24  Bruno Haible  <bruno@clisp.org>
27118
27119         sys_select: Remove unneeded include.
27120         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27121         have <sys/select.h>.
27122
27123 2010-12-24  Bruno Haible  <bruno@clisp.org>
27124
27125         gethostname: Provide a fallback for HOST_NAME_MAX.
27126         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27127         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27128         instead.
27129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27130
27131 2010-12-24  Bruno Haible  <bruno@clisp.org>
27132
27133         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27134         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27135         (SA_RESTART): Likewise.
27136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27137
27138 2010-12-24  Bruno Haible  <bruno@clisp.org>
27139
27140         signal: Define NSIG.
27141         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27142         * tests/test-signal.c (nsig): New variable.
27143         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27144
27145 2010-12-24  Bruno Haible  <bruno@clisp.org>
27146
27147         rename, renameat: Avoid test failures on OSF/1 5.1.
27148         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27149         alternative error codes.
27150         * tests/test-renameat.c (main): Likewise.
27151
27152 2010-12-24  Bruno Haible  <bruno@clisp.org>
27153
27154         *printf: Detect large precisions bug on Solaris 10/SPARC.
27155         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27156         by Paul Eggert.
27157         * tests/test-snprintf-posix.h (test_function): Add this test code here
27158         too.
27159         * tests/test-sprintf-posix.h (test_function): Likewise.
27160         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27161         * tests/test-vasprintf-posix.c (test_function): Likewise.
27162         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27163         around by gnulib.
27164         * doc/posix-functions/printf.texi: Likewise.
27165         * doc/posix-functions/snprintf.texi: Likewise.
27166         * doc/posix-functions/sprintf.texi: Likewise.
27167         * doc/posix-functions/vfprintf.texi: Likewise.
27168         * doc/posix-functions/vprintf.texi: Likewise.
27169         * doc/posix-functions/vsnprintf.texi: Likewise.
27170         * doc/posix-functions/vsprintf.texi: Likewise.
27171         * doc/posix-functions/dprintf.texi: Undo last commit.
27172         * doc/posix-functions/vdprintf.texi: Likewise.
27173
27174 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27175
27176         tests: port test-fdutimensat.c to Solaris 8
27177         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27178         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27179         On Solaris 8, it fails with errno == ENOSYS, because there is no
27180         futimens (so it can't use the fd), and there is no lutimens (so it
27181         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27182
27183         vsnprintf: make more consistent with snprintf; doc fixes
27184
27185         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27186         the byte count return problem was promoted from the snprintf-posix
27187         to the snprintf module.
27188         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27189         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27190         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27191         * tests/test-snprintf.c (main): Check the byte count returned.
27192         * tests/test-vsnprintf.c (main): Likewise.
27193
27194 2010-12-23  Eric Blake  <eblake@redhat.com>
27195
27196         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27197         * modules/sigpipe (License): Relax license.
27198
27199 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27200
27201         doc: document Solaris printf bug with large float precisions
27202         * doc/posix-functions/dprintf.texi (dprintf):
27203         * doc/posix-functions/fprintf.texi (fprintf):
27204         * doc/posix-functions/printf.texi (printf):
27205         * doc/posix-functions/snprintf.texi (snprintf):
27206         * doc/posix-functions/sprintf.texi (sprintf):
27207         * doc/posix-functions/vdprintf.texi (vdprintf):
27208         * doc/posix-functions/vfprintf.texi (vfprintf):
27209         * doc/posix-functions/vprintf.texi (vprintf):
27210         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27211         * doc/posix-functions/vsprintf.texi (vsprintf):
27212         Mention that these functions mishandle large floating point
27213         precisions on Solaris 10.  The same bug is also present in Solaris
27214         8, and I assume earlier.  This causes "cd gnulib-tests; make
27215         check" to fail on Solaris 8 (and I assume, later) when building
27216         the latest coreutils, in test-vasprintf-posix's call to
27217         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27218         the wide flavors (e.g., wprintf) so this patch just updates the
27219         documentation for the narrow ones.
27220
27221         test-posixtm.c: add two tests
27222         * tests/test-posixtm.c: Add two tests, to highlight the
27223         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27224         around this bug; this is merely to document it.
27225
27226 2010-12-22  Bruno Haible  <bruno@clisp.org>
27227
27228         getlogin_r: Work around portability problem on OSF/1.
27229         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27230         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27231         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27232         test for a truncated result.
27233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27234         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27235         * modules/getlogin_r (Depends-on): Add memchr.
27236         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27237
27238 2010-12-22  Bruno Haible  <bruno@clisp.org>
27239
27240         ptsname: Avoid test failure on OSF/1 5.1.
27241         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27242         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27243         (same_slave): New function.
27244         (main): Use it to compare ptsname's result with the expected file name.
27245
27246 2010-12-22  Bruno Haible  <bruno@clisp.org>
27247
27248         Port extended stdio modules to HP NonStop Kernel.
27249         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27250         macros.
27251         * lib/fbufmode.c: Update comments.
27252         * lib/fflush.c: Likewise.
27253         * lib/fpurge.c: Likewise.
27254         * lib/freadable.c: Likewise.
27255         * lib/freadahead.c: Likewise.
27256         * lib/freading.c: Likewise.
27257         * lib/freadptr.c: Likewise.
27258         * lib/freadseek.c: Likewise.
27259         * lib/fseeko.c: Likewise.
27260         * lib/fseterr.c: Likewise.
27261         * lib/fwritable.c: Likewise.
27262         * lib/fwriting.c: Likewise.
27263         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27264
27265 2010-12-22  Bruno Haible  <bruno@clisp.org>
27266
27267         ttyname_r: Work around bug on OSF/1 5.1.
27268         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27269         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27270         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27271         present.
27272         * lib/ttyname_r.c (ttyname_r): Update comments.
27273
27274 2010-12-22  Bruno Haible  <bruno@clisp.org>
27275
27276         round: Implement result sign according to IEEE 754.
27277         * lib/round.c (MIN, MINUS_ZERO): New macros.
27278         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27279         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27280         * tests/test-round-ieee.c (main): Likewise.
27281         * tests/test-roundl-ieee.c (main): Likewise.
27282
27283         trunc: Implement result sign according to IEEE 754.
27284         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27285         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27286         * tests/test-trunc2.c: Include minus-zero.h.
27287         (MINUS_ZERO): New macro.
27288         (trunc_reference): Keep in sync with lib/trunc.c.
27289         * tests/test-truncf2.c: Include minus-zero.h.
27290         (MINUS_ZERO): New macro.
27291         (truncf_reference): Keep in sync with lib/trunc.c.
27292         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27293         * tests/test-trunc-ieee.c (main): Likewise.
27294         * tests/test-truncl-ieee.c (main): Likewise.
27295
27296         ceil: Implement result sign according to IEEE 754.
27297         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27298         (FUNC): Return -0.0 for -1 < x < 0.
27299         * tests/test-ceil2.c: Include minus-zero.h.
27300         (MINUS_ZERO): New macro.
27301         (ceil_reference): Keep in sync with lib/ceil.c.
27302         * tests/test-ceilf2.c: Include minus-zero.h.
27303         (MINUS_ZERO): New macro.
27304         (ceilf_reference): Keep in sync with lib/ceil.c.
27305         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27306         * tests/test-ceil-ieee.c (main): Likewise.
27307         * tests/test-ceill-ieee.c (main): Likewise.
27308
27309         floor: Implement result sign according to IEEE 754.
27310         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27311         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27312         * tests/test-floorf2.c (floorf_reference): Likewise.
27313         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27314         * tests/test-floor-ieee.c (main): Likewise.
27315         * tests/test-floorl-ieee.c (main): Likewise.
27316
27317 2010-12-22  Bruno Haible  <bruno@clisp.org>
27318
27319         getaddrinfo: Update doc.
27320         * doc/posix-functions/gai_strerror.texi: Return type is also different
27321         on AIX and HP-UX.
27322
27323 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27324
27325         getaddrinfo, inet_ntop: Update doc for Solaris.
27326         * doc/posix-functions/gai_strerror.texi: Return type is also an
27327         issue on Solaris 9 and earlier.
27328         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27329         on Solaris 10 and earlier.
27330
27331 2010-12-21  Bruno Haible  <bruno@clisp.org>
27332
27333         New module 'roundl-ieee'.
27334         * modules/roundl-ieee: New file.
27335         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27336         test whether roundl works according to ISO C 99 with IEC 60559.
27337         * m4/roundl-ieee.m4: New file.
27338         * modules/roundl-ieee-tests: New file.
27339         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27340         * tests/test-roundl.c (main): Remove signbit tests.
27341         * modules/roundl-tests (Depends-on): Remove signbit.
27342         * doc/posix-functions/roundl.texi: Mention the new module.
27343
27344 2010-12-21  Bruno Haible  <bruno@clisp.org>
27345
27346         New module 'truncl-ieee'.
27347         * modules/truncl-ieee: New file.
27348         * modules/truncl-ieee-tests: New file.
27349         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27350         * tests/test-truncl.c (main): Remove signbit tests.
27351         * modules/truncl-tests (Depends-on): Remove signbit.
27352         * doc/posix-functions/truncl.texi: Mention the new module.
27353
27354 2010-12-21  Bruno Haible  <bruno@clisp.org>
27355
27356         New module 'ceill-ieee'.
27357         * modules/ceill-ieee: New file.
27358         * modules/ceill-ieee-tests: New file.
27359         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27360         * tests/test-ceill.c (main): Remove signbit tests.
27361         * modules/ceill-tests (Depends-on): Remove signbit.
27362         * doc/posix-functions/ceill.texi: Mention the new module.
27363
27364 2010-12-21  Bruno Haible  <bruno@clisp.org>
27365
27366         New module 'floorl-ieee'.
27367         * modules/floorl-ieee: New file.
27368         * modules/floorl-ieee-tests: New file.
27369         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27370         * tests/test-floorl.c (main): Remove signbit tests.
27371         * modules/floorl-tests (Depends-on): Remove signbit.
27372         * doc/posix-functions/floorl.texi: Mention the new module.
27373
27374 2010-12-21  Bruno Haible  <bruno@clisp.org>
27375
27376         New module 'round-ieee'.
27377         * modules/round-ieee: New file.
27378         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27379         whether round works according to ISO C 99 with IEC 60559.
27380         * m4/round-ieee.m4: New file.
27381         * modules/round-ieee-tests: New file.
27382         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27383         * tests/test-round1.c (main): Remove signbit tests.
27384         * modules/round-tests (Depends-on): Remove 'signbit'.
27385         * doc/posix-functions/round.texi: Mention the new module.
27386
27387 2010-12-21  Bruno Haible  <bruno@clisp.org>
27388
27389         New module 'trunc-ieee'.
27390         * modules/trunc-ieee: New file.
27391         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27392         whether trunc works according to ISO C 99 with IEC 60559.
27393         * m4/trunc-ieee.m4: New file.
27394         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27396         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27397         * modules/trunc-ieee-tests: New file.
27398         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27399         * tests/test-trunc1.c (main): Remove signbit tests.
27400         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27401         * doc/posix-functions/trunc.texi: Mention the new module.
27402
27403 2010-12-21  Bruno Haible  <bruno@clisp.org>
27404
27405         New module 'ceil-ieee'.
27406         * modules/ceil-ieee: New file.
27407         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27408         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27409         ISO C 99 with IEC 60559.
27410         * m4/ceil-ieee.m4: New file.
27411         * modules/ceil (Files): Add lib/ceil.c.
27412         (Depends-on): Add 'float'.
27413         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27414         * lib/math.in.h (ceil): New declaration.
27415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27416         REPLACE_CEIL.
27417         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27418         * modules/ceil-ieee-tests: New file.
27419         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27420         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27421         * doc/posix-functions/ceil.texi: Mention the new module.
27422
27423 2010-12-21  Bruno Haible  <bruno@clisp.org>
27424
27425         New module 'floor-ieee'.
27426         * modules/floor-ieee: New file.
27427         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27428         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27429         ISO C 99 with IEC 60559.
27430         * m4/floor-ieee.m4: New file.
27431         * modules/floor (Files): Add lib/floor.c.
27432         (Depends-on): Add 'float'.
27433         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27434         * lib/math.in.h (floor): New declaration.
27435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27436         REPLACE_FLOOR.
27437         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27438         * modules/floor-ieee-tests: New file.
27439         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27440         * tests/test-math-c++.cc: Check the signature of 'floor'.
27441         * doc/posix-functions/floor.texi: Mention the new module.
27442
27443 2010-12-21  Bruno Haible  <bruno@clisp.org>
27444
27445         New module 'roundf-ieee'.
27446         * modules/roundf-ieee: New file.
27447         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27448         test whether roundf works according to ISO C 99 with IEC 60559.
27449         * m4/roundf-ieee.m4: New file.
27450         * modules/roundf-ieee-tests: New file.
27451         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27452         * tests/test-roundf1.c (main): Remove signbit tests.
27453         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27454         * doc/posix-functions/roundf.texi: Mention the new module.
27455
27456 2010-12-21  Bruno Haible  <bruno@clisp.org>
27457
27458         New module 'truncf-ieee'.
27459         * modules/truncf-ieee: New file.
27460         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27461         test whether truncf works according to ISO C 99 with IEC 60559.
27462         * m4/truncf-ieee.m4: New file.
27463         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27465         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27466         * modules/truncf-ieee-tests: New file.
27467         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27468         * tests/test-truncf1.c (main): Remove signbit tests.
27469         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27470         * doc/posix-functions/truncf.texi: Mention the new module.
27471
27472 2010-12-21  Bruno Haible  <bruno@clisp.org>
27473
27474         New module 'ceilf-ieee'.
27475         * modules/ceilf-ieee: New file.
27476         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27477         test whether ceilf works according to ISO C 99 with IEC 60559.
27478         * m4/ceilf-ieee.m4: New file.
27479         * modules/ceilf-ieee-tests: New file.
27480         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27481         * tests/test-ceilf1.c (main): Remove signbit tests.
27482         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27483         * doc/posix-functions/ceilf.texi: Mention the new module.
27484
27485 2010-12-21  Bruno Haible  <bruno@clisp.org>
27486
27487         New module 'floorf-ieee'.
27488         * modules/floorf-ieee: New file.
27489         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27490         test whether floorf works according to ISO C 99 with IEC 60559.
27491         * m4/floorf-ieee.m4: New file.
27492         * modules/floorf-ieee-tests: New file.
27493         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27494         * tests/test-floorf1.c (main): Remove signbit tests.
27495         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27496         * doc/posix-functions/floorf.texi: Mention the new module.
27497
27498 2010-12-21  Bruno Haible  <bruno@clisp.org>
27499
27500         Support for minus zero in autoconf macros.
27501         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27502         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27503         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27504         * tests/minus-zero.h: Update comments.
27505
27506 2010-12-21  Bruno Haible  <bruno@clisp.org>
27507
27508         Tests for module 'ceil'.
27509         * modules/ceil-tests: New file.
27510         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27511         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27512
27513 2010-12-21  Bruno Haible  <bruno@clisp.org>
27514
27515         Tests for module 'floor'.
27516         * modules/floor-tests: New file.
27517         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27518         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27519
27520 2010-12-21  Bruno Haible  <bruno@clisp.org>
27521
27522         math: Fix indentation.
27523         * lib/math.in.h (floorf): Fix indentation.
27524
27525 2010-12-21  Bruno Haible  <bruno@clisp.org>
27526
27527         Fix cross-compilation guesses on Solaris.
27528         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27529         not match "solaris2.10".
27530         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27531         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27532         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27533
27534 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27535
27536         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27537         This fixes a problem observed with the latest coreutils snapshot
27538         that caused a test to fail on Solaris 8.  src/csplit.c's call
27539         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27540         earlier, instead of returning the number of bytes that would have
27541         been generated; this causes csplit to incorrectly report memory
27542         exhaustion.
27543         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27544         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27545         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27546         comments to match.
27547         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27548         Fix typo in matching older versions of Solaris: "solaris2.10"
27549         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27550         only for guessing while cross-compiling.
27551         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27552
27553 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27554
27555         ftoastr: fix comment again
27556         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27558         Also, simplify example a bit by using flags = 0.
27559
27560 2010-12-20  Bruno Haible  <bruno@clisp.org>
27561
27562         round*, trunc*: Update documentation regarding glibc.
27563         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27564         * doc/posix-functions/round.texi: Likewise.
27565         * doc/posix-functions/roundl.texi: Likewise.
27566         * doc/posix-functions/truncf.texi: Likewise.
27567         * doc/posix-functions/trunc.texi: Likewise.
27568         * doc/posix-functions/truncl.texi: Likewise.
27569
27570 2010-12-20  Bruno Haible  <bruno@clisp.org>
27571
27572         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27573         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27574         * doc/posix-functions/round.texi: Likewise.
27575         * doc/posix-functions/roundl.texi: Likewise.
27576
27577 2010-12-20  Bruno Haible  <bruno@clisp.org>
27578
27579         ttyname_r: Add missing declaration on HP-UX 11.
27580         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27581         HAVE_TTYNAME_R.
27582         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27583         declared. Set HAVE_TTYNAME_R always.
27584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27585         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27586         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27587         HAVE_TTYNAME_R.
27588         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27589
27590 2010-12-20  Bruno Haible  <bruno@clisp.org>
27591
27592         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27593         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27594         * doc/posix-functions/getlogin_r.texi: Likewise.
27595         * tests/test-getlogin.c: Include <errno.h>.
27596         (main): Avoid test failure on HP-UX 11.11.
27597         * tests/test-getlogin_r.c (main): Likewise.
27598
27599 2010-12-20  Bruno Haible  <bruno@clisp.org>
27600
27601         getlogin_r: Add missing declaration on HP-UX 11.
27602         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27603         declared also when it exists as a function.
27604         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27605
27606 2010-12-20  Bruno Haible  <bruno@clisp.org>
27607
27608         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27609         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27610         through wcrtomb.
27611
27612 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27613
27614         ftoastr: fix comment
27615         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27617
27618 2010-12-19  Bruno Haible  <bruno@clisp.org>
27619
27620         isnan: Ensure it is a macro.
27621         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27622         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27623         Solaris.
27624
27625 2010-12-19  Bruno Haible  <bruno@clisp.org>
27626
27627         ldexpl test: Fix link error on OSF/1 5.1.
27628         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27629
27630 2010-12-19  Bruno Haible  <bruno@clisp.org>
27631
27632         wctype: Make it work in C++ mode on OSF/1 5.1.
27633         * lib/wctype.in.h (iswblank): Declare but not define here.
27634         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27635         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27636         * modules/wctype (Files): Add lib/iswblank.c.
27637
27638 2010-12-19  Bruno Haible  <bruno@clisp.org>
27639
27640         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27641         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27642         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27643
27644 2010-12-19  Bruno Haible  <bruno@clisp.org>
27645
27646         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27648         _POSIX_PII_SOCKET.
27649         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27650         * doc/posix-functions/recvfrom.texi: Likewise.
27651         * doc/posix-functions/send.texi: Likewise.
27652         * doc/posix-functions/sendto.texi: Likewise.
27653
27654 2010-12-19  Bruno Haible  <bruno@clisp.org>
27655
27656         tcgetsid: Add missing declaration on OSF/1 5.1.
27657         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27658         HAVE_TCGETSID.
27659         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27660         Don't set HAVE_TCGETSID.
27661         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27662         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27663         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27664         HAVE_TCGETSID.
27665         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27666
27667 2010-12-19  Bruno Haible  <bruno@clisp.org>
27668
27669         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27670         * lib/stdio.in.h: During the include_next statement, let recursive
27671         includes of this file include only the system header file.
27672
27673 2010-12-19  Bruno Haible  <bruno@clisp.org>
27674
27675         iconv_open: Fix regression from 2010-12-04.
27676         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27677         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27678
27679 2010-12-19  Bruno Haible  <bruno@clisp.org>
27680
27681         stdbool test: Avoid a gcc warning.
27682         * tests/test-stdbool.c (main): Fail if e1 is false.
27683         Reported by Jim Meyering.
27684
27685 2010-12-19  Jim Meyering  <meyering@redhat.com>
27686
27687         setenv: restore to working order
27688         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27689         mistakenly removed.
27690         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27691         HAVE_SETENV.
27692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27693         HAVE_SETENV.
27694
27695 2010-12-19  Bruno Haible  <bruno@clisp.org>
27696
27697         Document some different function declarations on OSF/1 5.1.
27698         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27699         * doc/posix-functions/inet_ntop.texi: Likewise.
27700         * doc/posix-functions/gethostname.texi: Likewise.
27701         * lib/unistd.in.h (gethostname): Update comment.
27702
27703 2010-12-19  Bruno Haible  <bruno@clisp.org>
27704
27705         doc: Mention vasprintf-posix module.
27706         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27707         the 'vasprintf-posix' module.
27708         * doc/glibc-functions/vasprintf.texi: Likewise.
27709
27710 2010-12-19  Bruno Haible  <bruno@clisp.org>
27711
27712         unsetenv: Add missing declaration on OSF/1 5.1.
27713         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27714         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27715         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27717         not HAVE_UNSETENV.
27718         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27719         HAVE_UNSETENV.
27720         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27721
27722 2010-12-19  Bruno Haible  <bruno@clisp.org>
27723
27724         setenv: Add missing declaration on OSF/1 5.1.
27725         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27727         declared. Don't set HAVE_SETENV.
27728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27729         not HAVE_SETENV.
27730         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27731         HAVE_SETENV.
27732         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27733
27734 2010-12-19  Bruno Haible  <bruno@clisp.org>
27735
27736         nl_langinfo tests: Avoid gcc warning.
27737         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27738
27739 2010-12-19  Bruno Haible  <bruno@clisp.org>
27740
27741         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27742         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27743         _GL_CXXALIAS_SYS.
27744
27745 2010-12-19  Bruno Haible  <bruno@clisp.org>
27746
27747         stdbool: Relax test.
27748         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27749         address to 'bool' work in static initializer, for compilers other than
27750         GCC.
27751
27752 2010-12-19  Bruno Haible  <bruno@clisp.org>
27753
27754         ftello: Add missing declaration on OSF/1 5.1.
27755         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27756         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27758         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27759         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27760
27761 2010-12-19  Bruno Haible  <bruno@clisp.org>
27762
27763         fseeko: Add missing declaration on OSF/1 5.1.
27764         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27767         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27768         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27769
27770 2010-12-19  Bruno Haible  <bruno@clisp.org>
27771
27772         fchdir: Add missing declaration on OSF/1 5.1.
27773         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27776         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27777         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27778
27779 2010-12-19  Bruno Haible  <bruno@clisp.org>
27780
27781         relocatable-prog-wrapper: Separate from relocatable-prog.
27782         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27783         uninstall-relocwrapper rule here.
27784         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27785         Reported by Ian Beckwith <ianb@erislabs.net>.
27786
27787 2010-12-19  Bruno Haible  <bruno@clisp.org>
27788
27789         unistr/u8-mbsnlen: Add missing dependency.
27790         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27791         Reported by Ian Beckwith <ianb@erislabs.net>.
27792
27793 2010-12-19  Bruno Haible  <bruno@clisp.org>
27794
27795         iconv: Make it possible again to use this module without 'iconv-h'.
27796         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27797         if it is not defined.
27798         Reported by Ian Beckwith <ianb@erislabs.net>.
27799
27800 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27801
27802         acl: port to Solaris 8 when copying from tmpfs to ufs
27803         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27804         error number.  Problem observed on Solaris 8 with latest
27805         coreutils, with "mv A B", where A is on a tmpfs file system and B
27806         is on a ufs file system.  This caused coreutils' mv/part-symlink
27807         test to fail.
27808
27809         tests: set fail=0 at start
27810         * tests/init.sh (setup_): Move fail=0 initialization here ...
27811         (mktempd_): ... from here, so that tests can rely on fail being
27812         set to 0 initially.  This fixes a problem in coreutils; see:
27813         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27814
27815 2010-12-18  Bruno Haible  <bruno@clisp.org>
27816
27817         memmem-simple: Stylistic changes.
27818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27819         Fix preprocessor directive indentation.
27820
27821 2010-12-15  Pádraig Brady <P@draigBrady.com>
27822
27823         memmem, memmem-simple: reorganize and expand empty needle check
27824         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27825         functional checks to memmem-simple so that one has a fully functional
27826         memmem by using just this module.
27827         Restrict the performance only check to the memmem module.
27828         Also expand the empty needle check to ensure the correct
27829         pointer is returned, not just a non NULL pointer.
27830         * doc/glibc-functions/memmem.texi: Rearrange the portability
27831         documentation to correlate with the rearranged checks.
27832         Clarify exactly how the memmem and memmem-simple modules
27833         relate to each other.
27834
27835 2010-12-15  Pádraig Brady <P@draigBrady.com>
27836             Bruno Haible  <bruno@clisp.org>
27837
27838         Improve cross-compilation guesses for uClibc.
27839         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27840         that uClibc does not have the glibc bug.
27841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27842         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27843
27844 2010-12-14  Eric Blake  <eblake@redhat.com>
27845
27846         configmake: provide fallbacks for oldest supported autotools
27847         * m4/configmake.m4: New file.
27848         * modules/configmake (Files): Ship it.
27849         (configure.ac): Use it to guarantee fallbacks.
27850
27851 2010-12-13  Pádraig Brady <P@draigBrady.com>
27852
27853         read-file: Improve handling of large files
27854         * lib/read-file.c (fread_file): Minimize realloc()s
27855         for regular files, and better manage sizes around SIZE_MAX.
27856
27857 2010-12-13  Eric Blake  <eblake@redhat.com>
27858
27859         cloexec, fcntl: relax license
27860         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27861         consent from all contributors.
27862         * modules/fcntl (License): Likewise.
27863
27864 2010-12-10  Bruno Haible  <bruno@clisp.org>
27865
27866         Tests for module 'pipe-posix'.
27867         * modules/pipe-posix-tests: New file.
27868         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27869
27870 2010-12-10  Bruno Haible  <bruno@clisp.org>
27871
27872         pipe-posix: Make it work in C++ mode.
27873         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27874         (pipe): Use common idiom, not a macro definition.
27875         * lib/pipe.c: New file.
27876         * m4/pipe.m4: New file.
27877         * modules/pipe-posix (Description): Enhance.
27878         (Files): Add lib/pipe.c, m4/pipe.m4.
27879         (configure.ac): Invoke gl_FUNC_PIPE.
27880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27881         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27882         * tests/test-unistd-c++.cc: Check the signature of pipe.
27883
27884 2010-12-10  Bruno Haible  <bruno@clisp.org>
27885
27886         Rename module 'pipe' to 'spawn-pipe'.
27887         * modules/spawn-pipe: New file, renamed from modules/pipe.
27888         (Files, configure.ac, Makefile.am): Update.
27889         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27890         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27891         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27892         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27893         "spawn-pipe.h" instead of "pipe.h".
27894         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27895         to gl_SPAWN_PIPE.
27896         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27897         (Files, Makefile.am): Update.
27898         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27899         Update.
27900         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27901         Include "spawn-pipe.h" instead of "pipe.h".
27902         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27903         * lib/javacomp.c: Likewise.
27904         * lib/javaversion.c: Likewise.
27905         * lib/pipe-filter-gi.c: Likewise.
27906         * lib/pipe-filter-ii.c: Likewise.
27907         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27908         * modules/javacomp (Depends-on): Likewise.
27909         * modules/javaversion (Depends-on): Likewise.
27910         * modules/pipe-filter-gi (Depends-on): Likewise.
27911         * modules/pipe-filter-ii (Depends-on): Likewise.
27912         * MODULES.html.sh (Executing programs): Update.
27913         * NEWS: Mention the change.
27914
27915 2010-12-10  Eric Blake  <eblake@redhat.com>
27916
27917         pipe-posix: new module
27918         * modules/pipe-posix: New file.
27919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27920         (gl_UNISTD_H): Check for declaration.
27921         * modules/unistd (Makefile.am): Substitute it.
27922         * lib/unistd.in.h (pipe): Provide it for mingw.
27923         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27924         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27925
27926 2010-12-07  Bruno Haible  <bruno@clisp.org>
27927
27928         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27929         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27930         u8_strcmp_gnu.
27931         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27932
27933 2010-12-06  Bruno Haible  <bruno@clisp.org>
27934
27935         Update internal documentation.
27936         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27937
27938 2010-12-04  Bruno Haible  <bruno@clisp.org>
27939
27940         Put more information about failed tests into the test return codes.
27941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27942         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27945         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27946         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27947         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27948         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27949         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27952         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27953         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27954         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27955         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27956         returns a bit mask.
27957         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27958         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27959         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27960         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27961         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27963         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27965         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27967         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27968         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27971         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27972         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27973         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27974         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27975         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27976         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27978         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27980         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27981         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27982         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27983         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27984         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27985         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27986         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27987         gl_PRINTF_PRECISION): Likewise.
27988         * m4/regex.m4 (gl_REGEX): Likewise.
27989         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27992         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27994         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27995         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27996         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27997         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27998         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27999         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28000         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28001         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28002         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28003         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28004         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28005         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28008         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28009         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28010         enumerated value.
28011         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28012
28013 2010-12-04  Bruno Haible  <bruno@clisp.org>
28014
28015         Update for Solaris 11 2010-11.
28016         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28017         Express, released in November 2010.
28018
28019 2010-12-04  Bruno Haible  <bruno@clisp.org>
28020
28021         nproc: Relax license.
28022         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28023         and Paul Eggert.
28024         Requested by Ludovic Courtès <ludo@gnu.org>.
28025
28026 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         utimecmp: fine-grained src to nearby coarse-grained dest
28029
28030         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28031         and the source is on a file system with higher-resolution time
28032         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28033         not work, and the time stamps are close together, the algorithm to
28034         determine the exact resolution from the read-back mtime was buggy:
28035         it had a "!=" where it should have had an "==".  This bug has been
28036         in the code ever since it was introduced to gnulib.
28037         Problem reported by Dan Jacobson in
28038         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28039
28040 2010-11-30  Bruno Haible  <bruno@clisp.org>
28041
28042         strerror_r-posix: Fix autoconf test.
28043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28044
28045 2010-11-28  Bruno Haible  <bruno@clisp.org>
28046             Paul Eggert  <eggert@cs.ucla.edu>
28047
28048         Tests for module 'getdomainname'.
28049         * modules/getdomainname-tests: New file.
28050         * tests/test-getdomainname.c: New file, based on
28051         tests/test-gethostname.c.
28052
28053 2010-11-28  Bruno Haible  <bruno@clisp.org>
28054             Paul Eggert  <eggert@cs.ucla.edu>
28055
28056         getdomainname: Use the system function when possible.
28057         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28058         (getdomainname): Replace if needed. Provide the declaration if it is
28059         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28060         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28061         (getdomainname): When the system has getdomainname, call the system
28062         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28063         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28064         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28065         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28066         the function if its second argument is of type 'int' or if it is found
28067         in libnsl.
28068         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28069         <sys/systeminfo.h> and sysinfo().
28070         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28072         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28073         HAVE_GETDOMAINNAME.
28074         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28075         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28076         * doc/glibc-functions/getdomainname.texi: Document the problems with
28077         the getdomainname declaration.
28078
28079 2010-11-28  Bruno Haible  <bruno@clisp.org>
28080
28081         sys_socket: Ensure ss_family field on AIX.
28082         * lib/sys_socket.in.h (ss_family): New macro definition.
28083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28084         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28085         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28086         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28087         * modules/sys_socket (Makefile.am): Substitute
28088         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28089         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28090
28091 2010-11-27  Bruno Haible  <bruno@clisp.org>
28092
28093         readline: Improve configure output.
28094         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28095         "checking for readline..." result understandable.
28096
28097 2010-11-27  Bruno Haible  <bruno@clisp.org>
28098
28099         *printf-posix: Detect a bug on Solaris 10/x86.
28100         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28101         for floating-point output.
28102         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28103         directive.
28104         * tests/test-snprintf-posix.h (test_function): Likewise.
28105         * tests/test-sprintf-posix.h (test_function): Likewise.
28106         * tests/test-vasprintf-posix.c (test_function): Likewise.
28107         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28108         * doc/posix-functions/printf.texi: Likewise.
28109         * doc/posix-functions/snprintf.texi: Likewise.
28110         * doc/posix-functions/sprintf.texi: Likewise.
28111         * doc/posix-functions/vfprintf.texi: Likewise.
28112         * doc/posix-functions/vprintf.texi: Likewise.
28113         * doc/posix-functions/vsnprintf.texi: Likewise.
28114         * doc/posix-functions/vsprintf.texi: Likewise.
28115         * doc/glibc-functions/obstack_printf.texi: Likewise.
28116         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28117
28118 2010-11-27  Bruno Haible  <bruno@clisp.org>
28119
28120         Fix link error when module libunistring-optional is in use.
28121         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28122         * modules/striconveha-tests (Makefile.am): Likewise.
28123
28124 2010-11-27  Bruno Haible  <bruno@clisp.org>
28125
28126         regex: Mention link dependencies.
28127         * modules/regex (Link): New section.
28128         * modules/rpmatch (Link): Likewise.
28129         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28130
28131 2010-11-27  Bruno Haible  <bruno@clisp.org>
28132
28133         ftoastr: Fix compilation error on Solaris.
28134         * lib/ftoastr.c: Include <config.h>.
28135
28136 2010-11-27  Bruno Haible  <bruno@clisp.org>
28137
28138         getloadavg: Update documentation.
28139         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28140
28141 2010-11-27  Bruno Haible  <bruno@clisp.org>
28142
28143         sys_socket: Fix test whether the functions are declared.
28144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28145         not <sys/select.h>.
28146
28147 2010-11-27  Bruno Haible  <bruno@clisp.org>
28148
28149         getpass: Make sure to get system declaration on some platforms.
28150         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28151         gl_USE_SYSTEM_EXTENSIONS.
28152         * modules/getpass (Depends-on): Add extensions.
28153
28154 2010-11-26  Bruno Haible  <bruno@clisp.org>
28155
28156         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28157         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28158         'iconv' module is present.
28159         (ICONV_CONST): New macro.
28160         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28161         ICONV_CONST.
28162         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28163         set ICONV_CONST.
28164         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28165         here.
28166         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28167         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28168         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28169         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28170         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28171         present.
28172
28173 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28174
28175         ftoastr: comment fix
28176         * lib/ftoastr.c: "little" -> "little or no" in comment
28177
28178 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28179
28180         stdint: port to GCC 4.3 + OSX + Octave
28181         On this platform, stdint.h is buggy and defines int64_t to long
28182         long int.  The replacement defined it to long int, causing
28183         problems with C++ style name mangling.  Instead, trust the system
28184         definition if INT64_MAX is defined, and likewise for the unsigned
28185         variant.   Problem reported by Jarno Rajahalme in
28186         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28187         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28188         and don't mess with int64_t and INT64_MAX in this case.
28189         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28190
28191 2010-11-24  Bruno Haible  <bruno@clisp.org>
28192
28193         doc: Corrections regarding MacOS X 10.4 and 10.5.
28194         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28195         MacOS X.
28196         Reported by Simon Josefsson.
28197
28198 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28199
28200         Uninstall ".bin" files installed by relocwrapper.
28201         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28202         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28203         unless it is already there.
28204
28205 2010-11-21  Bruno Haible  <bruno@clisp.org>
28206
28207         Update for NetBSD 5.0.
28208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28209         NetBSD; the test fails on NetBSD 5.0.
28210         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28211         about NetBSD.
28212
28213 2010-11-21  Bruno Haible  <bruno@clisp.org>
28214
28215         Update for HP-UX 11.23 and HP-UX 11.31.
28216         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28217         HP-UX.
28218
28219 2010-11-21  Bruno Haible  <bruno@clisp.org>
28220
28221         Update for MacOS X 10.5.
28222         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28223         MacOS X; the test fails on MacOS X 10.5.8.
28224         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28225         about MacOS X.
28226
28227 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28228
28229         bootstrap: add bootstrap_sync option.
28230         See discussion at
28231         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28232         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28233         * build-aux/bootstrap: Accept --bootstrap-sync to update
28234         bootstrap if it is not identical to the local gnulib's
28235         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28236         enable this by default.  Accept --no-bootstrap-sync to disable
28237         it.
28238
28239 2010-11-20  Bruno Haible  <bruno@clisp.org>
28240
28241         Ensure that <features.h> is included before __GLIBC__ is tested.
28242         * lib/printf-parse.h: Include <features.h>.
28243         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28244         Reported by Mike Frysinger <vapier@gentoo.org>.
28245
28246         Ensure that <features.h> is included before __GLIBC__ is tested.
28247         * lib/wchar.in.h: Include <features.h>.
28248         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28249         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28250         Reported by Mike Frysinger <vapier@gentoo.org>.
28251
28252         Ensure that <features.h> is included before __GLIBC__ is tested.
28253         * lib/arpa_inet.in.h: Include <features.h>.
28254         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28255         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28256         Reported by Mike Frysinger <vapier@gentoo.org>.
28257
28258         Ensure that <features.h> is included before __GLIBC__ is tested.
28259         * build-aux/link-warning.h: Include <features.h>.
28260         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28261         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28262         Reported by Mike Frysinger <vapier@gentoo.org>.
28263
28264         Ensure that <features.h> is included before __GLIBC__ is tested.
28265         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28266         Reported by Mike Frysinger <vapier@gentoo.org>.
28267
28268 2010-11-20  Bruno Haible  <bruno@clisp.org>
28269
28270         memmem: Fix autoconf test.
28271         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28272
28273 2010-11-20  Bruno Haible  <bruno@clisp.org>
28274
28275         Port to uClibc.
28276         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28277         * lib/fcntl.in.h: Likewise.
28278         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28279         * lib/mbrtowc.c (mbrtowc): Likewise.
28280         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28281         * lib/strerror_r.c: Likewise.
28282         * lib/unistr/u8-strnlen.c: Likewise.
28283         * lib/vasnprintf.c (decimal_point_char): Likewise.
28284         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28285         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28287         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28288         * tests/test-sigaction.c (handler, main): Likewise.
28289         * lib/freading.h: Treat uClibc like a non-glibc platform.
28290         * lib/freading.c: Likewise.
28291         * lib/gettext.h: Likewise.
28292         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28293         Likewise.
28294         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28295         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28296         * lib/propername.c (proper_name_utf8): Likewise.
28297         * lib/spawn.in.h: Likewise.
28298         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28299         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28300         mem_cd_iconveh_internal): Likewise.
28301         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28302         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28303         strstr, strcasestr): Likewise.
28304         * lib/unicodeio.c (unicode_to_mb): Likewise.
28305         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28306         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28307         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28308         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28309         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28310         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28311         * lib/unistr/u8-stpncpy.c: Likewise.
28312         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28313         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28314         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28315         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28316         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28317         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28318         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28321         Likewise.
28322         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28323         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28324         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28326         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28328         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28329         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28330         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28331         * tests/test-striconveha.c (main): Likewise.
28332         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28333         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28334         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28335         * doc/posix-functions/getline.texi: Likewise.
28336         Reported by Mike Frysinger <vapier@gentoo.org>.
28337
28338 2010-11-20  Bruno Haible  <bruno@clisp.org>
28339
28340         nproc: Fix condition.
28341         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28342         HAVE_PTHREAD_AFFINITY_NP.
28343
28344 2010-11-20  Bruno Haible  <bruno@clisp.org>
28345
28346         Fix a comment.
28347         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28348
28349 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28350
28351         ftoastr: don't assume snprintf
28352         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28353         Implement a subset of snprintf here, by using sprintf safely.
28354         * modules/ftoastr (Depends-on): Remove snprintf.
28355
28356 2010-11-19  Jim Meyering  <meyering@redhat.com>
28357
28358         test-rename.h: fix compilation failure
28359         * tests/test-rename.h (test_rename): Add omitted "}".
28360
28361 2010-11-17  Jim Meyering  <meyering@redhat.com>
28362
28363         maint.mk: add a URL discussing the no-@acronym policy
28364         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28365
28366 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28367
28368         ftoastr: depend on snprintf, improve comments
28369         * lib/ftoastr.c: Also mention Loitsch's draft.
28370         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28371         needed in the current implementation, but it might simplify
28372         speeding up the code later.
28373         * modules/ftoastr: Depend on snprintf; this improves portability.
28374         Suggested by Bruno Haible in the same email.
28375
28376         ftoastr: port to hosts lacking strtof and strtold
28377         Problem reported by Bruno Haible in
28378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28379         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28380         environment and strtold (and presumably strtof) are not available.
28381         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28382         (configure.ac): Require gl_C99_STRTOLD.
28383
28384 2010-11-18  Bruno Haible  <bruno@clisp.org>
28385
28386         c-strtold: Avoid link error on AIX 7.
28387         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28388         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28389         (gl_C_STRTOLD): Test whether strtold_l exists.
28390         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28391
28392 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28393
28394         intprops: new macro INT_BITS_STRLEN_BOUND
28395         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28396         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28397         not exposed.  Also, it uses a slightly tighter bound than before;
28398         though this makes no practical difference, we might as well be as
28399         tight as we easily can.
28400
28401         ftoastr: new module, for lossless conversion of floats to short strings
28402         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28403         * modules/ftoastr: New files.
28404
28405 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28406
28407         bootstrap: port to Solaris sed
28408         * build-aux/bootstrap (get_version): Port to Solaris sed.
28409         See Ralf Wildenhues's note in
28410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28411
28412 2010-11-14  Jim Meyering  <meyering@redhat.com>
28413
28414         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28415         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28416         and move definition closer to sole use.
28417
28418 2010-11-13  Jim Meyering  <meyering@redhat.com>
28419
28420         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28421         Now we require at least autoconf-2.59, which means the work-around
28422         is no longer needed.
28423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28424         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28425         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28426         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28427         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28428
28429 2010-11-13  Bruno Haible  <bruno@clisp.org>
28430
28431         rename, renameat: Avoid test failures at NFS mounted locations.
28432         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28433         functions.
28434         (test_rename): Use assert_nonexistent.
28435         * tests/test-rename.c: Include <dirent.h>.
28436         * tests/test-renameat.c: Likewise.
28437         Reported by Gary V. Vaughan <gary@gnu.org>.
28438
28439         rename, renameat: Document Linux bug with NFS
28440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28441         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28442         * doc/posix-functions/renameat.texi: Likewise.
28443         Suggested by Eric Blake.
28444
28445 2010-11-13  Bruno Haible  <bruno@clisp.org>
28446
28447         rename test: Add comments.
28448         * tests/test-rename.h (test_rename): Add structure and comments.
28449
28450 2010-11-13  Eric Blake  <eblake@redhat.com>
28451
28452         maintainer-makefile: cover a few more files
28453         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28454         scripts generated within C files, for libvirt.
28455
28456 2010-11-13  Bruno Haible  <bruno@clisp.org>
28457
28458         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28459         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28460         character, return the number of bytes that belong together, not always
28461         1.
28462         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28463         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28464         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28465         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28466         number of bytes of an invalid character.
28467         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28468         (main): Invoke it.
28469         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28470         results.
28471         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28472         malformed byte sequences.
28473         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28474         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28475         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28476         Reported by Ben Pfaff and Paolo Bonzini.
28477
28478 2010-11-13  Bruno Haible  <bruno@clisp.org>
28479
28480         openat: Work around glibc bug with fchownat() and empty file names.
28481         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28482         (gl_FUNC_FCHOWNAT): Invoke it.
28483         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28484         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28485         Reported by Gary V. Vaughan <gary@gnu.org>.
28486
28487 2010-11-13  Bruno Haible  <bruno@clisp.org>
28488
28489         openat: Ensure autoconf macro ordering.
28490         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28491         gl_USE_SYSTEM_EXTENSIONS.
28492         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28493
28494 2010-11-13  Bruno Haible  <bruno@clisp.org>
28495
28496         Update comments.
28497         * lib/unistr/u8-check.c: Update file name in comments.
28498         * lib/unistr/u8-mblen.c: Likewise.
28499         * lib/unistr/u8-prev.c: Likewise.
28500         * lib/unistr/u8-strmblen.c: Likewise.
28501         * lib/unistr/u8-strmbtouc.c: Likewise.
28502
28503 2010-11-13  Jim Meyering  <meyering@redhat.com>
28504
28505         tests: avoid test failure on Solaris 10 due to lack of PATH export
28506         * tests/test-update-copyright.sh: Don't forget to export PATH.
28507
28508         init.sh: ensure that IFS is defined, just in case...
28509         * tests/init.sh (setup_): Ensure that IFS is defined,
28510         so that saving and restoring it works as expected.  This
28511         appears to be useful at least for an old version of dash
28512         from a long time ago (RH 6).  See here for details:
28513         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28514
28515         maint.mk: tighten "test a == b" check
28516         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28517         test to files that contain something like #!/bin/sh.
28518         Without this, coreutils would get two false positives in
28519         the comments of C source files.
28520
28521 2010-11-12  Eric Blake  <eblake@redhat.com>
28522
28523         bootstrap: fix typo in previous attempt
28524         * build-aux/bootstrap (buildreq): Correct the grouping.
28525         Reported by Paul Eggert.
28526
28527         maintainer-makefile: prohibit test x == x
28528         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28529         Based on a report by Matthias Bolte.
28530
28531         bootstrap: allow FreeBSD gzip
28532         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28533         which has no '.' and goes to stderr.
28534         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28535         Reported by Matthias Bolte.
28536
28537         maintainer-makefile: check for i18n setup
28538         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28539         will likely work.
28540
28541 2010-11-12  Bruno Haible  <bruno@clisp.org>
28542
28543         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28544         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28545         * lib/nanosleep.c (nanosleep): Likewise.
28546
28547 2010-11-11  Bruno Haible  <bruno@clisp.org>
28548
28549         fcntl-h: Fix for use of C++ on glibc systems.
28550         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28551         also on glibc systems in C++ mode.
28552         Reported by Gary V. Vaughan <gary@gnu.org>.
28553
28554 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28555
28556         mknod: avoid false failure with dash
28557         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28558
28559 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28560
28561         unlink: Fix "is it should" typo in diagnostic.
28562         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28564
28565 2010-11-11  Bruno Haible  <bruno@clisp.org>
28566
28567         Tests for module 'strerror_r-posix'.
28568         * modules/strerror_r-posix-tests: New file.
28569         * tests/test-strerror_r.c: New file.
28570         * tests/test-string-c++.cc: Check the signature of strerror_r.
28571
28572         New module 'strerror_r-posix'.
28573         * lib/string.in.h (strerror_r): New declaration.
28574         * lib/strerror_r.c: New file.
28575         * m4/strerror_r.m4: New file.
28576         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28577         of strerror_r.
28578         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28579         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28580         * modules/strerror_r-posix: New file.
28581         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28582         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28583         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28584         portability problems.
28585
28586 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28587
28588         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28589         line is also considered for output. Quoted function name in shell
28590         command, so temporary files for functions like MyClass::operator()
28591         are removed correctly without errors.
28592
28593 2010-11-09  Bruno Haible  <bruno@clisp.org>
28594
28595         * doc/posix-functions/strerror.texi: List more failing platforms.
28596
28597         * doc/posix-functions/strerror.texi: Add a comment.
28598
28599 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28600
28601         fdopendir: fix bug on MacOS X when low on file descriptors
28602
28603         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28604         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28605         All callers changed.
28606         (fdopendir): Invoke save_cwd at the top level, not after using
28607         multiple dup() calls to use up file descriptors.  Then retry
28608         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28609         less than the maximum number of open file descriptors, because
28610         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28611         on Mac OS X 10.6.4 for tar 1.24
28612         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28613         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28614         and for tar 1.25
28615         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28616
28617 2010-11-07  Bruno Haible  <bruno@clisp.org>
28618
28619         vasnprintf: Support I flag on glibc systems.
28620         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28621         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28622         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28623         snprintf function.
28624         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28625         glibc systems.
28626         * tests/test-vasnprintf-posix3.c: New file.
28627         * modules/vasnprintf-posix-tests (Files): Add it.
28628         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28629
28630 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28631
28632         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28633         * MODULES.html.sh: For compiler warnings, use name
28634         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28635
28636 2010-11-05  Eric Blake  <eblake@redhat.com>
28637
28638         ceil, floor: avoid spurious failure with icc
28639         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28640         [denormals-as-zero] when optimizing without -mieee-fp option.
28641         * tests/test-floorf2.c (floorf_reference): Likewise.
28642         * tests/test-ceilf1.c (dummy): New function.
28643         (main): Use it to outsmart icc's optimization.
28644         * tests/test-floorf1.c (dummy, main): Likewise.
28645
28646         tests: require working signbit
28647         * modules/ceilf-tests (Depends-on): Add signbit.
28648         * modules/ceill-tests (Depends-on): Likewise.
28649         * modules/floorf-tests (Depends-on): Likewise.
28650         * modules/floorl-tests (Depends-on): Likewise.
28651         * modules/round-tests (Depends-on): Likewise.
28652         * modules/roundf-tests (Depends-on): Likewise.
28653         * modules/roundl-tests (Depends-on): Likewise.
28654         * modules/trunc-tests (Depends-on): Likewise.
28655         * modules/truncf-tests (Depends-on): Likewise.
28656         * modules/truncl-tests (Depends-on): Likewise.
28657
28658         strtod: work around icc bug
28659         * lib/strtod.c (minus_zero): Define to working value.
28660         (strtod): Use it to avoid icc bug.
28661
28662         copysign: enhance tests
28663         * modules/copysign-tests (Files): Add minus-zero.h.
28664         * tests/test-copysign.c (main): Also test zeros.
28665
28666 2010-11-04  Eric Blake  <eblake@redhat.com>
28667
28668         ceil, floor, round, trunc: enhance tests of -0
28669         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28670         * tests/test-ceill.c (main): Likewise.
28671         * tests/test-floorf1.c (main): Likewise.
28672         * tests/test-floorl.c (main): Likewise.
28673         * tests/test-round1.c (main): Likewise.
28674         * tests/test-roundf1.c (main): Likewise.
28675         * tests/test-roundl.c (main): Likewise.
28676         * tests/test-trunc1.c (main): Likewise.
28677         * tests/test-truncf1.c (main): Likewise.
28678         * tests/test-truncl.c (main): Likewise.
28679
28680 2010-11-04  Eric Blake  <eblake@redhat.com>
28681
28682         frexp, tests: work around ICC bug with -zero
28683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28684         works with more compilers.
28685         * tests/minus-zero.h: New file.
28686         * modules/ceilf-tests (Files): Include it.
28687         * modules/ceill-tests (Files): Likewise.
28688         * modules/floorf-tests (Files): Likewise.
28689         * modules/floorl-tests (Files): Likewise.
28690         * modules/frexp-nolibm-tests (Files): Likewise.
28691         * modules/frexp-tests (Files): Likewise.
28692         * modules/frexpl-nolibm-tests (Files): Likewise.
28693         * modules/frexpl-tests (Files): Likewise.
28694         * modules/isnan-tests (Files): Likewise.
28695         * modules/isnand-nolibm-tests (Files): Likewise.
28696         * modules/isnand-tests (Files): Likewise.
28697         * modules/isnanf-nolibm-tests (Files): Likewise.
28698         * modules/isnanf-tests (Files): Likewise.
28699         * modules/isnanl-nolibm-tests (Files): Likewise.
28700         * modules/isnanl-tests (Files): Likewise.
28701         * modules/round-tests (Files): Likewise.
28702         * modules/roundf-tests (Files): Likewise.
28703         * modules/roundl-tests (Files): Likewise.
28704         * modules/ldexpl-tests (Files): Likewise.
28705         * modules/signbit-tests (Files): Likewise.
28706         * modules/snprintf-posix-tests (Files): Likewise.
28707         * modules/sprintf-posix-tests (Files): Likewise.
28708         * modules/strtod-tests (Files): Likewise.
28709         * modules/trunc-tests (Files): Likewise.
28710         * modules/truncf-tests (Files): Likewise.
28711         * modules/truncl-tests (Files): Likewise.
28712         * modules/vsnprintf-posix-tests (Files): Likewise.
28713         * modules/vsprintf-posix-tests (Files): Likewise.
28714         * modules/vasnprintf-posix-tests (Files): Likewise.
28715         * modules/vasprintf-posix-tests (Files): Likewise.
28716         * tests/test-ceilf1.c (main): Use it.
28717         * tests/test-ceill.c (main): Likewise.
28718         * tests/test-floorf1.c (main): Likewise.
28719         * tests/test-floorl.c (main): Likewise.
28720         * tests/test-frexp.c (main): Likewise.
28721         * tests/test-frexpl.c (main): Likewise.
28722         * tests/test-isnan.c (main): Likewise.
28723         * tests/test-isnand.h (main): Likewise.
28724         * tests/test-isnanf.h (main): Likewise.
28725         * tests/test-isnanl.h (main): Likewise.
28726         * tests/test-ldexpl.c (main): Likewise.
28727         * tests/test-round.c (main): Likewise.
28728         * tests/test-roundf.c (main): Likewise.
28729         * tests/test-roundl.c (main): Likewise.
28730         * tests/test-signbit.c (test_signbitf, test_signbitd)
28731         (test_signbitl): Likewise.
28732         * tests/test-snprintf-posix.h (test_function): Likewise.
28733         * tests/test-sprintf-posix.h (test_function): Likewise.
28734         * tests/test-strtod.c (main): Likewise.
28735         * tests/test-trunc1.c (main): Likewise.
28736         * tests/test-truncf1.c (main): Likewise.
28737         * tests/test-truncl.c (main): Likewise.
28738
28739         isnanl: work around icc bug
28740         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28741
28742 2010-11-03  Eric Blake  <eblake@redhat.com>
28743
28744         tests: fix compiler warnings
28745         * tests/test-getopt.h (test_getopt): Fix condition.
28746         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28747         * tests/test-pipe2.c (main): Likewise.
28748         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28749
28750         utimens: fix broken m4 test
28751         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28752
28753 2010-10-28  Bruno Haible  <bruno@clisp.org>
28754
28755         posix_spawn*, getdtablesize: Relax license.
28756         * modules/posix_spawn (License): Change to LGPLv2+.
28757         * modules/posix_spawnp (License): Likewise.
28758         * modules/posix_spawn-internal (License): Likewise.
28759         * modules/posix_spawnattr_init (License): Likewise.
28760         * modules/posix_spawnattr_getflags (License): Likewise.
28761         * modules/posix_spawnattr_setflags (License): Likewise.
28762         * modules/posix_spawnattr_getpgroup (License): Likewise.
28763         * modules/posix_spawnattr_setpgroup (License): Likewise.
28764         * modules/posix_spawnattr_getschedparam (License): Likewise.
28765         * modules/posix_spawnattr_setschedparam (License): Likewise.
28766         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28767         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28768         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28769         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28770         * modules/posix_spawnattr_getsigmask (License): Likewise.
28771         * modules/posix_spawnattr_setsigmask (License): Likewise.
28772         * modules/posix_spawnattr_destroy (License): Likewise.
28773         * modules/posix_spawn_file_actions_init (License): Likewise.
28774         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28775         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28776         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28777         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28778         * modules/getdtablesize (License): Likewise.
28779         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28780
28781 2010-10-26  Bruno Haible  <bruno@clisp.org>
28782
28783         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28784         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28785         Cygwin and mingw.
28786         Suggested by Eric Blake.
28787
28788 2010-10-26  Bruno Haible  <bruno@clisp.org>
28789
28790         stdio: Work around compilation error due to renameat() on Solaris 10.
28791         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28792         * lib/renameat.c: Don't include <unistd.h> here.
28793         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28794         Reported by Paul Eggert and Eric Blake.
28795
28796 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28797
28798         renameat: port to Solaris 10, which declares renameat in unistd.h
28799
28800         * lib/renameat.c: Include unistd.h before stdio.h, because
28801         Solaris 10 declares renameat in unistd.h.  Problem encountered
28802         when building GNU tar 1.24 on Solaris 10.
28803
28804 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28805
28806         fdopendir: fix C89 compilation
28807         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28808         compilers.
28809
28810 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28811
28812         inttostr: simplify by removing unnecessary redundancy
28813         * lib/anytostr.c: Don't include verify.h.
28814         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28815         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28816         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28817         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28818         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28819         Likewise.
28820         * modules/inttostr (Depends-on): Remove 'verify'.
28821
28822 2010-10-23  Bruno Haible  <bruno@clisp.org>
28823
28824         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28825         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28826         Reported by Eric Blake.
28827
28828 2010-10-23  Bruno Haible  <bruno@clisp.org>
28829
28830         Tests: Fix LOCALE_JA on MirBSD 10.
28831         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28832         to an UTF-8 locale.
28833         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28834         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28835         Reported by Eric Blake.
28836
28837 2010-10-21  Bruno Haible  <bruno@clisp.org>
28838
28839         nl_langinfo test: Avoid test failure on NetBSD 5.
28840         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28841         Reported by Eric Blake.
28842
28843 2010-10-21  Eric Blake  <eblake@redhat.com>
28844
28845         c-stack: work around libsigsegv 2.8 bug
28846         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28847         overflow on at least PowerPC64.
28848
28849 2010-10-17  Bruno Haible  <bruno@clisp.org>
28850
28851         userspec: Drop redundant file.
28852         * modules/userspec (Files): Remove lib/inttostr.h.
28853
28854 2010-10-17  Bruno Haible  <bruno@clisp.org>
28855
28856         nl_langinfo tests: Silence some warnings.
28857         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28858         Reported by Jim Meyering.
28859
28860 2010-10-17  Bruno Haible  <bruno@clisp.org>
28861
28862         Make use of GCC's attribute __alloc_size__.
28863         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28864         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28865         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28866         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28867         __alloc_size__.
28868         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28869         Suggested by Jim Meyering.
28870
28871 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28872
28873         bootstrap: anchor .gitignore entries.
28874         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28875         with...
28876         (insert_vc_ignore): ... this new function, which prepends `/' to
28877         all .gitignore entries before passing them to
28878         insert_sorted_if_absent.
28879
28880 2010-10-16  Bruno Haible  <bruno@clisp.org>
28881
28882         nextafter: Fix configure check.
28883         * modules/nextafter (configure.ac): Correct expected prototype.
28884
28885 2010-10-16  Bruno Haible  <bruno@clisp.org>
28886
28887         termios: Update documentation.
28888         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28889
28890 2010-10-16  Bruno Haible  <bruno@clisp.org>
28891
28892         tests: Make them compile with TinyCC.
28893         * tests/test-strstr.c (main): Remove parentheses around array
28894         initializer.
28895
28896 2010-10-15  Eric Blake  <eblake@redhat.com>
28897
28898         ignore-value: make header idempotent
28899         * lib/ignore-value.h: Add double-inclusion guards.
28900         Reported by Stefan Berger.
28901
28902 2010-10-15  Jim Meyering  <meyering@redhat.com>
28903
28904         GNUmakefile: handle "stable" target, not "major"
28905         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28906         lists in maint.mk and announce-gen.  Without this, "make stable"
28907         would fail to ensure that $(VERSION) is up to date.
28908
28909 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28910
28911         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28912         & co.
28913
28914 2010-10-14  Bruno Haible  <bruno@clisp.org>
28915
28916         vasnprintf: Don't set errno to 0.
28917         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28918         block that sets it to 0.
28919         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28920
28921 2010-10-14  Bruno Haible  <bruno@clisp.org>
28922
28923         socketlib: Fix.
28924         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28925         gl_PREREQ_SYS_H_WINSOCK2.
28926         Reported by Ian Beckwith <ianb@erislabs.net>.
28927
28928 2010-10-13  Jim Meyering  <meyering@redhat.com>
28929
28930         test-select-stdin.c: avoid warn_unused_result warnings
28931         * tests/test-select-stdin.c: Include "macros.h".
28932         ASSERT that read and fflush succeed.
28933
28934 2010-10-13  Jim Meyering  <meyering@redhat.com>
28935
28936         git-version-gen: do require git-VC'd files in cwd
28937         * build-aux/git-version-gen: Reject a git version string
28938         if there are no commits associated with the current directory.
28939         This avoids an unlikely false-positive (unrelated dir whose parent
28940         repository also contains a tag matching v*), as pointed out
28941         by Giuseppe Scrivano in
28942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28943
28944 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28945
28946         argv-iter: omit nonconforming declaration
28947         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28948         enum arg_iter_err declaration, which doesn't conform to C99.
28949         Solaris 10 cc warns about this.
28950
28951 2010-10-13  Eric Blake  <eblake@redhat.com>
28952
28953         termios: fix compilation on mingw
28954         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28955         (gl_TERMIOS_H): Adjust it on mingw.
28956         * modules/termios (Makefile.am): Substitute new key.
28957         * lib/termios.in.h (includes): Make include_next conditional.
28958         * doc/posix-headers/termios.texi (termios.h): Update
28959         documentation.
28960         Reported by Daniel P. Berrange.
28961
28962 2010-10-13  Jim Meyering  <meyering@redhat.com>
28963
28964         git-version-gen: don't require that .git/ be in the current dir
28965         * build-aux/git-version-gen: Adjust this script so that it works
28966         when run from any working directory beneath the top-level .git/-
28967         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28968         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28969
28970         test-select: avoid warn_unused_result warnings
28971         * tests/test-select.c: Include "macros.h".
28972         ASSERT that each call to read, write, and pipe succeeds.
28973         While not technically required, also check each "close".
28974         * modules/select-tests (Files): Add tests/macros.h.
28975
28976         test-symlinkat: remove declaration of unused local
28977         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28978
28979         test-inttostr: avoid shadowing warnings
28980         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28981         and use malloc rather than the stack for the same reason as
28982         mentioned in the comment justifying the other allocation.
28983
28984 2010-10-11  Bruno Haible  <bruno@clisp.org>
28985
28986         stdlib: Allow multiple gnulib generated replacements to coexist.
28987         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28988         Reported by Sam Steingold <sds@gnu.org>.
28989
28990 2010-10-11  Jim Meyering  <meyering@redhat.com>
28991
28992         fix a documentation typo
28993         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28994
28995 2010-10-11  Eric Blake  <eblake@redhat.com>
28996
28997         futimens: work around Solaris 11 bug
28998         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28999         * tests/test-futimens.h (test_futimens): Enhance, rather than
29000         weaken test.
29001         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29002
29003 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29004
29005         Indentation.
29006         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29007         higher-level operators more to the left.
29008
29009 2010-10-11  Jim Meyering  <meyering@redhat.com>
29010
29011         test-futimens: avoid unwarranted test failure on Solaris 5.11
29012         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29013         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29014         because it tries to dereference the NULL name argument.
29015
29016 2010-10-11  Bruno Haible  <bruno@clisp.org>
29017
29018         Indentation.
29019         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29020         indentation.
29021
29022 2010-10-11  Jim Meyering  <meyering@redhat.com>
29023
29024         spawn.in.h: make indentation consistent with parentheses
29025         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29026         Make indentation consistent with parentheses.
29027
29028 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29029
29030         Fix mismatched parens in previous commit
29031         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29032         parens.
29033
29034 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29035
29036         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29037
29038         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29039         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29040         * lib/malloca.c: Include "verify.h".
29041         (verify1): Remove, replacing with a verify call.
29042         * lib/relocwrapper.c (verify1): Likewise.
29043         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29044         Likewise.
29045         * modules/malloca (Depends-on): Add 'verify'.
29046         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29047         * modules/vasnprintf (Depends-on): Add 'verify'.
29048         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29049         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29050         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29051         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29053         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29054         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29055
29056         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29057
29058         Formerly the style was sometimes 2*X - 1, because the C standard
29059         was wrongly thought to disallow ?: in integral constant expressions.
29060         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29061         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29062         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29063         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29064         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29065         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29066         verify that time_t cannot be floating.
29067
29068 2010-10-08  Eric Blake  <eblake@redhat.com>
29069
29070         time: enforce recent POSIX ruling that time_t is integral
29071         * lib/time.in.h (__time_t_must_be_integral): Detect any
29072         problematic systems, allowing the rest of gnulib to assume POSIX.
29073
29074 2010-10-08  Jim Meyering  <meyering@redhat.com>
29075
29076         fdopendir: fix a bug on systems lacking openat and /proc support
29077         OpenBSD 4.7 is one such system.  The most noticeable effect was
29078         failure of any application making nontrivial use of fts: rm, du,
29079         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29080           ./rm: traversal failed: `a': Bad file descriptor
29081         Debugging that, you see that even though FD 6 was closed just
29082         prior to the opendir call in fd_clone_opendir, its resulting
29083         dir->dd_fd was 8, rather than the expected value of 6:
29084
29085         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29086         93                close (fd);
29087         (gdb) n
29088         94                dir = fd_clone_opendir (dupfd);
29089         (gdb) n
29090         95                saved_errno = errno;
29091         (gdb) p dir->dd_fd
29092         $11 = 8
29093
29094         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29095         The problem is that on OpenBSD, fd_clone_opendir has to resort
29096         to using the old-style save/restore CWD mechanism, due to its
29097         lack of openat/proc support, and *that* would steal the FD (6)
29098         that opendir was supposed to use.
29099
29100         The fix is to squirrel away the desired FD so that save_cwd uses a
29101         different one, and then free the dest FD right before calling opendir.
29102         That guarantees opendir will use the required file descriptor.
29103
29104         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29105
29106 2010-10-08  Bruno Haible  <bruno@clisp.org>
29107
29108         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29109         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29110
29111 2010-10-08  Bruno Haible  <bruno@clisp.org>
29112
29113         nanosleep: Make replacement POSIX compliant.
29114         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29115         is out of range.
29116         Reported by Jim Meyering.
29117
29118 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29119
29120         bootstrap: add hook for altering gnulib.mk, for Bison
29121         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29122         the Bison bootstrapping process can rewrite file names and variables
29123         in this file before later parts of 'bootstrap' use the file.
29124         Bison wants to include lib/gnulib.mk from the top-level makefile,
29125         so it needs the file names in this file to be relative to the top
29126         level, not relative to lib; plus it needs variable names to be
29127         rewritten.
29128         (slurp): Use the new function.
29129
29130         bootstrap: reformat for readability
29131         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29132
29133 2010-10-08  Eric Blake  <eblake@redhat.com>
29134
29135         docs: update cygwin progress
29136         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29137         1.7.7.
29138         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29139         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29140         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29141         * doc/posix-functions/carg.texi (carg): Likewise.
29142         * doc/posix-functions/cargf.texi (cargf): Likewise.
29143         * doc/posix-functions/casin.texi (casin): Likewise.
29144         * doc/posix-functions/casinf.texi (casinf): Likewise.
29145         * doc/posix-functions/casinh.texi (casinh): Likewise.
29146         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29147         * doc/posix-functions/catan.texi (catan): Likewise.
29148         * doc/posix-functions/catanf.texi (catanf): Likewise.
29149         * doc/posix-functions/catanh.texi (catanh): Likewise.
29150         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29151         * doc/posix-functions/ccos.texi (ccos): Likewise.
29152         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29153         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29154         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29155         * doc/posix-functions/cexp.texi (cexp): Likewise.
29156         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29157         * doc/posix-functions/cimag.texi (cimag): Likewise.
29158         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29159         * doc/posix-functions/clog.texi (clog): Likewise.
29160         * doc/posix-functions/clogf.texi (clogf): Likewise.
29161         * doc/posix-functions/conj.texi (conj): Likewise.
29162         * doc/posix-functions/conjf.texi (conjf): Likewise.
29163         * doc/posix-functions/cpow.texi (cpow): Likewise.
29164         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29165         * doc/posix-functions/cproj.texi (cproj): Likewise.
29166         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29167         * doc/posix-functions/creal.texi (creal): Likewise.
29168         * doc/posix-functions/crealf.texi (crealf): Likewise.
29169         * doc/posix-functions/csin.texi (csin): Likewise.
29170         * doc/posix-functions/csinf.texi (csinf): Likewise.
29171         * doc/posix-functions/csinh.texi (csinh): Likewise.
29172         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29173         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29174         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29175         * doc/posix-functions/ctan.texi (ctan): Likewise.
29176         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29177         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29178         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29179         * doc/posix-headers/complex.texi (complex.h): Likewise.
29180
29181 2010-10-07  Jim Meyering  <meyering@redhat.com>
29182
29183         parse-datetime: avoid compilation failure on OpenBSD 4.7
29184         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29185         This works around a compilation failure on OpenBSD 4.7:
29186         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29187
29188 2010-10-07  Eric Blake  <eblake@redhat.com>
29189
29190         docs: update cygwin progress
29191         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29192         1.7.6.
29193         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29194         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29195         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29196         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29197         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29198         Likewise.
29199         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29200         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29201         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29202         Likewise.
29203         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29204         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29205         Likewise.
29206         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29207         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29208         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29209         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29210         Likewise.
29211         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29212         Likewise.
29213         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29214
29215         docs: update parse-datetime history
29216         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29217         documentation of this function's history and alternatives.
29218
29219         cygwin: use more robust version check
29220         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29221         exclude an eventual cygwin 1.9.1.
29222         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29224         (gl_FUNC_STRCASESTR): Likewise.
29225         Reported by Bruno Haible.
29226
29227 2010-10-06  Bruno Haible  <bruno@clisp.org>
29228
29229         string, sys_select: Avoid #including large headers unless necessary.
29230         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29231         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29232         OSF/1, BeOS, Haiku.
29233         Reported by Jim Meyering.
29234
29235 2010-10-05  Eric Blake  <eblake@redhat.com>
29236
29237         memmem, strstr, strcasestr: fix bug with long periodic needle
29238         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29239         periodic needle having false positive.
29240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29241         and cygwin 1.7.7.
29242         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29244         (gl_FUNC_STRCASESTR): Likewise.
29245         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29246         * tests/test-memmem.c (main): Expose the bug.
29247         * tests/test-strcasestr.c (main): Likewise.
29248         * tests/test-strstr.c (main): Likewise.
29249         * tests/test-c-strcasestr.c (main): Likewise.
29250         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29251         * doc/posix-functions/strstr.texi (strstr): Likewise.
29252         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29253         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29254
29255 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29256
29257         parse-datetime: do some more renaming
29258         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29259         parse_datetime, not get_date.  Mention the renaming.
29260         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29261         in comments.
29262         * m4/bison.m4: Likewise.
29263
29264 2010-10-05  Eric Blake  <eblake@redhat.com>
29265
29266         parse-datetime: better name than get_date
29267         * NEWS: Reword the deprecation notice.
29268         * modules/get_date: Rename to modules/parse-datetime.
29269         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29270         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29271         * lib/get_date.y: Rename to lib/parse-datetime.y.
29272         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29273         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29274         * doc/getdate.texi: Provide fallback wrapper.
29275         * lib/getdate.h: Move guts, and wrap...
29276         * lib/parse-datetime.h: ...new file.
29277         * lib/parse-datetime.y (get_date): Rename...
29278         (parse_datetime): ...to this.
29279         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29280         (gl_PARSE_DATETIME): ...to this.
29281         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29282         documentation.
29283         * modules/getdate (Files): Provide fallback docs and header.
29284         (Notice, Depends-on): Update references.
29285         * tests/test-parse-datetime.c: Likewise.
29286         * DEPENDENCIES: Likewise.
29287         * MODULES.html.sh (Date and time <time.h>): Likewise.
29288         * doc/parse-datetime.texi (Date input formats)
29289         (Authors of parse_datetime): Likewise.
29290         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29291         (Include): Likewise.
29292         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29293         * gnulib-tool: Likewise.
29294         * m4/bison.m4 (gl_BISON): Likewise.
29295         Suggested by Bruno Haible.
29296
29297 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29298
29299         more ports to Solaris tr, which needs [] around ranges
29300         * gnulib-tool: Solaris tr needs [] around ranges.
29301         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29302         * tests/test-pipe-filter-gi1.c (main): Likewise.
29303         * tests/test-pipe-filter-ii1.c (main): Likewise.
29304
29305 2010-10-05  Eric Blake  <eblake@redhat.com>
29306
29307         bootstrap: fix Solaris regression
29308         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29309         around ranges.
29310         Reported by Pádraig Brady.
29311
29312         bootstrap: work with pkg-config
29313         * build-aux/bootstrap (check_versions): Also transliterate - in
29314         prerequisite name.
29315         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29316         prerequisites that were already found, to avoid confusion.
29317         Reported by Justin Clift.
29318
29319         faccessat: remove unused wrappers
29320         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29321         presence of these wrappers dragged in -lgen on Solaris.
29322         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29323
29324 2010-10-05  Jim Meyering  <meyering@redhat.com>
29325
29326         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29327         * Makefile (sc_pragma_columns): New syntax-check rule.
29328
29329 2010-10-04  Bruno Haible  <bruno@clisp.org>
29330
29331         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29332         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29333         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29334         Reported by Bruce Korb and Eric Blake.
29335
29336 2010-10-04  Bruno Haible  <bruno@clisp.org>
29337
29338         threadlib: Make option --with-libpth-prefix work.
29339         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29340         use $LIBPTH, not just -lpth.
29341
29342 2010-10-04  Bruno Haible  <bruno@clisp.org>
29343
29344         Avoid line length limitation from HP NonStop system header files.
29345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29346         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29347         * lib/ctype.in.h: Likewise.
29348         * lib/dirent.in.h: Likewise.
29349         * lib/errno.in.h: Likewise.
29350         * lib/fcntl.in.h: Likewise.
29351         * lib/float.in.h: Likewise.
29352         * lib/getopt.in.h: Likewise.
29353         * lib/iconv.in.h: Likewise.
29354         * lib/inttypes.in.h: Likewise.
29355         * lib/langinfo.in.h: Likewise.
29356         * lib/locale.in.h: Likewise.
29357         * lib/math.in.h: Likewise.
29358         * lib/netdb.in.h: Likewise.
29359         * lib/netinet_in.in.h: Likewise.
29360         * lib/poll.in.h: Likewise.
29361         * lib/pthread.in.h: Likewise.
29362         * lib/pty.in.h: Likewise.
29363         * lib/sched.in.h: Likewise.
29364         * lib/se-selinux.in.h: Likewise.
29365         * lib/search.in.h: Likewise.
29366         * lib/signal.in.h: Likewise.
29367         * lib/spawn.in.h: Likewise.
29368         * lib/stdarg.in.h: Likewise.
29369         * lib/stddef.in.h: Likewise.
29370         * lib/stdint.in.h: Likewise.
29371         * lib/stdio.in.h: Likewise.
29372         * lib/stdlib.in.h: Likewise.
29373         * lib/string.in.h: Likewise.
29374         * lib/strings.in.h: Likewise.
29375         * lib/sys_file.in.h: Likewise.
29376         * lib/sys_ioctl.in.h: Likewise.
29377         * lib/sys_select.in.h: Likewise.
29378         * lib/sys_socket.in.h: Likewise.
29379         * lib/sys_stat.in.h: Likewise.
29380         * lib/sys_time.in.h: Likewise.
29381         * lib/sys_times.in.h: Likewise.
29382         * lib/sys_utsname.in.h: Likewise.
29383         * lib/sys_wait.in.h: Likewise.
29384         * lib/sysexits.in.h: Likewise.
29385         * lib/termios.in.h: Likewise.
29386         * lib/time.in.h: Likewise.
29387         * lib/unistd.in.h: Likewise.
29388         * lib/wchar.in.h: Likewise.
29389         * lib/wctype.in.h: Likewise.
29390         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29391         * modules/ctype (Makefile.am): Likewise.
29392         * modules/dirent (Makefile.am): Likewise.
29393         * modules/errno (Makefile.am): Likewise.
29394         * modules/fcntl-h (Makefile.am): Likewise.
29395         * modules/float (Makefile.am): Likewise.
29396         * modules/getopt-posix (Makefile.am): Likewise.
29397         * modules/iconv-h (Makefile.am): Likewise.
29398         * modules/inttypes (Makefile.am): Likewise.
29399         * modules/langinfo (Makefile.am): Likewise.
29400         * modules/locale (Makefile.am): Likewise.
29401         * modules/math (Makefile.am): Likewise.
29402         * modules/netdb (Makefile.am): Likewise.
29403         * modules/netinet_in (Makefile.am): Likewise.
29404         * modules/poll-h (Makefile.am): Likewise.
29405         * modules/pthread (Makefile.am): Likewise.
29406         * modules/pty (Makefile.am): Likewise.
29407         * modules/sched (Makefile.am): Likewise.
29408         * modules/search (Makefile.am): Likewise.
29409         * modules/selinux-h (Makefile.am): Likewise.
29410         * modules/signal (Makefile.am): Likewise.
29411         * modules/spawn (Makefile.am): Likewise.
29412         * modules/stdarg (Makefile.am): Likewise.
29413         * modules/stddef (Makefile.am): Likewise.
29414         * modules/stdint (Makefile.am): Likewise.
29415         * modules/stdio (Makefile.am): Likewise.
29416         * modules/stdlib (Makefile.am): Likewise.
29417         * modules/string (Makefile.am): Likewise.
29418         * modules/strings (Makefile.am): Likewise.
29419         * modules/sys_file (Makefile.am): Likewise.
29420         * modules/sys_ioctl (Makefile.am): Likewise.
29421         * modules/sys_select (Makefile.am): Likewise.
29422         * modules/sys_socket (Makefile.am): Likewise.
29423         * modules/sys_stat (Makefile.am): Likewise.
29424         * modules/sys_time (Makefile.am): Likewise.
29425         * modules/sys_times (Makefile.am): Likewise.
29426         * modules/sys_utsname (Makefile.am): Likewise.
29427         * modules/sys_wait (Makefile.am): Likewise.
29428         * modules/sysexits (Makefile.am): Likewise.
29429         * modules/termios (Makefile.am): Likewise.
29430         * modules/time (Makefile.am): Likewise.
29431         * modules/unistd (Makefile.am): Likewise.
29432         * modules/wchar (Makefile.am): Likewise.
29433         * modules/wctype (Makefile.am): Likewise.
29434
29435 2010-10-04  Bruno Haible  <bruno@clisp.org>
29436
29437         read-file tests: Avoid a test failure on NonStop Kernel.
29438         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29439         a regular file.
29440         Reported by Joachim Schmitz <schmitz@hp.com>.
29441
29442 2010-10-03  Bruno Haible  <bruno@clisp.org>
29443
29444         gnulib-tool: Fixes for --create-testdir with --libtool.
29445         * gnulib-tool (func_get_automake_snippet): Don't augment
29446         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29447         an executable.
29448         (func_create_testdir): Handle module 'alloca' like func_import.
29449         Reported by Bruce Korb <bruce.korb@gmail.com>.
29450
29451 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29452
29453         Avoid some lines longer than 80 characters.
29454         * lib/stdint.in.h: Break long comment lines.
29455         * lib/math.in.h: Likewise.
29456         (_GL_NUM_UINT_WORDS): New macro, for readability.
29457         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29458         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29459         * lib/stdlib.in.h: Likewise.
29460         * lib/spawn.in.h: Likewise.
29461         * lib/sys_socket.in.h: Update an URL.
29462         * lib/sys_stat.in.h: Break long line.
29463
29464 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29465
29466         Improve pmccabe2html.
29467         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29468         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29469         when the sources change. Remove the line in the HTML about "Used
29470         ranges" (which implied that there might be other unused ranges),
29471         rename "Resume" to "Summary" (easier to understand for more users).
29472         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29473         styles, and some unnecessary blank lines.
29474
29475 2010-10-03  Bruno Haible  <bruno@clisp.org>
29476             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29477
29478         acl: Add support for ACLs on NonStop Kernel.
29479         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29480         Check whether the function aclsort() exists.
29481         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29482         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29483         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29484         (acl_nontrivial [HAVE_ACLSORT]: New function.
29485         (file_has_acl): Implement for NonStop Kernel.
29486         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29487         (qset_acl): Implement for NonStop Kernel.
29488         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29489         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29490         (main): Implement for NonStop Kernel.
29491         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29492         Kernel. Handle this flavor.
29493         * tests/test-set-mode-acl.sh: Likewise.
29494         * tests/test-copy-acl.sh: Likewise.
29495         * tests/test-copy-file.sh: Likewise.
29496
29497 2010-10-03  Bruno Haible  <bruno@clisp.org>
29498
29499         Info about ACLs on NonStop Kernel.
29500         * doc/acl-resources.txt: Add info about NonStop Kernel.
29501         References by Joachim Schmitz <schmitz@hp.com>.
29502
29503 2010-10-02  Bruno Haible  <bruno@clisp.org>
29504
29505         Define missing EDQUOT on NonStop Kernel.
29506         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29507         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29508         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29509         missing.
29510         * doc/posix-headers/errno.texi: Mention the NSK bug.
29511         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29512         Reported by Joachim Schmitz <schmitz@hp.com>.
29513
29514 2010-10-02  Bruno Haible  <bruno@clisp.org>
29515
29516         Update doc for POSIX:2008.
29517         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29518         Update URL of POSIX specification.
29519
29520 2010-10-02  Bruno Haible  <bruno@clisp.org>
29521
29522         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29523         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29524         from gnulib, not from Automake.
29525
29526 2010-10-02  Bruno Haible  <bruno@clisp.org>
29527
29528         New module 'system-posix'.
29529         * modules/system-posix: New file.
29530         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29531         module is present.
29532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29533         GNULIB_SYSTEM_POSIX.
29534         * modules/stdlib (Depends-on): Remove sys_wait.
29535         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29536         * doc/posix-functions/system.texi: Mention the new module.
29537         * doc/posix-headers/stdlib.texi: Likewise.
29538         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29539         define test_sys_wait_macros to a no-op.
29540         Reported by Sam Steingold <sds@gnu.org>.
29541
29542 2010-09-30  Bruno Haible  <bruno@clisp.org>
29543
29544         More renaming from 'getdate' to 'get_date'.
29545         * doc/get_date.texi: Renamed from doc/getdate.texi.
29546         * modules/get_date (Files): Update.
29547         * MODULES.html.sh (Date and time <time.h>): Update.
29548         * DEPENDENCIES: Update.
29549         * gnulib-tool: Update comment.
29550         * m4/bison.m4 (gl_BISON): Likewise.
29551         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29552
29553 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29554
29555         bootstrap: support ACLOCAL_FLAGS during aclocal
29556         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29557         can add additional -I dir for third-party .m4 files.
29558
29559 2010-09-30  Eric Blake  <eblake@redhat.com>
29560
29561         bootstrap: use glibtoolize on MacOS
29562         * build-aux/bootstrap (check_versions): Convert libtool into
29563         libtoolize.
29564         (tool search): Move libtool check earlier, and look for
29565         glibtoolize for MacOS.
29566         (gnulib_tool_options): Auto-add --libtool when appropriate.
29567         Reported by Justin Clift.
29568
29569         poll: fix typo that broke test on MacOS
29570         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29571         Reported by Justin Clift.
29572
29573         getdate: rename to get_date
29574         Note: getdate.h is not renamed, to minimize client impact.
29575         * modules/getdate: Mark obsolete.  Move old contents...
29576         * modules/get_date: ...to new module name.
29577         * modules/getdate-tests: Move...
29578         * modules/get_date-tests: ...here.
29579         * m4/getdate.m4: Move...
29580         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29581         * lib/getdate.y: Move...
29582         * lib/get_date.y: ...here.
29583         * tests/test-getdate.c: Move...
29584         * tests/test-get_date.c: ...here.
29585         * doc/posix-functions/getdate.texi (getdate): Update name.
29586         * NEWS: Mention the change.
29587
29588 2010-09-29  Bruno Haible  <bruno@clisp.org>
29589
29590         Separate the module 'waitpid' from the module 'sys_wait'.
29591         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29592         present.
29593         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29594         gl_MODULE_INDICATOR_FOR_TESTS.
29595         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29596         * modules/sys_wait (Depends-on): Remove waitpid.
29597         (Makefile.am): Substitute GNULIB_WAITPID.
29598         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29599         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29600         signature only if the 'waitpid' module is present.
29601         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29602         * NEWS: Mention the change.
29603         * modules/grantpt (Depends-on): Add waitpid.
29604         * modules/wait-process (Depends-on): Likewise.
29605
29606 2010-09-29  Bruno Haible  <bruno@clisp.org>
29607
29608         More tests for module 'sys_wait'.
29609         * modules/sys_wait-c++-tests: New file.
29610         * tests/test-sys_wait-c++.cc: New file.
29611         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29612         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29613
29614 2010-09-29  Bruno Haible  <bruno@clisp.org>
29615
29616         New module 'waitpid'.
29617         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29618         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29619         Don't include <process.h>.
29620         (waitpid): Declare only, using modern idiom.
29621         * m4/waitpid.m4: New file.
29622         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29623         * modules/waitpid: New file.
29624         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29625         (Makefile.am): Update.
29626         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29627
29628 2010-09-28  Bruno Haible  <bruno@clisp.org>
29629
29630         poll: Assume ANSI C.
29631         * lib/poll.c (poll): Use an ANSI C declaration.
29632
29633 2010-09-28  Bruno Haible  <bruno@clisp.org>
29634
29635         poll-h: Create poll.h on all platforms.
29636         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29637         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29638         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29639         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29640         (gl_REPLACE_POLL_H): Don't set POLL_H.
29641         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29642         * modules/poll-h (Depends-on): Add include_next.
29643         (Makefile.am): Create poll.h unconditionally. Substitute also
29644         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29645
29646 2010-09-28  Bruno Haible  <bruno@clisp.org>
29647
29648         Tests for module 'poll-h'.
29649         * modules/poll-h-c++-tests: New file.
29650         * tests/test-poll-h-c++.cc: New file.
29651
29652         Tests for module 'poll-h'.
29653         * modules/poll-h-tests: New file.
29654         * tests/test-poll-h.c: New file.
29655
29656 2010-09-28  Bruno Haible  <bruno@clisp.org>
29657
29658         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29659         * modules/poll-h (Depends-on): Add 'extensions'.
29660
29661 2010-09-28  Bruno Haible  <bruno@clisp.org>
29662
29663         New module 'poll-h'.
29664         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29665         (poll): Use modern idiom.
29666         * modules/poll-h: New file.
29667         * modules/poll (Files): Remove lib/poll.in.h.
29668         (Depends-on): Add poll-h.
29669         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29670         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29671         * m4/poll_h.m4: New file.
29672         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29673         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29674         and invoke gl_REPLACE_POLL_H.
29675         * lib/poll.c: Use common idiom.
29676         * tests/test-poll.c: Likewise.
29677         * doc/posix-headers/poll.texi: Mention the poll-h module.
29678         Suggested by Eric Blake.
29679
29680 2010-09-26  Bruno Haible  <bruno@clisp.org>
29681
29682         sys_wait: Implement WSTOPSIG.
29683         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29684         Reported by Simon Josefsson.
29685
29686 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29687
29688         stdlib, sys_wait: Avoid compilation error on mingw.
29689         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29690
29691 2010-09-26  Bruno Haible  <bruno@clisp.org>
29692
29693         stdlib tests: Avoid code duplication.
29694         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29695         * modules/sys_wait-tests (Files): Likewise.
29696         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29697         * tests/test-stdlib.c: Include test-sys_wait.h.
29698         (main): Invoke test_sys_wait_macros.
29699         * tests/test-sys_wait.c: Include test-sys_wait.h.
29700         (main): Invoke test_sys_wait_macros.
29701
29702 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29703
29704         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29705         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29706         sure Windows sockets are working before calling getaddrinfo.
29707         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29708         * doc/gnulib.texi (Windows sockets): Fix typo.
29709
29710 2010-09-25  Bruno Haible  <bruno@clisp.org>
29711
29712         Tests for module 'regex-quote'.
29713         * modules/regex-quote-tests: New file.
29714         * tests/test-regex-quote.c: New file.
29715
29716         New module 'regex-quote'.
29717         * lib/regex-quote.h: New file.
29718         * lib/regex-quote.c: New file.
29719         * modules/regex-quote: New file.
29720         Suggested by Reuben Thomas <rrt@sc3d.org>.
29721
29722 2010-09-24  Bruno Haible  <bruno@clisp.org>
29723
29724         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29725         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29726
29727 2010-09-23  Bruno Haible  <bruno@clisp.org>
29728
29729         setenv: Relax license.
29730         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29731         Blake.
29732         Requested by Eric Blake.
29733
29734 2010-09-22  Bruno Haible  <bruno@clisp.org>
29735
29736         termios: Relax license.
29737         * modules/termios (License): Change to LGPLv2+.
29738         Requested by Eric Blake.
29739
29740 2010-09-22  Bruno Haible  <bruno@clisp.org>
29741
29742         threadlib: Allow the package to change the default to 'no'.
29743         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29744         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29745         Reported by Paul Eggert.
29746
29747 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29748             Bruno Haible  <bruno@clisp.org>
29749
29750         Fix endless loop in mbmemcasecoll.
29751         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29752         byte.
29753         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29754
29755 2010-09-22  Bruno Haible  <bruno@clisp.org>
29756
29757         Tests for module 'memcoll'.
29758         * modules/memcoll-tests: New file.
29759         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29760
29761         memcoll, xmemcoll: Clarify size vs. length.
29762         * modules/memcoll.c (memcoll0): Clarify specification.
29763         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29764         passed to collate_error.
29765
29766 2010-09-22  Bruno Haible  <bruno@clisp.org>
29767
29768         Tests for module 'memcasecmp'.
29769         * modules/memcasecmp-tests: New file.
29770         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29771
29772 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29773
29774         * lib/pthread.in.h: Add split double-inclusion guard, and include
29775         system <pthread.h> if there is one.  Use @@-style as in other
29776         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29777         pthread.h doesn't.
29778         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29779         (pthread_mutexattr_settype, pthread_mutex_trylock):
29780         New static inline functions, if there's no system <pthread.h>.
29781         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29782         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29783         Approximate with mutexes if the system lacks spinlocks, as in
29784         MacOS.
29785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29786         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29787         @@-style.  Check for spinlocks separately.
29788         (gl_PTHREAD_DEFAULTS): New macro.
29789         * modules/pthread: Redo to use a more typical style for in.h files.
29790
29791 2010-09-21  Eric Blake  <eblake@redhat.com>
29792
29793         net_if: enhance tests
29794         * tests/test-net_if.c (main): Move signature checks earlier.
29795         Print failures to stderr.
29796         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29797         Document the bug that we do not yet fix.
29798
29799 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29800
29801         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29802         about gnulib, not GSS.
29803
29804 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29805
29806         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29807         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29808         for Emacs.
29809         * build-aux/pmccabe2html: Make Makefile.am example code more
29810         cut-and-paste friendly.
29811
29812 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29813
29814         * tests/test-net_if.c: New file.
29815         * modules/net_if-tests: New file.
29816
29817 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29818
29819         pthread: add pthread_spin_destroy
29820         * lib/pthread.in.h (pthread_spin_destroy): New function.
29821
29822 2010-09-19  Bruno Haible  <bruno@clisp.org>
29823
29824         gnulib-tool: Fix --help output.
29825         * gnulib-tool (func_usage): Fix help message.
29826         Reported by Reuben Thomas <rrt@sc3d.org>.
29827
29828 2010-09-18  Jim Meyering  <meyering@redhat.com>
29829
29830         maint.mk: avoid unexpanded \n in two diagnostics
29831         * top/maint.mk (sc_prohibit_always_true_header_tests):
29832         Don't use a literal \n in a halt=... assignment.  It would not be
29833         expanded, and the two \n bytes would appear in the diagnostic output
29834         rather than the desired newline.  Use halt=$$(printf ... instead.
29835         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29836
29837 2010-09-18  Bruno Haible  <bruno@clisp.org>
29838
29839         netinet_in: Doc tweak.
29840         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29841         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29842
29843 2010-09-18  Jim Meyering  <meyering@redhat.com>
29844
29845         init.sh: correct an outdated comment
29846         * tests/init.sh (create_exe_shims_):  s/function/alias/
29847
29848         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29849         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29850         a file named "*.exe" is removed between the glob expansion and the
29851         processing of that oddly named file.
29852
29853 2010-09-17  Eric Blake  <eblake@redhat.com>
29854
29855         mirbsd: add some more support
29856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29857         in BSD family.
29858         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29859         devices as OpenBSD.
29860         * m4/host-os.m4 (mirbsd): Add MirBSD.
29861
29862         tests: fix unportable assumption on sys/wait.h
29863         * tests/test-sys_wait.c (main): Relax test.
29864         * tests/test-stdlib.c (main): Likewise.
29865
29866         init.sh: accommodate directory with no .exes
29867         * tests/init.sh: Accomodate directory containing only scripts.
29868
29869         tests: avoid compiler warning
29870         * tests/test-stdlib.c (main): Use the variable.
29871
29872         fdutimens, fdutimensat: update signature, again
29873         * lib/utimens.h (gl_futimens): Delete, and move signature...
29874         (fdutimens): ...here.
29875         (fdutimensat): Rearrange signature.
29876         (lutimensat): Rename variable for clarity.
29877         * lib/fdutimensat.c (fdutimensat): Update signature.
29878         * lib/utimens.c (fdutimens): Likewise.
29879         (gl_futimens): Delete.
29880         (utimens, lutimens): Update callers.
29881         * lib/futimens.c (futimens): Likewise.
29882         * tests/test-fdutimensat.c: Likewise.
29883         * tests/test-utimens.c: Likewise.
29884         * tests/test-futimens.h: Update comment.
29885         * NEWS: Mention this.
29886         Suggested by Paul Eggert.
29887
29888 2010-09-17  Bruno Haible  <bruno@clisp.org>
29889
29890         Take over the maintenance of some older macros from Autoconf.
29891         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29892         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29893         GNU Autoconf.
29894         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29895         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29896
29897 2010-09-17  Eric Blake  <eblake@redhat.com>
29898
29899         fdutimensat: drop atflag validation
29900         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29901         with valid fd, to close a race scenario where futimens is
29902         unsupported and FILE was replaced by a symlink.
29903         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29904         accordingly.
29905         Suggested by Paul Eggert.
29906
29907 2010-09-16  Bruno Haible  <bruno@clisp.org>
29908
29909         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29910         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29911
29912 2010-09-16  Bruno Haible  <bruno@clisp.org>
29913
29914         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29915         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29916         login_tty exists.
29917         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29918
29919 2010-09-16  Bruno Haible  <bruno@clisp.org>
29920
29921         login_tty: Make the replacement code work on BSD systems.
29922         * lib/login_tty.c: Include <sys/ioctl.h>.
29923         (login_tty): Use ioctl TIOCSCTTY when available.
29924         * modules/login_tty (Depends-on): Add sys_ioctl.
29925         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29926
29927 2010-09-16  Bruno Haible  <bruno@clisp.org>
29928
29929         login_tty: Stricter unit test.
29930         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29931         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29932         and tcgetsid() after login_tty.
29933         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29934
29935 2010-09-16  Bruno Haible  <bruno@clisp.org>
29936
29937         New module 'tcgetsid'.
29938         * lib/tcgetsid.c: New file.
29939         * m4/tcgetsid.m4: New file.
29940         * modules/tcgetsid: New file.
29941         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29942         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29943         GNULIB_TCGETSID, HAVE_TCGETSID.
29944         * lib/termios.in.h: Include <sys/types.h>.
29945         (tcgetsid): New declaration.
29946         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29947         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29948         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29949         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29950
29951 2010-09-16  Bruno Haible  <bruno@clisp.org>
29952
29953         Tests for module 'termios'.
29954         * modules/termios-c++-tests: New file.
29955         * modules/termios-tests: New file.
29956         * tests/test-termios-c++.cc: New file.
29957         * tests/test-termios.c: New file.
29958
29959         New module 'termios'.
29960         * modules/termios: New file.
29961         * lib/termios.in.h: New file.
29962         * m4/termios_h.m4: New file.
29963         * doc/posix-headers/termios.texi: Mention the new module.
29964
29965 2010-09-16  Eric Blake  <eblake@redhat.com>
29966
29967         fdutimensat: add an atflag parameter
29968         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29969         * lib/utimens.h (fdutimensat): Update prototype.
29970         * tests/test-fdutimensat.c: Adjust test to match.
29971         * NEWS: Document the change.
29972         Suggested by Paul Eggert.
29973
29974 2010-09-16  Bruno Haible  <bruno@clisp.org>
29975
29976         Fix typos in comments.
29977         * lib/striconveh.h: Fix typo in comment.
29978         * lib/login_tty.c (login_tty): Likewise.
29979
29980 2010-09-15  Bruno Haible  <bruno@clisp.org>
29981
29982         stdlib: clarify MirBSD WEXITSTATUS bug
29983         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29984         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29985
29986 2010-09-15  Eric Blake  <eblake@redhat.com>
29987
29988         stdlib: work around MirBSD WEXITSTATUS bug
29989         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29990         * modules/stdlib (Depends-on): Add sys_wait.
29991         * tests/test-sys_wait.c (main): Enhance test.
29992         * tests/test-stdlib.c (main): Likewise.
29993         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29994
29995         docs: mention MacOS issue with WEXITSTATUS(constant)
29996         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29997         issue.
29998         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29999
30000         strnlen: add tests
30001         * modules/strnlen-tests: New file.
30002         * tests/test-strnlen.c: Likewise.
30003
30004 2010-09-14  Bruno Haible  <bruno@clisp.org>
30005
30006         unistr/base: Avoid link errors when module 'libunistring' is also used.
30007         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30008         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30009         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30010         Declare also when HAVE_LIBUNISTRING is set.
30011         Reported by Pádraig Brady <P@draigbrady.com>.
30012
30013 2010-09-14  Eric Blake  <eblake@redhat.com>
30014
30015         test-rawmemchr: make more robust
30016         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30017         (Depends-on, configure.ac): Add needed prerequisites to use it.
30018         * modules/memchr-tests (Files, Depends-on, configure.ac):
30019         Likewise, to avoid implicit reliance on memchr module prereqs.
30020         * tests/test-memchr.c (main): Ensure proper masking.
30021         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30022         reads.
30023
30024         memchr: detect glibc Alpha bug
30025         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30027         Alpha.
30028         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30029         * tests/test-memchr.c (main): Enhance test.
30030         Reported by Nelson H. F. Beebe.
30031
30032 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30033
30034         fts, getcwd, glob: audit for dirfd returning -1
30035         * lib/fts.c (opendir): Remove #define; no longer used.
30036         (opendirat): New arg PDIR_FD.  All callers changed.
30037         (fts_build, _opendir2): Use new opendirat to avoid the need for
30038         dirfd, or for checking whether dirfd returns a negative value.
30039         Don't use opendir; always use openat followed by fdopendir.
30040         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30041         it.
30042         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30043         returns -1 here.
30044         * modules/fts (Depends-on): Remove dirfd.
30045         * modules/getcwd (Depends-on): Likewise.
30046
30047 2010-09-13  Eric Blake  <eblake@redhat.com>
30048
30049         float: fix broken MirBSD header
30050         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30051         * doc/posix-headers/float.texi (float.h): Document it.
30052
30053 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30054
30055         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30056         * lib/fts.c (opendirat): New arg extra_flags.
30057         (__opendir2): Use it to avoid following symlinks when opening
30058         a directory, if symlinks are not supposed to be followed.  See
30059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30060
30061         fdopendir: preserve argument fd before returning
30062         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30063         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30064         (fdopendir): Use them, arranging for FD to be open to the same
30065         directory that it was when it started.  (It might be temporarily
30066         closed while fdopendir is running, so this not thread- or
30067         signal-safe.)  Be careful to do the right thing even when file
30068         descriptors are scarce and dup fails with errno == EMFILE.  See
30069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30070
30071 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30072
30073         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30074         * NEWS: Document change.
30075         * m4/regex.m4: Disable test for regoff_t size.
30076
30077 2010-09-13  Jim Meyering  <meyering@redhat.com>
30078
30079         fts: don't operate on an invalid file descriptor after failed dup
30080         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30081         negative file descriptor.
30082
30083 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30084
30085         savedir: add streamsavedir, deprecate fdsavedir
30086         * NEWS: Mention deprecation of fdsavedir.
30087         * lib/savedir.c (streamsavedir): New extern function, whose name
30088         ends in "savedir" to be consistent with the others.  This differs
30089         from savedirstream in that it doesn't close its argument.  The
30090         next version of GNU tar will use this instead of fdsavedir, to
30091         avoid some race conditions and conserve file descriptors.
30092         (savedirstream): Reimplement as a wrapper around streamsavedir.
30093         (fdsavedir): Add a comment deprecating this function.  As far as
30094         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30095         * lib/savedir.h (streamsavedir): New decl.
30096         (fdsavedir): Add a comment deprecating this.
30097
30098 2010-09-10  Bruno Haible  <bruno@clisp.org>
30099
30100         langinfo: Fix last commit.
30101         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30102         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30104
30105 2010-09-10  Bruno Haible  <bruno@clisp.org>
30106
30107         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30108         * lib/progreloc.c (O_EXEC): Define fallback.
30109
30110 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30111
30112         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30113         * NEWS: Document recent changes to fcntl-h.
30114         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30115         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30116         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30117         Similarly for O_SEARCH; this last was already true, but not documented.
30118         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30119         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30120         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30121         Likewise.
30122         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30123         is zero, not whether it is defined.
30124         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30125         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30126         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30127
30128 2010-09-10  Bruno Haible  <bruno@clisp.org>
30129
30130         langinfo, nl_langinfo: Fix for IRIX 5.3.
30131         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30132         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30133         HAVE_LANGINFO_YESEXPR.
30134         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30135         HAVE_LANGINFO_YESEXPR.
30136         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30137         HAVE_LANGINFO_T_FMT_AMPM is 0.
30138         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30139         HAVE_LANGINFO_YESEXPR is 0.
30140         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30141         NOEXPR.
30142         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30143         * doc/posix-functions/nl_langinfo.texi: Likewise.
30144         Reported by Eric Blake.
30145
30146 2010-09-10  Bruno Haible  <bruno@clisp.org>
30147
30148         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30149         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30150         on FreeBSD 8.0 and OpenBSD 4.6.
30151         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30152         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30153         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30154         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30155         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30156         ac_includes_default.
30157         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30158
30159 2010-09-09  Eric Blake  <eblake@redhat.com>
30160
30161         strsignal: work around NetBSD bug
30162         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30163         * lib/string.in.h (includes): Likewise.
30164         * doc/posix-functions/strsignal.texi (strsignal): Document the
30165         bug.
30166         Reported by Nelson H. F. Beebe.
30167
30168         gnulib-tool: work with NetBSD /bin/sh
30169         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30170         (func_get_description, func_get_comment, func_get_status)
30171         (func_get_notice, func_get_applicability, func_get_filelist)
30172         (func_get_dependencies, func_get_autoconf_early_snippet)
30173         (func_get_autoconf_snippet, func_get_automake_snippet)
30174         (func_get_include_directive, func_get_link_directive)
30175         (func_get_license, func_get_maintainer, func_import): Avoid
30176         shell syntax errors from parsing syntax extensions.
30177
30178 2010-09-09  Bruno Haible  <bruno@clisp.org>
30179
30180         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30181         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30182         a reliable way to determine whether the 'alias' command works.
30183
30184 2010-09-08  Jim Meyering  <meyering@redhat.com>
30185
30186         init.sh: penalize a set-x-impaired shell; don't disqualify it
30187         * tests/init.sh: Too many shells corrupt application stderr when
30188         you set -x, so we can't afford to disqualify them, since at least
30189         on Irix-6.5, that would disqualify all bourne shells.
30190         Instead, use a two-pass approach.
30191         On the first pass, try to find a shell that meets the stricter
30192         condition that set -x does not corrupt stderr.
30193         If no shell meets the stricter condition, retest each candidate
30194         shell, but without that extra condition.  Finally, when
30195         VERBOSE=yes is requested and set -x might cause trouble, simply
30196         issue a warning and refrain from enabling debug output.
30197
30198 2010-09-08  Eric Blake  <eblake@redhat.com>
30199
30200         unsetenv: fix OpenBSD bug
30201         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30202         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30203         documentation.
30204         Reported by Jim Meyering.
30205
30206         strtod: work around IRIX 6.5 bug
30207         * lib/strtod.c (strtod): Reparse number on shorter string if
30208         exponent parse was invalid.
30209         * tests/test-strtod.c (main): Add check for "0x1p 2".
30210         Reported by Tom G. Christensen.
30211
30212         getopt: optimize previous patch
30213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30214         empty variable.  Speed up awk script.
30215         Reported by Paolo Bonzini.
30216
30217 2010-09-08  Jim Meyering  <meyering@redhat.com>
30218
30219         test.sh: disqualify shells for which set -x corrupts stderr
30220         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30221         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30222         appear in stderr output.  For example, this command:
30223             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30224         prints "P=1" on those two systems:
30225
30226 2010-09-08  Bruno Haible  <bruno@clisp.org>
30227
30228         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30229         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30230         commands, because some shells ignore redirections when there is an
30231         error in the command lookup.
30232         Reported by Eric Blake.
30233
30234 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30235
30236         * lib/regex.h: Fix a mention of `regex_compile' (should be
30237         `re_compile_pattern').
30238         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30239         (re_set_registers): Correct name of parameter in comment.
30240
30241         * doc/regex.texi: Add documentation for missing syntax flags.
30242         Remove commented-out documentation of defunct syntax option
30243         RE_NO_EMPTY_ALTS.
30244         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30245         Add documentation of re_set_registers.
30246         Document trick to re-use a pattern buffer by setting fastmap manually.
30247         Update documentation of struct re_pattern_buffer per public members.
30248         Uncomment documentation of equivalence class operators and
30249         collating symbol operators, since they are now implemented,
30250         Explain leftmost-longest matching in relation to alternatives.
30251         Tidy documentation of substring matching.
30252         Remove POSIX documentation, which is done better in
30253         glibc, and refer the reader there. Keep BSD API documentation, as
30254         that is not readily available elsewhere.
30255
30256 2010-09-07  Eric Blake  <eblake@redhat.com>
30257
30258         getopt: handle POSIXLY_CORRECT set but not exported
30259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30260         export state of POSIXLY_CORRECT, due to bash set -o posix.
30261         Reported by Dustin J. Mitchell.
30262
30263 2010-09-05  Bruno Haible  <bruno@clisp.org>
30264
30265         gnulib-tool: Highlight the changed options.
30266         * gnulib-tool (func_usage): Display the --import, --add-import,
30267         --remove-import explanations in bold font.
30268
30269 2010-09-06  Karl Berry  <karl@gnu.org>
30270
30271         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30272
30273 2010-09-05  Bruno Haible  <bruno@clisp.org>
30274
30275         uniwidth/width: Update comment.
30276         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30277         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30278
30279 2010-09-05  Bruno Haible  <bruno@clisp.org>
30280
30281         isinf, isnan: Relax license.
30282         * modules/isinf (License): Change from GPL to LGPL, with consent from
30283         Ben Pfaff.
30284         * modules/isnan (License): Likewise.
30285         Requested by Ludovic Courtès.
30286
30287 2010-09-04  Bruno Haible  <bruno@clisp.org>
30288
30289         gnulib-tool: Help migration from --import to --add-import or --update.
30290         * gnulib-tool: Emit a verbose error message when --import is used
30291         without any module name.
30292
30293 2010-09-04  Bruno Haible  <bruno@clisp.org>
30294
30295         Update doc about gnulib-tool.
30296         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30297         'gnulib-tool --update' in more detail.
30298         Reported by Eric Blake.
30299
30300 2010-09-04  Bruno Haible  <bruno@clisp.org>
30301
30302         gnulib-tool: Change --import. New options --add/remove-import.
30303         * gnulib-tool: New options --add-import, --remove-import.
30304         (func_usage): Document them.
30305         (have_associative): Define always.
30306         (func_import): In import mode, don't merge the specified settings with
30307         the cached settings. Implement remove-import mode.
30308         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30309         Explain when to use them versus --import.
30310         (Simple update): Use --add-import instead of --import.
30311         * NEWS: Mention the change.
30312
30313 2010-09-04  Bruno Haible  <bruno@clisp.org>
30314
30315         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30316         separate gnulib.mk.
30317
30318 2010-09-04  Bruno Haible  <bruno@clisp.org>
30319
30320         gnulib-tool: Don't talk about CVS any more.
30321         * gnulib-tool (func_usage, func_import): Write "version control"
30322         instead of CVS.
30323
30324 2010-09-04  Jim Meyering  <meyering@redhat.com>
30325
30326         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30327         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30328         false positives (whose names may be ill-chosen) when searching
30329         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30330         would cause a false-positive.
30331
30332         avoid coreutils "make distcheck" failure
30333         Coreutils tests with an absolute build directory name that contains
30334         a space.  Not quoting this directory name caused a failure.
30335         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30336         * tests/test-vc-list-files-cvs.sh: Likewise.
30337
30338 2010-09-04  Bruno Haible  <bruno@clisp.org>
30339
30340         gnulib-tool: Avoid error when run in a package without Makefile.am.
30341         * gnulib-tool: When collecting the m4dirs in a package that does not
30342         have a Makefile.am, eliminate those directories that contain no
30343         gnulib-cache.m4. Fix expression that counts these directories.
30344
30345 2010-09-04  Bruno Haible  <bruno@clisp.org>
30346
30347         update-copyright test: Improve output when perl is missing or too old.
30348         * tests/test-update-copyright.sh: Move test of Perl version down after
30349         the test whether Perl exists. Provide an explanation relating Perl's
30350         error message to Automake's SKIP: message.
30351
30352 2010-09-04  Bruno Haible  <bruno@clisp.org>
30353
30354         Don't augment PATH in TESTS_ENVIRONMENT.
30355         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30356         set abs_aux_dir instead of augmenting PATH.
30357         * modules/vc-list-files-tests (Makefile.am): Likewise.
30358         * tests/test-update-copyright.sh: Augment PATH here.
30359         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30360         path_prepend_.
30361         * tests/test-vc-list-files-git.sh: Likewise.
30362
30363 2010-09-04  Jim Meyering  <meyering@redhat.com>
30364
30365         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30366         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30367
30368 2010-09-04  Bruno Haible  <bruno@clisp.org>
30369
30370         strdup: Fix compilation error in C++ mode.
30371         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30372         the macro.
30373
30374 2010-09-04  Bruno Haible  <bruno@clisp.org>
30375
30376         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30377         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30378         macro into a function.
30379         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30380
30381 2010-09-04  Bruno Haible  <bruno@clisp.org>
30382
30383         Set PATH_SEPARATOR the same way autoconf does.
30384         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30385         the value of PATH_SEPARATOR the same way autoconf-generated configure
30386         scripts do.
30387         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30388         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30389
30390 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30391
30392         Set PATH_SEPARATOR the same way autoconf does.
30393         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30394         the same way autoconf-generated configure scripts do.
30395         * posix-modules: Likewise.
30396
30397 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30398
30399         hash: fix safe_hasher const typo
30400         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30401         const; otherwise, there is a type error later.
30402
30403 2010-09-02  Jim Meyering  <meyering@redhat.com>
30404
30405         test-update-copyright.sh: require perl 5.8.0
30406         * tests/test-update-copyright.sh: Require 5.8.0,
30407         which Tom G. Christensen has confirmed is adequate,
30408         while 5.6.1 is not.
30409
30410 2010-09-02  Eric Blake  <eblake@redhat.com>
30411
30412         tests: init.sh improvements for re-exec'ing with zsh
30413         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30414         -vx through shell re-exec.
30415         Reported by Tom G. Christensen.
30416
30417         wctype: fix typo in previous commit
30418         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30419         Reported by Ludovic Courtès.
30420
30421 2010-09-02  Jim Meyering  <meyering@redhat.com>
30422
30423         test-update-copyright.sh: skip test if Perl is too old
30424         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30425         Reported by Tom G. Christensen.
30426
30427 2010-09-02  Bruno Haible  <bruno@clisp.org>
30428
30429         wctype: Avoid compilation error on IRIX 6.5.30.
30430         * lib/wctype.in.h (iswblank): Declare with a replacement if
30431         REPLACE_ISWBLANK is set.
30432         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30433         declared. Set REPLACE_ISWBLANK.
30434         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30435         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30436         * doc/posix-headers/wctype.texi: Likewise.
30437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30438
30439 2010-09-01  Bruno Haible  <bruno@clisp.org>
30440
30441         New module 'socketlib'.
30442         * modules/socketlib: New file.
30443         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30444         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30445         * modules/sockets (Depends-on): Add socketlib.
30446         Suggested by Sam Steingold <sds@gnu.org>.
30447
30448 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30451
30452         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30453         when one needs search access to a directory but not read access.
30454         On systems where it is available, it works in some cases where
30455         O_RDONLY does not, namely on directories that are searchable but
30456         not readable, and which need only to be searchable.  If O_SEARCH
30457         is not available, fall back to the traditional method of using
30458         O_RDONLY.
30459
30460         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30461         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30462         when opening a directory that needs only to be searchable.
30463         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30464         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30465         * lib/openat-proc.c (openat_proc_name): Likewise.
30466         * lib/openat.c (openat_needs_fchdir): Likewise.
30467         * lib/save-cwd.c (save_cwd): Likewise.
30468         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30469
30470 2010-08-28  Bruno Haible  <bruno@clisp.org>
30471
30472         New module 'host-cpu-c-abi'.
30473         * modules/host-cpu-c-abi: New file.
30474         * m4/host-cpu-c-abi.m4: New file, based on part of
30475         clisp/src/m4/general.m4.
30476         Requested by Sam Steingold <sds@gnu.org>.
30477
30478 2010-08-31  Eric Blake  <eblake@redhat.com>
30479         and Jim Meyering  <meyering@redhat.com>
30480
30481         hash: factor, and guard against misbehaving hasher function
30482         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30483         of table->hasher's return value.  Also protect against a hash value
30484         so large that adding it to table->bucket results in a NULL pointer.
30485         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30486         Use it in place of open-coded check-and-abort.
30487
30488 2010-08-30  Bruno Haible  <bruno@clisp.org>
30489
30490         hash: silence spurious clang warning
30491         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30492         Reported by Eric Blake.
30493
30494 2010-08-30  Eric Blake  <eblake@redhat.com>
30495
30496         strstr, memmem, strcasestr: avoid leaked shell message
30497         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30498         FreeBSD.
30499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30500         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30501
30502         tests: silence clang warning
30503         * tests/test-malloca.c (do_allocation): Avoid dead store.
30504
30505 2010-08-29  Bruno Haible  <bruno@clisp.org>
30506
30507         gettext: Fix recent mistake.
30508         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30509
30510 2010-08-29  Bruno Haible  <bruno@clisp.org>
30511
30512         selinux-h: Offer a --without-selinux option.
30513         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30514         --without-selinux was specified, skip all tests and define
30515         HAVE_SELINUX_SELINUX_H to 0.
30516         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30517         set LIB_SELINUX to empty.
30518         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30519         gl_LIBSELINUX. If --without-selinux was specified, replace
30520         selinux/context.h.
30521         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30522
30523 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30524             Bruno Haible  <bruno@clisp.org>
30525
30526         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30527         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30528         of HAVE_REALLOC.
30529         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30530         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30531         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30532         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30533
30534 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30535             Bruno Haible  <bruno@clisp.org>
30536
30537         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30538         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30539         HAVE_CALLOC.
30540         * lib/xmalloc.c: Update accordingly.
30541         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30542         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30543         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30544
30545 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30546             Bruno Haible  <bruno@clisp.org>
30547
30548         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30549         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30550         HAVE_MALLOC.
30551         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30552         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30553         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30554
30555 2010-08-29  Bruno Haible  <bruno@clisp.org>
30556
30557         Update modules list.
30558         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30559         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30560         (String handling <string.h>): Add astrxfrm.
30561         (File system functions): Add readlinkat.
30562
30563 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30564
30565         Tests for module 'realloc-gnu'.
30566         * modules/realloc-gnu-tests: New file.
30567         * tests/test-realloc-gnu.c: New file.
30568
30569         Tests for module 'calloc-gnu'.
30570         * modules/calloc-gnu-tests: New file.
30571         * tests/test-calloc-gnu.c: New file.
30572
30573         Tests for module 'malloc-gnu'.
30574         * modules/malloc-gnu-tests: New file.
30575         * tests/test-malloc-gnu.c: New file.
30576
30577 2010-08-28  Bruno Haible  <bruno@clisp.org>
30578
30579         Rename module 'realloc' -> 'realloc-gnu'.
30580         * modules/realloc-gnu: New file, copied from modules/realloc.
30581         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30582         obsolete.
30583         * modules/mgetgroups (Depends-on): Update.
30584         * doc/posix-functions/realloc.texi: Update.
30585         * NEWS: Mention the change.
30586
30587         Rename module 'calloc' -> 'calloc-gnu'.
30588         * modules/calloc-gnu: New file, copied from modules/calloc.
30589         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30590         obsolete.
30591         * doc/posix-functions/calloc.texi: Update.
30592         * NEWS: Mention the change.
30593
30594         Rename module 'malloc' -> 'malloc-gnu'.
30595         * modules/malloc-gnu: New file, copied from modules/malloc.
30596         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30597         obsolete.
30598         * modules/argp (Depends-on): Update.
30599         * modules/regex (Depends-on): Update.
30600         * doc/posix-functions/malloc.texi: Update.
30601         * NEWS: Mention the change.
30602
30603 2010-08-28  Eric Blake  <eblake@redhat.com>
30604
30605         pread, pwrite: add missing dependency
30606         * modules/pread (Depends-on): Add extensions.
30607         * modules/pwrite (Depends-on): Likewise.
30608
30609 2010-08-28  Bruno Haible  <bruno@clisp.org>
30610
30611         unistr/u*-strchr: Fix tests dependencies.
30612         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30613         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30614         Reported by Ian Beckwith <ianb@erislabs.net>.
30615
30616 2010-08-28  Bruno Haible  <bruno@clisp.org>
30617
30618         read-file: Don't occupy too much unused memory.
30619         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30620
30621 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30622             Eric Blake  <eblake@redhat.com>
30623             Bruno Haible  <bruno@clisp.org>
30624
30625         read-file: Avoid memory reallocations with regular files.
30626         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30627         (fread_file): With regular files, use the remaining length as the
30628         initial buffer size.  Check against overflow.
30629         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30630         sys_stat.
30631
30632 2010-08-28  Bruno Haible  <bruno@clisp.org>
30633
30634         ftello: Relax license.
30635         * modules/ftello (License): Relax to LGPLv2+.
30636         Reported by Eric Blake.
30637
30638 2010-08-28  Bruno Haible  <bruno@clisp.org>
30639
30640         Avoid relocwrapper link errors due to gnulib replacement functions.
30641         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30642         function.
30643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30644
30645 2010-08-28  Bruno Haible  <bruno@clisp.org>
30646
30647         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30648         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30649         defined.
30650         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30651         Suggested by Eric Blake.
30652
30653 2010-08-28  Bruno Haible  <bruno@clisp.org>
30654
30655         sys_socket, netdb: Ensure socklen_t gets defined.
30656         * modules/sys_socket (Depends-on): Add socklen.
30657         * modules/netdb (Depends-on): Likewise.
30658         * modules/getaddrinfo (Depends-on): Remove socklen.
30659         * modules/getsockopt (Depends-on): Likewise.
30660         * modules/setsockopt (Depends-on): Likewise.
30661         * tests/test-sys_socket.c: Check that socklen_t is defined.
30662         * tests/test-netdb.c: Likewise.
30663         * m4/socklen.m4: Update comments.
30664         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30665
30666 2010-08-27  Eric Blake  <eblake@redhat.com>
30667
30668         login_tty: add missing dependency
30669         * modules/login_tty (Depends-on): Add pty.
30670
30671 2010-08-26  Eric Blake  <eblake@redhat.com>
30672
30673         lib-symbol-versions: fix m4 quoting
30674         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30675         format for AC_LINK_IFELSE.
30676
30677         glob: fix compile test
30678         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30679
30680         btowc: fix missing file
30681         * modules/btowc (Files): Also ship locale-fr.m4.
30682
30683         lseek: fix link test
30684         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30685         AC_LINK_IFELSE.
30686
30687         include_next: silence autoconf 2.68 warning
30688         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30689         AC_COMPILE_IFELSE as special.
30690         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30691         autoconf < 2.68.
30692
30693         acl: fix compilation test
30694         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30695         AC_COMPILE_IFELSE.
30696
30697 2010-08-26  Bruno Haible  <bruno@clisp.org>
30698
30699         Modernize AC_TRY_RUN invocations.
30700         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30701         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30702         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30703         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30704         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30705         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30706         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30707         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30708         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30709         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30710         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30711         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30712         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30713         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30715         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30716         gl_MBRLEN_NUL_RETVAL): Likewise.
30717         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30718         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30719         Likewise.
30720         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30721         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30722         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30723         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30724         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30725         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30726         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30727         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30728         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30729         Likewise.
30730         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30731         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30732         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30733         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30734         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30735         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30736         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30737         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30738         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30740
30741 2010-08-26  Bruno Haible  <bruno@clisp.org>
30742
30743         Modernize AC_TRY_LINK invocations.
30744         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30745         AC_TRY_LINK.
30746         * m4/argp.m4 (gl_ARGP): Likewise.
30747         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30748         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30749         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30750         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30751         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30752         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30753         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30754         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30755         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30757         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30758         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30759         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30760         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30761         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30762         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30763         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30764         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30765         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30766         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30767         Likewise.
30768         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30769         Likewise.
30770         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30771         Likewise.
30772         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30774         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30775         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30776         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30777         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30778         * m4/servent.m4 (gl_SERVENT): Likewise.
30779         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30780         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30781         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30782         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30784         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30785         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30786         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30787         * modules/tsearch-tests (configure.ac): Likewise.
30788
30789 2010-08-26  Bruno Haible  <bruno@clisp.org>
30790
30791         Modernize AC_TRY_COMPILE invocations.
30792         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30793         AC_TRY_COMPILE.
30794         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30795         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30796         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30797         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30798         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30799         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30800         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30801         * m4/lock.m4 (gl_LOCK): Likewise.
30802         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30803         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30804         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30805         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30806         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30807         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30808         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30810         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30811         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30812         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30813         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30814         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30815         extraneous semicolon.
30816
30817 2010-08-26  Jim Meyering  <meyering@redhat.com>
30818
30819         stat-time: relax license LGPL
30820         * modules/stat-time (License): Change from GPL to LGPL,
30821         with consent from all contributors, for use in libguile.
30822         Requested by Ludovic Courtès.
30823
30824 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30825
30826         poll: return immediately on POLLHUP.
30827         * lib/poll.c (poll): Always set timeout before wait_timeout is
30828         computed.
30829
30830 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30831
30832         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30833         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30834         rmdir ("dir/.//"), unlinkat.
30835
30836 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30837
30838         stdbool: avoid spurious failure with modern xlc
30839         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30840
30841 2010-08-24  Bruno Haible  <bruno@clisp.org>
30842
30843         getloadavg: simplify code
30844         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30845         gl_have_func. Update comments.
30846
30847 2010-08-24  Eric Blake  <eblake@redhat.com>
30848
30849         getloadavg: don't define SVR4 on cygwin
30850         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30851         only define SVR4 when -lkvm is required.
30852         Reported by Yaakov Selkowitz.
30853
30854 2010-08-24  Bruno Haible  <bruno@clisp.org>
30855
30856         priv-set: fix comment
30857         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30858
30859 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30860
30861         priv-set: fix comments
30862         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30863         to match code, as suggested by David Bartley in:
30864         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30865
30866 2010-08-23  Eric Blake  <eblake@redhat.com>
30867
30868         stdbool: avoid rejecting clang
30869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30870         * tests/test-stdbool.c: Enable more tests if using the system
30871         <stdbool.h> instead of the gnulib replacement.
30872         (main): Move xlc bug test to a runtime test for all compilers.
30873         Reported by Anders Kaseorg.
30874
30875         argz: fix shell quoting issue
30876         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30877         Reported by Charles Wilson.
30878
30879 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30880             Erik Faye-Lund <kusmabite@gmail.com>
30881
30882         poll, select: handle ERROR_BROKEN_PIPE.
30883         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30884         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30885         * lib/select.c (win32_compute_revents): Do not mark a pipe
30886         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30887
30888 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30889
30890         fts: allow compilation with C++
30891         * lib/fts_.h: Specify extern "C" linkage with C++.
30892
30893 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30894
30895         Fix gnulib-tool sed script de-commentation for AIX sed.
30896         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30897         sed.
30898
30899 2010-08-17  Eric Blake  <eblake@redhat.com>
30900
30901         test-stddef: test for (some) offsetof bugs
30902         * tests/test-stddef.c: Enhance test to ensure correct type of
30903         offsetof.
30904         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30905         that we are not fixing at this time.
30906
30907 2010-08-15  Bruno Haible  <bruno@clisp.org>
30908
30909         stpncpy: Allow stpncpy to be defined as a macro.
30910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30911         if it's already correctly declared.
30912         * lib/string.in.h (stpncpy): Undefine before redefining.
30913         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30914
30915 2010-08-14  Bruno Haible  <bruno@clisp.org>
30916
30917         Rename module 'memxfrm' to 'amemxfrm'.
30918         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30919         (amemxfrm): Renamed from memxfrm.
30920         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30921         (amemxfrm): Renamed from memxfrm.
30922         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30923         * NEWS: Mention the change.
30924         * MODULES.html.sh (String handling <string.h>): Update.
30925         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30926         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30927         * lib/unicase/u16-casexfrm.c: Likewise.
30928         * lib/unicase/u32-casexfrm.c: Likewise.
30929         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30930         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30931         * lib/uninorm/u16-normxfrm.c: Likewise.
30932         * lib/uninorm/u32-normxfrm.c: Likewise.
30933         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30934         memxfrm.
30935         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30936         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30937         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30938         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30939         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30940         Suggested by Paul Eggert.
30941
30942 2010-08-14  Bruno Haible  <bruno@clisp.org>
30943
30944         Tests for module 'astrxfrm'.
30945         * modules/astrxfrm-tests: New file.
30946         * tests/test-astrxfrm.c: New file.
30947
30948         New module 'astrxfrm'.
30949         * lib/astrxfrm.h: New file.
30950         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30951         * modules/astrxfrm: New file.
30952
30953 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30954
30955         regex: Tweak doc.
30956         * doc/regex.texi (Overview): Don't mention regex.c.
30957         (GNU Regular Expression Compiling): Likewise.
30958         (Match-end-of-line Operator): Mention 'not_eol'.
30959
30960 2010-08-14  Brian Gough  <bjg@gnu.org>
30961             Bruno Haible  <bruno@clisp.org>
30962
30963         git-merge-changelog: add doc relating to use with bzr and hg.
30964         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30965
30966 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30967
30968         pthread: fix pthread.h creation for srcdir != builddir
30969         * modules/pthread (Makefile.am): Fix the rule to work also in a
30970         non-srcdir build.
30971
30972 2010-08-13  Karl Berry  <karl@gnu.org>
30973
30974         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30975         * doc/posix-*/*: force line break before @url of POSIX
30976         specifications.
30977         Suggested by Werner Lemberg.
30978
30979 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30980
30981         strtod: fix const diagnostic
30982         * lib/strtod.c (strtod): Don't assign const char * to char *,
30983         as this elicits a warning from GCC when warnings are enabled.
30984
30985 2010-08-10  Pádraig Brady <P@draigbrady.com>
30986         and Eric Blake  <eblake@redhat.com>
30987
30988         copy-acl: ignore ENOTSUP on HP-UX
30989         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30990         so that it is available for HP-UX.
30991         * lib/copy-acl.c (qcopy_acl): Use it.
30992         Reported by Patrick M. Callahan.
30993
30994 2010-08-10  Eric Blake  <eblake@redhat.com>
30995
30996         open, chown: relax license
30997         * modules/open (License): Change to LGPLv2+, with consent by all
30998         authors, for use in augeas.
30999         * modules/chown (License): Likewise.
31000         * modules/lchown (Likewise): Likewise.
31001         Requested by Adam Stokes.
31002
31003 2010-08-09  Karl Berry  <karl@gnu.org>
31004
31005         * build-aux/ar-lib: new file, import from Automake.
31006         * config/srclist.txt: autocheck for updates.
31007
31008 2010-08-09  Eric Blake  <eblake@redhat.com>
31009
31010         readlinkat: adjust client modules
31011         * modules/areadlinkat (Depends-on): Use readlinkat, not
31012         symlinkat.
31013         * modules/areadlinkat-with-size (Depends-on): Likewise.
31014
31015         mknod: be more vocal about danger of running tests as root
31016         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31017         root, since that is just asking for problems.
31018         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31019
31020         readlinkat: split into its own module
31021         * modules/symlinkat: Split readlinkat...
31022         * modules/readlinkat: ...into separate module.
31023         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31024         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31025         * lib/symlinkat.c (readlinkat): Move...
31026         * lib/readlinkat.c: ...into new file.
31027         * modules/symlinkat-tests: Split readlinkat test...
31028         * modules/readlinkat-tests: ...into separate module.
31029         * tests/test-symlinkat.c: Split...
31030         * tests/test-readlinkat.c: ...into new file.
31031         * NEWS: Document the split.
31032         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31033         * lib/unistd.in.h (readlinkat): Likewise.
31034         Suggested by Bruno Haible.
31035
31036 2010-08-08  Bruno Haible  <bruno@clisp.org>
31037
31038         memxfrm: Speed up.
31039         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31040         that usually only one call to strxfrm is necessary for each string
31041         part.
31042         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31043
31044 2010-08-07  Karl Berry  <karl@gnu.org>
31045
31046         * doc/posix-headers/limits.texi,
31047         * doc/posix-functions/malloc.texi,
31048         * doc/posix-functions/strsignal.texi: missing @item.
31049         * doc/ld-version-script.texi: spurious leading i.
31050         * doc/regex.texi (Interval Operators): no commas inside @var.
31051
31052 2010-08-01  Bruno Haible  <bruno@clisp.org>
31053
31054         Integrate the regex documentation.
31055         * doc/gnulib.texi: Define 'cn' index.
31056         (Regular expressions): New a chapter that includes regex.texi and
31057         regexprops-generic.texi.
31058         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31059         syntax.
31060
31061         Whitespace cleanup.
31062         * doc/regex.texi: Remove trailing spaces.
31063
31064         Add regex documentation.
31065         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31066         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31067         Written by Kathy A. Hargreaves and Karl Berry.
31068
31069 2010-08-01  Bruno Haible  <bruno@clisp.org>
31070
31071         link: Update documentation.
31072         * doc/posix-functions/link.texi: Update regarding Solaris.
31073
31074 2010-07-31  Bruno Haible  <bruno@clisp.org>
31075
31076         Update modules list.
31077         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31078         (String handling <string.h>): Add memcmp2, memxfrm.
31079         (Container data structures): Add xlist, xsublist, xoset.
31080         (Core language properties): Add alignof, unused-parameter.
31081         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31082         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31083         (Unibyte characters <ctype.h>): New section.
31084         (String handling <string.h>): New section.
31085         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31086         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31087         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31088         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31089         tan, tanh, tanl, y0, y1, yn.
31090         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31091         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31092         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31093         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31094         unlockpt, vdprintf, vdprintf-posix.
31095         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31096         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31097         xconcat-filename.
31098         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31099         getdtablesize, pipe2, pipe2-safer.
31100         (Security): New section.
31101         (Networking functions): Add accept4.
31102         (Signal handling): Add sigpipe.
31103         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31104         mbmemcasecoll.
31105         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31106         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31107         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31108         pipe-filter-ii.
31109         (Misc): Add argp-version-etc, login_tty, parse-duration.
31110
31111 2010-07-31  Bruno Haible  <bruno@clisp.org>
31112
31113         Improve doc in MODULES.html.
31114         * modules/linkat (Description): Add the word "function".
31115         * modules/mkfifo (Description): Likewise.
31116         * modules/mknod (Description): Likewise.
31117         * modules/remove (Description): Likewise.
31118         * modules/renameat (Description): Likewise.
31119         * modules/stat (Description): Likewise.
31120         * modules/symlink (Description): Likewise.
31121         * modules/unlink (Description): Likewise.
31122
31123 2010-07-31  Bruno Haible  <bruno@clisp.org>
31124
31125         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31126         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31127         option --enable/disable-c++ instead of --enable/disable-cxx.
31128         * NEWS: Mention the change.
31129
31130 2010-07-31  Bruno Haible  <bruno@clisp.org>
31131
31132         readlink, areadlink: Relax test a bit.
31133         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31134         alternative to ENOTDIR.
31135         * tests/test-areadlink.h (test_areadlink): Likewise.
31136         Reported by Rainer Tammer.
31137
31138 2010-07-31  Bruno Haible  <bruno@clisp.org>
31139
31140         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31141         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31142         character, perform the search using U_STRCHR.
31143         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31144         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31145         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31146         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31147         Suggested by Paolo Bonzini.
31148
31149 2010-07-31  Bruno Haible  <bruno@clisp.org>
31150
31151         unistr/u*-strstr: Fix dependencies.
31152         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31153         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31154         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31155
31156 2010-07-31  Bruno Haible  <bruno@clisp.org>
31157
31158         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31159         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31160         the beginning of the loop.
31161         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31162         cases in 'switch' statement.
31163
31164         unistr/u8-strchr: Fix several bugs.
31165         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31166         the string. When not found, return NULL, not a pointer near the end.
31167
31168         More tests for unistr/u8-strchr.
31169         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31170         that the function does not read past the first occurrence of the byte
31171         being searched.
31172         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31173         * tests/unistr/test-u16-strchr.c (main): New function.
31174         * tests/unistr/test-u32-strchr.c (main): New function.
31175
31176 2010-07-31  Bruno Haible  <bruno@clisp.org>
31177
31178         posix-modules: Ignore backup files of documentation files.
31179         * posix-modules: grep only through files named *.texi.
31180
31181 2010-07-31  Bruno Haible  <bruno@clisp.org>
31182
31183         symlinkat: Fix documentation.
31184         * doc/posix-functions/readlinkat.texi: Fix module name.
31185
31186 2010-07-31  Bruno Haible  <bruno@clisp.org>
31187
31188         fchownat: Replace also when chown has the trailing slash bug.
31189         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31190         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31191         introduced on 2010-04-10.
31192         Reported by Rainer Tammer.
31193
31194 2010-07-31  Bruno Haible  <bruno@clisp.org>
31195
31196         linkat: Work around AIX 7.1 bug.
31197         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31198         whether linkat handles trailing slash correctly. If not, replace linkat
31199         and define LINKAT_TRAILING_SLASH_BUG.
31200         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31201         check whether (fd1,file1) points to a directory if file1 or file2 ends
31202         in a slash. Code taken from lib/link.c.
31203         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31204         Reported by Rainer Tammer.
31205
31206 2010-07-31  Bruno Haible  <bruno@clisp.org>
31207
31208         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31209         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31210         This disables an xlc optimization that was causing wrong test results.
31211         Reported by Rainer Tammer.
31212
31213 2010-07-31  Bruno Haible  <bruno@clisp.org>
31214
31215         iconv: Work around AIX 6.1..7.1 bug.
31216         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31217         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31218         cross-compiling, guess no on all versions of AIX.
31219         Reported by Rainer Tammer.
31220
31221 2010-07-31  Bruno Haible  <bruno@clisp.org>
31222
31223         readlink: Relax test a bit.
31224         * tests/test-readlink.h (test_readlink): Allow different errno value
31225         when readlink is called with a file name that ends in / and refers to
31226         a file.
31227         Suggested by Eric Blake.
31228         Reported by Rainer Tammer.
31229
31230 2010-07-31  Bruno Haible  <bruno@clisp.org>
31231
31232         copysign: Does not require -lm on glibc systems.
31233         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31234         gl_COMMON_DOUBLE_MATHFUNC.
31235         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31236
31237 2010-07-31  Bruno Haible  <bruno@clisp.org>
31238
31239         duplocale: Work around AIX 7.1 bug.
31240         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31241         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31242         * lib/duplocale.c (rpl_duplocale): Update comment.
31243         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31244         Reported by Rainer Tammer.
31245
31246 2010-07-30  Bruno Haible  <bruno@clisp.org>
31247
31248         dirfd: Avoid link error on AIX 7.1.
31249         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31250         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31251         exist, set REPLACE_DIRFD.
31252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31253         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31254         * doc/posix-functions/dirfd.texi: Update.
31255         Reported by Rainer Tammer.
31256
31257 2010-07-30  Eric Blake  <eblake@redhat.com>
31258
31259         strtod: next round of AIX fixes
31260         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31261         exponent.
31262         * tests/test-strtod.c (main): Enhance tests.
31263         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31264         Reported by Rainer Tammer.
31265
31266         futimens: fix configure check
31267         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31268         Reported by Bruno Haible.
31269
31270 2010-07-30  Bruno Haible  <bruno@clisp.org>
31271
31272         getline: Update regarding AIX.
31273         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31274         Reported by Rainer Tammer.
31275
31276 2010-07-30  Bruno Haible  <bruno@clisp.org>
31277
31278         wcwidth: Drop replacement on AIX 7.
31279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31280         AIX 7.
31281         Reported by Rainer Tammer.
31282
31283 2010-07-30  Bruno Haible  <bruno@clisp.org>
31284
31285         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31286         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31287         a 'char *'.
31288         Reported by Rainer Tammer.
31289
31290 2010-07-30  Bruno Haible  <bruno@clisp.org>
31291
31292         unlink: Update regarding AIX.
31293         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31294         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31295         Reported by Rainer Tammer.
31296
31297 2010-07-30  Bruno Haible  <bruno@clisp.org>
31298
31299         symlink: Update regarding AIX.
31300         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31301         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31302         Reported by Rainer Tammer.
31303
31304 2010-07-30  Bruno Haible  <bruno@clisp.org>
31305
31306         strndup: Update regarding AIX.
31307         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31308         AIX 7.
31309         Reported by Rainer Tammer.
31310
31311 2010-07-30  Bruno Haible  <bruno@clisp.org>
31312
31313         stat: Update regarding AIX.
31314         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31315         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31316         Reported by Rainer Tammer.
31317
31318 2010-07-30  Bruno Haible  <bruno@clisp.org>
31319
31320         truncl: Fix autoconf test.
31321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31322         whether truncl works.
31323         Reported by Rainer Tammer.
31324
31325 2010-07-30  Bruno Haible  <bruno@clisp.org>
31326
31327         round: Update regarding AIX.
31328         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31329         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31330         Reported by Rainer Tammer.
31331
31332 2010-07-30  Bruno Haible  <bruno@clisp.org>
31333
31334         rename: Update regarding AIX.
31335         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31336         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31337         Reported by Rainer Tammer.
31338
31339 2010-07-30  Bruno Haible  <bruno@clisp.org>
31340
31341         printf.m4: Update regarding AIX.
31342         * m4/printf.m4: Update comments regarding AIX.
31343         Reported by Rainer Tammer.
31344
31345 2010-07-30  Bruno Haible  <bruno@clisp.org>
31346
31347         iconv: Update regarding AIX.
31348         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31349         AIX 7.
31350         Reported by Rainer Tammer.
31351
31352 2010-07-30  Bruno Haible  <bruno@clisp.org>
31353
31354         getopt: Update regarding AIX.
31355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31356         no on AIX.
31357         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31358         Reported by Rainer Tammer.
31359
31360 2010-07-30  Bruno Haible  <bruno@clisp.org>
31361
31362         ldexpl; Update regarding AIX.
31363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31364         on AIX 7.
31365         Reported by Rainer Tammer.
31366
31367 2010-07-30  Bruno Haible  <bruno@clisp.org>
31368
31369         frexpl: Update regarding AIX.
31370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31371         on AIX 7.
31372         Reported by Rainer Tammer.
31373
31374 2010-07-30  Bruno Haible  <bruno@clisp.org>
31375
31376         open, fopen: Update regarding AIX.
31377         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31378         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31379         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31380         * doc/posix-functions/fopen.texi: Likewise.
31381         Reported by Rainer Tammer.
31382
31383 2010-07-30  Bruno Haible  <bruno@clisp.org>
31384
31385         chown: Update doc regarding AIX.
31386         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31387         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31388         Reported by Rainer Tammer.
31389
31390 2010-07-30  Eric Blake  <eblake@redhat.com>
31391
31392         strtod: fix bug in replacement function on AIX
31393         * lib/strtod.c (strtod): Special case broken "0x" parse in
31394         underlying strtod.
31395         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31396         * doc/posix-functions/strtod.texi (strtod): Likewise.
31397         Reported by Rainer Tammer.
31398
31399 2010-07-30  Bruno Haible  <bruno@clisp.org>
31400
31401         mbrlen: Fix cross-compilation guess for AIX.
31402         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31403         guess. Leftover from 2008-12-22.
31404
31405 2010-07-30  Bruno Haible  <bruno@clisp.org>
31406
31407         mbrtowc: Fix cross-compilation guess for AIX.
31408         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31409         guess. Leftover from 2008-12-21.
31410
31411 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31412
31413         init.sh: work around trap limitation of some shells
31414         * tests/init.sh (setup_): Move exit trap outside of shell function.
31415
31416 2010-07-29  Eric Blake  <eblake@redhat.com>
31417
31418         strtod: aid debugging
31419         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31420         understanding why strtod is rejected.
31421
31422 2010-07-28  Bruno Haible  <bruno@clisp.org>
31423
31424         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31425         * lib/unistr/u8-chr.c: Include <string.h>.
31426         * tests/unistr/test-u8-chr.c: Likewise.
31427         * tests/unistr/test-u16-chr.c: Likewise.
31428         * tests/unistr/test-u32-chr.c: Likewise.
31429         * tests/unistr/test-u8-strchr.c: Likewise.
31430         * tests/unistr/test-u16-strchr.c: Likewise.
31431         * tests/unistr/test-u32-strchr.c: Likewise.
31432         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31433         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31434         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31435         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31436
31437 2010-07-28  Bruno Haible  <bruno@clisp.org>
31438
31439         Use spaces for indentation, not tabs.
31440         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31441
31442 2010-07-27  Bruno Haible  <bruno@clisp.org>
31443
31444         mbspcasecmp: Fix function specification.
31445         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31446         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31447         Reported by Eric Blake <eblake@redhat.com>.
31448
31449 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31450
31451         timespec: use cast and not conditional, as truncation isn't possible
31452         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31453         instead of a conditional.  Comment about the situation in more detail.
31454         This undoes most of the 2009-10-29 patch.
31455
31456 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31457
31458         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31459         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31460         * lib/unistr/u8-strchr.c: Likewise.
31461         * modules/unistr/u8-chr: Depend on memchr.
31462
31463         unistr/u*-strchr: add tests
31464         * modules/unistr/u8-strchr-tests: New file.
31465         * modules/unistr/u16-strchr-tests: New file.
31466         * modules/unistr/u32-strchr-tests: New file.
31467         * tests/unistr/test-strchr.h: New file.
31468         * tests/unistr/test-u8-strchr.c: New file.
31469         * tests/unistr/test-u16-strchr.c: New file.
31470         * tests/unistr/test-u32-strchr.c: New file.
31471
31472         unistr/u*-chr: test multibyte sequences more
31473         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31474         test vector.
31475         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31476         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31477         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31478
31479         unistr/u*-chr: test multibyte sequences
31480         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31481
31482         unistr/u*-chr: prepare for multibyte tests
31483         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31484         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31485         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31486         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31487         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31488         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31489
31490 2010-07-18  Bruno Haible  <bruno@clisp.org>
31491
31492         unistr/u8-strchr: Optimize non-ASCII argument case.
31493         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31494         because the first byte often matches anyway.
31495         Reported by Pádraig Brady <P@draigbrady.com>.
31496
31497 2010-07-15  Karl Berry  <karl@gnu.org>
31498
31499         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31500
31501 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31502
31503         getcwd: on Solaris, work better if ancestors are inaccessible
31504         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31505         buffer and size, try again with a large buffer.  This works better
31506         on Solaris, since its getcwd succeeds even if the path to the root
31507         is inaccessible, and this is helpful in common cases such as .zfs
31508         hidden directories.  Problem reported by J Chapman Flack in
31509         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31510         Use system getcwd if it's declared, not merely if it's partly
31511         working; use the partly-working test only to avoid needless effort
31512         if the system getcwd fails.
31513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31514         comment that was already obsolete and is now even more obsolete.
31515         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31516         now might call strdup.
31517
31518 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31519
31520         pthread: Add enough so that coreutils/src/sort.c compiles.
31521         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31522         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31523         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31524         Include <sys/types.h>, in case it defines pthread_t.
31525         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31526         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31527         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31528         (pthread_rwlockattr_t, pthread_spinlock_t):
31529         New typedefs, if HAVE_PTHREAD_T is not defined.
31530         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31531         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31532         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31533         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31534         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31535         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31536         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31537         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31538         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31539         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31540         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31541         New macros.
31542         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31543         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31544         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31545         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31546         (pthread_spin_unlock): New dummy functions.
31547         (pthread_create): Return EAGAIN; don't set errno.
31548         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31549         require AC_C_INLINE.
31550         * modules/pthread (Depends-on): Add sched, time.
31551         (pthread.h): Use AM_V_GEN.
31552
31553 2010-07-13  Bruno Haible  <bruno@clisp.org>
31554
31555         striconveh: Don't malloc memory if the result buffer is sufficient.
31556         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31557         buffer if its size is sufficient.
31558         Reported by Ludovic Courtès <ludo@gnu.org>.
31559
31560 2010-07-13  Bruno Haible  <bruno@clisp.org>
31561
31562         strtod: Add safety check.
31563         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31564
31565 2010-07-12  Bruno Haible  <bruno@clisp.org>
31566
31567         Unify tests that set gl_cv_func_ldexpl_no_libm.
31568         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31569         gl_FUNC_LDEXPL.
31570         (gl_FUNC_LDEXPL): Invoke it.
31571         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31572
31573 2010-07-12  Bruno Haible  <bruno@clisp.org>
31574
31575         Unify tests that set gl_cv_func_ldexp_no_libm.
31576         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31577         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31578         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31579         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31580         * modules/strtod (Files): Add m4/ldexp.m4.
31581
31582 2010-07-12  Bruno Haible  <bruno@clisp.org>
31583
31584         Unify tests that set gl_cv_func_frexpl_no_libm.
31585         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31586         gl_FUNC_FREXPL_NO_LIBM.
31587         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31588         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31589
31590 2010-07-12  Bruno Haible  <bruno@clisp.org>
31591
31592         Unify tests that set gl_cv_func_frexp_no_libm.
31593         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31594         gl_FUNC_FREXP_NO_LIBM.
31595         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31596         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31597
31598 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31599
31600         memcoll: clarify sizes versus lengths, document better, and tweak perf
31601         * lib/memcoll.c (strcoll_loop, memcoll0):
31602         Improve quality of descriptive comments.  Name variables
31603         consistently as to whether they are lengths (which do not include
31604         terminating null) versus sizes (which do).
31605         * lib/xmemcoll.c (xmemcoll0): Likewise.
31606         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31607         returned when s1size == 0; this is easier to compile and saves
31608         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31609
31610 2010-07-12  Bruno Haible  <bruno@clisp.org>
31611
31612         Tests for module '_Exit'.
31613         * modules/_Exit-tests: New file.
31614         * tests/test-_Exit.sh: New file.
31615         * tests/test-_Exit.c: New file.
31616
31617         New module '_Exit'.
31618         * lib/stdlib.in.h (__attribute__): New macro.
31619         (_Exit): New declaration.
31620         * lib/_Exit.c: New file.
31621         * m4/_Exit.m4: New file.
31622         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31623         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31624         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31625         * modules/_Exit: New file.
31626         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31627         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31628
31629 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31630
31631         strtod: make it more-accurate typically, and don't require libm
31632         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31633         Include limits.h.  Don't include string.h.
31634         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31635         (locale_isspace): New function, so that no casts are needed to
31636         check whether *s is a space.
31637         (ldexp): Provide an unused dummy if not available.
31638         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31639         (strtod): Use them.  This implementation prefers to use the
31640         underlying strtod if available, falling back on our own code
31641         only to fix known bugs.  This is more likely to produce an
31642         accurate result.  Also, it avoids the use of libm functions.
31643         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31644         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31645         was absent, but it caused a test failure with coreutils.
31646         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31647         with libm.
31648         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31649         * modules/strtod-tests (Makefile.am): Likewise.
31650
31651 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31652             Bruno Haible  <bruno@clisp.org>
31653
31654         unistr/u8-strchr: Optimize ASCII argument case.
31655         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31656
31657 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31658
31659         (x)memcoll: minor tweaks
31660         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31661         is after the type that it qualifies.
31662         (memcoll0): Likewise.
31663         * lib/memcoll.h (memcoll0): Likewise.
31664         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31665         * lib/xmemcoll.h (xmemcoll0): Likewise.
31666         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31667         differs from memcoll in that the NUL byte is part of the argument.
31668         Omit the abort-checks, as performance is a real issue here.  Plus,
31669         the checks were wrong anyway (an off-by-one error).  Omit local
31670         variable 'diff', as it's a bit clearer that way.
31671         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31672         no longer needed.
31673
31674 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31675
31676         (x)memcoll: speedup when input is known to be NUL delimited
31677         * lib/memcoll.c: Include stdlib.
31678         (memcoll0): New function.
31679         (strcoll_loop): New function, refactored for use in both memcoll
31680         and memcoll0.
31681         * lib/memcoll.h (memcoll0): Add prototype.
31682         * lib/xmemcoll.c (xmemcoll0): New function.
31683         (collate_error): New function, refactored for use in both xmemcoll
31684         and xmemcoll0.
31685         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31686         * m4/memcoll.m4: add inline invocation.
31687
31688 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31689
31690         * build-aux/bootstrap: Remove any local translations
31691         from the translation project synchronization directory,
31692         so that local only translations are not distributed.
31693
31694 2010-07-04  Bruno Haible  <bruno@clisp.org>
31695
31696         fsusage: Clarify which code applies to which platforms.
31697         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31698         platform.
31699         * lib/fsusage.c (get_fs_usage): Likewise.
31700
31701 2010-07-04  Bruno Haible  <bruno@clisp.org>
31702
31703         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31704         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31705         Reported by Martin Lambers <marlam@marlam.de>.
31706
31707 2010-07-04  Jim Meyering  <meyering@redhat.com>
31708
31709         hash: once again explicitly disallow insertion of NULL
31710         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31711         inserting a NULL pointer cannot work with these functions.
31712         Add a comment with details.
31713         This reverts part of the 2010-07-01 commit, 5bef1a35
31714         "hash: extend module to deal with non-pointer keys".
31715
31716 2010-07-01  Bruno Haible  <bruno@clisp.org>
31717
31718         stdbool: Update doc.
31719         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31720         Info from Christian Weisgerber <naddy@mips.inka.de>.
31721
31722 2010-07-01  Jim Meyering  <meyering@redhat.com>
31723
31724         hash: extend module to deal with non-pointer keys
31725         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31726         but that allows insertion of non-pointer entries.
31727         Do not disallow an ENTRY value of NULL.
31728         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31729         * lib/hash.h (hash_insert0): Declare.
31730
31731 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31732
31733         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31734         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31735         not present (i.e. with autoconf 2.59 and when using gettextize, not
31736         gnulib), require AC_GNU_SOURCE instead.
31737
31738 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31739
31740         idpriv-drop: Fix tests.
31741         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31742         not to the test-idpriv-droptemp program.
31743
31744 2010-06-29  Bruno Haible  <bruno@clisp.org>
31745
31746         string: Fix syntax error with g++ 2.96.
31747         * lib/string.in.h (__pure__): Remove definition.
31748         (_GL_ATTRIBUTE_PURE): New macro.
31749         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31750         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31751         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31752
31753 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31754
31755         unitypes: Fix bug introduced on 2010-05-18.
31756         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31757
31758 2010-06-22  Eric Blake  <eblake@redhat.com>
31759
31760         memmem: slight optimization
31761         * lib/str-two-way.h (critical_factorization): Update comments.
31762         Reduce work during factorization phase.
31763         Reported by Carlos Bueno <carlos@bueno.org>.
31764
31765 2010-06-21  Bruno Haible  <bruno@clisp.org>
31766
31767         Fix HAVE_CALLOC_POSIX misnomer.
31768         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31769         !HAVE_CALLOC_POSIX.
31770         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31771         HAVE_CALLOC_POSIX.
31772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31773         instead of HAVE_CALLOC_POSIX.
31774         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31775         HAVE_CALLOC_POSIX.
31776
31777         Use modern idiom for calloc() replacement.
31778         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31779         AC_FUNC_CALLOC.
31780         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31781         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31782         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31783         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31784         (gl_REPLACE_CALLOC): New macro.
31785
31786 2010-06-21  Bruno Haible  <bruno@clisp.org>
31787
31788         Fix HAVE_REALLOC_POSIX misnomer.
31789         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31790         !HAVE_REALLOC_POSIX.
31791         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31792         HAVE_REALLOC_POSIX.
31793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31794         instead of HAVE_REALLOC_POSIX.
31795         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31796         HAVE_REALLOC_POSIX.
31797
31798         Use modern idiom for realloc() replacement.
31799         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31800         AC_FUNC_REALLOC.
31801         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31802         Autoconf's AC_FUNC_REALLOC.
31803         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31804         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31805         (gl_REPLACE_REALLOC): New macro.
31806         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31807
31808 2010-06-21  Bruno Haible  <bruno@clisp.org>
31809
31810         Fix HAVE_MALLOC_POSIX misnomer.
31811         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31812         !HAVE_MALLOC_POSIX.
31813         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31814         HAVE_MALLOC_POSIX.
31815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31816         instead of HAVE_MALLOC_POSIX.
31817         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31818         HAVE_MALLOC_POSIX.
31819
31820         Use modern idiom for malloc() replacement.
31821         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31822         AC_FUNC_MALLOC.
31823         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31824         Autoconf's AC_FUNC_MALLOC.
31825         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31826         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31827         (gl_REPLACE_MALLOC): New macro.
31828         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31829
31830 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31831
31832         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31833         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31834         This macro takes 3 arguments, not 4.
31835
31836 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31837
31838         ipv6: fix detection under mingw
31839         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31840         in6_addr.
31841
31842 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31843
31844         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31845         that strtod() works when cross-compiling to a glibc version known
31846         to work.
31847
31848 2010-06-15  Bruno Haible  <bruno@clisp.org>
31849
31850         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31851
31852 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31853
31854         select: Correct timeout.
31855         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31856
31857 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31858
31859         git-version-gen: init shell var to avoid env var influence
31860         * build-aux/git-version-gen (v): Init shell var to empty.
31861
31862 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31863
31864         priv-set: Don't assume that priv.h exists merely because getppriv does.
31865         See Jan Andersen's bug report about AIX 5L in
31866         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31867         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31868         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31869         * lib/priv-set.h: Likewise.
31870         * tests/test-priv-set.c: Likewise.
31871
31872 2010-06-13  Bruno Haible  <bruno@clisp.org>
31873
31874         relocatable: Make it easier to test whether to install wrappers.
31875         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31876         RELOCATABLE_VIA_WRAPPER.
31877
31878 2010-06-13  Bruno Haible  <bruno@clisp.org>
31879
31880         gnulib-tool: Display specified modules and dependencies differently.
31881         * gnulib-tool (func_show_module_list): New function.
31882         (func_import, func_create_testdir): Invoke it.
31883         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31884
31885 2010-06-13  Bruno Haible  <bruno@clisp.org>
31886
31887         gnulib-tool: Align code of func_import and func_create_testdir.
31888         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31889         specified_modules.
31890
31891 2010-06-12  Jim Meyering  <meyering@redhat.com>
31892
31893         test-inttostr: avoid spurious failure on Solaris 9
31894         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31895         to accept "%ju".  Reported by Bruno Haible.
31896
31897 2010-06-11  Jim Meyering  <meyering@redhat.com>
31898
31899         test-sys_socket: mark variables as used more readably
31900         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31901         as "used" explicitly via (void) statement casts.  This is more
31902         readable than using them in an artificial return expression.
31903         Suggestion from Bruno Haible.
31904
31905 2010-06-11  Bruno Haible  <bruno@clisp.org>
31906
31907         Avoid some more warnings from "gcc -Wwrite-strings".
31908         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31909         to 'const char *'.
31910         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31911         * tests/test-c-strcasestr.c (main): Likewise.
31912         * tests/test-mbscasestr1.c (main): Likewise.
31913         * tests/test-mbscasestr2.c (main): Likewise.
31914         * tests/test-memmem.c (main): Likewise.
31915         * tests/test-strstr.c (main): Likewise.
31916         * tests/test-strcasestr.c (main): Likewise.
31917
31918 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31919
31920         init.sh: change framework_failure_ to fail with status 99, not 1
31921         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31922         automake's parallel-tests rule that this is an unexpected failure,
31923         even if the test is listed in XFAIL_TESTS.
31924
31925 2010-06-11  Jim Meyering  <meyering@redhat.com>
31926
31927         test-inttostr: avoid warnings about 4-6KB literal strings
31928         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31929         Include "macros.h", for its definition of ASSERT.
31930         (CK): s/assert/ASSERT/
31931         * modules/inttostr-tests (Files): Add macros.h.
31932
31933         init.sh: don't use $ME_ or skip_ before they are defined
31934         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31935         their first uses.  Also hoist their companions: warn_, fail_,
31936         framework_failure_, $stderr_fileno.  Prompted by a patch from
31937         Stefano Lattarini.
31938
31939         test-sys_socket: avoid set-but-not-used warnings from gcc
31940         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31941         avoid warning about set-but-not-used variables.
31942
31943         test-xvasprintf: avoid 'const' discard warnings
31944         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31945         "const" when assigning from literal strings.
31946         (test_xasprintf): Add "void" in function argument list to placate
31947         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31948
31949         tests: avoid compilation warnings in argmatch and exclude tests...
31950         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31951         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31952         Since it always exits, declare with the "noreturn" attribute.
31953         * tests/test-argmatch.c: Likewise.
31954
31955         tests: avoid 'const' discard warnings in mbsstr tests
31956         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31957         * tests/test-mbsstr2.c (main): Likewise.
31958
31959         test-verify: avoid warning from gcc's -Wmissing-declarations
31960         * tests/test-verify.c (function): Declare to be static.
31961
31962         test-inttostr.c: include <string.h> for use of strcmp
31963         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31964
31965         test-linkat: avoid failed assertion on "other" architectures
31966         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31967         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31968         sparc: https://bugs.launchpad.net/bugs/591968
31969
31970 2010-06-11  Jim Meyering  <meyering@redhat.com>
31971
31972         printf.m4: avoid autoconf's "Expanded Before Required" warning
31973         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31974         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31975         autoconf warning.
31976
31977 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31978
31979         Replacement header templates are now named with ".in", not "_".
31980         * doc/gnulib-intro.texi: Correct.
31981
31982 2010-06-10  Jim Meyering  <meyering@redhat.com>
31983
31984         inttostr-tests: depend on snprintf, not snprintf-posix
31985         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31986         snprintf-posix, to avoid this aclocal failure:
31987           missing file gnulib-tests/vasnprintf.c
31988           configure.ac:45: error: expected source file, required through \
31989           AC_LIBSOURCES, not found
31990
31991 2010-06-10  Jim Meyering  <meyering@redhat.com>
31992
31993         inttostr: add a new function, inttostr, and tests
31994         The namesake function was not available.  The existence of the
31995         template file, inttostr.c makes its addition nontrivial.
31996         * lib/anytostr.c: Rename from inttostr.c.
31997         (anytostr): Rename from inttostr.
31998         * lib/inttostr.c: New file.
31999         * modules/inttostr (Files): Add anytostr.c.
32000         (Makefile.am): Set lib_SOURCES instead of ...
32001         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32002         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32003         * lib/offtostr.c: Likewise.
32004         * lib/uinttostr.c: Likewise.
32005         * lib/umaxtostr.c: Likewise.
32006         * modules/inttostr-tests: New file.
32007         * tests/test-inttostr.c: New file.  Test these functions.
32008
32009 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32010             Bruno Haible  <bruno@clisp.org>
32011
32012         Add "Extending Gnulib" chapter to manual.
32013         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32014         chapter.
32015         (Extending Gnulib): New chapter.
32016         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32017         chapter.
32018
32019 2010-06-09  Bruno Haible  <bruno@clisp.org>
32020
32021         Avoid relocwrapper link errors due to gnulib replacement functions.
32022         * lib/areadlink.c: Use the system's malloc, realloc functions.
32023         (areadlink): Set errno to ENOMEM explicitly.
32024         * modules/areadlink (Depends-on): Remove malloc-posix.
32025         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32026
32027 2010-06-09  Bruno Haible  <bruno@clisp.org>
32028
32029         Avoid relocwrapper link errors due to gnulib replacement functions.
32030         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32031         * lib/malloca.c: Likewise.
32032         * lib/relocatable.c: Likewise.
32033         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32034         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32035         * lib/setenv.c: Use the system's malloc, realloc functions.
32036         * lib/strerror.c: Use the system's sprintf function.
32037         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32038
32039 2010-06-04  Bruno Haible  <bruno@clisp.org>
32040
32041         Prefer documented low-level autoconf macro names.
32042         * m4/lib-link.m4: Use m4_translit instead of translit.
32043         * m4/environ.m4: Likewise.
32044         * m4/mathfunc.m4: Likewise.
32045         * m4/onceonly.m4: Likewise.
32046         * m4/stdint.m4: Likewise.
32047         Suggested by Eric Blake.
32048
32049 2010-06-04  Martin Lambers  <marlam@marlam.de>
32050             Bruno Haible  <bruno@clisp.org>
32051
32052         havelib: Allow library names with '+' characters.
32053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32054         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32055
32056 2010-06-09  Bruno Haible  <bruno@clisp.org>
32057
32058         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32059         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32060         realloc failed.
32061
32062 2010-06-08  Peter Simons  <simons@cryp.to>
32063
32064         maint.mk: make the news-check rule more configurable
32065         * top/maint.mk (news-check-lines-spec): New variable.
32066         (news-check): Use "sed -n 1,10p" in place of "head".
32067
32068 2010-06-07  Jim Meyering  <meyering@redhat.com>
32069
32070         do-release-commit-and-tag: fix typo in --help
32071         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32072
32073         regex: avoid new dead-code warning with gcc-4.6.0
32074         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32075         if-block containing a while-loop.  It's been unused for at least
32076         5 years.
32077
32078 2010-06-05  Bruno Haible  <bruno@clisp.org>
32079
32080         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32081         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32082
32083 2010-06-04  Bruno Haible  <bruno@clisp.org>
32084
32085         Update to GNU gettext 0.18.1.
32086         * modules/gettext (configure.ac): Require gettext infrastructure from
32087         version 0.18.1.
32088
32089 2010-06-03  Bruno Haible  <bruno@clisp.org>
32090
32091         Don't use AC_LIBOBJ with file names in subdirectories.
32092         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32093         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32094         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32095         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32096         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32097         gl_LIBUNISTRING_LIBSOURCE.
32098         (Makefile.am): Augment lib_SOURCES here, conditionally.
32099         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32100
32101 2010-06-03  Bruno Haible  <bruno@clisp.org>
32102
32103         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32104         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32105         expansion does not end with a newline.
32106         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32107         unnecessary newline.
32108
32109 2010-06-03  Bruno Haible  <bruno@clisp.org>
32110
32111         Reduce dependencies.
32112         * tests/test-quotearg.h: New file, extracted from
32113         tests/test-quotearg.c.
32114         * tests/test-quotearg-simple.c: New file, extracted from
32115         tests/test-quotearg.c.
32116         * tests/test-quotearg.c: Don't include <ctype.h>.
32117         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32118         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32119         use_quote_double_quotes, use_quotearg_colon): Moved to
32120         tests/test-quotearg.h.
32121         (results_g, flag_results, custom_quotes, custom_results): Moved
32122         to tests/test-quotearg-simple.c.
32123         (main): Moved the part that does not depend on gettext to
32124         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32125         performed.
32126         * modules/quotearg-simple: New file.
32127         * modules/quotearg-simple-tests: New file.
32128         * modules/quotearg (Depends-on): Add quotearg-simple.
32129         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32130         (Files): Add tests/test-quotearg.h.
32131         Reported by Paolo Bonzini.
32132
32133 2010-06-03  Bruno Haible  <bruno@clisp.org>
32134
32135         Reduce dependencies.
32136         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32137
32138 2010-06-03  Bruno Haible  <bruno@clisp.org>
32139
32140         time: Undefine more broken macros.
32141         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32142         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32143         Reported by Eric Blake.
32144
32145 2010-06-03  Bruno Haible  <bruno@clisp.org>
32146
32147         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32148         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32149         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32150         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32151         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32152         Reported by Ludovic Courtès <ludo@gnu.org>.
32153
32154 2010-06-02  Eric Blake  <eblake@redhat.com>
32155
32156         time: work with mingw + pthreads-win32 library
32157         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32158         if timespec is defined only in pthread.h.
32159         * modules/time (Makefile.am): Substitute it.
32160         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32161         <pthread.h>, when needed.
32162         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32163         from the library.
32164
32165 2010-05-31  Bruno Haible  <bruno@clisp.org>
32166
32167         Avoid expanding two macros in the wrong order.
32168         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32169         gl_LIBUNISTRING if it is defined.
32170         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32171         autoconf >= 2.64.
32172         Reported by Ludovic Courtès <ludo@gnu.org>.
32173
32174 2010-05-27  Jim Meyering  <meyering@redhat.com>
32175
32176         maint.mk: also prohibit "#undef" of always-defined symbols
32177         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32178         Allow more than one space before the symbol name.
32179         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32180         the regexp uses alternation.
32181
32182 2010-05-26  Eric Blake  <eblake@redhat.com>
32183
32184         maint.mk: avoid echo -e
32185         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32186         Convert all uses of echo -* to printf.
32187         Reported by Matthias Bolte.
32188
32189 2010-05-25  Bruno Haible  <bruno@clisp.org>
32190
32191         Update to GNU gettext 0.18, part 2.
32192         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32193         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32194
32195 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32196
32197         Add missing include in test-pwrite.c.
32198         * tests/test-pwrite.c: Include string.h, for strcmp.
32199
32200 2010-05-24  Bruno Haible  <bruno@clisp.org>
32201
32202         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32203
32204 2010-05-24  Bruno Haible  <bruno@clisp.org>
32205
32206         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32207         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32208         iconveh_error argument.
32209         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32210         U_STRCONV_TO_LOCALE.
32211         * lib/unistr/u16-strcoll.c: Likewise.
32212         * lib/unistr/u32-strcoll.c: Likewise.
32213         * modules/unistr/u8-strcoll (Depends-on): Add
32214         uniconv/u8-strconv-to-enc, localcharset. Remove
32215         uniconv/u8-strconv-to-locale.
32216         (configure.ac): Bump version number.
32217         * modules/unistr/u16-strcoll (Depends-on): Add
32218         uniconv/u16-strconv-to-enc, localcharset. Remove
32219         uniconv/u16-strconv-to-locale.
32220         (configure.ac): Bump version number.
32221         * modules/unistr/u32-strcoll (Depends-on): Add
32222         uniconv/u32-strconv-to-enc, localcharset. Remove
32223         uniconv/u32-strconv-to-locale.
32224         (configure.ac): Bump version number.
32225
32226 2010-05-24  Bruno Haible  <bruno@clisp.org>
32227
32228         Avoid a test failure on NetBSD 5.0.
32229         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32230         an iconv() bug.
32231
32232 2010-05-24  Bruno Haible  <bruno@clisp.org>
32233
32234         Adjust #include directive style.
32235         * modules/regex (Includes): Recommend to write <regex.h>.
32236
32237 2010-05-24  Bruno Haible  <bruno@clisp.org>
32238
32239         regex: Don't require alloca.
32240         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32241         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32242         only inside if (0).
32243
32244 2010-05-23  Jim Meyering  <meyering@redhat.com>
32245
32246         test-renameat.c: include <sys/stat.h>
32247         * tests/test-renameat.c: Include <sys/stat.h>; required for
32248         definition of S_IS* macros.
32249
32250 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32251
32252         Update maintainer documentation for 'relocatable-prog' module.
32253         * doc/relocatable-maint.texi: Update.
32254         Comments by Bruno Haible.
32255
32256 2010-05-23  Bruno Haible  <bruno@clisp.org>
32257
32258         git-merge-changelog: Enable --split-merged-entry by default.
32259         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32260         (usage): Don't mention this option any more.
32261         Reported by Ralf Wildenhues.
32262
32263 2010-05-23  Jim Meyering  <meyering@redhat.com>
32264
32265         test-pwrite: do not leave behind a test file named "out"
32266         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32267         The trivial-looking use of init.sh is really necessary.
32268         It ensures that the temporary file, "out", is created in
32269         a temporary directory, and removed upon termination.
32270         * tests/test-pwrite.sh: Re-add file.
32271         * modules/pwrite-tests: Reference it.
32272
32273 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32274
32275         Fix output redirection buglet in init.sh.
32276         * tests/init.sh: Fix redirection of stderr.
32277
32278 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32279
32280         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32281
32282 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32283
32284         * modules/valgrind-tests: New file.
32285         * m4/valgrind-tests.m4: New file.
32286         * doc/valgrind-tests.texi: New file.
32287         * doc/gnulib.texi (Running self-tests under valgrind): New
32288         section.
32289
32290 2010-05-19  Bruno Haible  <bruno@clisp.org>
32291
32292         Clean up dead code in recent commit.
32293         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32294         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32295         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32296         Suggested by Paolo Bonzini.
32297
32298 2010-05-19  Bruno Haible  <bruno@clisp.org>
32299
32300         Avoid valgrind error reports from libunistring.
32301         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32302         * modules/libunistring (Files): Add it.
32303         * modules/libunistring-optional (Files): Likewise.
32304
32305 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32306             Bruno Haible  <bruno@clisp.org>
32307
32308         New module 'libunistring-optional'.
32309         * modules/libunistring-optional: New file.
32310         * m4/libunistring-base.m4: New file.
32311         * m4/libunistring-optional.m4: New file.
32312         * lib/unicase.in.h: Renamed from lib/unicase.h.
32313         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32314         * lib/unictype.in.h: Renamed from lib/unictype.h.
32315         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32316         * lib/uniname.in.h: Renamed from lib/uniname.h.
32317         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32318         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32319         * lib/unistr.in.h: Renamed from lib/unistr.h.
32320         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32321         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32322         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32323         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32324         gl_LIBUNISTRING. If the library was found, determine the installed
32325         version and set LIBUNISTRING_VERSION.
32326         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32327         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32328         handle a configuration option --with-included-libunistring.
32329         * modules/libunistring (Files): Add m4/absolute-header.m4.
32330         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32331         Add m4/libunistring-base.m4.
32332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32333         (Makefile.am): Build unicase.h from unicase.in.h.
32334         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32335         Add m4/libunistring-base.m4.
32336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32337         (Makefile.am): Build uniconv.h from uniconv.in.h.
32338         * modules/unictype/base (Files): Use unictype.in.h instead of
32339         unictype.h. Add m4/libunistring-base.m4.
32340         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32341         (Makefile.am): Build unictype.h from unictype.in.h.
32342         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32343         Add m4/libunistring-base.m4.
32344         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32345         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32346         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32347         Add m4/libunistring-base.m4.
32348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32349         (Makefile.am): Build uniname.h from uniname.in.h.
32350         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32351         Add m4/libunistring-base.m4.
32352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32353         (Makefile.am): Build uninorm.h from uninorm.in.h.
32354         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32355         unistdio.h. Add m4/libunistring-base.m4.
32356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32357         (Makefile.am): Build unistdio.h from unistdio.in.h.
32358         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32359         Add m4/libunistring-base.m4.
32360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32361         (Makefile.am): Build unistr.h from unistr.in.h.
32362         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32363         Add m4/libunistring-base.m4.
32364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32365         (Makefile.am): Build unitypes.h from unitypes.in.h.
32366         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32367         Add m4/libunistring-base.m4.
32368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32369         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32370         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32371         uniwidth.h. Add m4/libunistring-base.m4.
32372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32373         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32374         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32375         instead of augmenting lib_SOURCES.
32376         * modules/unicase/empty-suffix-context: Likewise.
32377         * modules/unicase/locale-language: Likewise.
32378         * modules/unicase/tolower: Likewise.
32379         * modules/unicase/totitle: Likewise.
32380         * modules/unicase/toupper: Likewise.
32381         * modules/unicase/u8-casecmp: Likewise.
32382         * modules/unicase/u8-casecoll: Likewise.
32383         * modules/unicase/u8-casefold: Likewise.
32384         * modules/unicase/u8-casexfrm: Likewise.
32385         * modules/unicase/u8-ct-casefold: Likewise.
32386         * modules/unicase/u8-ct-tolower: Likewise.
32387         * modules/unicase/u8-ct-totitle: Likewise.
32388         * modules/unicase/u8-ct-toupper: Likewise.
32389         * modules/unicase/u8-is-cased: Likewise.
32390         * modules/unicase/u8-is-casefolded: Likewise.
32391         * modules/unicase/u8-is-lowercase: Likewise.
32392         * modules/unicase/u8-is-titlecase: Likewise.
32393         * modules/unicase/u8-is-uppercase: Likewise.
32394         * modules/unicase/u8-prefix-context: Likewise.
32395         * modules/unicase/u8-suffix-context: Likewise.
32396         * modules/unicase/u8-tolower: Likewise.
32397         * modules/unicase/u8-totitle: Likewise.
32398         * modules/unicase/u8-toupper: Likewise.
32399         * modules/unicase/u16-casecmp: Likewise.
32400         * modules/unicase/u16-casecoll: Likewise.
32401         * modules/unicase/u16-casefold: Likewise.
32402         * modules/unicase/u16-casexfrm: Likewise.
32403         * modules/unicase/u16-ct-casefold: Likewise.
32404         * modules/unicase/u16-ct-tolower: Likewise.
32405         * modules/unicase/u16-ct-totitle: Likewise.
32406         * modules/unicase/u16-ct-toupper: Likewise.
32407         * modules/unicase/u16-is-cased: Likewise.
32408         * modules/unicase/u16-is-casefolded: Likewise.
32409         * modules/unicase/u16-is-lowercase: Likewise.
32410         * modules/unicase/u16-is-titlecase: Likewise.
32411         * modules/unicase/u16-is-uppercase: Likewise.
32412         * modules/unicase/u16-prefix-context: Likewise.
32413         * modules/unicase/u16-suffix-context: Likewise.
32414         * modules/unicase/u16-tolower: Likewise.
32415         * modules/unicase/u16-totitle: Likewise.
32416         * modules/unicase/u16-toupper: Likewise.
32417         * modules/unicase/u32-casecmp: Likewise.
32418         * modules/unicase/u32-casecoll: Likewise.
32419         * modules/unicase/u32-casefold: Likewise.
32420         * modules/unicase/u32-casexfrm: Likewise.
32421         * modules/unicase/u32-ct-casefold: Likewise.
32422         * modules/unicase/u32-ct-tolower: Likewise.
32423         * modules/unicase/u32-ct-totitle: Likewise.
32424         * modules/unicase/u32-ct-toupper: Likewise.
32425         * modules/unicase/u32-is-cased: Likewise.
32426         * modules/unicase/u32-is-casefolded: Likewise.
32427         * modules/unicase/u32-is-lowercase: Likewise.
32428         * modules/unicase/u32-is-titlecase: Likewise.
32429         * modules/unicase/u32-is-uppercase: Likewise.
32430         * modules/unicase/u32-prefix-context: Likewise.
32431         * modules/unicase/u32-suffix-context: Likewise.
32432         * modules/unicase/u32-tolower: Likewise.
32433         * modules/unicase/u32-totitle: Likewise.
32434         * modules/unicase/u32-toupper: Likewise.
32435         * modules/unicase/ulc-casecmp: Likewise.
32436         * modules/unicase/ulc-casecoll: Likewise.
32437         * modules/unicase/ulc-casexfrm: Likewise.
32438         * modules/uniconv/u8-conv-from-enc: Likewise.
32439         * modules/uniconv/u8-conv-to-enc: Likewise.
32440         * modules/uniconv/u8-strconv-from-enc: Likewise.
32441         * modules/uniconv/u8-strconv-from-locale: Likewise.
32442         * modules/uniconv/u8-strconv-to-enc: Likewise.
32443         * modules/uniconv/u8-strconv-to-locale: Likewise.
32444         * modules/uniconv/u16-conv-from-enc: Likewise.
32445         * modules/uniconv/u16-conv-to-enc: Likewise.
32446         * modules/uniconv/u16-strconv-from-enc: Likewise.
32447         * modules/uniconv/u16-strconv-from-locale: Likewise.
32448         * modules/uniconv/u16-strconv-to-enc: Likewise.
32449         * modules/uniconv/u16-strconv-to-locale: Likewise.
32450         * modules/uniconv/u32-conv-from-enc: Likewise.
32451         * modules/uniconv/u32-conv-to-enc: Likewise.
32452         * modules/uniconv/u32-strconv-from-enc: Likewise.
32453         * modules/uniconv/u32-strconv-from-locale: Likewise.
32454         * modules/uniconv/u32-strconv-to-enc: Likewise.
32455         * modules/uniconv/u32-strconv-to-locale: Likewise.
32456         * modules/unictype/bidicategory-byname: Likewise.
32457         * modules/unictype/bidicategory-name: Likewise.
32458         * modules/unictype/bidicategory-of: Likewise.
32459         * modules/unictype/bidicategory-test: Likewise.
32460         * modules/unictype/block-list: Likewise.
32461         * modules/unictype/block-test: Likewise.
32462         * modules/unictype/category-C: Likewise.
32463         * modules/unictype/category-Cc: Likewise.
32464         * modules/unictype/category-Cf: Likewise.
32465         * modules/unictype/category-Cn: Likewise.
32466         * modules/unictype/category-Co: Likewise.
32467         * modules/unictype/category-Cs: Likewise.
32468         * modules/unictype/category-L: Likewise.
32469         * modules/unictype/category-Ll: Likewise.
32470         * modules/unictype/category-Lm: Likewise.
32471         * modules/unictype/category-Lo: Likewise.
32472         * modules/unictype/category-Lt: Likewise.
32473         * modules/unictype/category-Lu: Likewise.
32474         * modules/unictype/category-M: Likewise.
32475         * modules/unictype/category-Mc: Likewise.
32476         * modules/unictype/category-Me: Likewise.
32477         * modules/unictype/category-Mn: Likewise.
32478         * modules/unictype/category-N: Likewise.
32479         * modules/unictype/category-Nd: Likewise.
32480         * modules/unictype/category-Nl: Likewise.
32481         * modules/unictype/category-No: Likewise.
32482         * modules/unictype/category-P: Likewise.
32483         * modules/unictype/category-Pc: Likewise.
32484         * modules/unictype/category-Pd: Likewise.
32485         * modules/unictype/category-Pe: Likewise.
32486         * modules/unictype/category-Pf: Likewise.
32487         * modules/unictype/category-Pi: Likewise.
32488         * modules/unictype/category-Po: Likewise.
32489         * modules/unictype/category-Ps: Likewise.
32490         * modules/unictype/category-S: Likewise.
32491         * modules/unictype/category-Sc: Likewise.
32492         * modules/unictype/category-Sk: Likewise.
32493         * modules/unictype/category-Sm: Likewise.
32494         * modules/unictype/category-So: Likewise.
32495         * modules/unictype/category-Z: Likewise.
32496         * modules/unictype/category-Zl: Likewise.
32497         * modules/unictype/category-Zp: Likewise.
32498         * modules/unictype/category-Zs: Likewise.
32499         * modules/unictype/category-and: Likewise.
32500         * modules/unictype/category-and-not: Likewise.
32501         * modules/unictype/category-byname: Likewise.
32502         * modules/unictype/category-name: Likewise.
32503         * modules/unictype/category-none: Likewise.
32504         * modules/unictype/category-of: Likewise.
32505         * modules/unictype/category-or: Likewise.
32506         * modules/unictype/category-test: Likewise.
32507         * modules/unictype/combining-class: Likewise.
32508         * modules/unictype/ctype-alnum: Likewise.
32509         * modules/unictype/ctype-alpha: Likewise.
32510         * modules/unictype/ctype-blank: Likewise.
32511         * modules/unictype/ctype-cntrl: Likewise.
32512         * modules/unictype/ctype-digit: Likewise.
32513         * modules/unictype/ctype-graph: Likewise.
32514         * modules/unictype/ctype-lower: Likewise.
32515         * modules/unictype/ctype-print: Likewise.
32516         * modules/unictype/ctype-punct: Likewise.
32517         * modules/unictype/ctype-space: Likewise.
32518         * modules/unictype/ctype-upper: Likewise.
32519         * modules/unictype/ctype-xdigit: Likewise.
32520         * modules/unictype/decimal-digit: Likewise.
32521         * modules/unictype/digit: Likewise.
32522         * modules/unictype/mirror: Likewise.
32523         * modules/unictype/numeric: Likewise.
32524         * modules/unictype/property-alphabetic: Likewise.
32525         * modules/unictype/property-ascii-hex-digit: Likewise.
32526         * modules/unictype/property-bidi-arabic-digit: Likewise.
32527         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32528         * modules/unictype/property-bidi-block-separator: Likewise.
32529         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32530         * modules/unictype/property-bidi-common-separator: Likewise.
32531         * modules/unictype/property-bidi-control: Likewise.
32532         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32533         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32534         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32535         * modules/unictype/property-bidi-european-digit: Likewise.
32536         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32537         * modules/unictype/property-bidi-left-to-right: Likewise.
32538         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32539         * modules/unictype/property-bidi-other-neutral: Likewise.
32540         * modules/unictype/property-bidi-pdf: Likewise.
32541         * modules/unictype/property-bidi-segment-separator: Likewise.
32542         * modules/unictype/property-bidi-whitespace: Likewise.
32543         * modules/unictype/property-byname: Likewise.
32544         * modules/unictype/property-combining: Likewise.
32545         * modules/unictype/property-composite: Likewise.
32546         * modules/unictype/property-currency-symbol: Likewise.
32547         * modules/unictype/property-dash: Likewise.
32548         * modules/unictype/property-decimal-digit: Likewise.
32549         * modules/unictype/property-default-ignorable-code-point: Likewise.
32550         * modules/unictype/property-deprecated: Likewise.
32551         * modules/unictype/property-diacritic: Likewise.
32552         * modules/unictype/property-extender: Likewise.
32553         * modules/unictype/property-format-control: Likewise.
32554         * modules/unictype/property-grapheme-base: Likewise.
32555         * modules/unictype/property-grapheme-extend: Likewise.
32556         * modules/unictype/property-grapheme-link: Likewise.
32557         * modules/unictype/property-hex-digit: Likewise.
32558         * modules/unictype/property-hyphen: Likewise.
32559         * modules/unictype/property-id-continue: Likewise.
32560         * modules/unictype/property-id-start: Likewise.
32561         * modules/unictype/property-ideographic: Likewise.
32562         * modules/unictype/property-ids-binary-operator: Likewise.
32563         * modules/unictype/property-ids-trinary-operator: Likewise.
32564         * modules/unictype/property-ignorable-control: Likewise.
32565         * modules/unictype/property-iso-control: Likewise.
32566         * modules/unictype/property-join-control: Likewise.
32567         * modules/unictype/property-left-of-pair: Likewise.
32568         * modules/unictype/property-line-separator: Likewise.
32569         * modules/unictype/property-logical-order-exception: Likewise.
32570         * modules/unictype/property-lowercase: Likewise.
32571         * modules/unictype/property-math: Likewise.
32572         * modules/unictype/property-non-break: Likewise.
32573         * modules/unictype/property-not-a-character: Likewise.
32574         * modules/unictype/property-numeric: Likewise.
32575         * modules/unictype/property-other-alphabetic: Likewise.
32576         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32577         * modules/unictype/property-other-grapheme-extend: Likewise.
32578         * modules/unictype/property-other-id-continue: Likewise.
32579         * modules/unictype/property-other-id-start: Likewise.
32580         * modules/unictype/property-other-lowercase: Likewise.
32581         * modules/unictype/property-other-math: Likewise.
32582         * modules/unictype/property-other-uppercase: Likewise.
32583         * modules/unictype/property-paired-punctuation: Likewise.
32584         * modules/unictype/property-paragraph-separator: Likewise.
32585         * modules/unictype/property-pattern-syntax: Likewise.
32586         * modules/unictype/property-pattern-white-space: Likewise.
32587         * modules/unictype/property-private-use: Likewise.
32588         * modules/unictype/property-punctuation: Likewise.
32589         * modules/unictype/property-quotation-mark: Likewise.
32590         * modules/unictype/property-radical: Likewise.
32591         * modules/unictype/property-sentence-terminal: Likewise.
32592         * modules/unictype/property-soft-dotted: Likewise.
32593         * modules/unictype/property-space: Likewise.
32594         * modules/unictype/property-terminal-punctuation: Likewise.
32595         * modules/unictype/property-test: Likewise.
32596         * modules/unictype/property-titlecase: Likewise.
32597         * modules/unictype/property-unassigned-code-value: Likewise.
32598         * modules/unictype/property-unified-ideograph: Likewise.
32599         * modules/unictype/property-uppercase: Likewise.
32600         * modules/unictype/property-variation-selector: Likewise.
32601         * modules/unictype/property-white-space: Likewise.
32602         * modules/unictype/property-xid-continue: Likewise.
32603         * modules/unictype/property-xid-start: Likewise.
32604         * modules/unictype/property-zero-width: Likewise.
32605         * modules/unictype/scripts: Likewise.
32606         * modules/unictype/syntax-c-ident: Likewise.
32607         * modules/unictype/syntax-c-whitespace: Likewise.
32608         * modules/unictype/syntax-java-ident: Likewise.
32609         * modules/unictype/syntax-java-whitespace: Likewise.
32610         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32611         * modules/unilbrk/u8-width-linebreaks: Likewise.
32612         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32613         * modules/unilbrk/u16-width-linebreaks: Likewise.
32614         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32615         * modules/unilbrk/u32-width-linebreaks: Likewise.
32616         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32617         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32618         * modules/uniname/uniname: Likewise.
32619         * modules/uninorm/canonical-decomposition: Likewise.
32620         * modules/uninorm/composition: Likewise.
32621         * modules/uninorm/decomposing-form: Likewise.
32622         * modules/uninorm/decomposition: Likewise.
32623         * modules/uninorm/filter: Likewise.
32624         * modules/uninorm/nfc: Likewise.
32625         * modules/uninorm/nfd: Likewise.
32626         * modules/uninorm/nfkc: Likewise.
32627         * modules/uninorm/nfkd: Likewise.
32628         * modules/uninorm/u8-normalize: Likewise.
32629         * modules/uninorm/u8-normcmp: Likewise.
32630         * modules/uninorm/u8-normcoll: Likewise.
32631         * modules/uninorm/u8-normxfrm: Likewise.
32632         * modules/uninorm/u16-normalize: Likewise.
32633         * modules/uninorm/u16-normcmp: Likewise.
32634         * modules/uninorm/u16-normcoll: Likewise.
32635         * modules/uninorm/u16-normxfrm: Likewise.
32636         * modules/uninorm/u32-normalize: Likewise.
32637         * modules/uninorm/u32-normcmp: Likewise.
32638         * modules/uninorm/u32-normcoll: Likewise.
32639         * modules/uninorm/u32-normxfrm: Likewise.
32640         * modules/unistdio/u8-asnprintf: Likewise.
32641         * modules/unistdio/u8-asprintf: Likewise.
32642         * modules/unistdio/u8-snprintf: Likewise.
32643         * modules/unistdio/u8-sprintf: Likewise.
32644         * modules/unistdio/u8-u8-asnprintf: Likewise.
32645         * modules/unistdio/u8-u8-asprintf: Likewise.
32646         * modules/unistdio/u8-u8-snprintf: Likewise.
32647         * modules/unistdio/u8-u8-sprintf: Likewise.
32648         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32649         * modules/unistdio/u8-u8-vasprintf: Likewise.
32650         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32651         * modules/unistdio/u8-u8-vsprintf: Likewise.
32652         * modules/unistdio/u8-vasnprintf: Likewise.
32653         * modules/unistdio/u8-vasprintf: Likewise.
32654         * modules/unistdio/u8-vsnprintf: Likewise.
32655         * modules/unistdio/u8-vsprintf: Likewise.
32656         * modules/unistdio/u16-asnprintf: Likewise.
32657         * modules/unistdio/u16-asprintf: Likewise.
32658         * modules/unistdio/u16-snprintf: Likewise.
32659         * modules/unistdio/u16-sprintf: Likewise.
32660         * modules/unistdio/u16-u16-asnprintf: Likewise.
32661         * modules/unistdio/u16-u16-asprintf: Likewise.
32662         * modules/unistdio/u16-u16-snprintf: Likewise.
32663         * modules/unistdio/u16-u16-sprintf: Likewise.
32664         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32665         * modules/unistdio/u16-u16-vasprintf: Likewise.
32666         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32667         * modules/unistdio/u16-u16-vsprintf: Likewise.
32668         * modules/unistdio/u16-vasnprintf: Likewise.
32669         * modules/unistdio/u16-vasprintf: Likewise.
32670         * modules/unistdio/u16-vsnprintf: Likewise.
32671         * modules/unistdio/u16-vsprintf: Likewise.
32672         * modules/unistdio/u32-asnprintf: Likewise.
32673         * modules/unistdio/u32-asprintf: Likewise.
32674         * modules/unistdio/u32-snprintf: Likewise.
32675         * modules/unistdio/u32-sprintf: Likewise.
32676         * modules/unistdio/u32-u32-asnprintf: Likewise.
32677         * modules/unistdio/u32-u32-asprintf: Likewise.
32678         * modules/unistdio/u32-u32-snprintf: Likewise.
32679         * modules/unistdio/u32-u32-sprintf: Likewise.
32680         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32681         * modules/unistdio/u32-u32-vasprintf: Likewise.
32682         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32683         * modules/unistdio/u32-u32-vsprintf: Likewise.
32684         * modules/unistdio/u32-vasnprintf: Likewise.
32685         * modules/unistdio/u32-vasprintf: Likewise.
32686         * modules/unistdio/u32-vsnprintf: Likewise.
32687         * modules/unistdio/u32-vsprintf: Likewise.
32688         * modules/unistdio/ulc-asnprintf: Likewise.
32689         * modules/unistdio/ulc-asprintf: Likewise.
32690         * modules/unistdio/ulc-fprintf: Likewise.
32691         * modules/unistdio/ulc-snprintf: Likewise.
32692         * modules/unistdio/ulc-sprintf: Likewise.
32693         * modules/unistdio/ulc-vasnprintf: Likewise.
32694         * modules/unistdio/ulc-vasprintf: Likewise.
32695         * modules/unistdio/ulc-vfprintf: Likewise.
32696         * modules/unistdio/ulc-vsnprintf: Likewise.
32697         * modules/unistdio/ulc-vsprintf: Likewise.
32698         * modules/unistr/u8-check: Likewise.
32699         * modules/unistr/u8-chr: Likewise.
32700         * modules/unistr/u8-cmp: Likewise.
32701         * modules/unistr/u8-cmp2: Likewise.
32702         * modules/unistr/u8-cpy: Likewise.
32703         * modules/unistr/u8-cpy-alloc: Likewise.
32704         * modules/unistr/u8-endswith: Likewise.
32705         * modules/unistr/u8-mblen: Likewise.
32706         * modules/unistr/u8-mbsnlen: Likewise.
32707         * modules/unistr/u8-mbtouc: Likewise.
32708         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32709         * modules/unistr/u8-mbtoucr: Likewise.
32710         * modules/unistr/u8-move: Likewise.
32711         * modules/unistr/u8-next: Likewise.
32712         * modules/unistr/u8-prev: Likewise.
32713         * modules/unistr/u8-set: Likewise.
32714         * modules/unistr/u8-startswith: Likewise.
32715         * modules/unistr/u8-stpcpy: Likewise.
32716         * modules/unistr/u8-stpncpy: Likewise.
32717         * modules/unistr/u8-strcat: Likewise.
32718         * modules/unistr/u8-strchr: Likewise.
32719         * modules/unistr/u8-strcmp: Likewise.
32720         * modules/unistr/u8-strcoll: Likewise.
32721         * modules/unistr/u8-strcpy: Likewise.
32722         * modules/unistr/u8-strcspn: Likewise.
32723         * modules/unistr/u8-strdup: Likewise.
32724         * modules/unistr/u8-strlen: Likewise.
32725         * modules/unistr/u8-strmblen: Likewise.
32726         * modules/unistr/u8-strmbtouc: Likewise.
32727         * modules/unistr/u8-strncat: Likewise.
32728         * modules/unistr/u8-strncmp: Likewise.
32729         * modules/unistr/u8-strncpy: Likewise.
32730         * modules/unistr/u8-strnlen: Likewise.
32731         * modules/unistr/u8-strpbrk: Likewise.
32732         * modules/unistr/u8-strrchr: Likewise.
32733         * modules/unistr/u8-strspn: Likewise.
32734         * modules/unistr/u8-strstr: Likewise.
32735         * modules/unistr/u8-strtok: Likewise.
32736         * modules/unistr/u8-to-u16: Likewise.
32737         * modules/unistr/u8-to-u32: Likewise.
32738         * modules/unistr/u8-uctomb: Likewise.
32739         * modules/unistr/u16-check: Likewise.
32740         * modules/unistr/u16-chr: Likewise.
32741         * modules/unistr/u16-cmp: Likewise.
32742         * modules/unistr/u16-cmp2: Likewise.
32743         * modules/unistr/u16-cpy: Likewise.
32744         * modules/unistr/u16-cpy-alloc: Likewise.
32745         * modules/unistr/u16-endswith: Likewise.
32746         * modules/unistr/u16-mblen: Likewise.
32747         * modules/unistr/u16-mbsnlen: Likewise.
32748         * modules/unistr/u16-mbtouc: Likewise.
32749         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32750         * modules/unistr/u16-mbtoucr: Likewise.
32751         * modules/unistr/u16-move: Likewise.
32752         * modules/unistr/u16-next: Likewise.
32753         * modules/unistr/u16-prev: Likewise.
32754         * modules/unistr/u16-set: Likewise.
32755         * modules/unistr/u16-startswith: Likewise.
32756         * modules/unistr/u16-stpcpy: Likewise.
32757         * modules/unistr/u16-stpncpy: Likewise.
32758         * modules/unistr/u16-strcat: Likewise.
32759         * modules/unistr/u16-strchr: Likewise.
32760         * modules/unistr/u16-strcmp: Likewise.
32761         * modules/unistr/u16-strcoll: Likewise.
32762         * modules/unistr/u16-strcpy: Likewise.
32763         * modules/unistr/u16-strcspn: Likewise.
32764         * modules/unistr/u16-strdup: Likewise.
32765         * modules/unistr/u16-strlen: Likewise.
32766         * modules/unistr/u16-strmblen: Likewise.
32767         * modules/unistr/u16-strmbtouc: Likewise.
32768         * modules/unistr/u16-strncat: Likewise.
32769         * modules/unistr/u16-strncmp: Likewise.
32770         * modules/unistr/u16-strncpy: Likewise.
32771         * modules/unistr/u16-strnlen: Likewise.
32772         * modules/unistr/u16-strpbrk: Likewise.
32773         * modules/unistr/u16-strrchr: Likewise.
32774         * modules/unistr/u16-strspn: Likewise.
32775         * modules/unistr/u16-strstr: Likewise.
32776         * modules/unistr/u16-strtok: Likewise.
32777         * modules/unistr/u16-to-u32: Likewise.
32778         * modules/unistr/u16-to-u8: Likewise.
32779         * modules/unistr/u16-uctomb: Likewise.
32780         * modules/unistr/u32-check: Likewise.
32781         * modules/unistr/u32-chr: Likewise.
32782         * modules/unistr/u32-cmp: Likewise.
32783         * modules/unistr/u32-cmp2: Likewise.
32784         * modules/unistr/u32-cpy: Likewise.
32785         * modules/unistr/u32-cpy-alloc: Likewise.
32786         * modules/unistr/u32-endswith: Likewise.
32787         * modules/unistr/u32-mblen: Likewise.
32788         * modules/unistr/u32-mbsnlen: Likewise.
32789         * modules/unistr/u32-mbtouc: Likewise.
32790         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32791         * modules/unistr/u32-mbtoucr: Likewise.
32792         * modules/unistr/u32-move: Likewise.
32793         * modules/unistr/u32-next: Likewise.
32794         * modules/unistr/u32-prev: Likewise.
32795         * modules/unistr/u32-set: Likewise.
32796         * modules/unistr/u32-startswith: Likewise.
32797         * modules/unistr/u32-stpcpy: Likewise.
32798         * modules/unistr/u32-stpncpy: Likewise.
32799         * modules/unistr/u32-strcat: Likewise.
32800         * modules/unistr/u32-strchr: Likewise.
32801         * modules/unistr/u32-strcmp: Likewise.
32802         * modules/unistr/u32-strcoll: Likewise.
32803         * modules/unistr/u32-strcpy: Likewise.
32804         * modules/unistr/u32-strcspn: Likewise.
32805         * modules/unistr/u32-strdup: Likewise.
32806         * modules/unistr/u32-strlen: Likewise.
32807         * modules/unistr/u32-strmblen: Likewise.
32808         * modules/unistr/u32-strmbtouc: Likewise.
32809         * modules/unistr/u32-strncat: Likewise.
32810         * modules/unistr/u32-strncmp: Likewise.
32811         * modules/unistr/u32-strncpy: Likewise.
32812         * modules/unistr/u32-strnlen: Likewise.
32813         * modules/unistr/u32-strpbrk: Likewise.
32814         * modules/unistr/u32-strrchr: Likewise.
32815         * modules/unistr/u32-strspn: Likewise.
32816         * modules/unistr/u32-strstr: Likewise.
32817         * modules/unistr/u32-strtok: Likewise.
32818         * modules/unistr/u32-to-u16: Likewise.
32819         * modules/unistr/u32-to-u8: Likewise.
32820         * modules/unistr/u32-uctomb: Likewise.
32821         * modules/uniwbrk/u8-wordbreaks: Likewise.
32822         * modules/uniwbrk/u16-wordbreaks: Likewise.
32823         * modules/uniwbrk/u32-wordbreaks: Likewise.
32824         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32825         * modules/uniwbrk/wordbreak-property: Likewise.
32826         * modules/uniwidth/u8-strwidth: Likewise.
32827         * modules/uniwidth/u8-width: Likewise.
32828         * modules/uniwidth/u16-strwidth: Likewise.
32829         * modules/uniwidth/u16-width: Likewise.
32830         * modules/uniwidth/u32-strwidth: Likewise.
32831         * modules/uniwidth/u32-width: Likewise.
32832         * modules/uniwidth/width: Likewise.
32833         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32834         with $(LIBUNISTRING).
32835         * modules/unicase/ignorable-tests: Likewise.
32836         * modules/unicase/locale-language-tests: Likewise.
32837         * modules/unicase/tolower-tests: Likewise.
32838         * modules/unicase/totitle-tests: Likewise.
32839         * modules/unicase/toupper-tests: Likewise.
32840         * modules/unicase/u8-casecmp-tests: Likewise.
32841         * modules/unicase/u8-casecoll-tests: Likewise.
32842         * modules/unicase/u8-casefold-tests: Likewise.
32843         * modules/unicase/u8-is-cased-tests: Likewise.
32844         * modules/unicase/u8-is-casefolded-tests: Likewise.
32845         * modules/unicase/u8-is-lowercase-tests: Likewise.
32846         * modules/unicase/u8-is-titlecase-tests: Likewise.
32847         * modules/unicase/u8-is-uppercase-tests: Likewise.
32848         * modules/unicase/u8-tolower-tests: Likewise.
32849         * modules/unicase/u8-totitle-tests: Likewise.
32850         * modules/unicase/u8-toupper-tests: Likewise.
32851         * modules/unicase/u16-casecmp-tests: Likewise.
32852         * modules/unicase/u16-casecoll-tests: Likewise.
32853         * modules/unicase/u16-casefold-tests: Likewise.
32854         * modules/unicase/u16-is-cased-tests: Likewise.
32855         * modules/unicase/u16-is-casefolded-tests: Likewise.
32856         * modules/unicase/u16-is-lowercase-tests: Likewise.
32857         * modules/unicase/u16-is-titlecase-tests: Likewise.
32858         * modules/unicase/u16-is-uppercase-tests: Likewise.
32859         * modules/unicase/u16-tolower-tests: Likewise.
32860         * modules/unicase/u16-totitle-tests: Likewise.
32861         * modules/unicase/u16-toupper-tests: Likewise.
32862         * modules/unicase/u32-casecmp-tests: Likewise.
32863         * modules/unicase/u32-casecoll-tests: Likewise.
32864         * modules/unicase/u32-casefold-tests: Likewise.
32865         * modules/unicase/u32-is-cased-tests: Likewise.
32866         * modules/unicase/u32-is-casefolded-tests: Likewise.
32867         * modules/unicase/u32-is-lowercase-tests: Likewise.
32868         * modules/unicase/u32-is-titlecase-tests: Likewise.
32869         * modules/unicase/u32-is-uppercase-tests: Likewise.
32870         * modules/unicase/u32-tolower-tests: Likewise.
32871         * modules/unicase/u32-totitle-tests: Likewise.
32872         * modules/unicase/u32-toupper-tests: Likewise.
32873         * modules/unicase/ulc-casecmp-tests: Likewise.
32874         * modules/unicase/ulc-casecoll-tests: Likewise.
32875         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32876         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32877         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32878         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32879         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32880         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32881         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32882         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32883         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32884         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32885         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32886         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32887         * modules/unictype/bidicategory-byname-tests: Likewise.
32888         * modules/unictype/bidicategory-name-tests: Likewise.
32889         * modules/unictype/bidicategory-of-tests: Likewise.
32890         * modules/unictype/bidicategory-test-tests: Likewise.
32891         * modules/unictype/block-list-tests: Likewise.
32892         * modules/unictype/block-of-tests: Likewise.
32893         * modules/unictype/block-test-tests: Likewise.
32894         * modules/unictype/category-C-tests: Likewise.
32895         * modules/unictype/category-Cc-tests: Likewise.
32896         * modules/unictype/category-Cf-tests: Likewise.
32897         * modules/unictype/category-Cn-tests: Likewise.
32898         * modules/unictype/category-Co-tests: Likewise.
32899         * modules/unictype/category-Cs-tests: Likewise.
32900         * modules/unictype/category-L-tests: Likewise.
32901         * modules/unictype/category-Ll-tests: Likewise.
32902         * modules/unictype/category-Lm-tests: Likewise.
32903         * modules/unictype/category-Lo-tests: Likewise.
32904         * modules/unictype/category-Lt-tests: Likewise.
32905         * modules/unictype/category-Lu-tests: Likewise.
32906         * modules/unictype/category-M-tests: Likewise.
32907         * modules/unictype/category-Mc-tests: Likewise.
32908         * modules/unictype/category-Me-tests: Likewise.
32909         * modules/unictype/category-Mn-tests: Likewise.
32910         * modules/unictype/category-N-tests: Likewise.
32911         * modules/unictype/category-Nd-tests: Likewise.
32912         * modules/unictype/category-Nl-tests: Likewise.
32913         * modules/unictype/category-No-tests: Likewise.
32914         * modules/unictype/category-P-tests: Likewise.
32915         * modules/unictype/category-Pc-tests: Likewise.
32916         * modules/unictype/category-Pd-tests: Likewise.
32917         * modules/unictype/category-Pe-tests: Likewise.
32918         * modules/unictype/category-Pf-tests: Likewise.
32919         * modules/unictype/category-Pi-tests: Likewise.
32920         * modules/unictype/category-Po-tests: Likewise.
32921         * modules/unictype/category-Ps-tests: Likewise.
32922         * modules/unictype/category-S-tests: Likewise.
32923         * modules/unictype/category-Sc-tests: Likewise.
32924         * modules/unictype/category-Sk-tests: Likewise.
32925         * modules/unictype/category-Sm-tests: Likewise.
32926         * modules/unictype/category-So-tests: Likewise.
32927         * modules/unictype/category-Z-tests: Likewise.
32928         * modules/unictype/category-Zl-tests: Likewise.
32929         * modules/unictype/category-Zp-tests: Likewise.
32930         * modules/unictype/category-Zs-tests: Likewise.
32931         * modules/unictype/category-and-not-tests: Likewise.
32932         * modules/unictype/category-and-tests: Likewise.
32933         * modules/unictype/category-byname-tests: Likewise.
32934         * modules/unictype/category-name-tests: Likewise.
32935         * modules/unictype/category-none-tests: Likewise.
32936         * modules/unictype/category-of-tests: Likewise.
32937         * modules/unictype/category-or-tests: Likewise.
32938         * modules/unictype/category-test-withtable-tests: Likewise.
32939         * modules/unictype/combining-class-tests: Likewise.
32940         * modules/unictype/ctype-alnum-tests: Likewise.
32941         * modules/unictype/ctype-alpha-tests: Likewise.
32942         * modules/unictype/ctype-blank-tests: Likewise.
32943         * modules/unictype/ctype-cntrl-tests: Likewise.
32944         * modules/unictype/ctype-digit-tests: Likewise.
32945         * modules/unictype/ctype-graph-tests: Likewise.
32946         * modules/unictype/ctype-lower-tests: Likewise.
32947         * modules/unictype/ctype-print-tests: Likewise.
32948         * modules/unictype/ctype-punct-tests: Likewise.
32949         * modules/unictype/ctype-space-tests: Likewise.
32950         * modules/unictype/ctype-upper-tests: Likewise.
32951         * modules/unictype/ctype-xdigit-tests: Likewise.
32952         * modules/unictype/decimal-digit-tests: Likewise.
32953         * modules/unictype/digit-tests: Likewise.
32954         * modules/unictype/mirror-tests: Likewise.
32955         * modules/unictype/numeric-tests: Likewise.
32956         * modules/unictype/property-alphabetic-tests: Likewise.
32957         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32958         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32959         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32960         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32961         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32962         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32963         * modules/unictype/property-bidi-control-tests: Likewise.
32964         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32965         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32966         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32967         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32968         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32969         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32970         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32971         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32972         * modules/unictype/property-bidi-pdf-tests: Likewise.
32973         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32974         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32975         * modules/unictype/property-byname-tests: Likewise.
32976         * modules/unictype/property-combining-tests: Likewise.
32977         * modules/unictype/property-composite-tests: Likewise.
32978         * modules/unictype/property-currency-symbol-tests: Likewise.
32979         * modules/unictype/property-dash-tests: Likewise.
32980         * modules/unictype/property-decimal-digit-tests: Likewise.
32981         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32982         * modules/unictype/property-deprecated-tests: Likewise.
32983         * modules/unictype/property-diacritic-tests: Likewise.
32984         * modules/unictype/property-extender-tests: Likewise.
32985         * modules/unictype/property-format-control-tests: Likewise.
32986         * modules/unictype/property-grapheme-base-tests: Likewise.
32987         * modules/unictype/property-grapheme-extend-tests: Likewise.
32988         * modules/unictype/property-grapheme-link-tests: Likewise.
32989         * modules/unictype/property-hex-digit-tests: Likewise.
32990         * modules/unictype/property-hyphen-tests: Likewise.
32991         * modules/unictype/property-id-continue-tests: Likewise.
32992         * modules/unictype/property-id-start-tests: Likewise.
32993         * modules/unictype/property-ideographic-tests: Likewise.
32994         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32995         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32996         * modules/unictype/property-ignorable-control-tests: Likewise.
32997         * modules/unictype/property-iso-control-tests: Likewise.
32998         * modules/unictype/property-join-control-tests: Likewise.
32999         * modules/unictype/property-left-of-pair-tests: Likewise.
33000         * modules/unictype/property-line-separator-tests: Likewise.
33001         * modules/unictype/property-logical-order-exception-tests: Likewise.
33002         * modules/unictype/property-lowercase-tests: Likewise.
33003         * modules/unictype/property-math-tests: Likewise.
33004         * modules/unictype/property-non-break-tests: Likewise.
33005         * modules/unictype/property-not-a-character-tests: Likewise.
33006         * modules/unictype/property-numeric-tests: Likewise.
33007         * modules/unictype/property-other-alphabetic-tests: Likewise.
33008         * modules/unictype/property-other-default-ignorable-code-point-tests:
33009         Likewise.
33010         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33011         * modules/unictype/property-other-id-continue-tests: Likewise.
33012         * modules/unictype/property-other-id-start-tests: Likewise.
33013         * modules/unictype/property-other-lowercase-tests: Likewise.
33014         * modules/unictype/property-other-math-tests: Likewise.
33015         * modules/unictype/property-other-uppercase-tests: Likewise.
33016         * modules/unictype/property-paired-punctuation-tests: Likewise.
33017         * modules/unictype/property-paragraph-separator-tests: Likewise.
33018         * modules/unictype/property-pattern-syntax-tests: Likewise.
33019         * modules/unictype/property-pattern-white-space-tests: Likewise.
33020         * modules/unictype/property-private-use-tests: Likewise.
33021         * modules/unictype/property-punctuation-tests: Likewise.
33022         * modules/unictype/property-quotation-mark-tests: Likewise.
33023         * modules/unictype/property-radical-tests: Likewise.
33024         * modules/unictype/property-sentence-terminal-tests: Likewise.
33025         * modules/unictype/property-soft-dotted-tests: Likewise.
33026         * modules/unictype/property-space-tests: Likewise.
33027         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33028         * modules/unictype/property-test-tests: Likewise.
33029         * modules/unictype/property-titlecase-tests: Likewise.
33030         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33031         * modules/unictype/property-unified-ideograph-tests: Likewise.
33032         * modules/unictype/property-uppercase-tests: Likewise.
33033         * modules/unictype/property-variation-selector-tests: Likewise.
33034         * modules/unictype/property-white-space-tests: Likewise.
33035         * modules/unictype/property-xid-continue-tests: Likewise.
33036         * modules/unictype/property-xid-start-tests: Likewise.
33037         * modules/unictype/property-zero-width-tests: Likewise.
33038         * modules/unictype/scripts-tests: Likewise.
33039         * modules/unictype/syntax-c-ident-tests: Likewise.
33040         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33041         * modules/unictype/syntax-java-ident-tests: Likewise.
33042         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33043         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33044         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33045         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33046         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33047         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33048         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33049         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33050         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33051         * modules/uniname/uniname-tests: Likewise.
33052         * modules/uninorm/canonical-decomposition-tests: Likewise.
33053         * modules/uninorm/compat-decomposition-tests: Likewise.
33054         * modules/uninorm/composition-tests: Likewise.
33055         * modules/uninorm/decomposing-form-tests: Likewise.
33056         * modules/uninorm/decomposition-tests: Likewise.
33057         * modules/uninorm/filter-tests: Likewise.
33058         * modules/uninorm/nfc-tests: Likewise.
33059         * modules/uninorm/nfd-tests: Likewise.
33060         * modules/uninorm/nfkc-tests: Likewise.
33061         * modules/uninorm/nfkd-tests: Likewise.
33062         * modules/uninorm/u8-normcmp-tests: Likewise.
33063         * modules/uninorm/u8-normcoll-tests: Likewise.
33064         * modules/uninorm/u16-normcmp-tests: Likewise.
33065         * modules/uninorm/u16-normcoll-tests: Likewise.
33066         * modules/uninorm/u32-normcmp-tests: Likewise.
33067         * modules/uninorm/u32-normcoll-tests: Likewise.
33068         * modules/unistdio/u8-asnprintf-tests: Likewise.
33069         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33070         * modules/unistdio/u8-vasprintf-tests: Likewise.
33071         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33072         * modules/unistdio/u8-vsprintf-tests: Likewise.
33073         * modules/unistdio/u16-asnprintf-tests: Likewise.
33074         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33075         * modules/unistdio/u16-vasprintf-tests: Likewise.
33076         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33077         * modules/unistdio/u16-vsprintf-tests: Likewise.
33078         * modules/unistdio/u32-asnprintf-tests: Likewise.
33079         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33080         * modules/unistdio/u32-vasprintf-tests: Likewise.
33081         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33082         * modules/unistdio/u32-vsprintf-tests: Likewise.
33083         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33084         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33085         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33086         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33087         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33088         * modules/unistr/u8-check-tests: Likewise.
33089         * modules/unistr/u8-chr-tests: Likewise.
33090         * modules/unistr/u8-cmp-tests: Likewise.
33091         * modules/unistr/u8-cmp2-tests: Likewise.
33092         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33093         * modules/unistr/u8-cpy-tests: Likewise.
33094         * modules/unistr/u8-mblen-tests: Likewise.
33095         * modules/unistr/u8-mbsnlen-tests: Likewise.
33096         * modules/unistr/u8-mbtouc-tests: Likewise.
33097         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33098         * modules/unistr/u8-mbtoucr-tests: Likewise.
33099         * modules/unistr/u8-move-tests: Likewise.
33100         * modules/unistr/u8-next-tests: Likewise.
33101         * modules/unistr/u8-prev-tests: Likewise.
33102         * modules/unistr/u8-set-tests: Likewise.
33103         * modules/unistr/u8-stpcpy-tests: Likewise.
33104         * modules/unistr/u8-stpncpy-tests: Likewise.
33105         * modules/unistr/u8-strcat-tests: Likewise.
33106         * modules/unistr/u8-strcmp-tests: Likewise.
33107         * modules/unistr/u8-strcoll-tests: Likewise.
33108         * modules/unistr/u8-strcpy-tests: Likewise.
33109         * modules/unistr/u8-strdup-tests: Likewise.
33110         * modules/unistr/u8-strlen-tests: Likewise.
33111         * modules/unistr/u8-strmblen-tests: Likewise.
33112         * modules/unistr/u8-strmbtouc-tests: Likewise.
33113         * modules/unistr/u8-strncat-tests: Likewise.
33114         * modules/unistr/u8-strncmp-tests: Likewise.
33115         * modules/unistr/u8-strncpy-tests: Likewise.
33116         * modules/unistr/u8-strnlen-tests: Likewise.
33117         * modules/unistr/u8-to-u16-tests: Likewise.
33118         * modules/unistr/u8-to-u32-tests: Likewise.
33119         * modules/unistr/u8-uctomb-tests: Likewise.
33120         * modules/unistr/u16-check-tests: Likewise.
33121         * modules/unistr/u16-chr-tests: Likewise.
33122         * modules/unistr/u16-cmp-tests: Likewise.
33123         * modules/unistr/u16-cmp2-tests: Likewise.
33124         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33125         * modules/unistr/u16-cpy-tests: Likewise.
33126         * modules/unistr/u16-mblen-tests: Likewise.
33127         * modules/unistr/u16-mbsnlen-tests: Likewise.
33128         * modules/unistr/u16-mbtouc-tests: Likewise.
33129         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33130         * modules/unistr/u16-mbtoucr-tests: Likewise.
33131         * modules/unistr/u16-move-tests: Likewise.
33132         * modules/unistr/u16-next-tests: Likewise.
33133         * modules/unistr/u16-prev-tests: Likewise.
33134         * modules/unistr/u16-set-tests: Likewise.
33135         * modules/unistr/u16-stpcpy-tests: Likewise.
33136         * modules/unistr/u16-stpncpy-tests: Likewise.
33137         * modules/unistr/u16-strcat-tests: Likewise.
33138         * modules/unistr/u16-strcmp-tests: Likewise.
33139         * modules/unistr/u16-strcoll-tests: Likewise.
33140         * modules/unistr/u16-strcpy-tests: Likewise.
33141         * modules/unistr/u16-strdup-tests: Likewise.
33142         * modules/unistr/u16-strlen-tests: Likewise.
33143         * modules/unistr/u16-strmblen-tests: Likewise.
33144         * modules/unistr/u16-strmbtouc-tests: Likewise.
33145         * modules/unistr/u16-strncat-tests: Likewise.
33146         * modules/unistr/u16-strncmp-tests: Likewise.
33147         * modules/unistr/u16-strncpy-tests: Likewise.
33148         * modules/unistr/u16-strnlen-tests: Likewise.
33149         * modules/unistr/u16-to-u32-tests: Likewise.
33150         * modules/unistr/u16-to-u8-tests: Likewise.
33151         * modules/unistr/u16-uctomb-tests: Likewise.
33152         * modules/unistr/u32-check-tests: Likewise.
33153         * modules/unistr/u32-chr-tests: Likewise.
33154         * modules/unistr/u32-cmp-tests: Likewise.
33155         * modules/unistr/u32-cmp2-tests: Likewise.
33156         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33157         * modules/unistr/u32-cpy-tests: Likewise.
33158         * modules/unistr/u32-mblen-tests: Likewise.
33159         * modules/unistr/u32-mbsnlen-tests: Likewise.
33160         * modules/unistr/u32-mbtouc-tests: Likewise.
33161         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33162         * modules/unistr/u32-mbtoucr-tests: Likewise.
33163         * modules/unistr/u32-move-tests: Likewise.
33164         * modules/unistr/u32-next-tests: Likewise.
33165         * modules/unistr/u32-prev-tests: Likewise.
33166         * modules/unistr/u32-set-tests: Likewise.
33167         * modules/unistr/u32-stpcpy-tests: Likewise.
33168         * modules/unistr/u32-stpncpy-tests: Likewise.
33169         * modules/unistr/u32-strcat-tests: Likewise.
33170         * modules/unistr/u32-strcmp-tests: Likewise.
33171         * modules/unistr/u32-strcoll-tests: Likewise.
33172         * modules/unistr/u32-strcpy-tests: Likewise.
33173         * modules/unistr/u32-strdup-tests: Likewise.
33174         * modules/unistr/u32-strlen-tests: Likewise.
33175         * modules/unistr/u32-strmblen-tests: Likewise.
33176         * modules/unistr/u32-strmbtouc-tests: Likewise.
33177         * modules/unistr/u32-strncat-tests: Likewise.
33178         * modules/unistr/u32-strncmp-tests: Likewise.
33179         * modules/unistr/u32-strncpy-tests: Likewise.
33180         * modules/unistr/u32-strnlen-tests: Likewise.
33181         * modules/unistr/u32-to-u16-tests: Likewise.
33182         * modules/unistr/u32-to-u8-tests: Likewise.
33183         * modules/unistr/u32-uctomb-tests: Likewise.
33184         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33185         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33186         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33187         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33188         * modules/uniwidth/u8-strwidth-tests: Likewise.
33189         * modules/uniwidth/u8-width-tests: Likewise.
33190         * modules/uniwidth/u16-strwidth-tests: Likewise.
33191         * modules/uniwidth/u16-width-tests: Likewise.
33192         * modules/uniwidth/u32-strwidth-tests: Likewise.
33193         * modules/uniwidth/u32-width-tests: Likewise.
33194         * modules/uniwidth/width-tests: Likewise.
33195
33196 2010-05-18  Richard Jones  <rjones@redhat.com>
33197
33198         doc: users.txt: list hivex
33199         * users.txt: Add hivex.
33200
33201 2010-05-18  Richard Jones  <rjones@redhat.com>
33202
33203         doc: users.txt: list febootstrap
33204         * users.txt: Add febootstrap.
33205
33206 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33207
33208         bootstrap: fix an error when gnulib is not used as a git submodule
33209         * build-aux/bootstrap (gnulib_path): If its length is zero then
33210         assign "gnulib" to it.
33211         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33212
33213 2010-05-16  Bruno Haible  <bruno@clisp.org>
33214
33215         Avoid autoconf warnings about AM_ICONV.
33216         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33217         2.64.
33218
33219 2010-05-16  Bruno Haible  <bruno@clisp.org>
33220
33221         absolute-header: Make the macro usable in more situations.
33222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33223         from gl_ABSOLUTE_HEADER.
33224         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33225
33226 2010-05-16  James Youngman  <jay@gnu.org>
33227
33228         doc: update users.txt
33229         * users.txt: Add CSSC.
33230
33231 2010-05-16  Jim Meyering  <meyering@redhat.com>
33232
33233         init.sh: fix an error in the previous change; add more comments
33234         * tests/init.sh: Compare exit code in loop against 9, not 2.
33235         Patch by Bruno Haible.
33236         Make the two tests more similar by adding an empty "then" clause.
33237         Add comments.
33238
33239         init.sh: avoid unnecessary shell re-exec
33240         * tests/init.sh: Improve the re-exec-required check to first test the
33241         current shell.  If it passes the test, do not search for a shell that
33242         does pass, and do not re-exec.  This test is particularly contorted to
33243         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33244         of $(...) evokes a syntax error and causes immediate shell exit with
33245         status 2.  Bruno Haible reported that the re-exec made it impossible
33246         to single-step through any init.sh-using script.
33247
33248 2010-05-16  Bruno Haible  <bruno@clisp.org>
33249
33250         Fix collision between gnulib's and libintl's printf replacements.
33251         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33252         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33253         (printf): When using GNU C, map the __printf__ function to rpl_printf
33254         via __asm__. When not using GNU C, define rpl_printf instead of
33255         __printf__.
33256         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33257         commit.
33258         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33259         commit.
33260         * m4/asm-underscore.m4: New file.
33261         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33262         * modules/stdio (Files): Add m4/asm-underscore.m4.
33263         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33264         Reported by Ben Pfaff.
33265
33266 2010-05-16  Bruno Haible  <bruno@clisp.org>
33267
33268         verify: Avoid skipping the test on openSUSE 11.0.
33269         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33270
33271 2010-05-13  Bruno Haible  <bruno@clisp.org>
33272
33273         Avoid useless warnings from G++.
33274         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33275         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33277
33278 2010-05-11  Jim Meyering  <meyering@redhat.com>
33279
33280         maint.mk: tweak preceding change
33281         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33282         regexps tighter by anchoring at EOL, and make the new group "shy"
33283         for slightly decreased overhead.
33284
33285 2010-05-11  Eric Blake  <eblake@redhat.com>
33286
33287         maint.mk: gnulib doesn't guarantee NSIG
33288         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33289
33290 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33291
33292         test-pwrite.c: Remove unused variable declaration.
33293         * tests/test-pwrite.c (main): Remove read_buf declaration.
33294
33295         Remove useless test-pwrite.sh file.
33296         * tests/test-pwrite.sh: Delete file.
33297         * modules/pwrite-tests: Remove references.
33298         Reported by Bruno Haible.
33299
33300 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33301
33302         init.sh: fix a typo
33303         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33304
33305 2010-05-10  Jim Meyering  <meyering@redhat.com>
33306
33307         maint.mk: avoid using a temporary file in the always-defined-macros check
33308         * top/maint.mk (.re-defmac): Remove rule.
33309         (gl_trap_): Remove definition.
33310         (sc_prohibit_always-defined_macros): Rewrite not to create and
33311         depend on a temporary file.  Instead, depend on GNU grep's ability
33312         to read a list of regular expressions from stdin when given "-f -".
33313
33314 2010-05-09  Bruno Haible  <bruno@clisp.org>
33315
33316         Update to GNU gettext 0.18, part 1.
33317         * m4/gettext.m4: Update to GNU gettext 0.18.
33318         * m4/intl.m4: Likewise.
33319         * m4/po.m4: Likewise.
33320         * modules/gettext (Files): Add m4/fcntl-o.m4.
33321         (configure.ac): Require gettext infrastructure from version 0.18.
33322
33323 2010-05-09  Jim Meyering  <meyering@redhat.com>
33324
33325         init.sh: enable MALLOC_PERTURB_
33326         * tests/init.sh: Enable glibc's malloc-perturbing option.
33327
33328         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33329         With my recent change in init.sh from the two-line form:
33330             -#   : ${srcdir=.}
33331             -#   . "$srcdir/init.sh"; path_prepend_ .
33332             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33333         I noticed that using the one-line form would cause this test
33334         to fail with a false-positive, or to stop working altogether,
33335         depending on whether help-version changed or all the tests did.
33336         * top/maint.mk (_hv_regex): Remove this definition.
33337         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33338         (_hv_regex_strong): Use a stronger regex to check for conformance.
33339         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33340         Give a separate diagnostic for lack of conforming use.
33341
33342         maint.mk: prohibit definition of symbols defined by gnulib
33343         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33344         definition of symbols defined by gnulib.
33345
33346 2010-05-09  Bruno Haible  <bruno@clisp.org>
33347
33348         acl: Avoid test failure on Cygwin-hosted mingw.
33349         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33350
33351 2010-05-09  Bruno Haible  <bruno@clisp.org>
33352
33353         error: Use system's fcntl function.
33354         * lib/error.c (fcntl): Undefine.
33355
33356 2010-05-09  Jim Meyering  <meyering@redhat.com>
33357
33358         verify: adjust formatting to be more consistent
33359         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33360         argument-list '('s, and after one comma.
33361
33362 2010-05-09  Bruno Haible  <bruno@clisp.org>
33363
33364         error: More reliable output on mingw.
33365         * lib/error.c: Include <windows.h>.
33366         (is_open): New function.
33367         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33368         defined.
33369
33370 2010-05-09  Bruno Haible  <bruno@clisp.org>
33371
33372         vasnprintf: Fix syntax errors in libintl build on mingw.
33373         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33374         pad_ourselves and prec_ourselves after use.
33375
33376 2010-05-08  Bruno Haible  <bruno@clisp.org>
33377
33378         * lib/config.charset: Update comments for Cygwin 1.7.
33379         * lib/localcharset.c: Likewise.
33380
33381 2010-05-07  Jim Meyering  <meyering@redhat.com>
33382
33383         init.sh: improve comments
33384         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33385         . "${srcdir=.}/init.sh"; path_prepend_ .
33386         Add a note about path_prepend_ and the alternative of using
33387         TESTS_ENVIRONMENT.
33388
33389 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33390
33391         exclude: Unescape hashed patterns in wildcard mode.
33392         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33393         to the hash list.
33394         * tests/test-exclude8.sh: New test case.
33395         * modules/exclude-tests: Add new test.
33396
33397 2010-05-05  Eric Blake  <eblake@redhat.com>
33398
33399         verify: automate tests
33400         * modules/verify-tests: New module.
33401         * tests/test-verify.sh: New file.
33402         * tests/test-verify.c: Guard each negative test with a unique id.
33403         Also avoid warning about unused left hand of comma expressions.
33404
33405 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33406
33407         Further improvements to verify.h, suggested by Eric Blake.
33408         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33409         the GL_* versions, to avoid collision with OpenGL.
33410         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33411         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33412         than testing merely whether it's defined.
33413
33414         Modify verify.h to pacify gcc -Wredundant_decls.
33415         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33416         These use the prefix "GL_" since they're likely to be useful elsewhere.
33417         We may need to break them out into a different .h file.
33418         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33419         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33420         of verify_function__.
33421
33422 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33423
33424         Tests for module pwrite.
33425         * modules/pwrite-tests: New file.
33426         * tests/test-pwrite.sh: New file.
33427         * tests/test-pwrite.c: New file.
33428
33429         New module pwrite.
33430         * lib/unistd.in.h (pwrite): New declaration.
33431         * lib/pwrite.c: New file, from glibc with modifications.
33432         * m4/pwrite.m4: New file.
33433         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33434         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33435         REPLACE_PWRITE.
33436         * modules/pwrite: New file.
33437         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33438         REPLACE_PWRITE.
33439         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33440         * doc/posix-functions/pwrite.texi: Mention the new module.
33441
33442 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33443
33444         pread: Update documentation.
33445         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33446
33447 2010-05-04  Eric Blake  <eblake@redhat.com>
33448
33449         docs: update cygwin progress
33450         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33451         this bug.
33452         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33453         Added in cygwin 1.7.2.
33454         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33455         Likewise.
33456         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33457         Likewise.
33458         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33459         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33460         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33461         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33462         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33463         Mention nproc module.
33464         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33465         bug in cygwin 1.7.5 addition.
33466         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33467         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33468         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33469         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33470         1.7.5.
33471         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33472         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33473         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33474         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33475         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33476         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33477         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33478         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33479         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33480         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33481         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33482         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33483         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33484         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33485         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33486         Likewise.
33487         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33488         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33489         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33490         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33491         Likewise.
33492         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33493         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33494         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33495         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33496         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33497         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33498         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33499         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33500         Likewise.
33501         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33502         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33503         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33504         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33505         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33506         Likewise.
33507         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33508         Likewise.
33509         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33510         Likewise.
33511         * doc/glibc-functions/xdrrec_endofrecord.texi
33512         (xdrrec_endofrecord): Likewise.
33513         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33514         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33515         Likewise.
33516         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33517         Likewise.
33518
33519 2010-05-04  Jim Meyering  <meyering@redhat.com>
33520
33521         gendocs.sh: make its "-s FILE" option more useful
33522         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33523         $PACKAGE to reflect the probably-different basename of "FILE".
33524
33525 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33526
33527         bootstrap: don't ignore download_po_files failure
33528         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33529         failure.
33530
33531 2010-05-03  Jim Meyering  <meyering@redhat.com>
33532
33533         maint.mk: allow to pass options to gendocs.sh
33534         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33535         (gendocs_options_): New overridable variable.
33536
33537         gnu-web-doc-update: don't ignore configure or build failure
33538         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33539
33540         announce-gen: backslash-escape '@'s in --help output
33541         * build-aux/announce-gen: Fix syntax errors.
33542
33543         maint.mk, announce-gen: allow project-specific announcement mail headers
33544         * top/maint.mk (translation_project_): Define default.
33545         (announcement_Cc_, announcement_mail_headers_): Likewise.
33546         (announcement): Invoke announce-gen with new --mail-headers option.
33547         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33548
33549         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33550         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33551         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33552         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33553         line in the "err2" output file when running "make check" in verbose
33554         mode (i.e., with set -x enabled).
33555
33556 2010-05-03  Bruno Haible  <bruno@clisp.org>
33557
33558         wctob: Fix for weird platforms.
33559         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33560         argument value.
33561
33562 2010-05-03  Jim Meyering  <meyering@redhat.com>
33563
33564         maint.mk: prohibit unwarranted use of <strings.h>
33565         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33566         strings.h in a file that does not also use strcasecmp, strncasecmp,
33567         ffs or ffsll.
33568
33569         maint.mk: remove obsolete comments
33570         * top/maint.mk: Remove stale, commented-out rules.
33571
33572 2010-05-02  Bruno Haible  <bruno@clisp.org>
33573
33574         wcwidth: Declare also when it's aliased.
33575         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33576         macro.
33577
33578 2010-05-02  Bruno Haible  <bruno@clisp.org>
33579
33580         Fix regression from 2010-04-25.
33581         * gnulib-tool (func_modules_transitive_closure): Check the status of
33582         all modules, not only of the tests that are of the form foo-tests where
33583         foo is a module.
33584
33585 2010-05-02  Bruno Haible  <bruno@clisp.org>
33586
33587         wctob: Work around nasty Cygwin 1.7.2 bug.
33588         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33589         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33590
33591 2010-05-01  Bruno Haible  <bruno@clisp.org>
33592
33593         fpurge: Sharper test.
33594         * tests/test-fpurge.c (main): Add one more ftell check.
33595         * modules/fpurge-tests (Depends-on): Add ftell.
33596         Suggested by Eric Blake.
33597
33598 2010-05-01  Bruno Haible  <bruno@clisp.org>
33599
33600         ftello: Another test.
33601         * tests/test-ftello3.c: New file.
33602         * modules/ftello-tests (Files): Add it.
33603         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33604         MOSTLYCLEANFILES.
33605
33606         ftell: Another test.
33607         * tests/test-ftell3.c: New file.
33608         * modules/ftell-tests (Files): Add it.
33609         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33610         MOSTLYCLEANFILES.
33611
33612 2010-05-01  Bruno Haible  <bruno@clisp.org>
33613
33614         ftell, ftello: Work around Solaris bug.
33615         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33616         * lib/ftello.c: Include stdio-impl.h.
33617         (ftello): On Solaris, when _IOWRT is set, compute the result without
33618         looking at _IOREAD.
33619         * modules/ftello (Files): Add lib/stdio-impl.h.
33620         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33621         * doc/posix-functions/ftello.texi: Likewise.
33622         Reported by Eric Blake.
33623
33624 2010-05-01  Bruno Haible  <bruno@clisp.org>
33625
33626         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33627         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33628         the _IOWRT flag is also set.
33629
33630 2010-05-01  Bruno Haible  <bruno@clisp.org>
33631
33632         Fix doc about a HP-UX stdio bug.
33633         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33634         * doc/posix-functions/ftello.texi: Likewise.
33635
33636 2010-05-01  Bruno Haible  <bruno@clisp.org>
33637
33638         lseek test: Fix failure on Solaris.
33639         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33640         output.
33641
33642 2010-04-30  Jim Meyering  <meyering@redhat.com>
33643
33644         bootstrap: don't ignore failure to generate po*/Makevars
33645         * build-aux/bootstrap (with_gettext): Don't ignore failure
33646         to create po/Makevars or runtime-po/Makevars.
33647
33648 2010-04-29  Eric Blake  <eblake@redhat.com>
33649
33650         headers: relax license to LGPLv2+
33651         * modules/fcntl-h (License): Relax license.
33652         * modules/getopt-posix (License): Likewise.
33653         * modules/locale (License): Likewise.
33654         * modules/math (License): Likewise.
33655         * modules/pty (License): Likewise.
33656         * modules/sched (License): Likewise.
33657         * modules/search (License): Likewise.
33658         * modules/spawn (License): Likewise.
33659         * modules/stdarg (License): Likewise.
33660         * modules/sysexits (License): Likewise.
33661
33662 2010-04-29  Jim Meyering  <meyering@redhat.com>
33663
33664         inttypes: relax license to LGPLv2+
33665         * modules/inttypes (License): Relax license.
33666
33667 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33668
33669         * top/maint.mk (indent): Run twice to produce idempotent results.
33670
33671 2010-04-28  Bruno Haible  <bruno@clisp.org>
33672
33673         getdate: Generate getdate.c in the source directory.
33674         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33675         MOSTLYCLEANFILES.
33676         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33677
33678 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33679
33680         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33681         is not declared as a const *; avoid warnings in that case.
33682
33683 2010-04-28  Eric Blake  <eblake@redhat.com>
33684
33685         canonicalize-lgpl: avoid compiler warning
33686         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33687         declaration' / 'extraneous semicolon' warning with some compilers.
33688         Reported by Andreas Gruenbacher.
33689
33690 2010-04-28  Jim Meyering  <meyering@redhat.com>
33691
33692         init.sh: ensure a more reliable exit status when exiting via trap
33693         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33694         Inspired by patches from Dmitry V. Levin.
33695         Also trap on signal 3 (SIGQUIT).
33696
33697 2010-04-27  Bruno Haible  <bruno@clisp.org>
33698
33699         Update doc about utimes().
33700         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33701         'utimens' module.
33702         Reported by Andreas Gruenbacher <agruen@suse.de>.
33703
33704 2010-04-27  Eric Blake  <eblake@redhat.com>
33705
33706         full-read, full-write: relax license
33707         * modules/full-read (License): Drop to LGPLv2+.
33708         * modules/full-write (License): Likewise.
33709         * modules/safe-read (License): Likewise.
33710         * modules/safe-write (License): Likewise.
33711
33712         pthread: mention library for linking
33713         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33714
33715 2010-04-27  Jim Meyering  <meyering@redhat.com>
33716
33717         maint.mk: fix a bug introduced in last change
33718         * top/maint.mk (gl_assured_headers_): Now that all names are on
33719         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33720         is not anchored to end of word, it should be adequate.
33721
33722         maint.mk: avoid side-effect in latest syntax-check
33723         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33724         to run commands via $(shell...), and hence to incur cost only when
33725         the new rule is actually run.
33726
33727         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33728         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33729         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33730         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33731         (gl_assured_headers_, az_, AZ_): Define.
33732         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33733
33734 2010-04-26  Jim Meyering  <jim@meyering.net>
33735             Bruno Haible  <bruno@clisp.org>
33736
33737         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33738         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33739         Prompted by an exchange with Gilles Espinasse.
33740
33741 2010-04-26  Jim Meyering  <meyering@redhat.com>
33742
33743         git-version-gen: aesthetic tweak
33744         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33745         so that the command remains on a single line.
33746
33747 2010-04-26  Eric Blake  <eblake@redhat.com>
33748
33749         git-version-gen: allow use on EBCDIC hosts
33750         * build-aux/git-version-gen (dirty): Use literal rather than tying
33751         ourselves to ascii.
33752         Reported by Steve Goetze.
33753
33754 2010-04-25  Bruno Haible  <bruno@clisp.org>
33755
33756         netdb: Add support for GNULIB_POSIXCHECK.
33757         * lib/netdb.in.h: Include warn-on-use.h.
33758         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33759         functions are used when GNULIB_POSIXCHECK is defined and the
33760         getaddrinfo module is not in use.
33761         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33762         freeaddrinfo, gai_strerror, getnameinfo are declared.
33763         * modules/netdb (Depends-on): Add warn-on-use.
33764         (Makefile.am): Include warn-on-use.h in netdb.h.
33765
33766 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33767
33768         build: avoid "make check" failure without .git/ directory
33769         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33770         there is no .git/ directory.
33771
33772 2010-04-25  Bruno Haible  <bruno@clisp.org>
33773
33774         ptsname: Fix misuse of ttyname_r.
33775         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33776         of errno.
33777
33778 2010-04-25  Bruno Haible  <bruno@clisp.org>
33779
33780         ttyname_r: Make it work on Solaris 10.
33781         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33782         if the system function has the POSIX declaration. Test whether the
33783         function fails if the buffer is less than 128 bytes large.
33784         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33785         system's ttyname_r function. Provide a reasonably large buffer.
33786         * modules/ttyname_r (Depends-on): Add extensions.
33787         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33788
33789 2010-04-25  Bruno Haible  <bruno@clisp.org>
33790
33791         Use the 'extensions' module for some more functions on Solaris.
33792         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33793         module.
33794         * doc/posix-functions/ctime_r.texi: Likewise.
33795         * doc/posix-functions/getgrgid_r.texi: Likewise.
33796         * doc/posix-functions/getgrnam_r.texi: Likewise.
33797         * doc/posix-functions/getpwnam_r.texi: Likewise.
33798         * doc/posix-functions/getpwuid_r.texi: Likewise.
33799         * doc/posix-functions/readdir_r.texi: Likewise.
33800         * doc/posix-functions/sigwait.texi: Likewise.
33801         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33802         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33803
33804 2010-04-25  Bruno Haible  <bruno@clisp.org>
33805
33806         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33807         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33808         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33809         * lib/ttyname_r.c: Include <limits.h>.
33810         (ttyname_r): Define using the system's ttyname_r function, if it exists
33811         and not on Solaris.
33812         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33813         set.
33814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33815         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33816         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33817         Reported by Simon Josefsson.
33818
33819 2010-04-25  Bruno Haible  <bruno@clisp.org>
33820
33821         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33822         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33823         * doc/posix-functions/ctime_r.texi: Likewise.
33824         * doc/posix-functions/getgrgid_r.texi: Likewise.
33825         * doc/posix-functions/getgrnam_r.texi: Likewise.
33826         * doc/posix-functions/getlogin_r.texi: Likewise.
33827         * doc/posix-functions/getpwnam_r.texi: Likewise.
33828         * doc/posix-functions/getpwuid_r.texi: Likewise.
33829         * doc/posix-functions/readdir_r.texi: Likewise.
33830         * doc/posix-functions/sigwait.texi: Likewise.
33831         * doc/posix-functions/ttyname_r.texi: Likewise.
33832         Reported by Simon Josefsson.
33833
33834 2010-04-25  Bruno Haible  <bruno@clisp.org>
33835
33836         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33837         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33838         also to --create-testdir.
33839         (func_acceptable): Don't consider the status of *-tests modules here.
33840         (func_modules_transitive_closure): Consider it here, before including a
33841         test module.
33842         (func_import, func_create_testdir): Set inc_all_direct_tests,
33843         inc_all_indirect_tests.
33844         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33845         --create-testdir and --create-megatestdir.
33846
33847 2010-04-25  Bruno Haible  <bruno@clisp.org>
33848
33849         gnulib-tool: Add --without-*-tests options.
33850         * gnulib-tool (func_usage): Document the --without-*-tests options.
33851         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33852         excl_unportable_tests): New variables.
33853         Fail if they are specified with --import or --update.
33854         (func_acceptable): Respect the excl_*_tests variables.
33855         (func_import): Set the excl_*_tests variables to empty.
33856
33857 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33858             Bruno Haible  <bruno@clisp.org>
33859
33860         Work around a MacOS X 10.4 bug with openpty.
33861         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33862         * tests/test-openpty.c (main): Close the master side explicitly.
33863
33864 2010-04-25  Bruno Haible  <bruno@clisp.org>
33865
33866         strnlen: Fix a C++ test error on MacOS X and Solaris.
33867         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33868         the function is not declared.
33869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33870         Simon Josefsson.
33871
33872 2010-04-24  Bruno Haible  <bruno@clisp.org>
33873
33874         Avoid a gcc warning.
33875         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33876         of correct type for %08lx directive.
33877         Reported by Eric Blake.
33878
33879 2010-04-24  Bruno Haible  <bruno@clisp.org>
33880
33881         vasnprintf: Correct errno value in case of out-of-memory.
33882         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33883         or sprintf. Use the errno value from SNPRINTF or sprintf.
33884         Reported by Ian Beckwith <ianb@erislabs.net>.
33885
33886 2010-04-24  Bruno Haible  <bruno@clisp.org>
33887
33888         ansi-c++-opt: Find correct compiler when cross-compiling.
33889         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33890         AC_CHECK_PROGS.
33891         Reported by Simon Josefsson.
33892
33893 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33894
33895         vc-list-files: Add support for subversion
33896         * build-aux/vc-list-files: Use "svn list" to generate the list of
33897         files controlled by subversion.
33898
33899 2010-04-23  Jim Meyering  <meyering@redhat.com>
33900
33901         vc-list-files tests: convert to use init.sh
33902         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33903         path_prepend_.
33904         Use Exit, not exit.
33905         Use skip_ rather than open coding it.
33906         Remove trap set-up and compare definitions.
33907         * tests/test-vc-list-files-git.sh: Likewise.
33908         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33909
33910 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33911
33912         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33913         backup files.
33914
33915 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33916
33917         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33918
33919 2010-04-20  Eric Blake  <eblake@redhat.com>
33920
33921         tests: be robust to ignored SIGPIPE
33922         * tests/test-select-in.sh: Consume all output.
33923         * tests/test-lseek.sh: Check correct exit status, while avoiding
33924         EPIPE.
33925
33926 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33927             Bruno Haible  <bruno@clisp.org>
33928
33929         visibility: Don't use -fvisibility if it leads to a warning.
33930         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33931         yes, don't pretend that visibility works if it leads to a warning.
33932         Reported by Mike Gran <spk121@yahoo.com>.
33933
33934 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33935
33936         * build-aux/bootstrap: Use "git -h" for testing for supported options
33937         instead of "git --help".  The short-form option only shows a summary,
33938         and doesn't layout the full man page.  Grep for the full option name
33939         in the summary, too.
33940
33941 2010-04-19  Bruno Haible  <bruno@clisp.org>
33942
33943         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33944         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33945         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33946         mention of RELOCATABLE_STRIP.
33947         Reported by Sylvain Beucler <beuc@beuc.net>.
33948
33949 2010-04-19  Bruno Haible  <bruno@clisp.org>
33950
33951         * lib/diffseq.h: Fix typo in comment.
33952         Reported by Eric Blake.
33953
33954 2010-04-19  Bruno Haible  <bruno@clisp.org>
33955
33956         ioctl: Move autoconf macro to a .m4 file.
33957         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33958         * modules/ioctl (Files): Add it.
33959         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33960         Reported by Ian Beckwith <ianb@erislabs.net>.
33961
33962 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33963             Bruno Haible  <bruno@clisp.org>
33964
33965         diffseq: Accommodate use-case with abstract arrays.
33966         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33967         is not defined.
33968         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33969         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33970
33971 2010-04-18  Bruno Haible  <bruno@clisp.org>
33972
33973         * doc/posix-headers/stdbool.texi: More precise wording.
33974
33975 2010-04-17  Jim Meyering  <meyering@redhat.com>
33976
33977         maint.mk: use gnu-style indentation in an embedded perl script
33978         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33979         Rename variable: s/two/last_two_bytes/
33980
33981 2010-04-16  Eric Blake  <eblake@redhat.com>
33982
33983         test-stdbool: skip test that fails with Solaris CC
33984         * tests/test-stdbool.c (f): Skip test that causes compilation
33985         error under buggy C++ compiler.
33986         * lib/stdbool.in.h: Document the limitation.
33987         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33988
33989         setenv: allow compilation with C++
33990         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33991         register keyword.
33992
33993         stdint: allow test to pass with C++
33994         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33995
33996         getopt: allow compilation with C++
33997         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33998         struct.
33999         * lib/getopt.c (_getopt_internal_r): Use correct type.
34000         Reported by Dagobert Michelson, via Joel E. Denny.
34001
34002 2010-04-16  Bruno Haible  <bruno@clisp.org>
34003
34004         Override netdb.h always.
34005         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34006         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34007         Reported by Ludovic Courtès <ludo@gnu.org>.
34008
34009 2010-04-15  Bruno Haible  <bruno@clisp.org>
34010
34011         openpty: Fix mistake from 2010-03-21.
34012         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34013         Reported by Simon Josefsson.
34014
34015 2010-04-15  Eric Blake  <eblake@redhat.com>
34016
34017         test-forkpty: fix expected signature
34018         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34019         Reported by Simon Josefsson.
34020
34021 2010-04-15  Jim Meyering  <meyering@redhat.com>
34022
34023         maint.mk: texinfo_suffix_re_: correct the default regexp
34024         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34025
34026         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34027         make it configurable via texinfo_suffix_re_.
34028
34029 2010-04-14  Eric Blake  <eblake@redhat.com>
34030
34031         strtok_r: relax license to LGPLv2+
34032         * modules/strtok_r (License): Relax license.
34033         Reported by Matthias Bolte.
34034
34035 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34036
34037         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34038         version 1.4.4 by default instead of requiring the libgcrypt
34039         version used during build.  This makes it possible to use the
34040         application with older but still binary compatible libgcrypt
34041         versions.
34042
34043 2010-04-13  Eric Blake  <eblake@redhat.com>
34044
34045         getopt-gnu: match recent glibc fixes and posix ruling
34046         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34047         '+' handling, when requesting extensions.
34048         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34049         'W;' handling.
34050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34051         * doc/posix-functions/getopt.texi (getopt): Document this.
34052         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34053         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34054         Likewise.
34055
34056         getopt: merge bug fixes from glibc
34057         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34058         diagnostics.  Honor '+:' correctly.  Reject ';'.
34059
34060         getopt-posix: detect MacOS bug
34061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34062         optind when missing a required argument.
34063         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34064         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34065         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34066         Likewise.
34067
34068         getopt-posix: avoid spurious failure on Solaris
34069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34070         an indicator that setting optind=1 is sufficient for reset.
34071
34072         getopt-posix: avoid spurious failure on FreeBSD
34073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34074         in POSIX mode, since the m4 test uses it.
34075
34076         gnulib-tool: silence warning on BSD sh
34077         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34078
34079 2010-04-13  Jim Meyering  <meyering@redhat.com>
34080
34081         doc: users.txt: GNU patch now uses gnulib
34082         * users.txt: Add patch.
34083
34084 2010-04-12  Jim Meyering  <meyering@redhat.com>
34085
34086         maint.mk: generate more concise timing data for syntax-check rules
34087         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34088         " done" from each line that reports a syntax-check test duration.
34089
34090 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34091
34092         git-version-gen: use "git update-index..." rather than "git status"
34093         * build-aux/git-version-gen: Use git update-index --refresh, not
34094         "git status".  With some versions of git, "git status" would fail
34095         to update the index and result in an unwarranted "-dirty" suffix.
34096
34097 2010-04-11  Jim Meyering  <meyering@redhat.com>
34098
34099         openat: correct formatting (no semantic change)
34100         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34101         Suggested by Bruno Haible.
34102
34103 2010-04-11  Bruno Haible  <bruno@clisp.org>
34104
34105         Stricter declaration checking in testdirs.
34106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34107         If for_tests is true, augment AM_CPPFLAGS to define
34108         GNULIB_STRICT_CHECKING.
34109         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34110         GNULIB_STRICT_CHECKING is defined, verify that the function is
34111         declared.
34112
34113 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34114             Bruno Haible  <bruno@clisp.org>
34115
34116         libunistring: Improve configure output.
34117         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34118         Don't say "consider installing GNU libunistring" when checking again
34119         with libiconv.
34120
34121 2010-04-11  Bruno Haible  <bruno@clisp.org>
34122
34123         libunistring: Correct value of $LTLIBUNISTRING.
34124         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34125         correct the value of $LTLIBUNISTRING.
34126
34127 2010-04-11  Bruno Haible  <bruno@clisp.org>
34128
34129         havelib: Add static libraries to LIBS in the right order.
34130         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34131         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34132
34133 2010-04-11  Bruno Haible  <bruno@clisp.org>
34134
34135         libunistring: Detect libunistring also when it depends on libiconv.
34136         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34137         the second AC_LIB_HAVE_LINKFLAGS invocation.
34138
34139 2010-04-11  James Youngman  <jay@gnu.org>
34140
34141         close-stream: declare local scalars to be "const"
34142         * lib/close-stream.c (close_stream): Make boolean variables const
34143         to document the fact that we set but do not change them.
34144
34145 2010-04-11  Bruno Haible  <bruno@clisp.org>
34146
34147         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34148
34149 2010-04-11  Jim Meyering  <meyering@redhat.com>
34150
34151         maint.mk: don't include dist-check.mk
34152         * top/maint.mk: Remove bogus include directive.
34153
34154         maint.mk: improve empty-line-at-EOF check
34155         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34156         solution, rather than tail+Perl-based one.  The latter would read
34157         a few kilobytes from the end of each file, and did not handle empty
34158         files properly.
34159
34160         maint.mk: print the elapsed time for each syntax-check rule
34161         * top/maint.mk (sc_m_rules_): Save start time in a file.
34162         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34163         (local-check): Interpose the .z rules
34164
34165 2010-04-11  Jim Meyering  <meyering@redhat.com>
34166
34167         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34168         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34169         empty file with one that ends in an empty line.
34170
34171 2010-04-10  Bruno Haible  <bruno@clisp.org>
34172
34173         mkdir: Make it work on mingw64.
34174         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34175         * lib/mkdir.c: Update comment.
34176         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
34177
34178 2010-04-10  Bruno Haible  <bruno@clisp.org>
34179
34180         Don't override improved macro from newer autoconf.
34181         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34182         autoconf >= 2.62.
34183         Reported by Joel E. Denny <jdenny@clemson.edu>.
34184
34185 2010-04-10  Jim Meyering  <meyering@redhat.com>
34186
34187         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34188         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34189
34190         maint.mk: correct a diagnostic
34191         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34192         in diagnostic; now use $prohibit.
34193
34194 2010-04-10  Bruno Haible  <address@hidden>
34195
34196         fchownat: Fix a C++ test error on Solaris 8.
34197         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34198         the function does not exist.
34199
34200 2010-04-10  Bruno Haible  <bruno@clisp.org>
34201
34202         vasnprintf: Add more tests.
34203         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34204         (test_function): Test converting an invalid wide string.
34205
34206         vasnprintf: Correct handling of unconvertible wide string arguments.
34207         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34208         VASNPRINTF.
34209         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34210         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34211         smaller than the expected maximum need for the directive. Set errno to
34212         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34213         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34215         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34216         * modules/vasnprintf (Files): Add m4/printf.m4.
34217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34218
34219 2010-04-10  Bruno Haible  <bruno@clisp.org>
34220
34221         vasnprintf: Fix crash in %ls directive.
34222         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34223         string is passed as argument to %ls, with no precision and no width.
34224         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34225
34226 2010-04-10  Bruno Haible  <bruno@clisp.org>
34227
34228         vasnprintf: Fix multiple test failures on mingw.
34229         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34230         _snprintf, or snwprintf, not _snwprintf.
34231
34232 2010-04-10  Bruno Haible  <bruno@clisp.org>
34233
34234         write: Fix a C++ test error on mingw.
34235         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34236
34237 2010-04-10  Bruno Haible  <bruno@clisp.org>
34238
34239         vasnprintf test: Reduce code duplication.
34240         * tests/test-vasnprintf.c (test_function): New function, extracted from
34241         test_vasnprintf.
34242         (test_vasnprintf, test_asnprintf): Invoke it.
34243
34244 2010-04-10  Bruno Haible  <bruno@clisp.org>
34245
34246         strnlen: Fix warning in C++ mode on MacOS X.
34247         * lib/string.in.h (strnlen): Use the modern idiom.
34248         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34249         defining strnlen as a macro already in <config.h>.
34250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34251         REPLACE_STRNLEN.
34252         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34254
34255 2010-04-08  James Youngman  <jay@gnu.org>
34256
34257         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34258         the example.
34259
34260 2010-04-09  Jim Meyering  <meyering@redhat.com>
34261
34262         maint.mk: print better diagnostic when there is no $(_hv_file)
34263         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34264         announce that when $(_hv_file) (aka help-version) does not exist.
34265
34266         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34267         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34268         not try to interpret its random input bytes.  Jarno Rajahalme reported
34269         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34270         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34271         (mktempd_): Likewise, just in case.
34272
34273         ftruncate: add two years to projected module removal date: 2012
34274         * m4/ftruncate.m4: Adjust comments.
34275
34276         ftruncate: mark module as obsolete; even MinGW provides it, now
34277         * modules/ftruncate (Status): Obsolete.
34278         (Notice): Say that.
34279         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34281
34282 2010-04-08  Bruno Haible  <bruno@clisp.org>
34283
34284         Fix side effects from tests-related modules.
34285         * modules/dprintf-posix (Comment): New section.
34286         * modules/fprintf-posix (Comment): Likewise.
34287         * modules/obstack-printf-posix (Comment): Likewise.
34288         * modules/printf-posix (Comment): Likewise.
34289         * modules/snprintf-posix (Comment): Likewise.
34290         * modules/sprintf-posix (Comment): Likewise.
34291         * modules/vasnprintf-posix (Comment): Likewise.
34292         * modules/vasprintf-posix (Comment): Likewise.
34293         * modules/vdprintf-posix (Comment): Likewise.
34294         * modules/vfprintf-posix (Comment): Likewise.
34295         * modules/vprintf-posix (Comment): Likewise.
34296         * modules/vsnprintf-posix (Comment): Likewise.
34297         * modules/vsprintf-posix (Comment): Likewise.
34298         * modules/xprintf-posix (Comment): Likewise.
34299         * modules/xvasprintf-posix (Comment): Likewise.
34300         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34301         * modules/floorf-tests (Depends-on): Likewise.
34302         * modules/round-tests (Depends-on): Likewise.
34303         * modules/roundf-tests (Depends-on): Likewise.
34304         * modules/trunc-tests (Depends-on): Likewise.
34305         * modules/truncf-tests (Depends-on): Likewise.
34306         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34307         'fprintf-posix' module is not present.
34308         * tests/test-floorf2.c (check): Likewise.
34309         * tests/test-trunc2.c (check): Likewise.
34310         * tests/test-truncf2.c (check): Likewise.
34311         * tests/test-round2.c (equal): Likewise.
34312         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34313
34314 2010-04-07  Karl Berry  <karl@gnu.org>
34315
34316         * config/srclist.txt,
34317         * config/srclistvars.sh,
34318         * config/srclist-update: doc fixes.
34319
34320 2010-04-07  Jim Meyering  <meyering@redhat.com>
34321
34322         maint.mk: add a PATH crosschecking syntax-check rule
34323         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34324         Useful if you use a test like the one in help-version (coreutils,
34325         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34326         printed by prog --version.
34327
34328 2010-04-06  Bruno Haible  <bruno@clisp.org>
34329
34330         Fix link error on mingw.
34331         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34332         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34333
34334 2010-04-06  Bruno Haible  <bruno@clisp.org>
34335
34336         Assume rmdir exists.
34337         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34338
34339 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34340
34341         doc: update users.txt
34342         * users.txt: Add gcal.
34343
34344 2010-04-06  Jim Meyering  <meyering@redhat.com>
34345
34346         init.sh: simply unset TMPDIR rather than risking env -i
34347         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34348         although it probably works fine on all Unix-based systems, some
34349         systems (Cygwin?) cannot tolerate a totally cleared environment.
34350         Suggestion from Eric Blake.
34351
34352 2010-04-06  Jim Meyering  <meyering@redhat.com>
34353
34354         init.sh: portability fix: use env's POSIX-specified -i option not -u
34355         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34356         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34357
34358 2010-04-05  Bruno Haible  <bruno@clisp.org>
34359
34360         btowc: Work around Cygwin 1.7.2 bug.
34361         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34362         does not map NUL to 0.
34363         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34364
34365 2010-04-05  Bruno Haible  <bruno@clisp.org>
34366
34367         Make the multithread modules work on Cygwin 1.7.2.
34368         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34369         imported symbols can be declared weak, so that it returns "no" on
34370         Cygwin 1.7.2.
34371
34372 2010-04-05  Bruno Haible  <bruno@clisp.org>
34373
34374         Use the module 'strncat'.
34375         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34376
34377         Tests for module 'strncat'.
34378         * modules/strncat-tests: New file.
34379         * tests/test-strncat.c: New file.
34380
34381         New module 'strncat'.
34382         * lib/string.in.h (strncat): New declaration.
34383         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34384         * m4/strncat.m4: New file, based on m4/memchr.m4.
34385         * modules/strncat: New file.
34386         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34387         is declared.
34388         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34389         REPLACE_STRNCAT.
34390         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34391         REPLACE_STRNCAT.
34392         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34393         module.
34394         * tests/test-string-c++.cc: Check signature of strncat.
34395
34396 2010-04-05  Jim Meyering  <meyering@redhat.com>
34397
34398         xstrtoumax-tests: convert to use init.sh
34399         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34400         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34401         Use Exit, not exit.
34402         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34403
34404         xstrtoimax-tests: convert to use init.sh
34405         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34406         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34407         Use Exit, not exit.
34408         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34409
34410 2010-04-05  Bruno Haible  <bruno@clisp.org>
34411
34412         sys_socket: Avoid #define replacements in C++ mode.
34413         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34414         warning to the function if possible, rather than #defining the symbol
34415         to a dysfunctional alias.
34416
34417 2010-04-05  Bruno Haible  <bruno@clisp.org>
34418
34419         fseeko: Fix C++ test error on mingw.
34420         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34421         gl_FUNC_FSEEKO.
34422         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34423         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34424         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34425         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34426
34427 2010-04-05  Bruno Haible  <bruno@clisp.org>
34428
34429         duplocale: Improve test output.
34430         * tests/test-duplocale.c (main): Print reason for skipped test.
34431
34432 2010-04-05  Bruno Haible  <bruno@clisp.org>
34433
34434         Assume rmdir exists.
34435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34436         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34437
34438 2010-04-05  Bruno Haible  <bruno@clisp.org>
34439
34440         Fix link error on Solaris 8 with cc.
34441         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34442
34443 2010-04-05  Bruno Haible  <bruno@clisp.org>
34444
34445         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34446         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34447
34448 2010-04-05  Bruno Haible  <bruno@clisp.org>
34449
34450         vasprintf: Update documentation.
34451         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34452
34453 2010-04-05  Bruno Haible  <bruno@clisp.org>
34454
34455         ptsname: Improve test.
34456         * tests/test-ptsname.c (main): Also try the various master names of BSD
34457         systems.
34458
34459 2010-04-05  Bruno Haible  <bruno@clisp.org>
34460
34461         memchr: Avoid a possible C++ test error.
34462         * lib/string.in.h (memchr): Provide declaration if function is missing.
34463         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34464         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34466         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34467
34468 2010-04-05  Bruno Haible  <bruno@clisp.org>
34469
34470         strtok_r: Improve idiom.
34471         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34472         AC_LIBOBJ is used.
34473
34474 2010-04-05  Bruno Haible  <bruno@clisp.org>
34475
34476         strdup: Improve idiom.
34477         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34478         AC_LIBOBJ is used.
34479         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34480         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34481         when AC_LIBOBJ is used.
34482
34483 2010-04-05  Bruno Haible  <bruno@clisp.org>
34484
34485         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34486         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34487         don't set REPLACE_MBSINIT to 1.
34488         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34489         don't set REPLACE_MBRTOWC to 1.
34490         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34491         exist, don't set REPLACE_MBSRTOWCS to 1.
34492         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34493         exist, don't set REPLACE_MBSNRTOWCS to 1.
34494         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34495         don't set REPLACE_WCRTOMB to 1.
34496         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34497         exist, don't set REPLACE_WCSRTOMBS to 1.
34498         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34499         exist, don't set REPLACE_WCSNRTOMBS to 1.
34500
34501 2010-04-05  Bruno Haible  <bruno@clisp.org>
34502
34503         ldexpl: Improve idiom.
34504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34505         make sure to set HAVE_DECL_LDEXPL to 0.
34506
34507 2010-04-05  Jim Meyering  <meyering@redhat.com>
34508
34509         xstrtol-tests: convert to use init.sh
34510         * modules/xstrtol-tests (Files): Add tests/init.sh.
34511         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34512         Use Exit, not exit.
34513         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34514
34515         atexit-tests: convert to use init.sh
34516         * modules/atexit-tests (Files): Add tests/init.sh.
34517         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34518         Use Exit, not exit.
34519         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34520
34521         init.sh: fix typo
34522         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34523
34524         init.sh: make it easier for a test script to write to the tty, ...
34525         when using automake's parallel-tests mode.
34526         * tests/init.sh (stderr_fileno_): Define overridable variable.
34527         (warn_): New function, to use it.
34528         (fail_, skip_, framework_failure_): Use warn_.
34529
34530 2010-04-04  Bruno Haible  <bruno@clisp.org>
34531
34532         btowc: Avoid warning.
34533         * lib/btowc.c: Include <stdlib.h>.
34534         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34535
34536 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34537             Bruno Haible  <bruno@clisp.org>
34538
34539         wchar: Port to NetBSD 1.5.
34540         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34541         * lib/wctype.in.h (WEOF): Likewise.
34542
34543 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34544             Bruno Haible  <bruno@clisp.org>
34545
34546         Port extended stdio to NetBSD 1.5.
34547         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34548         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34549         older.
34550
34551 2010-04-04  Bruno Haible  <bruno@clisp.org>
34552
34553         string: Remove unused substitution.
34554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34555         HAVE_DECL_STRERROR.
34556         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34557
34558 2010-04-04  Bruno Haible  <bruno@clisp.org>
34559
34560         strtod: Avoid a possible C++ test error.
34561         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34562         set REPLACE_STRTOD.
34563
34564 2010-04-04  Bruno Haible  <bruno@clisp.org>
34565
34566         strerror: Update documentation.
34567         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34568
34569 2010-04-04  Bruno Haible  <bruno@clisp.org>
34570
34571         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34572         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34573         _GL_CXXALIAS_SYS_CAST.
34574
34575 2010-04-04  Bruno Haible  <bruno@clisp.org>
34576
34577         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34578         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34579         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34580         REPLACE_FREXPL to 1.
34581         * doc/posix-functions/frexpl.texi: Update documentation.
34582
34583 2010-04-04  Bruno Haible  <bruno@clisp.org>
34584
34585         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34586         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34587
34588 2010-04-04  Bruno Haible  <bruno@clisp.org>
34589
34590         Implement nanosleep for native Windows.
34591         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34592
34593 2010-04-04  Bruno Haible  <bruno@clisp.org>
34594
34595         math: Fix some C++ test errors on Solaris 8.
34596         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34597
34598 2010-04-04  Bruno Haible  <bruno@clisp.org>
34599
34600         math: Fix some C++ test errors on Cygwin.
34601         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34602         truncl): Provide declaration if the system does not have it.
34603         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34604         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34605         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34606         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34607         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34608         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34609         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34610         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34611         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34612         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34613         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34614         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34615         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34616         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34617         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34618         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34620         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34621         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34622         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34623         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34624         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34625
34626 2010-04-04  Bruno Haible  <bruno@clisp.org>
34627
34628         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34629         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34630         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34631         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34632         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34633         * m4/isinf.m4 (gl_ISINF): Likewise.
34634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34635
34636 2010-04-04  Bruno Haible  <bruno@clisp.org>
34637
34638         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34639         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34640
34641 2010-04-04  Bruno Haible  <bruno@clisp.org>
34642
34643         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34644         * modules/tmpfile (configure.ac): Update.
34645
34646         tmpfile: Fix C++ test error on mingw.
34647         * lib/stdio.in.h (tmpfile): New declaration.
34648         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34649         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34650         * modules/tmpfile (Depends-on): Add stdio.
34651         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34652         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34653         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34654         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34655         REPLACE_TMPFILE.
34656         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34657
34658 2010-04-04  Bruno Haible  <bruno@clisp.org>
34659
34660         ioctl: Fix C++ test error on mingw.
34661         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34662         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34663         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34664
34665 2010-04-03  Bruno Haible  <bruno@clisp.org>
34666
34667         wcwidth: Fix C++ test error on mingw.
34668         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34670         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34671
34672 2010-04-03  Bruno Haible  <bruno@clisp.org>
34673
34674         nanosleep: Fix C++ test error on mingw.
34675         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34676         * lib/time.in.h (nanosleep): Use modern idiom.
34677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34678         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34679         REPLACE_NANOSLEEP to 1.
34680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34681         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34682
34683 2010-04-03  Bruno Haible  <bruno@clisp.org>
34684
34685         strptime: Fix C++ test error on mingw.
34686         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34687         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34688         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34689         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34690         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34691         not REPLACE_STRPTIME.
34692         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34693         REPLACE_STRPTIME.
34694
34695 2010-04-03  Bruno Haible  <bruno@clisp.org>
34696
34697         timegm: Fix C++ test error on mingw.
34698         * lib/time.in.h (timegm): Use modern idiom.
34699         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34700         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34701         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34702         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34703
34704 2010-04-03  Bruno Haible  <bruno@clisp.org>
34705
34706         timegm: Assume declaration if function exists.
34707         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34708         if it exists. Don't clobber ac_cv_func_timegm.
34709
34710 2010-04-03  Bruno Haible  <bruno@clisp.org>
34711
34712         time_r: Fix C++ test error on mingw.
34713         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34714         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34715         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34716         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34717         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34718
34719 2010-04-03  Bruno Haible  <bruno@clisp.org>
34720
34721         time_r: Minor updates.
34722         * modules/time_r (Description): Mention the provided functions.
34723         * lib/time_r.c: Don't include <string.h>.
34724         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34725         * doc/posix-functions/localtime_r.texi: Likewise.
34726
34727 2010-04-03  Bruno Haible  <bruno@clisp.org>
34728
34729         time: Fix regression introduced on 2010-03-08.
34730         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34731         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34732
34733 2010-04-03  Jim Meyering  <meyering@redhat.com>
34734
34735         maint.mk: don't silently disable project-specific syntax-check rules
34736         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34737         that they need to convert their project-specific syntax-check rules
34738         to use the new _sc_search_regexp.
34739
34740 2010-04-03  Bruno Haible  <bruno@clisp.org>
34741
34742         fchdir: Fix regression introduced on 2010-03-08.
34743         * lib/unistd.in.h (fchdir): Fix declaration.
34744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34746         REPLACE_FCHDIR.
34747         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34748         REPLACE_FCHDIR.
34749
34750 2010-04-03  Bruno Haible  <bruno@clisp.org>
34751
34752         getpagesize: Fix C++ test error on mingw.
34753         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34754         system does not declare the function.
34755         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34756         declared.
34757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34758         HAVE_DECL_GETPAGESIZE.
34759         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34760
34761 2010-04-03  Bruno Haible  <bruno@clisp.org>
34762
34763         stdio: Make C++ tests work on mingw.
34764         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34765         does not declare the function.
34766
34767 2010-04-03  Bruno Haible  <bruno@clisp.org>
34768
34769         ftello: Fix C++ test error on mingw.
34770         * lib/stdio.in.h (ftello): Use modern idiom.
34771         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34772         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34773         is missing and that it needs to be replaced.
34774         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34776         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34777
34778 2010-04-03  Bruno Haible  <bruno@clisp.org>
34779
34780         fseeko: Fix C++ test error on mingw.
34781         * lib/stdio.in.h (fseeko): Use modern idiom.
34782         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34784         is missing and that it needs to be replaced.
34785         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34787         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34788
34789 2010-04-03  Bruno Haible  <bruno@clisp.org>
34790
34791         mkstemp: Fix C++ test error on mingw.
34792         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34794         function is missing and that it needs to be replaced.
34795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34796         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34797
34798 2010-04-03  Bruno Haible  <bruno@clisp.org>
34799
34800         stpncpy: Fix C++ test error on mingw.
34801         * lib/string.in.h (stpncpy): Use modern idiom.
34802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34803         function is missing and that it needs to be replaced.
34804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34805         REPLACE_STPNCPY.
34806         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34807
34808 2010-04-03  Bruno Haible  <bruno@clisp.org>
34809
34810         sys_stat: Fix C++ test error on mingw.
34811         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34812         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34813
34814 2010-04-03  Bruno Haible  <bruno@clisp.org>
34815
34816         pty: Update doc.
34817         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34818
34819 2010-04-03  Bruno Haible  <bruno@clisp.org>
34820
34821         unistd: Fix C++ test error on mingw.
34822         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34823
34824 2010-04-03  Bruno Haible  <bruno@clisp.org>
34825
34826         Update doc regarding mingw.
34827         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34828         * doc/glibc-functions/login_tty.texi: Likewise.
34829         * doc/glibc-functions/forkpty.texi: Likewise.
34830
34831 2010-04-03  Bruno Haible  <bruno@clisp.org>
34832
34833         stdlib: Avoid compilation failure of c-strtold on mingw.
34834         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34835
34836 2010-04-03  Bruno Haible  <bruno@clisp.org>
34837
34838         locale: Make C++ tests work on Cygwin and mingw.
34839         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34840         cannot provide the function.
34841         Reported by Simon Josefsson.
34842
34843 2010-04-03  Bruno Haible  <bruno@clisp.org>
34844
34845         localename: Port to MacOS X 10.6.
34846         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34847         memory layout of the locales in MacOS X 10.6 as well.
34848         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34849
34850 2010-04-02  Bruno Haible  <bruno@clisp.org>
34851
34852         gnulib-tool: Ensure that long-running tests are executed last.
34853         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34854         running tests after the one for the other tests.
34855
34856 2010-04-02  Bruno Haible  <bruno@clisp.org>
34857
34858         gnulib-tool: Ensure the tests in the main directory are executed first.
34859         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34860         start with the current directory.
34861
34862 2010-04-02  Bruno Haible  <bruno@clisp.org>
34863
34864         Tests for module 'havelib', moved here from GNU gettext.
34865         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34866         modifications.
34867         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34868         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34869         with modifications.
34870         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34871         modifications.
34872         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34873         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34874         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34875         with modifications.
34876         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34877         with modifications.
34878         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34879         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34880         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34881         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34882         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34883         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34884         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34885         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34886         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34887         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34888         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34889         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34890         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34891         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34892         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34893         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34894         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34895         with modifications.
34896         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34897         with modifications.
34898         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34899         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34900         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34901         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34902         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34903         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34904         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34905         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34906         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34907         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34908         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34909         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34910         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34911         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34912         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34913         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34914         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34915         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34916         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34917         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34918         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34919         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34920         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34921         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34922         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34923         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34924         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34925         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34926         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34927         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34928         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34929         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34930         * tests/havelib/rpathx/rpathx.c: New file, from
34931         gettext/autoconf-lib-link.
34932         * tests/havelib/rpathx/Makefile.am: New file, from
34933         gettext/autoconf-lib-link.
34934         * tests/havelib/rpathx/configure.ac: New file, from
34935         gettext/autoconf-lib-link with modifications.
34936         * tests/havelib/rpathy/rpathy.c: New file, from
34937         gettext/autoconf-lib-link.
34938         * tests/havelib/rpathy/Makefile.am: New file, from
34939         gettext/autoconf-lib-link.
34940         * tests/havelib/rpathy/configure.ac: New file, from
34941         gettext/autoconf-lib-link with modifications.
34942         * tests/havelib/rpathz/rpathz.c: New file, from
34943         gettext/autoconf-lib-link.
34944         * tests/havelib/rpathz/Makefile.am: New file, from
34945         gettext/autoconf-lib-link.
34946         * tests/havelib/rpathz/configure.ac: New file, from
34947         gettext/autoconf-lib-link with modifications.
34948         * tests/havelib/rpathlx/usex.c: New file, from
34949         gettext/autoconf-lib-link.
34950         * tests/havelib/rpathlx/Makefile.am: New file, from
34951         gettext/autoconf-lib-link.
34952         * tests/havelib/rpathlx/configure.ac: New file, from
34953         gettext/autoconf-lib-link with modifications.
34954         * tests/havelib/rpathly/usey.c: New file, from
34955         gettext/autoconf-lib-link.
34956         * tests/havelib/rpathly/Makefile.am: New file, from
34957         gettext/autoconf-lib-link.
34958         * tests/havelib/rpathly/configure.ac: New file, from
34959         gettext/autoconf-lib-link with modifications.
34960         * tests/havelib/rpathlz/usez.c: New file, from
34961         gettext/autoconf-lib-link.
34962         * tests/havelib/rpathlz/Makefile.am: New file, from
34963         gettext/autoconf-lib-link.
34964         * tests/havelib/rpathlz/configure.ac: New file, from
34965         gettext/autoconf-lib-link with modifications.
34966         * tests/havelib/rpathlyx/usey.c: New file, from
34967         gettext/autoconf-lib-link.
34968         * tests/havelib/rpathlyx/Makefile.am: New file, from
34969         gettext/autoconf-lib-link.
34970         * tests/havelib/rpathlyx/configure.ac: New file, from
34971         gettext/autoconf-lib-link with modifications.
34972         * tests/havelib/rpathlzyx/usez.c: New file, from
34973         gettext/autoconf-lib-link.
34974         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34975         gettext/autoconf-lib-link.
34976         * tests/havelib/rpathlzyx/configure.ac: New file, from
34977         gettext/autoconf-lib-link with modifications.
34978         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34979         with modifications.
34980
34981 2010-04-02  Bruno Haible  <bruno@clisp.org>
34982
34983         gnulib-tool: Create distributed built sources also for the tests.
34984         * gnulib-tool (func_create_testdir): Also generate distributed built
34985         sources in the tests directory.
34986
34987 2010-04-02  Bruno Haible  <bruno@clisp.org>
34988
34989         gnulib-tool: Obey user's environment variables.
34990         * gnulib-tool (func_create_testdir): When creating built sources,
34991         respect the environment variables for autoconf, automake, etc. given by
34992         the user.
34993
34994 2010-04-02  Bruno Haible  <bruno@clisp.org>
34995
34996         gnulib-tool: Provide the value of --m4-base to modules.
34997         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34998         of gl_m4_base.
34999
35000 2010-04-02  Eric Blake  <eblake@redhat.com>
35001
35002         maint.mk: fix some fallout
35003         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35004         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35005
35006 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35007
35008         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35009         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35010         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35011         (sc_cast_of_x_alloc_return_value): Likewise.
35012         (sc_cast_of_alloca_return_value): Likewise.
35013         (sc_space_tab): Likewise.
35014         (sc_prohibit_atoi_atof): Likewise.
35015         (sc_prohibit_magic_number_exit): Likewise.
35016         (sc_error_exit_success): Likewise.
35017         (sc_file_system): Likewise.
35018         (sc_prohibit_have_config_h): Likewise.
35019         (sc_require_config_h): Likewise.
35020         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35021         (sc_obsolete_symbols): Likewise.
35022         (sc_changelog): Likewise.
35023         (sc_program_name): Likewise.
35024         (sc_the_the): Likewise.
35025         (sc_trailing_blank): Likewise.
35026         (sc_two_space_separator_in_usage): Likewise.
35027         (sc_useless_cpp_parens): Likewise.
35028         (sc_GPL_version): Likewise.
35029         (sc_GFDL_version): Likewise.
35030         (sc_texinfo_acronym): Likewise.
35031         (sc_prohibit_cvs_keyword): Likewise.
35032         (sc_prohibit_stat_st_blocks): Likewise.
35033         (sc_prohibit_S_IS_definition): Likewise.
35034         (sc_redundant_const): Likewise.
35035         (sc_makefile_TAB_only_indentation): Likewise.
35036         (sc_m4_quote_check): Likewise.
35037         (sc_makefile_path_separator_check): Likewise.
35038         (sc_copyright_check): Likewise.
35039         (sc_Wundef_boolean): Likewise.
35040         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35041
35042         maint.mk: match 0 or more whitespace-before-function-call '('
35043         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35044         that have zero or two-and-more spaces between the function name
35045         and the open parenthesis.
35046         (sc_error_message_warn_fatal): Likewise.
35047         (sc_error_message_uppercase): Likewise.
35048         (sc_error_message_period): Likewise.
35049
35050 2010-03-31  Eric Blake  <eblake@redhat.com>
35051
35052         maint.mk: check for [ as well as test
35053         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35054         Based on a libvirt report by Matthias Bolte.
35055
35056         gnumakefile: don't squelch _version output
35057         * top/GNUmakefile (_version): Create one-shot dependency rather
35058         than using $(shell) when version must be regenerated.
35059         (_autoreconf): Run verbosely, by default.
35060
35061         sys_time: avoid compiler warnings
35062         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35063         unconditional, fixing regression from 2010-03-29.
35064         Reported by Simon Josefsson.
35065
35066 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35067
35068         maint.mk: s/_header_without_use/_sc_header_without_use/
35069         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35070         (sc_prohibit_assert_without_use): Use the new name.
35071         (sc_prohibit_close_stream_without_use): Likewise.
35072         (sc_prohibit_getopt_without_use): Likewise.
35073         (sc_prohibit_quotearg_without_use): Likewise.
35074         (sc_prohibit_quote_without_use): Likewise.
35075         (sc_prohibit_long_options_without_use): Likewise.
35076         (sc_prohibit_inttostr_without_use): Likewise.
35077         (sc_prohibit_ignore_value_without_use): Likewise.
35078         (sc_prohibit_error_without_use): Likewise.
35079         (sc_prohibit_xalloc_without_use): Likewise.
35080         (sc_prohibit_hash_without_use): Likewise.
35081         (sc_prohibit_hash_pjw_without_use): Likewise.
35082         (sc_prohibit_safe_read_without_use): Likewise.
35083         (sc_prohibit_argmatch_without_use): Likewise.
35084         (sc_prohibit_canonicalize_without_use): Likewise.
35085         (sc_prohibit_root_dev_ino_without_use): Likewise.
35086         (sc_prohibit_openat_without_use): Likewise.
35087         (sc_prohibit_c_ctype_without_use): Likewise.
35088         (sc_prohibit_signal_without_use): Likewise.
35089         (sc_prohibit_intprops_without_use): Likewise.
35090
35091 2010-03-30  Eric Blake  <eblake@redhat.com>
35092
35093         maint: improve module indicators
35094         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35095         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35096         columns, and avoid extra macro expansion.
35097
35098         fdopendir: work around FreeBSD bug
35099         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35100         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35101         * modules/dirent (Makefile.am): Substitute it.
35102         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35103         declaration.
35104         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35105         fix.
35106         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35107
35108 2010-03-29  Bruno Haible  <bruno@clisp.org>
35109
35110         Emit #pragma system_header after the inclusion guard, not before.
35111         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35112         guard that spans the entire file, not before. This enables an
35113         optimization in GCC's preprocessor.
35114         * lib/ctype.in.h: Likewise.
35115         * lib/dirent.in.h: Likewise.
35116         * lib/errno.in.h: Likewise.
35117         * lib/float.in.h: Likewise.
35118         * lib/getopt.in.h: Likewise.
35119         * lib/iconv.in.h: Likewise.
35120         * lib/langinfo.in.h: Likewise.
35121         * lib/locale.in.h: Likewise.
35122         * lib/math.in.h: Likewise.
35123         * lib/netdb.in.h: Likewise.
35124         * lib/netinet_in.in.h: Likewise.
35125         * lib/pty.in.h: Likewise.
35126         * lib/sched.in.h: Likewise.
35127         * lib/se-selinux.in.h: Likewise.
35128         * lib/search.in.h: Likewise.
35129         * lib/spawn.in.h: Likewise.
35130         * lib/stdarg.in.h: Likewise.
35131         * lib/stdint.in.h: Likewise.
35132         * lib/string.in.h: Likewise.
35133         * lib/strings.in.h: Likewise.
35134         * lib/sys_file.in.h: Likewise.
35135         * lib/sys_ioctl.in.h: Likewise.
35136         * lib/sys_time.in.h: Likewise.
35137         * lib/sys_times.in.h: Likewise.
35138         * lib/sys_utsname.in.h: Likewise.
35139         * lib/sys_wait.in.h: Likewise.
35140         * lib/sysexits.in.h: Likewise.
35141         * lib/wctype.in.h: Likewise.
35142
35143 2010-03-28  James Youngman  <jay@gnu.org>
35144
35145         save-cwd: don't leak a file descriptor when the caller execs.
35146         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35147         saved file descriptor.
35148         * modules/save-cwd (Depends-on): Depend on cloexec.
35149
35150 2010-03-29  Bruno Haible  <bruno@clisp.org>
35151
35152         Remove vestiges of fts-lgpl module.
35153         * lib/fts_.h: Assume GNULIB_FTS is 1.
35154         * lib/fts.c: Likewise.
35155         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35156
35157 2010-03-28  Bruno Haible  <bruno@clisp.org>
35158
35159         Fix definition of tests witness macro.
35160         * gnulib-tool (func_import): Fix definition of witness macro.
35161
35162 2010-03-28  Bruno Haible  <bruno@clisp.org>
35163
35164         Fix ioctl's protoype on glibc systems.
35165         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35166         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35167         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35168         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35169         signature. If not, arrange to replace the ioctl function.
35170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35171         REPLACE_IOCTL.
35172         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35173         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35174         Reported by Ludovic Courtès <ludo@gnu.org>.
35175
35176 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35177
35178         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35179         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35180         made it so grep -r --include=GLOB* ... did not work.
35181
35182 2010-03-26  Jim Meyering  <meyering@redhat.com>
35183             Eric Blake  <eblake@redhat.com>
35184
35185         maint.mk: prohibit use of test's -o and -a operators
35186         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35187
35188 2010-03-28  Bruno Haible  <bruno@clisp.org>
35189
35190         Remove unused GNULIB_XYZ macro definitions.
35191         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35192         invocation.
35193
35194 2010-03-28  Bruno Haible  <bruno@clisp.org>
35195
35196         Mark privileged tests modules.
35197         * modules/idpriv-drop-tests (Status): New section.
35198         * modules/idpriv-droptemp-tests (Status): New section.
35199
35200 2010-03-28  Bruno Haible  <bruno@clisp.org>
35201
35202         Split C++ tests into separate tests modules.
35203         * modules/dirent-c++-tests: New file, extracted from
35204         modules/dirent-tests.
35205         * modules/dirent-tests: Depend on it.
35206         * modules/fcntl-h-c++-tests: New file, extracted from
35207         modules/fcntl-h-tests.
35208         * modules/fcntl-h-tests: Depend on it.
35209         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35210         * modules/glob-tests: Depend on it.
35211         * modules/iconv-h-c++-tests: New file, extracted from
35212         modules/iconv-h-tests.
35213         * modules/iconv-h-tests: Depend on it.
35214         * modules/langinfo-c++-tests: New file, extracted from
35215         modules/langinfo-tests.
35216         * modules/langinfo-tests: Depend on it.
35217         * modules/locale-c++-tests: New file, extracted from
35218         modules/locale-tests.
35219         * modules/locale-tests: Depend on it.
35220         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35221         * modules/math-tests: Depend on it.
35222         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35223         * modules/pty-tests: Depend on it.
35224         * modules/search-c++-tests: New file, extracted from
35225         modules/search-tests.
35226         * modules/search-tests: Depend on it.
35227         * modules/signal-c++-tests: New file, extracted from
35228         modules/signal-tests.
35229         * modules/signal-tests: Depend on it.
35230         * modules/spawn-c++-tests: New file, extracted from
35231         modules/spawn-tests.
35232         * modules/spawn-tests: Depend on it.
35233         * modules/stdio-c++-tests: New file, extracted from
35234         modules/stdio-tests.
35235         * modules/stdio-tests: Depend on it.
35236         * modules/stdlib-c++-tests: New file, extracted from
35237         modules/stdlib-tests.
35238         * modules/stdlib-tests: Depend on it.
35239         * modules/string-c++-tests: New file, extracted from
35240         modules/string-tests.
35241         * modules/string-tests: Depend on it.
35242         * modules/sys_ioctl-c++-tests: New file, extracted from
35243         modules/sys_ioctl-tests.
35244         * modules/sys_ioctl-tests: Depend on it.
35245         * modules/sys_select-c++-tests: New file, extracted from
35246         modules/sys_select-tests.
35247         * modules/sys_select-tests: Depend on it.
35248         * modules/sys_socket-c++-tests: New file, extracted from
35249         modules/sys_socket-tests.
35250         * modules/sys_socket-tests: Depend on it.
35251         * modules/sys_stat-c++-tests: New file, extracted from
35252         modules/sys_stat-tests.
35253         * modules/sys_stat-tests: Depend on it.
35254         * modules/sys_time-c++-tests: New file, extracted from
35255         modules/sys_time-tests.
35256         * modules/sys_time-tests: Depend on it.
35257         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35258         * modules/time-tests: Depend on it.
35259         * modules/unistd-c++-tests: New file, extracted from
35260         modules/unistd-tests.
35261         * modules/unistd-tests: Depend on it.
35262         * modules/wchar-c++-tests: New file, extracted from
35263         modules/wchar-tests.
35264         * modules/wchar-tests: Depend on it.
35265         * modules/wctype-c++-tests: New file, extracted from
35266         modules/wctype-tests.
35267         * modules/wctype-tests: Depend on it.
35268         Reported by Simon Josefsson.
35269
35270 2010-03-28  Bruno Haible  <bruno@clisp.org>
35271
35272         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35273         * gnulib-tool (func_exists_module): New function, extracted from
35274         func_verify_module.
35275         (func_verify_module): Use it.
35276         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35277         'foo' only if 'foo' exists.
35278         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35279         module.
35280
35281 2010-03-28  Bruno Haible  <bruno@clisp.org>
35282
35283         gnulib-tool: Add support for special categories of tests.
35284         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35285         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35286         (func_usage): Document them.
35287         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35288         inc_unportable_tests, inc_all_tests): New variables.
35289         (func_acceptable): Consider these variables.
35290         (func_modules_transitive_closure): Make it work when the 'Status' field
35291         consists of multiple words.
35292         (func_import): Store and restore the values of inc_cxx_tests,
35293         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35294         inc_all_tests in gnulib-comp.m4.
35295         (func_create_testdir): Set inc_all_tests to true.
35296         * doc/gnulib.texi (Extra tests modules): New section.
35297         Suggested by Jim Meyering.
35298
35299 2010-03-28  Bruno Haible  <bruno@clisp.org>
35300
35301         ansi-c++-opt: Allow turning off the C++ build by default.
35302         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35303         gl_CXX_CHOICE_DEFAULT_NO is defined.
35304         Requested by Eric Blake.
35305
35306 2010-03-28  Bruno Haible  <bruno@clisp.org>
35307
35308         unistd: Avoid #define replacements in C++ mode.
35309         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35310         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35311         setsockopt, shutdown, select): In C++, attach a warning to the function
35312         if possible, rather than #defining the symbol to a dysfunctional alias.
35313         Reported by John W. Eaton <jwe@gnu.org>.
35314
35315 2010-03-28  Bruno Haible  <bruno@clisp.org>
35316
35317         Fix link errors on mingw.
35318         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35319         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35320         $(LIBSOCKET).
35321         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35322         $(LIBSOCKET).
35323
35324 2010-03-28  Bruno Haible  <bruno@clisp.org>
35325             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35326
35327         lib-ignore: Determine different options for different compilers.
35328         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35329         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35330         Add comments.
35331         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35332         * NEWS: Mention the change.
35333
35334 2010-03-27  Bruno Haible  <bruno@clisp.org>
35335
35336         Remove unused GNULIB_XYZ macro definitions.
35337         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35338         * modules/fseek (configure.ac): Likewise.
35339         * modules/ioctl (configure.ac): Likewise.
35340         * modules/open (configure.ac): Likewise.
35341         * modules/stdlib-safer (configure.ac): Likewise.
35342
35343 2010-03-27  Bruno Haible  <bruno@clisp.org>
35344
35345         Add a remark about certain modules.
35346         * modules/malloc (Comment): New section.
35347         * modules/realloc (Comment): Likewise.
35348         * modules/sigpipe (Comment): Likewise.
35349
35350 2010-03-27  Bruno Haible  <bruno@clisp.org>
35351
35352         Resolve conflict between the two kinds of module indicators.
35353         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35354         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35355         * modules/canonicalize (configure.ac): Invoke
35356         gl_MODULE_INDICATOR_FOR_TESTS.
35357         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35358         GNULIB_XYZ.
35359         * tests/test-dirent-c++.cc: Likewise.
35360         * tests/test-dirent-safer.c: Likewise.
35361         * tests/test-dup2.c: Likewise.
35362         * tests/test-fchdir.c: Likewise.
35363         * tests/test-fcntl-h-c++.cc: Likewise.
35364         * tests/test-getopt.c: Likewise.
35365         * tests/test-getopt.h: Likewise.
35366         * tests/test-langinfo-c++.cc: Likewise.
35367         * tests/test-locale-c++.cc: Likewise.
35368         * tests/test-math-c++.cc: Likewise.
35369         * tests/test-pty-c++.cc: Likewise.
35370         * tests/test-search-c++.cc: Likewise.
35371         * tests/test-signal-c++.cc: Likewise.
35372         * tests/test-spawn-c++.cc: Likewise.
35373         * tests/test-stdio-c++.cc: Likewise.
35374         * tests/test-stdlib-c++.cc: Likewise.
35375         * tests/test-string-c++.cc: Likewise.
35376         * tests/test-sys_ioctl-c++.cc: Likewise.
35377         * tests/test-sys_select-c++.cc: Likewise.
35378         * tests/test-sys_socket-c++.cc: Likewise.
35379         * tests/test-sys_stat-c++.cc: Likewise.
35380         * tests/test-sys_time-c++.cc: Likewise.
35381         * tests/test-time-c++.cc: Likewise.
35382         * tests/test-unistd-c++.cc: Likewise.
35383         * tests/test-wchar-c++.cc: Likewise.
35384         * tests/uninorm/test-u8-nfc.c: Likewise.
35385         * tests/uninorm/test-u8-nfd.c: Likewise.
35386         * tests/uninorm/test-u8-nfkc.c: Likewise.
35387         * tests/uninorm/test-u8-nfkd.c: Likewise.
35388         * tests/uninorm/test-u16-nfc.c: Likewise.
35389         * tests/uninorm/test-u16-nfd.c: Likewise.
35390         * tests/uninorm/test-u16-nfkc.c: Likewise.
35391         * tests/uninorm/test-u16-nfkd.c: Likewise.
35392         * tests/uninorm/test-u32-nfc.c: Likewise.
35393         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35394         * tests/uninorm/test-u32-nfd.c: Likewise.
35395         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35396         * tests/uninorm/test-u32-nfkc.c: Likewise.
35397         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35398         * tests/uninorm/test-u32-nfkd.c: Likewise.
35399         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35400         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35401
35402 2010-03-27  Bruno Haible  <bruno@clisp.org>
35403
35404         Distinguish two kinds of module indicators.
35405         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35406         gl_MODULE_INDICATOR.
35407         (gl_MODULE_INDICATOR): New macro.
35408         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35409         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35410         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35411         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35412         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35413         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35414         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35415         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35416         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35417         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35418         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35419         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35422         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35424         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35425         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35426         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35427         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35428         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35429         * modules/cloexec (configure.ac): Likewise.
35430         * modules/getopt-gnu (configure.ac): Likewise.
35431         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35432         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35433         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35434         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35435
35436 2010-03-27  Bruno Haible  <bruno@clisp.org>
35437
35438         New module description field 'Comment'.
35439         * gnulib-tool: New option --extract-comment.
35440         (func_usage): Document it.
35441         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35442         (func_get_comment): New function.
35443         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35444
35445 2010-03-27  Bruno Haible  <bruno@clisp.org>
35446
35447         Addendum to 2010-02-07 commit.
35448         * gnulib-tool (func_usage): Document --extract-applicability option.
35449
35450 2010-03-27  Bruno Haible  <bruno@clisp.org>
35451
35452         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35453         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35454         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35455         rather than link errors.
35456
35457 2010-03-27  Bruno Haible  <bruno@clisp.org>
35458
35459         Avoid side effects from tests-related modules on the compilation of lib.
35460         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35461         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35462         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35463         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35464         macro.
35465         (func_import): Define a witness macro. Assign it a value that depends
35466         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35467         tests-related modules.
35468         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35469         Reported by Jim Meyering.
35470
35471 2010-03-27  Bruno Haible  <bruno@clisp.org>
35472
35473         Factorize common .m4 code.
35474         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35475         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35476         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35477         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35479         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35480         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35481         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35482         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35483         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35484         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35485         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35486         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35488         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35489         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35490         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35491         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35493         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35494         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35495         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35496         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35497         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35498         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35499         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35500         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35501         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35503         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35504         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35505         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35506
35507 2010-03-27  Bruno Haible  <bruno@clisp.org>
35508
35509         Fix a compilation error on Cygwin with g++ >= 4.3.
35510         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35511         if it is undefined or if we alias it to chmod.
35512         (lstat): Don't warn about the use of this function if it is undefined
35513         or if we alias it to stat.
35514         Reported by Simon Josefsson.
35515
35516 2010-03-27  Bruno Haible  <bruno@clisp.org>
35517
35518         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35519         * modules/getlogin (configure.ac): Update.
35520
35521         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35522         * modules/getlogin_r (configure.ac): Update.
35523
35524         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35526         * modules/inet_ntop (configure.ac): Update.
35527
35528         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35529         * modules/inet_pton (configure.ac): Update.
35530
35531         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35532         * modules/mbslen (configure.ac): Update.
35533
35534         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35535         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35536         * modules/forkpty (configure.ac): Update.
35537         * modules/openpty (configure.ac): Update.
35538
35539 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35540
35541         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35542         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35543
35544 2010-03-25  Eric Blake  <eblake@redhat.com>
35545
35546         maint: use pragma consistently across replacement headers
35547         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35548         * lib/dirent.in.h (system_header): Likewise.
35549         * lib/errno.in.h (system_header): Likewise.
35550         * lib/float.in.h (system_header): Likewise.
35551         * lib/getopt.in.h (system_header): Likewise.
35552         * lib/iconv.in.h (system_header): Likewise.
35553         * lib/inttypes.in.h (system_header): Likewise.
35554         * lib/langinfo.in.h (system_header): Likewise.
35555         * lib/locale.in.h (system_header): Likewise.
35556         * lib/math.in.h (system_header): Likewise.
35557         * lib/netdb.in.h (system_header): Likewise.
35558         * lib/netinet_in.in.h (system_header): Likewise.
35559         * lib/pty.in.h (system_header): Likewise.
35560         * lib/sched.in.h (system_header): Likewise.
35561         * lib/se-selinux.in.h (system_header): Likewise.
35562         * lib/search.in.h (system_header): Likewise.
35563         * lib/spawn.in.h (system_header): Likewise.
35564         * lib/stdarg.in.h (system_header): Likewise.
35565         * lib/stdint.in.h (system_header): Likewise.
35566         * lib/string.in.h (system_header): Likewise.
35567         * lib/strings.in.h (system_header): Likewise.
35568         * lib/sys_file.in.h (system_header): Likewise.
35569         * lib/sys_ioctl.in.h (system_header): Likewise.
35570         * lib/sys_socket.in.h (system_header): Likewise.
35571         * lib/sys_times.in.h (system_header): Likewise.
35572         * lib/sys_utsname.in.h (system_header): Likewise.
35573         * lib/sys_wait.in.h (system_header): Likewise.
35574         * lib/sysexits.in.h (system_header): Likewise.
35575         * lib/unistd.in.h (system_header): Likewise.
35576         * lib/wctype.in.h (system_header): Likewise.
35577
35578         arpa/inet: fix mingw compilation warning
35579         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35580         Reported by Matthew Bolte.
35581
35582 2010-03-25  Bruno Haible  <bruno@clisp.org>
35583
35584         Avoid collision between gnulib wrapper and libintl wrapper.
35585         * lib/printf.c (printf): Don't define if a printf wrapper is already
35586         defined in intl/printf.c.
35587         Reported by Michel Boaventura <michel@michelboaventura.com>.
35588
35589 2010-03-25  Bruno Haible  <bruno@clisp.org>
35590
35591         Use ANSI C.
35592         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35593
35594 2010-03-25  Bruno Haible  <bruno@clisp.org>
35595
35596         Minor formatting changes.
35597         * lib/acosl.c: Insert space before function argument list.
35598         * lib/argz.c: Likewise.
35599         * lib/asinl.c: Likewise.
35600         * lib/expl.c: Likewise.
35601         * lib/gen-uni-tables.c: Likewise.
35602         * lib/gettext.h: Likewise.
35603         * lib/glthread/lock.h: Likewise.
35604         * lib/tanl.c: Likewise.
35605         * lib/uniname/uniname.c: Likewise.
35606         * tests/test-idpriv-drop.c: Likewise.
35607         * tests/test-idpriv-droptemp.c: Likewise.
35608         * tests/test-lock.c: Likewise.
35609         * tests/test-tls.c: Likewise.
35610         * lib/argp-help.c: Insert space before function-like macro argument
35611         list.
35612         * lib/memcmp.c: Likewise.
35613         * tests/test-base64.c: Likewise.
35614         * lib/localename.c: Insert space before sizeof's argument list.
35615         * lib/safe-alloc.h: Likewise.
35616         * lib/file-set.h: Insert space before macro argument list.
35617         * tests/test-argp.c: Likewise.
35618         * lib/argp-namefrob.h: Insert space before function parameter list.
35619         * lib/getaddrinfo.c: Likewise.
35620         * lib/netdb.in.h: Likewise.
35621         * lib/parse-duration.h: Likewise.
35622         * lib/parse-duration.c: Likewise.
35623         * lib/poll.c: Likewise.
35624         * lib/select.c: Likewise.
35625         * lib/trim.h: Likewise.
35626         * tests/test-usleep.c: Likewise.
35627         * lib/ldexpl.c: Insert space before function parameter list and before
35628         function argument list.
35629         * lib/logl.c: Likewise.
35630         * lib/sqrtl.c: Likewise.
35631         * lib/trim.c: Likewise.
35632         * lib/cosl.c: Use GNU style indentation. Insert space before function
35633         argument list.
35634         * lib/sinl.c: Likewise.
35635         * lib/tsearch.c: Insert space after 'for'.
35636         Reported by Jim Meyering.
35637
35638 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35639
35640         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35641         config header before grepping, as it's not present before
35642         autoreconf/configure are run.  Reported by Simon Josefsson.
35643
35644 2010-03-23  Bruno Haible  <bruno@clisp.org>
35645
35646         pt_chown: Make it work with automake < 1.11.
35647         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35648         Reported by Simon Josefsson.
35649
35650 2010-03-23  Bruno Haible  <bruno@clisp.org>
35651
35652         pt_chown: Don't depend on GPLed modules.
35653         * lib/pt_chown.c: Don't include idpriv.h.
35654         (main): Don't drop privileges.
35655         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35656         Reported by Simon Josefsson.
35657
35658 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35659
35660         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35661         suggestions from karl@freefriends.org (Karl Berry).
35662
35663 2010-03-22  Eric Blake  <eblake@redhat.com>
35664
35665         gethostname: further tweaks
35666         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35667         are overriding gethostname.
35668         Suggested by Bruno Haible.
35669
35670 2010-03-21  Bruno Haible  <bruno@clisp.org>
35671
35672         Fix comments.
35673         * lib/forkpty.c (rpl_forkpty): Fix comment.
35674         * lib/openpty.c (rpl_openpty): Likewise.
35675         Reported by Eric Blake.
35676
35677 2010-03-22  Eric Blake  <eblake@redhat.com>
35678
35679         gethostname: fix build on mingw
35680         * lib/unistd.in.h (includes): Work around fact that mingw
35681         <winsock2.h> re-includes <unistd.h>, by avoiding any
35682         redeclarations if we are being included by <winsock2.h>.
35683         Reported by Matthias Bolte.
35684
35685 2010-03-21  Bruno Haible  <bruno@clisp.org>
35686
35687         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35688         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35689         modifications.
35690         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35691         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35692         provide the replacement.
35693         * modules/forkpty (Depends-on): Add openpty, login_tty.
35694         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35695         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35696         * doc/glibc-functions/forkpty.texi: More supported platforms.
35697         * config/srclist.txt: Add forkpty.c (commented).
35698
35699 2010-03-21  Bruno Haible  <bruno@clisp.org>
35700
35701         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35702         (Makefile.am): Verify that PTY_LIB is defined.
35703
35704         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35705
35706 2010-03-21  Bruno Haible  <bruno@clisp.org>
35707
35708         Tests for module 'login_tty'.
35709         * modules/login_tty-tests: New file.
35710         * tests/test-login_tty.c: New file.
35711
35712         New module 'login_tty'.
35713         * lib/login_tty.c: New file.
35714         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35715         * modules/login_tty: New file.
35716         * doc/glibc-functions/login_tty.texi: Mention the new module.
35717
35718 2010-03-21  Bruno Haible  <bruno@clisp.org>
35719
35720         login_tty: Documentation.
35721         * doc/glibc-functions/login_tty.texi: New file.
35722         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35723
35724 2010-03-21  Bruno Haible  <bruno@clisp.org>
35725
35726         pty: Consistent macro naming.
35727         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35728         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35729         * modules/pty (configure.ac): Update.
35730
35731 2010-03-21  Bruno Haible  <bruno@clisp.org>
35732
35733         Tests for openpty: Make stricter.
35734         * tests/test-openpty.c (main): Add test of canonical processing and
35735         erase.
35736         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35737
35738         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35739         * lib/openpty.c (openpty): New replacement function.
35740         * lib/pty.in.h: Include <termios.h>.
35741         (openpty): Update declaration. Add comments.
35742         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35743         is not declared, arrange to provide the replacement. Check for _getpty
35744         and posix_openpt.
35745         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35746         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35747         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35748         * modules/pty-tests (test_pty_c___LDADD): New variable.
35749         * doc/glibc-functions/openpty.texi: More supported platforms.
35750
35751 2010-03-21  Bruno Haible  <bruno@clisp.org>
35752
35753         setenv: Tweaks.
35754         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35755         the test program.
35756         * doc/posix-functions/setenv.texi: Update platforms list.
35757
35758 2010-03-21  Bruno Haible  <bruno@clisp.org>
35759
35760         New module 'unlockpt'.
35761         * lib/unlockpt.c: New file, from glibc with modifications.
35762         * m4/unlockpt.m4: New file.
35763         * modules/unlockpt: New file.
35764         * lib/stdlib.in.h (unlockpt): New declaration.
35765         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35766         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35767         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35768         HAVE_UNLOCKPT.
35769         * doc/posix-functions/unlockpt.texi: Mention the new module.
35770         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35771         * config/srclist.txt: Add unlockpt.c (commented).
35772
35773 2010-03-21  Jim Meyering  <meyering@redhat.com>
35774
35775         maint.mk: prohibit inclusion of "intprops.h" without use
35776         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35777
35778 2010-03-21  Bruno Haible  <bruno@clisp.org>
35779
35780         New module 'grantpt'.
35781         * lib/grantpt.c: New file, from glibc with modifications.
35782         * m4/grantpt.m4: New file.
35783         * modules/grantpt: New file.
35784         * lib/stdlib.in.h (grantpt): New declaration.
35785         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35786         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35787         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35788         HAVE_GRANTPT.
35789         * doc/posix-functions/grantpt.texi: Mention the new module.
35790         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35791         * config/srclist.txt: Add grantpt.c (commented).
35792
35793 2010-03-21  Bruno Haible  <bruno@clisp.org>
35794
35795         New module 'pt_chown'.
35796         * lib/pt_chown.c: New file, from glibc with modifications.
35797         * lib/pty-private.h: New file, from glibc with modifications.
35798         * modules/pt_chown: New file.
35799         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35800
35801 2010-03-21  Bruno Haible  <bruno@clisp.org>
35802
35803         Tests for module 'ptsname'.
35804         * modules/ptsname-tests: New file.
35805         * tests/test-ptsname.c: New file.
35806
35807         New module 'ptsname'.
35808         * lib/ptsname.c: New file, from glibc with modifications.
35809         * m4/ptsname.m4: New file.
35810         * modules/ptsname: New file.
35811         * lib/stdlib.in.h (ptsname): New declaration.
35812         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35813         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35814         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35815         HAVE_PTSNAME.
35816         * doc/posix-functions/ptsname.texi: Mention the new module.
35817         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35818         * config/srclist.txt: Add ptsname.c (commented).
35819
35820 2010-03-21  Bruno Haible  <bruno@clisp.org>
35821
35822         Tests for module 'ttyname_r'.
35823         * modules/ttyname_r-tests: New file.
35824         * tests/test-ttyname_r.c: New file.
35825
35826         New module 'ttyname_r'.
35827         * lib/ttyname_r.c: New file.
35828         * m4/ttyname_r.m4: New file.
35829         * modules/ttyname_r: New file.
35830         * lib/unistd.in.h (ttyname_r): New declaration.
35831         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35832         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35833         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35834         HAVE_TTYNAME_R.
35835         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35836         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35837
35838 2010-03-20  Bruno Haible  <bruno@clisp.org>
35839
35840         signal: Undefine macro definitions in C++ mode.
35841         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35842         sigfillset): Undefine macro definitions from the system header in C++
35843         mode.
35844         Reported by John W. Eaton <jwe@gnu.org>.
35845
35846 2010-03-20  Bruno Haible  <bruno@clisp.org>
35847
35848         Ensure no #include statements inside extern "C" { ... }.
35849         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35850         contain #include statements.
35851         * lib/time.in.h: Likewise.
35852
35853 2010-03-20  Bruno Haible  <bruno@clisp.org>
35854
35855         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35856         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35857         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35858         Reported by John W. Eaton <jwe@gnu.org>.
35859
35860 2010-03-20  Bruno Haible  <bruno@clisp.org>
35861
35862         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35863         Reported by Jim Meyering.
35864
35865 2010-03-20  Bruno Haible  <bruno@clisp.org>
35866
35867         pipe: Set errno upon failure.
35868         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35869         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35870         errno value in error message.
35871
35872 2010-03-20  Bruno Haible  <bruno@clisp.org>
35873             Jim Meyering  <meyering@redhat.com>
35874
35875         lchown: Avoid "unused variable" warning.
35876         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35877
35878 2010-03-20  Bruno Haible  <bruno@clisp.org>
35879
35880         Work around unlink() bug on MacOS X 10.5.6.
35881         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35882         attempting to unlink a parent directory.
35883         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35884         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35885         activate for the replacement function.
35886         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35887
35888 2010-03-20  Bruno Haible  <bruno@clisp.org>
35889
35890         Fix link errors on Solaris 8.
35891         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35892         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35893
35894 2010-03-19  Jim Meyering  <meyering@redhat.com>
35895
35896         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35897         The _LIBC implementation of build_range_exp correctly honors the
35898         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35899         However, the non-_LIBC implementation would ignore that syntax-bit
35900         flag and return REG_ERANGE unconditionally.
35901         This change makes it honor that flag.
35902         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35903         Make two pointer parameters "const".
35904         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35905         (parse_bracket_exp): Update caller.
35906
35907         regex.m4: correct the reversed range endpoint ([b-a]) test
35908         * m4/regex.m4: When requiring that [b-a] evoke failure,
35909         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35910         test pass once again for x86-based systems.
35911
35912 2010-03-19  Bruno Haible  <bruno@clisp.org>
35913
35914         scandir: Fix link error on Solaris 8.
35915         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35916         macros.
35917
35918 2010-03-19  Bruno Haible  <bruno@clisp.org>
35919
35920         getusershell: Fix documentation.
35921         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35922         module.
35923         * doc/glibc-functions/setusershell.texi: Likewise.
35924
35925         getusershell: Provide declaration, missing on Solaris 9.
35926         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35927         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35928         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35929         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35931         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35932         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35933         HAVE_GETUSERSHELL.
35934         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35935
35936 2010-03-19  Bruno Haible  <bruno@clisp.org>
35937
35938         wctype: Provide iswblank function.
35939         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35940         exists and is fine.
35941         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35942         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35943         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35944         * doc/posix-functions/iswblank.texi: Update.
35945
35946 2010-03-19  Bruno Haible  <bruno@clisp.org>
35947
35948         Tests of module 'pty' in C++ mode.
35949         * modules/pty-tests: New file.
35950         * tests/test-pty-c++.cc: New file.
35951         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35952
35953 2010-03-19  Eric Blake  <eblake@redhat.com>
35954
35955         logb: fix documentation
35956         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35957         1.5 declaration bug.
35958
35959         forkpty, openpty: prefer glibc's const-safe prototype
35960         * lib/forkpty.c (rpl_forkpty): New file.
35961         * lib/openpty.c (rpl_openpty): Likewise.
35962         * modules/forkpty (Files): Distribute it.
35963         * modules/openpty (Files): Likewise.
35964         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35965         check...
35966         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35967         replacement for for non-const BSD signature.
35968         * modules/pty (Makefile.am): Substitute witnesses.
35969         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35970         * tests/test-forkpty.c: Update signature check.
35971         * tests/test-openpty.c: Likewise.
35972         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35973         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35974
35975         forkpty, openpty: split functions into new modules
35976         * modules/pty (Makefile.am): Substitute new witnesses.
35977         (Libraries): Move library detection...
35978         * modules/forkpty: ...into new module.
35979         * modules/openpty: Another new module.
35980         * modules/pty-tests: Rename and split...
35981         * modules/forkpty-tests: ...to this...
35982         * modules/openpty-tests: ...and this.
35983         * tests/test-pty.c: Rename and split...
35984         * tests/test-forkpty.c: ...to this...
35985         * tests/test-openpty.c: ...and this.
35986         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35987         (gl_PTY): Split library searching...
35988         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35989         (gl_FORKPTY, gl_OPENPTY): New macros.
35990         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35991         * NEWS: Mention the split.
35992         * MODULES.html.sh (Misc): Document the modules.
35993         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35994         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35995
35996         pty: improve replacement header
35997         * lib/pty.in.h: New file.
35998         * modules/pty (Files): Ship it.
35999         (Makefile.am): Always build replacement.
36000         * m4/pty.m4: Rename...
36001         * m4/pty_h.m4: ...to this.
36002         (gl_PTY): Modernize setting of witness macros; update check of
36003         forkpty to take proper advantage of cache.
36004         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36005
36006         getopt: avoid compiler warning
36007         * lib/getopt.c (attribute_hidden): Remove unused macro.
36008
36009 2010-03-18  Bruno Haible  <bruno@clisp.org>
36010
36011         Fix link errors on Solaris 8.
36012         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36013         * modules/search-tests (test_search_c___LDADD): Likewise.
36014         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36015         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36016         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36017         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36018         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36019         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36020         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36021
36022 2010-03-18  Bruno Haible  <bruno@clisp.org>
36023
36024         Fix bug introduced on 2010-03-14.
36025         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36026         (gl_SPAWN_H): Require it.
36027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36028         Reported by Simon Josefsson.
36029
36030 2010-03-18  Bruno Haible  <bruno@clisp.org>
36031
36032         Fix typo introduced on 2009-12-31.
36033         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36034         posix_spawn_file_actions_adddup2.
36035
36036 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36037         and Eric Blake  <eblake@redhat.com>
36038
36039         test-vc-list-files-git: make more robust
36040         * tests/test-vc-list-files-git.sh: Unset problematic environment
36041         variables.  Chain commands together.
36042
36043 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36044
36045         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36046         `AC_CHECK_DECL' invocation.
36047
36048 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36049
36050         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36051         appears before executable statements. Suggested by Petr Sumbera
36052         <Petr.Sumbera@Sun.COM>.
36053
36054 2010-03-14  Bruno Haible  <bruno@clisp.org>
36055
36056         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36057         portability problems. Instead use a simpler test.
36058         (main): Check that invalid arguments are rejected only on Linux.
36059
36060 2010-03-14  Bruno Haible  <bruno@clisp.org>
36061
36062         Fix bug introduced on 2009-12-31.
36063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36064         gl_PREREQ_SYS_H_WINSOCK2 always.
36065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36066         SYS_SOCKET_H variable.
36067         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36068         Update comments.
36069         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36070         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36071         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36073         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36074
36075 2010-03-14  Bruno Haible  <bruno@clisp.org>
36076
36077         Fix values returned by sinl, cosl.
36078         * lib/trigl.h: Add specification comments.
36079         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36080         that combines the values from the precomputed table with the values of
36081         the Chebyshev polynomials.
36082
36083 2010-03-14  Bruno Haible  <bruno@clisp.org>
36084
36085         Fix compilation error when modules 'posix_spawn[p]' are not used.
36086         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36087         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36088
36089 2010-03-14  Bruno Haible  <bruno@clisp.org>
36090
36091         Fix compilation error on mingw when module 'time_r' is not used.
36092         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36093         is 1.
36094         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36095         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36096         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36097         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36098
36099 2010-03-14  Bruno Haible  <bruno@clisp.org>
36100
36101         Fix compilation error with Sun C.
36102         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36103         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36104         instead of GCC specific ULONG_LONG_MAX.
36105         * lib/xstrtoll.c: Likewise.
36106         * lib/xstrtoull.c: Likewise.
36107
36108 2010-03-13  Bruno Haible  <bruno@clisp.org>
36109
36110         Allow the user to disable C++ code and tests.
36111         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36112         (gl_PROG_ANSI_CXX): Require it.
36113
36114 2010-03-13  Bruno Haible  <bruno@clisp.org>
36115
36116         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36117         cases.
36118
36119 2010-03-13  Bruno Haible  <bruno@clisp.org>
36120
36121         Test that gnulib does not break the standard C++ headers.
36122         * tests/test-locale-c++2.cc: New file.
36123         * modules/locale-tests (Files): Add it.
36124         (Makefile.am): Compile it for test-locale-c++.
36125         * tests/test-math-c++2.cc: New file.
36126         * modules/math-tests (Files): Add it.
36127         (Makefile.am): Compile it for test-math-c++.
36128         * tests/test-signal-c++2.cc: New file.
36129         * modules/signal-tests (Files): Add it.
36130         (Makefile.am): Compile it for test-signal-c++.
36131         * tests/test-stdio-c++2.cc: New file.
36132         * modules/stdio-tests (Files): Add it.
36133         (Makefile.am): Compile it for test-stdio-c++.
36134         * tests/test-stdlib-c++2.cc: New file.
36135         * modules/stdlib-tests (Files): Add it.
36136         (Makefile.am): Compile it for test-stdlib-c++.
36137         * tests/test-string-c++2.cc: New file.
36138         * modules/string-tests (Files): Add it.
36139         (Makefile.am): Compile it for test-string-c++.
36140         * tests/test-time-c++2.cc: New file.
36141         * modules/time-tests (Files): Add it.
36142         (Makefile.am): Compile it for test-time-c++.
36143         Reported by John W. Eaton <jwe@gnu.org>.
36144
36145 2010-03-13  Bruno Haible  <bruno@clisp.org>
36146
36147         * gnulib-tool (func_usage): Clarify which options are available for
36148         --create-testdir and --create-megatestdir.
36149
36150 2010-03-13  Bruno Haible  <bruno@clisp.org>
36151
36152         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36153         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36154         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36155         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36156         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36157         when appropriate.
36158         Reported by Jim Meyering.
36159
36160 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36161
36162         * gnulib-tool (func_import): Explain origin of code.
36163
36164 2010-03-12  Bruno Haible  <bruno@clisp.org>
36165
36166         Fix problem with automake's definition of CXXLINK.
36167         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36168         Reported by Simon Josefsson and Ludovic Courtès.
36169
36170 2010-03-12  Bruno Haible  <bruno@clisp.org>
36171
36172         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36173         stable releases.
36174
36175 2010-03-11  Bruno Haible  <bruno@clisp.org>
36176
36177         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36178         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36179         whether the system provides one variant or multiple variants of the
36180         function.
36181         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36182         C++ compilers.
36183         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36184         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36185         Reported by Jim Meyering.
36186
36187 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36188
36189         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36190
36191 2010-03-08  Bruno Haible  <bruno@clisp.org>
36192
36193         gnulib-tool: Add support for --libtool in --create-testdir.
36194         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36195         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36196
36197 2010-03-08  Eric Blake  <eblake@redhat.com>
36198
36199         gnulib-tool.texi: mention possibility of git submodule
36200         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36201         submodules.
36202         * doc/.gitignore: Ignore another generated file.
36203
36204 2010-03-08  Karl Berry  <karl@gnu.org>
36205
36206         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36207         of committing gnulib files while skipping others.
36208
36209 2010-03-07  Bruno Haible  <bruno@clisp.org>
36210
36211         Tests of module 'wctype' in C++ mode.
36212         * tests/test-wctype-c++.cc: New file.
36213         * modules/wctype-tests (Files): Add it and tests/signature.h.
36214         (Depends-on): Add ansi-c++-opt.
36215         (Makefile.am): Arrange to compile and run test-wctype-c++.
36216
36217         Tests of module 'wchar' in C++ mode.
36218         * tests/test-wchar-c++.cc: New file.
36219         * modules/wchar-tests (Files): Add it and tests/signature.h.
36220         (Depends-on): Add ansi-c++-opt.
36221         (Makefile.am): Arrange to compile and run test-wchar-c++.
36222         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36223         gl_MODULE_INDICATOR.
36224
36225         Tests of module 'unistd' in C++ mode.
36226         * tests/test-unistd-c++.cc: New file.
36227         * modules/unistd-tests (Files): Add it and tests/signature.h.
36228         (Depends-on): Add ansi-c++-opt.
36229         (Makefile.am): Arrange to compile and run test-unistd-c++.
36230         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36231         gl_MODULE_INDICATOR.
36232
36233         Tests of module 'time' in C++ mode.
36234         * tests/test-time-c++.cc: New file.
36235         * modules/time-tests (Files): Add it and tests/signature.h.
36236         (Depends-on): Add ansi-c++-opt.
36237         (Makefile.am): Arrange to compile and run test-time-c++.
36238         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36239
36240         Tests of module 'sys_time' in C++ mode.
36241         * tests/test-sys_time-c++.cc: New file.
36242         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36243         (Depends-on): Add ansi-c++-opt.
36244         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36245         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36246         gl_MODULE_INDICATOR.
36247
36248         Tests of module 'sys_stat' in C++ mode.
36249         * tests/test-sys_stat-c++.cc: New file.
36250         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36251         (Depends-on): Add ansi-c++-opt.
36252         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36253         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36254         gl_MODULE_INDICATOR.
36255
36256         Tests of module 'sys_socket' in C++ mode.
36257         * tests/test-sys_socket-c++.cc: New file.
36258         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36259         (Depends-on): Add ansi-c++-opt.
36260         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36261         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36262         gl_MODULE_INDICATOR.
36263
36264         Tests of module 'sys_select' in C++ mode.
36265         * tests/test-sys_select-c++.cc: New file.
36266         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36267         (Depends-on): Add ansi-c++-opt.
36268         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36269         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36270         gl_MODULE_INDICATOR.
36271
36272         Tests of module 'sys_ioctl' in C++ mode.
36273         * tests/test-sys_ioctl-c++.cc: New file.
36274         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36275         (Depends-on): Add ansi-c++-opt.
36276         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36278         gl_MODULE_INDICATOR.
36279
36280         Tests of module 'string' in C++ mode.
36281         * tests/test-string-c++.cc: New file.
36282         * modules/string-tests (Files): Add it and tests/signature.h.
36283         (Depends-on): Add ansi-c++-opt.
36284         (Makefile.am): Arrange to compile and run test-string-c++.
36285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36286         gl_MODULE_INDICATOR.
36287
36288         Tests of module 'stdlib' in C++ mode.
36289         * tests/test-stdlib-c++.cc: New file.
36290         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36291         (Depends-on): Add ansi-c++-opt.
36292         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36293         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36294         gl_MODULE_INDICATOR.
36295
36296         Tests of module 'stdio' in C++ mode.
36297         * tests/test-stdio-c++.cc: New file.
36298         * modules/stdio-tests (Files): Add it and tests/signature.h.
36299         (Depends-on): Add ansi-c++-opt.
36300         (Makefile.am): Arrange to compile and run test-stdio-c++.
36301         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36302         gl_MODULE_INDICATOR.
36303
36304         Tests of module 'spawn' in C++ mode.
36305         * tests/test-spawn-c++.cc: New file.
36306         * modules/spawn-tests (Files): Add it and tests/signature.h.
36307         (Depends-on): Add ansi-c++-opt.
36308         (Makefile.am): Arrange to compile and run test-spawn-c++.
36309         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36310         gl_MODULE_INDICATOR.
36311
36312         Tests of module 'signal' in C++ mode.
36313         * tests/test-signal-c++.cc: New file.
36314         * modules/signal-tests (Files): Add it and tests/signature.h.
36315         (Depends-on): Add ansi-c++-opt.
36316         (Makefile.am): Arrange to compile and run test-signal-c++.
36317         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36318         gl_MODULE_INDICATOR.
36319
36320         Tests of module 'search' in C++ mode.
36321         * tests/test-search-c++.cc: New file.
36322         * modules/search-tests (Files): Add it and tests/signature.h.
36323         (Depends-on): Add ansi-c++-opt.
36324         (Makefile.am): Arrange to compile and run test-search-c++.
36325         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36326         gl_MODULE_INDICATOR.
36327
36328         Tests of module 'math' in C++ mode.
36329         * tests/test-math-c++.cc: New file.
36330         * modules/math-tests (Files): Add it and tests/signature.h.
36331         (Depends-on): Add ansi-c++-opt.
36332         (Makefile.am): Arrange to compile and run test-math-c++.
36333         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36334
36335         Tests of module 'locale' in C++ mode.
36336         * tests/test-locale-c++.cc: New file.
36337         * modules/locale-tests (Files): Add it and tests/signature.h.
36338         (Depends-on): Add ansi-c++-opt.
36339         (Makefile.am): Arrange to compile and run test-locale-c++.
36340         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36341         gl_MODULE_INDICATOR.
36342
36343         Tests of module 'langinfo' in C++ mode.
36344         * tests/test-langinfo-c++.cc: New file.
36345         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36346         (Depends-on): Add ansi-c++-opt.
36347         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36348         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36349         gl_MODULE_INDICATOR.
36350
36351         Tests of module 'iconv-h' in C++ mode.
36352         * tests/test-iconv-h-c++.cc: New file.
36353         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36354         (Depends-on): Add ansi-c++-opt.
36355         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36356
36357         Tests of module 'glob' in C++ mode.
36358         * tests/test-glob-c++.cc: New file.
36359         * modules/glob-tests (Files): Add it.
36360         (Depends-on): Add ansi-c++-opt.
36361         (Makefile.am): Arrange to compile and run test-glob-c++.
36362
36363         Tests of module 'fcntl-h' in C++ mode.
36364         * tests/test-fcntl-h-c++.cc: New file.
36365         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36366         (Depends-on): Add ansi-c++-opt.
36367         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36368         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36369         gl_MODULE_INDICATOR.
36370
36371         Tests of module 'dirent' in C++ mode.
36372         * tests/test-dirent-c++.cc: New file.
36373         * modules/dirent-tests (Files): Add it and tests/signature.h.
36374         (Depends-on): Add ansi-c++-opt.
36375         (Makefile.am): Arrange to compile and run test-dirent-c++.
36376         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36377         gl_MODULE_INDICATOR.
36378
36379         New module 'ansi-c++-opt'.
36380         * modules/ansi-c++-opt: New file.
36381         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36382
36383         Document C++ namespace mode.
36384         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36385
36386         wctype: Avoid #define replacements in C++ mode.
36387         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36388         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36389         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36390         In C++, define a namespaced alias symbol.
36391         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36392         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36393         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36394         rule.
36395
36396         wchar: Avoid #define replacements in C++ mode.
36397         * lib/wchar.in.h: Include c++defs.h.
36398         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36399         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36400         symbol.
36401         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36402         * modules/wchar (Depends-on): Add c++defs.
36403         (Makefile.am): Update wchar.h rule.
36404
36405         unistd: Avoid #define replacements in C++ mode.
36406         * lib/unistd.in.h: Include c++defs.h.
36407         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36408         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36409         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36410         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36411         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36412         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36413         symbol.
36414         (environ): Update.
36415         * modules/unistd (Depends-on): Add c++defs.
36416         (Makefile.am): Update unistd.h rule.
36417
36418         time: Avoid #define replacements in C++ mode.
36419         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36420         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36421         define a namespaced alias symbol.
36422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36423         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36424         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36425         * modules/time (Depends-on): Add c++defs, warn-on-use.
36426         (Makefile.am): Update time.h rule.
36427         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36428         * modules/nanosleep (configure.ac): Likewise.
36429         * modules/strptime (configure.ac): Likewise.
36430         * modules/timegm (configure.ac): Likewise.
36431
36432         sys_time: Avoid #define replacements in C++ mode.
36433         * lib/sys_time.in.h: Include c++defs.h.
36434         (gettimeofday): In C++, define a namespaced alias symbol.
36435         * modules/sys_time (Depends-on): Add c++defs.
36436         (Makefile.am): Update sys/time.h rule.
36437
36438         sys_stat: Avoid #define replacements in C++ mode.
36439         * lib/sys_stat.in.h: Include c++defs.h.
36440         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36441         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36442         namespaced alias symbol.
36443         In C++, define a namespaced alias symbol.
36444         * modules/sys_stat (Depends-on): Add c++defs.
36445         (Makefile.am): Update sys/stat.h rule.
36446
36447         sys_socket: Avoid #define replacements in C++ mode.
36448         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36449         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36450         definitions also when the system has a <sys/socket.h>.
36451         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36452         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36453         In C++, define a namespaced alias symbol.
36454         * modules/sys_socket (Depends-on): Add c++defs.
36455         (Makefile.am): Update sys/socket.h rule.
36456
36457         sys_select: Avoid #define replacements in C++ mode.
36458         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36459         definitions also when the system has a <sys/select.h>.
36460         (select): In C++, define a namespaced alias symbol.
36461         * modules/sys_select (Depends-on): Add c++defs.
36462         (Makefile.am): Update sys/select.h rule.
36463
36464         sys_ioctl: Avoid #define replacements in C++ mode.
36465         * lib/sys_ioctl.in.h: Include c++defs.h.
36466         (ioctl): In C++, define a namespaced alias symbol.
36467         * modules/sys_ioctl (Depends-on): Add c++defs.
36468         (Makefile.am): Update sys/ioctl.h rule.
36469
36470         string: Avoid #define replacements in C++ mode.
36471         * lib/string.in.h: Include c++defs.h.
36472         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36473         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36474         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36475         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36476         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36477         * modules/string (Depends-on): Add c++defs.
36478         (Makefile.am): Update string.h rule.
36479
36480         stdlib: Avoid #define replacements in C++ mode.
36481         * lib/stdlib.in.h: Include c++defs.h.
36482         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36483         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36484         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36485         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36486         symbol.
36487         * modules/stdlib (Depends-on): Add c++defs.
36488         (Makefile.am): Update stdlib.h rule.
36489
36490         stdio: Avoid #define replacements in C++ mode.
36491         * lib/stdio.in.h: Include c++defs.h.
36492         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36493         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36494         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36495         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36496         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36497         namespaced alias symbol.
36498         * modules/stdio (Depends-on): Add c++defs.
36499         (Makefile.am): Update stdio.h rule.
36500
36501         spawn: Avoid #define replacements in C++ mode.
36502         * lib/spawn.in.h: Include c++defs.h.
36503         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36504         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36505         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36506         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36507         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36508         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36509         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36510         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36511         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36512         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36513         In C++, define a namespaced alias symbol.
36514         * modules/spawn (Depends-on): Add c++defs.
36515         (Makefile.am): Update spawn.h rule.
36516
36517         signal: Avoid #define replacements in C++ mode.
36518         * lib/signal.in.h: Include c++defs.h.
36519         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36520         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36521         namespaced alias symbol.
36522         * modules/signal (Depends-on): Add c++defs.
36523         (Makefile.am): Update signal.h rule.
36524
36525         search: Avoid #define replacements in C++ mode.
36526         * lib/search.in.h: Include c++defs.h.
36527         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36528         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36529         symbol.
36530         * modules/search (Depends-on): Add c++defs.
36531         (Makefile.am): Update search.h rule.
36532
36533         math: Avoid #define replacements in C++ mode.
36534         * lib/math.in.h: Include c++defs.h.
36535         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36536         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36537         trunc, truncl): In C++, define a namespaced alias symbol.
36538         * modules/math (Depends-on): Add c++defs.
36539         (Makefile.am): Update math.h rule.
36540
36541         locale: Avoid #define replacements in C++ mode.
36542         * lib/locale.in.h: Include c++defs.h.
36543         (duplocale): In C++, define a namespaced alias symbol.
36544         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36545         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36546         * modules/locale (Depends-on): Add c++defs.
36547         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36548
36549         langinfo: Avoid #define replacements in C++ mode.
36550         * lib/langinfo.in.h: Include c++defs.h.
36551         (nl_langinfo): In C++, define a namespaced alias symbol.
36552         * modules/langinfo (Depends-on): Add c++defs.
36553         (Makefile.am): Update langinfo.h rule.
36554
36555         iconv-h: Avoid #define replacements in C++ mode.
36556         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36557         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36558         symbol.
36559         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36560         whenever iconv is present.
36561         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36562         (Makefile.am): Update iconv.h rule.
36563
36564         glob: Avoid #define replacements in C++ mode.
36565         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36566         (_gl_glob_errfunc_fn): New type.
36567         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36568         symbol.
36569         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36570         (Makefile.am): Update glob.h rule.
36571
36572         fcntl-h: Avoid #define replacements in C++ mode.
36573         * lib/fcntl.in.h: Include c++defs.h.
36574         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36575         * modules/fcntl-h (Depends-on): Add c++defs.
36576         (Makefile.am): Update fcntl.h rule.
36577
36578         dirent: Avoid #define replacements in C++ mode.
36579         * lib/dirent.in.h: Include c++defs.h.
36580         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36581         namespaced alias symbol.
36582         (dirfd): Update declaration.
36583         * modules/dirent (Depends-on): Add c++defs.
36584         (Makefile.am): Update dirent.h rule.
36585
36586         ctype: Make it usable in C++ code.
36587         * lib/ctype.in.h: Include c++defs.h.
36588         (isblank): Declare as extern "C".
36589         * modules/ctype (Depends-on): Add c++defs.
36590         (Makefile.am): Update ctype.h rule.
36591
36592         New module 'c++defs'.
36593         * modules/c++defs: New file.
36594         * build-aux/c++defs.h: New file.
36595         Reported by John W. Eaton <jwe@gnu.org>.
36596
36597 2010-03-07  Bruno Haible  <bruno@clisp.org>
36598
36599         logb: Provide missing declaration for Cygwin.
36600         * lib/math.in.h (logb): New declaration.
36601         * m4/logb.m4: New file.
36602         * modules/logb (Files): Add m4/logb.m4.
36603         (Depends-on): Add math.
36604         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36605         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36607         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36608         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36609
36610 2010-03-07  Bruno Haible  <bruno@clisp.org>
36611
36612         Fix test-cond link error.
36613         * tests/test-cond.c: Include <stdio.h>.
36614
36615 2010-03-07  Bruno Haible  <bruno@clisp.org>
36616
36617         Fix test-dirent-safer link error.
36618         * modules/dirent-safer-tests (Makefile.am): Define
36619         test_dirent_safer_LDADD.
36620
36621 2010-03-07  Bruno Haible  <bruno@clisp.org>
36622
36623         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36624         among default module list.
36625
36626 2010-03-07  Bruno Haible  <bruno@clisp.org>
36627
36628         Fix link error on platforms with GNU libiconv.
36629         * modules/unistr/u8-strcoll-tests (Makefile): Define
36630         test_u8_strcoll_LDADD.
36631         * modules/unistr/u16-strcoll-tests (Makefile): Define
36632         test_u16_strcoll_LDADD.
36633         * modules/unistr/u32-strcoll-tests (Makefile): Define
36634         test_u32_strcoll_LDADD.
36635
36636 2010-03-07  Bruno Haible  <bruno@clisp.org>
36637
36638         Use POSIX declarations for socket functions.
36639         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36640         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36641         rpl_sendto): Change declaration to match POSIX.
36642         * lib/connect.c (rpl_connect): Likewise.
36643         * lib/accept.c (rpl_accept): Likewise.
36644         * lib/bind.c (rpl_bind): Likewise.
36645         * lib/getpeername.c (rpl_getpeername): Likewise.
36646         * lib/getsockname.c (rpl_getsockname): Likewise.
36647         * lib/recv.c (rpl_recv): Likewise.
36648         * lib/send.c (rpl_send): Likewise.
36649         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36650         * lib/sendto.c (rpl_sendto): Likewise.
36651
36652 2010-03-06  Bruno Haible  <bruno@clisp.org>
36653
36654         Clarify access, euidaccess, faccessat.
36655         * doc/posix-functions/faccessat.texi: Mention security problem under
36656         "Other problems", not "Portability problems".
36657         * doc/posix-functions/access.texi: Likewise. Mention a related security
36658         problem.
36659         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36660         * lib/euidaccess.c: Add comments about platforms.
36661         * lib/unistd.in.h (access, euidaccess): Add warnings.
36662
36663 2010-03-07  Bruno Haible  <bruno@clisp.org>
36664
36665         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36666         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36667         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36668         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36669         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36670         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36671         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36672         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36673         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36674         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36675         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36676         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36677         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36678         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36679         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36680         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36681         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36682         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36683         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36684         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36685         Likewise.
36686         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36687         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36688         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36689         Likewise.
36690         * tests/test-spawn.c (main): Make it work when
36691         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36692
36693 2010-03-07  Bruno Haible  <bruno@clisp.org>
36694
36695         Fix incorrect Makefile.am generation in German locale.
36696         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36697         Execute sed command with character range in C locale.
36698
36699 2010-03-06  Bruno Haible  <bruno@clisp.org>
36700
36701         Tests for module 'iconv-h'.
36702         * modules/iconv-h-tests: New file.
36703         * tests/test-iconv-h.c: New file.
36704
36705         New module 'iconv-h'.
36706         * modules/iconv-h: New file.
36707         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36708         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36709         (configure.ac): Remove gl_ICONV_H.
36710         (Makefile.am): Remove rule for iconv.h.
36711
36712 2010-03-06  Bruno Haible  <bruno@clisp.org>
36713
36714         More consistent naming of *.m4 files.
36715         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36716         * modules/wctype (Files): Update.
36717
36718         More consistent naming of *.m4 files.
36719         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36720         * modules/wchar (Files): Update.
36721
36722 2010-03-06  Jim Meyering  <meyering@redhat.com>
36723
36724         euidaccess: relax license to LGPLv2+
36725         * modules/euidaccess (License): Relax to LGPLv2+.
36726
36727 2010-03-06  Bruno Haible  <bruno@clisp.org>
36728
36729         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36730         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36731         (Makefile.am): Augment lib_SOURCES instead.
36732
36733 2010-03-04  Jim Meyering  <meyering@redhat.com>
36734
36735         utime: remove obsolete module
36736         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36737         unnecessary for years, and has been marked as obsolete for 10 months.
36738         * modules/utime: Remove file.
36739         * lib/utime.c: Remove file.
36740         * m4/utime.m4: Remove file.
36741         * m4/utimes-null.m4: Remove file.
36742         * doc/posix-functions/utime.texi (utime): Remove reference to
36743         the module.  Move the sole "fixed by gnulib" item into the
36744         "problems not fixed by Gnulib" list.
36745         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36746
36747 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36748
36749         * modules/exit (License): Relax license to LGPLv2+.
36750         (Status): Mark as obsolete.
36751         * NEWS: Mention deprecated 'exit' module.
36752         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36753         of now obsolete 'exit'.
36754
36755 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36756
36757         fts-lgpl: remove unused module
36758         * modules/fts-lgpl: Remove.
36759         * MODULES.html.sh (func_all_modules): Adjust.
36760         * check-module (find_included_lib_files): Adjust.
36761         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36762
36763 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36764
36765         copy-acl: enhance Solaris ACL error handling
36766         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36767         * lib/set-mode-acl.c (qset_acl): Likewise.
36768
36769 2010-03-02  Bruno Haible  <bruno@clisp.org>
36770
36771         spawn: Don't override the system defined values on FreeBSD 8.
36772         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36773         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36774         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36775         if HAVE_POSIX_SPAWN is 1.
36776         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36777
36778 2010-03-01  Bruno Haible  <bruno@clisp.org>
36779
36780         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36781         regarding Automake.
36782
36783 2010-02-25  Bruno Haible  <bruno@clisp.org>
36784
36785         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36786         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36787         setting, not afterwards.
36788         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36789
36790 2010-02-24  Eric Blake  <eblake@redhat.com>
36791
36792         bootstrap, git-version-gen: use timestamp
36793         * build-aux/git-version-gen (scriptversion): Force UTC.
36794         * build-aux/bootstrap (scriptversion): New variable.
36795
36796         bootstrap: allow older git
36797         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36798         older than 1.6.4.  Requested by the libvirt project.
36799
36800 2010-02-23  Eric Blake  <eblake@redhat.com>
36801
36802         warn-on-use: work with old autoconf
36803         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36804         AS_VAR semantics of autoconf 2.60.
36805         Reported by Bruno Haible.
36806
36807         bootstrap: improve some comments
36808         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36809         clarification comments.
36810
36811         gettimeofday: provide correct function
36812         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36813         when replacement is declared, otherwise provide gettimeofday.
36814         Reported by Michael Goffioul.
36815
36816 2010-02-23  Jim Meyering  <meyering@redhat.com>
36817
36818         lib-ignore: relax license to "unlimited", not LGPLv2+
36819         * modules/lib-ignore (License): Relax to "unlimited".
36820
36821 2010-02-23  Jim Meyering  <meyering@redhat.com>
36822
36823         lib-ignore: relax license to LGPLv2+
36824         * modules/lib-ignore (License): Relax to LGPLv2+.
36825
36826 2010-02-22  Eric Blake  <eblake@redhat.com>
36827
36828         lseek: avoid bash 3.2 broken pipe bug
36829         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36830         warning from bash 3.2.
36831         Reported by Ben Pfaff, with analysis from Bruno Haible.
36832
36833         bootstrap: support non-FSF copyright holder
36834         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36835         bootstrap.conf override of COPYRIGHT_HOLDER.
36836         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36837
36838         bootstrap: interoperate with gettext 0.14.1
36839         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36840
36841         bootstrap: allow for alternate submodule location
36842         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36843         hardcoding submodule location.
36844         (gnulib_mk): Allow direct use of Makefile.am.
36845
36846         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36847         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36848         rather than reconfiguring where the submodule points.
36849
36850         gettimeofday: restore support for platforms that lack function
36851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36852         replacement if function is missing.
36853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36854         * modules/sys_time (Makefile.am): Substitute it.
36855         * lib/sys_time.in.h (gettimeofday): Check it.
36856         Reported by Michael Goffioul.
36857
36858 2010-02-21  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/stdio.in.h (obstack_printf): Fix typo.
36861
36862 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36863
36864         vc-list-files: use bzr ls's -R option
36865         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36866         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36867
36868 2010-02-21  Jim Meyering  <meyering@redhat.com>
36869
36870         init.sh: fix EXEEXT shims to work also for names like test-prog
36871         * tests/init.sh: Re-exec a better shell, when needed.
36872         If the current shell lacks support for posix $(...), an init.sh-using
36873         test will now try to find a shell that supports that.  If EXEEXT is
36874         nonempty, we also require support for hyphen-in-alias-name and shell
36875         substitutions like ${var#glob}.  Failure to find such a shell results
36876         in a skipped test.
36877
36878 2010-02-21  Bruno Haible  <bruno@clisp.org>
36879
36880         Really work around around "broken pipe" error message from bash 3.2.
36881         * gnulib-tool (func_reset_sigpipe): Remove function.
36882         (echo): In bash 3.2, define to a function that uses printf.
36883         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36884
36885 2010-02-20  Bruno Haible  <bruno@clisp.org>
36886
36887         Restore support for automake 1.9.6 with autoconf 2.61.
36888         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36889         Reported by James Youngman <jay@gnu.org>.
36890
36891 2010-02-20  Bruno Haible  <bruno@clisp.org>
36892
36893         Improve *printf warning condition.
36894         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36895         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36896         and the function is overridden due to SIGPIPE emulation.
36897
36898 2010-02-20  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/stdio.in.h: Tweak comments.
36901
36902 2010-02-19  Bruno Haible  <bruno@clisp.org>
36903
36904         Make it easier to find modules. New gnulib-tool option '--find'.
36905         * gnulib-tool: New option --find.
36906         (func_usage): Document it.
36907         (func_sanitize_modulelist): New function, extracted from
36908         func_all_modules.
36909         (func_all_modules): Invoke it.
36910         * doc/gnulib-tool.texi (Which modules?): New node.
36911
36912 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36913
36914         * lib/sys_select.in.h: Provide select replacement even if
36915         sys/select.h exists on a system, for Interix.
36916
36917 2010-02-18  Jim Meyering  <meyering@redhat.com>
36918
36919         init.sh: don't use $(...) just yet
36920         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36921         to accommodate e.g., Solaris' /bin/sh.
36922
36923 2010-02-17  Bruno Haible  <bruno@clisp.org>
36924
36925         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36926         Reported by Ludovic Courtès <ludo@gnu.org>.
36927
36928 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36929
36930         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36931         linking with -lintl.
36932
36933 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36934
36935         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36936         if not provided by the system's netdb.h.  Reported by
36937         ludo@gnu.org (Ludovic Courtès).
36938
36939 2010-02-15  Jim Meyering  <meyering@redhat.com>
36940
36941         init.sh: improve portability and efficiency
36942         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36943         "dummy" in a for loop.
36944         Use '!', not '^' to select the complement of a character set used
36945         in a "case" statement.
36946         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36947         Suggestions from Eric Blake.
36948
36949         init.sh: automatically accommodate programs with the .exe suffix
36950         Automatically arrange for an invocation of "prog" to execute the
36951         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36952         may use the simpler "prog", yet still work when built on a system
36953         that requires specifying the added suffix.
36954         Do this by constructing a function named "prog" that invokes
36955         "prog.exe" for each .exe file in selected directories.
36956         * tests/init.sh (find_exe_basenames_): New function.
36957         (create_exe_shim_functions_): New function.
36958         (path_prepend_): Use it.
36959
36960         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36961         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36962         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36963
36964 2010-02-14  Jim Meyering  <meyering@redhat.com>
36965
36966         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36967         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36968         (sc_prohibit_hash_pjw_without_use): New rule.
36969
36970         maint.mk: allow the default upload destination dir to be overridden
36971         * top/maint.mk (upload_dest_dir_): Define with a default that
36972         preserves the status quo.
36973         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36974         Reported by Peter Simons.
36975
36976         maint.mk: prohibit inclusion of "hash.h" without_use
36977         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36978
36979 2010-02-10  Jim Meyering  <meyering@redhat.com>
36980
36981         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36982         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36983
36984 2010-02-09  Eric Blake  <ebb9@byu.net>
36985         and Bruno Haible  <bruno@clisp.org>
36986
36987         obstack-printf-posix: ensure declaration
36988         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36989         extracted from gl_FUNC_OBSTACK_PRINTF.
36990         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36991         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36992         Likewise.
36993         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36994         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36995         0.
36996
36997 2010-02-08  Bruno Haible  <bruno@clisp.org>
36998
36999         gnulib-tool: Fix typo in 2010-02-07 commit.
37000         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37001         Reported by Eric Blake.
37002
37003 2010-02-07  Bruno Haible  <bruno@clisp.org>
37004
37005         gnulib-tool: Fix up caching patches.
37006         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37007         option --no-cache. Use associative arrays when supported by the shell.
37008         (sed_comments): New variable.
37009         (modcache): Renamed from do_cache.
37010         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37011         abbreviate unnecessarily.
37012         (have_associative): New variable.
37013         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37014         way also for ksh and zsh.
37015         (func_init_sed_convert_to_cache_statements): New function, extracted
37016         from func_cache_lookup_module. Add support for associative arrays.
37017         Don't set the c_MODULE_cached variable here. Ignore all lines before
37018         the first field header. Remove only the final newline, not all trailing
37019         newlines. Support empty fields correctly. Limit the use of 'eval' to
37020         assignments.
37021         (func_get_description, func_get_status, func_get_notice,
37022         func_get_applicability, func_get_filelist, func_get_dependencies,
37023         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37024         func_get_automake_snippet, func_get_include_directive,
37025         func_get_link_directive, func_get_license, func_get_maintainer):
37026         Update documentation. List the unoptimized code first. Add support for
37027         associative arrays. Limit the use of 'eval' to assignments.
37028         (func_get_applicability): Undo stylistic pessimisations.
37029         (func_get_automake_snippet, func_get_include_directive): Reduce code
37030         duplication.
37031         (func_modules_transitive_closure, func_modules_add_dummy,
37032         func_modules_notice, func_modules_to_filelist, func_add_file,
37033         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37034         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37035         func_create_testdir, func_create_megatestdir): Update documentation.
37036
37037 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37038
37039         * gnulib-tool (func_cache_lookup_module): Store the module name
37040         belonging to the cache variable; error out if two different
37041         module names map to the same cache variable name.
37042
37043 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37044
37045         gnulib-tool: Make caching optional.
37046         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37047         Update matching short versions of --no-changelog.
37048         (func_usage): Update.
37049         (sed_extract_cache_prog): Renamed from ...
37050         (sed_extract_prog): ... this; revert to old extraction script.
37051         (func_get_description, func_get_status)
37052         (func_get_notice, func_get_applicability, func_get_filelist)
37053         (func_get_dependencies, func_get_autoconf_early_snippet)
37054         (func_get_autoconf_snippet, func_get_automake_snippet)
37055         (func_get_include_directive, func_get_link_directive)
37056         (func_get_license, func_get_maintainer): If $do_cache is false,
37057         use old, non-caching extraction scripts.
37058         Suggestion by Bruno Haible.
37059
37060 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37061
37062         gnulib-tool: cache module metainformation.
37063         * gnulib-tool (sed_extract_prog): Match newline before each
37064         header, and rewrite header to a shell variable suffix.
37065         (func_cache_var, func_cache_lookup_module): New functions,
37066         to turn a module name into a cache variable prefix, and to
37067         look up and cache module metainformation.
37068         (func_get_description, func_get_status)
37069         (func_get_notice, func_get_applicability, func_get_filelist)
37070         (func_get_dependencies, func_get_autoconf_early_snippet)
37071         (func_get_autoconf_snippet, func_get_automake_snippet)
37072         (func_get_include_directive, func_get_link_directive)
37073         (func_get_license, func_get_maintainer): Use
37074         func_cache_lookup_module.
37075
37076 2010-02-07  Bruno Haible  <bruno@clisp.org>
37077
37078         fnctl: Fix missing dependency.
37079         * modules/fcntl (Depends-on): Add getdtablesize.
37080         Reported by John W. Eaton <jwe@gnu.org>.
37081
37082 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37083
37084         Argp: fix recognition of short alias options.
37085
37086         * lib/argp-parse.c (convert_options): Fix improper use of
37087         `|' between character values.
37088         * tests/test-argp.c (group1_option): New alias option
37089         --read (-r).
37090         (group1_parser): Special handling for 'r'.
37091         (test15): New test case.
37092         (test_fun): Add test15.
37093         * tests/test-argp-2.sh: Update expected --help and --usage
37094         outputs.
37095
37096 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37097
37098         * tests/test-argp.c: Fix indentation.
37099
37100 2010-02-04  Eric Blake  <ebb9@byu.net>
37101
37102         gettimeofday: expose type of second argument
37103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37104         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37105         * tests/test-gettimeofday.c: Use it to silence warning.
37106         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37107         the issue.
37108
37109 2010-02-03  Jim Meyering  <meyering@redhat.com>
37110
37111         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37112         * lib/regcomp.c (TYPE_SIGNED): Define.
37113         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37114
37115         regcomp.c: avoid a new -Wshadow warning
37116         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37117
37118 2010-02-01  Jim Meyering  <meyering@redhat.com>
37119
37120         removing useless parentheses in cpp #define directives
37121         For motivation, see commit c0221df4, "define STREQ(a,b)
37122         consistently, removing useless parentheses"
37123         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37124         * lib/mountlist.c (MNT_IGNORE): Likewise.
37125         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37126
37127 2010-02-01  Eric Blake  <ebb9@byu.net>
37128
37129         sys_time: use link-warning
37130         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37131         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37132         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37133         * modules/sys_time (Depends-on): Add warn-on-use.
37134         (Makefile.am): Always build replacement.
37135         (configure.ac): Update substitutions.
37136         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37137         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37138         bother with SYS_TIME_H.
37139         * modules/gettimeofday (configure.ac): Declare indicator.
37140         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37141         in use.
37142
37143         closein-tests: silence compiler warning
37144         * tests/test-closein.c (main): Ignore fread result.
37145         * modules/closein-tests (Depends-on): Add ignore-value.
37146
37147         tests: silence warning about system return
37148         * tests/test-areadlink-with-size.c (main): Ignore system result.
37149         * tests/test-areadlink.c (main): Likewise.
37150         * tests/test-areadlinkat-with-size.c (main): Likewise.
37151         * tests/test-areadlinkat.c (main): Likewise.
37152         * tests/test-canonicalize-lgpl.c (main): Likewise.
37153         * tests/test-canonicalize.c (main): Likewise.
37154         * tests/test-chown.c (main): Likewise.
37155         * tests/test-fchownat.c (main): Likewise.
37156         * tests/test-fdutimensat.c (main): Likewise.
37157         * tests/test-fstatat.c (main): Likewise.
37158         * tests/test-futimens.c (main): Likewise.
37159         * tests/test-lchown.c (main): Likewise.
37160         * tests/test-link.c (main): Likewise.
37161         * tests/test-linkat.c (main): Likewise.
37162         * tests/test-lstat.c (main): Likewise.
37163         * tests/test-mkdir.c (main): Likewise.
37164         * tests/test-mkdirat.c (main): Likewise.
37165         * tests/test-mkfifo.c (main): Likewise.
37166         * tests/test-mkfifoat.c (main): Likewise.
37167         * tests/test-mknod.c (main): Likewise.
37168         * tests/test-readlink.c (main): Likewise.
37169         * tests/test-remove.c (main): Likewise.
37170         * tests/test-rename.c (main): Likewise.
37171         * tests/test-renameat.c (main): Likewise.
37172         * tests/test-rmdir.c (main): Likewise.
37173         * tests/test-symlink.c (main): Likewise.
37174         * tests/test-symlinkat.c (main): Likewise.
37175         * tests/test-unlink.c (main): Likewise.
37176         * tests/test-unlinkat.c (main): Likewise.
37177         * tests/test-utimens.c (main): Likewise.
37178         * tests/test-utimensat.c (main): Likewise.
37179         * modules/areadlink-tests (Depends-on): Add ignore-value.
37180         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37181         * modules/areadlinkat-tests (Depends-on): Likewise.
37182         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37183         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37184         * modules/canonicalize-tests (Depends-on): Likewise.
37185         * modules/chown-tests (Depends-on): Likewise.
37186         * modules/fdutimensat-tests (Depends-on): Likewise.
37187         * modules/futimens-tests (Depends-on): Likewise.
37188         * modules/lchown-tests (Depends-on): Likewise.
37189         * modules/link-tests (Depends-on): Likewise.
37190         * modules/linkat-tests (Depends-on): Likewise.
37191         * modules/lstat-tests (Depends-on): Likewise.
37192         * modules/mkdir-tests (Depends-on): Likewise.
37193         * modules/mkfifo-tests (Depends-on): Likewise.
37194         * modules/mkfifoat-tests (Depends-on): Likewise.
37195         * modules/mknod-tests (Depends-on): Likewise.
37196         * modules/openat-tests (Depends-on): Likewise.
37197         * modules/readlink-tests (Depends-on): Likewise.
37198         * modules/remove-tests (Depends-on): Likewise.
37199         * modules/rename-tests (Depends-on): Likewise.
37200         * modules/renameat-tests (Depends-on): Likewise.
37201         * modules/rmdir-tests (Depends-on): Likewise.
37202         * modules/symlink-tests (Depends-on): Likewise.
37203         * modules/symlinkat-tests (Depends-on): Likewise.
37204         * modules/unlink-tests (Depends-on): Likewise.
37205         * modules/utimens-tests (Depends-on): Likewise.
37206         * modules/utimensat-tests (Depends-on): Likewise.
37207
37208 2010-01-31  Bruno Haible  <bruno@clisp.org>
37209
37210         Perform the same test for many <math.h> functions.
37211         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37212         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37213         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37214         of gl_MATHFUNC.
37215         * modules/acos (configure.ac): Likewise.
37216         * modules/asin (configure.ac): Likewise.
37217         * modules/atan (configure.ac): Likewise.
37218         * modules/atan2 (configure.ac): Likewise.
37219         * modules/cbrt (configure.ac): Likewise.
37220         * modules/copysign (configure.ac): Likewise.
37221         * modules/cos (configure.ac): Likewise.
37222         * modules/cosh (configure.ac): Likewise.
37223         * modules/erf (configure.ac): Likewise.
37224         * modules/erfc (configure.ac): Likewise.
37225         * modules/exp (configure.ac): Likewise.
37226         * modules/fmod (configure.ac): Likewise.
37227         * modules/hypot (configure.ac): Likewise.
37228         * modules/j0 (configure.ac): Likewise.
37229         * modules/j1 (configure.ac): Likewise.
37230         * modules/jn (configure.ac): Likewise.
37231         * modules/lgamma (configure.ac): Likewise.
37232         * modules/log (configure.ac): Likewise.
37233         * modules/log10 (configure.ac): Likewise.
37234         * modules/log1p (configure.ac): Likewise.
37235         * modules/pow (configure.ac): Likewise.
37236         * modules/remainder (configure.ac): Likewise.
37237         * modules/sin (configure.ac): Likewise.
37238         * modules/sinh (configure.ac): Likewise.
37239         * modules/tan (configure.ac): Likewise.
37240         * modules/tanh (configure.ac): Likewise.
37241         * modules/y0 (configure.ac): Likewise.
37242         * modules/y1 (configure.ac): Likewise.
37243         * modules/yn (configure.ac): Likewise.
37244         Suggested by Paolo Bonzini.
37245
37246 2010-01-31  Bruno Haible  <bruno@clisp.org>
37247
37248         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37249
37250 2010-01-31  Bruno Haible  <bruno@clisp.org>
37251
37252         Work around getdelim() bug on FreeBSD 8.0.
37253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37254         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37255         not work.
37256         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37257         is 1.
37258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37259         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37260         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37261         a non-zero size.
37262         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37263
37264 2010-01-31  Bruno Haible  <bruno@clisp.org>
37265
37266         Work around getline() bug on FreeBSD 8.0.
37267         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37268         and a non-zero size.
37269         * tests/test-getline.c (main): Likewise.
37270         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37271         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37272
37273 2010-01-28  Eric Blake  <ebb9@byu.net>
37274
37275         regex: fix build failure
37276         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37277         platforms.
37278
37279 2010-01-28  Jim Meyering  <meyering@redhat.com>
37280
37281         regex: do not ignore memory allocation failure
37282         * lib/regex_internal.c (create_cd_newstate): Detect
37283         re_node_set_init_copy failure.   Extracted from glibc commit
37284         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37285
37286         regex: sync more white-space changes from libc
37287         * lib/regex_internal.c: White-space only changes.
37288         * lib/regexec.c: Likewise.
37289
37290         regex: add many uses of __attribute_warn_unused_result__
37291         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37292         * lib/regexec.c: Likewise.
37293         Extracted from a messy glibc commit.
37294
37295         regcomp.c: spelling and merge-artifact from glibc
37296         * lib/regcomp.c: Merge remainder of glibc's
37297         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37298
37299         regcomp.c: sync white-space changes from glibc
37300         * lib/regcomp.c: Merge to accommodate white space
37301         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37302
37303         regcomp.c: do not ignore internal return values
37304         * lib/regcomp.c: Do not ignore internal return values.
37305         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37306         but without its white-space changes and spelling fixes.
37307
37308         regex_internal.h: define __attribute_warn_unused_result__
37309         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37310
37311         maint: add a syntax-check rule to check for vulnerable Makefile.in
37312         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37313
37314 2010-01-27  Jim Meyering  <meyering@redhat.com>
37315
37316         ncftpput-ftp: clean up spaces
37317         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37318         Remove trailing blanks.
37319
37320 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37321
37322         * build-aux/git-version-gen: Fix copyright statement.
37323         * build-aux/gnupload: Likewise.
37324         * tests/test-arcfour.c: Likewise.
37325         * tests/test-arctwo.c: Likewise.
37326         * tests/test-count-one-bits.c: Likewise.
37327         * tests/test-crc.c: Likewise.
37328         * tests/test-des.c: Likewise.
37329         * tests/test-gc-arcfour.c: Likewise.
37330         * tests/test-gc-arctwo.c: Likewise.
37331         * tests/test-gc-des.c: Likewise.
37332         * tests/test-gc-hmac-md5.c: Likewise.
37333         * tests/test-gc-hmac-sha1.c: Likewise.
37334         * tests/test-gc-md2.c: Likewise.
37335         * tests/test-gc-md4.c: Likewise.
37336         * tests/test-gc-md5.c: Likewise.
37337         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37338         * tests/test-gc-rijndael.c: Likewise.
37339         * tests/test-gc-sha1.c: Likewise.
37340         * tests/test-gc.c: Likewise.
37341         * tests/test-gethostname.c: Likewise.
37342         * tests/test-gettimeofday.c: Likewise.
37343         * tests/test-hash.c: Likewise.
37344         * tests/test-hmac-md5.c: Likewise.
37345         * tests/test-hmac-sha1.c: Likewise.
37346         * tests/test-md2.c: Likewise.
37347         * tests/test-md4.c: Likewise.
37348         * tests/test-md5.c: Likewise.
37349         * tests/test-memchr.c: Likewise.
37350         * tests/test-memchr2.c: Likewise.
37351         * tests/test-memcmp.c: Likewise.
37352         * tests/test-memmem.c: Likewise.
37353         * tests/test-memrchr.c: Likewise.
37354         * tests/test-rawmemchr.c: Likewise.
37355         * tests/test-read-file.c: Likewise.
37356         * tests/test-rijndael.c: Likewise.
37357         * tests/test-sockets.c: Likewise.
37358         * tests/test-strchrnul.c: Likewise.
37359         * tests/test-strstr.c: Likewise.
37360         * tests/test-strtod.c: Likewise.
37361         * build-aux/ncftpput-ftp: Likewise.
37362
37363 2010-01-26  Eric Blake  <ebb9@byu.net>
37364
37365         ignore-value: update recommended header name
37366         * modules/ignore-value (Include): Only use <> for headers that
37367         exist in glibc.
37368
37369 2010-01-26  Jim Meyering  <meyering@redhat.com>
37370
37371         test-userspec.c: avoid compiler warnings
37372         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37373         and "initialization discards qualifiers..." warnings.
37374         Put the first "uid" in its own scope, and make char* members "const".
37375
37376 2010-01-25  Bruno Haible  <bruno@clisp.org>
37377
37378         gnulib-tool: Make warning diagnostics consistent.
37379         * gnulib-tool (func_warning): New function.
37380         Use it everywhere where gnulib-tool produces output to stderr and it is
37381         not a fatal error.
37382
37383 2010-01-25  Bruno Haible  <bruno@clisp.org>
37384
37385         Fix test dependencies.
37386         * modules/xstrtol-tests (Depends-on): Add inttypes.
37387         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37388
37389 2010-01-25 Pádraig Brady <P@draigBrady.com>
37390
37391         syntax-check: detect incorrect boolean macro values in config.h
37392         * modules/maintainer-makefile (configure.ac): Parameterize the location
37393         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37394         The logic is from Eric Blake and the location indicated by Jim Meyering.
37395         Note the more natural CONFIG_HEADER name is prohibited by automake
37396         for backwards compatibility reasons.
37397         * top/maint.mk (sc_Wundef_boolean): New rule.
37398
37399 2010-01-25  Jim Meyering  <meyering@redhat.com>
37400
37401         bootstrap: detect MacOS 10.6's shasum, too
37402         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37403         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37404
37405 2010-01-23  Jim Meyering  <meyering@redhat.com>
37406
37407         xstrtoll: new module
37408         * modules/xstrtoll: New file.
37409         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37410         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37411         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37412         ./configure fails if you use this module and lack "long long".
37413         * modules/xstrtoll-tests: New module.
37414         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37415         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37416         new init.sh-based test framework.
37417
37418 2010-01-24  Bruno Haible  <bruno@clisp.org>
37419
37420         Tests for module 'yn'.
37421         * modules/yn-tests: New file.
37422         * tests/test-yn.c: New file.
37423
37424         Tests for module 'y1'.
37425         * modules/y1-tests: New file.
37426         * tests/test-y1.c: New file.
37427
37428         Tests for module 'y0'.
37429         * modules/y0-tests: New file.
37430         * tests/test-y0.c: New file.
37431
37432         Tests for module 'tanh'.
37433         * modules/tanh-tests: New file.
37434         * tests/test-tanh.c: New file.
37435
37436         Tests for module 'tan'.
37437         * modules/tan-tests: New file.
37438         * tests/test-tan.c: New file.
37439
37440         Tests for module 'sqrt'.
37441         * modules/sqrt-tests: New file.
37442         * tests/test-sqrt.c: New file.
37443
37444         Tests for module 'sinh'.
37445         * modules/sinh-tests: New file.
37446         * tests/test-sinh.c: New file.
37447
37448         Tests for module 'sin'.
37449         * modules/sin-tests: New file.
37450         * tests/test-sin.c: New file.
37451
37452         Tests for module 'rint'.
37453         * modules/rint-tests: New file.
37454         * tests/test-rint.c: New file.
37455
37456         Tests for module 'remainder'.
37457         * modules/remainder-tests: New file.
37458         * tests/test-remainder.c: New file.
37459
37460         Tests for module 'pow'.
37461         * modules/pow-tests: New file.
37462         * tests/test-pow.c: New file.
37463
37464         Tests for module 'nextafter'.
37465         * modules/nextafter-tests: New file.
37466         * tests/test-nextafter.c: New file.
37467
37468         Tests for module 'modf'.
37469         * modules/modf-tests: New file.
37470         * tests/test-modf.c: New file.
37471
37472         Tests for module 'logb'.
37473         * modules/logb-tests: New file.
37474         * tests/test-logb.c: New file.
37475
37476         Tests for module 'log1p'.
37477         * modules/log1p-tests: New file.
37478         * tests/test-log1p.c: New file.
37479
37480         Tests for module 'log10'.
37481         * modules/log10-tests: New file.
37482         * tests/test-log10.c: New file.
37483
37484         Tests for module 'log'.
37485         * modules/log-tests: New file.
37486         * tests/test-log.c: New file.
37487
37488         Tests for module 'lgamma'.
37489         * modules/lgamma-tests: New file.
37490         * tests/test-lgamma.c: New file.
37491
37492         Tests for module 'ldexp'.
37493         * modules/ldexp-tests: New file.
37494         * tests/test-ldexp.c: New file.
37495
37496         Tests for module 'jn'.
37497         * modules/jn-tests: New file.
37498         * tests/test-jn.c: New file.
37499
37500         Tests for module 'j1'.
37501         * modules/j1-tests: New file.
37502         * tests/test-j1.c: New file.
37503
37504         Tests for module 'j0'.
37505         * modules/j0-tests: New file.
37506         * tests/test-j0.c: New file.
37507
37508         Tests for module 'hypot'.
37509         * modules/hypot-tests: New file.
37510         * tests/test-hypot.c: New file.
37511
37512         Tests for module 'fmod'.
37513         * modules/fmod-tests: New file.
37514         * tests/test-fmod.c: New file.
37515
37516         Tests for module 'fabs'.
37517         * modules/fabs-tests: New file.
37518         * tests/test-fabs.c: New file.
37519
37520         Tests for module 'exp'.
37521         * modules/exp-tests: New file.
37522         * tests/test-exp.c: New file.
37523
37524         Tests for module 'erfc'.
37525         * modules/erfc-tests: New file.
37526         * tests/test-erfc.c: New file.
37527
37528         Tests for module 'erf'.
37529         * modules/erf-tests: New file.
37530         * tests/test-erf.c: New file.
37531
37532         Tests for module 'cosh'.
37533         * modules/cosh-tests: New file.
37534         * tests/test-cosh.c: New file.
37535
37536         Tests for module 'cos'.
37537         * modules/cos-tests: New file.
37538         * tests/test-cos.c: New file.
37539
37540         Tests for module 'copysign'.
37541         * modules/copysign-tests: New file.
37542         * tests/test-copysign.c: New file.
37543
37544         Tests for module 'cbrt'.
37545         * modules/cbrt-tests: New file.
37546         * tests/test-cbrt.c: New file.
37547
37548         Tests for module 'atan2'.
37549         * modules/atan2-tests: New file.
37550         * tests/test-atan2.c: New file.
37551
37552         Tests for module 'atan'.
37553         * modules/atan-tests: New file.
37554         * tests/test-atan.c: New file.
37555
37556         Tests for module 'asin'.
37557         * modules/asin-tests: New file.
37558         * tests/test-asin.c: New file.
37559
37560         Tests for module 'acos'.
37561         * modules/acos-tests: New file.
37562         * tests/test-acos.c: New file.
37563
37564 2010-01-24  Bruno Haible  <bruno@clisp.org>
37565
37566         Fix tests for common <math.h> functions.
37567         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37568         code snippet that references the function pointer, rather than merely
37569         calling the function. Substitute the FUNC_LIBM variable.
37570         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37571         * modules/acos (configure.ac): Likewise.
37572         * modules/asin (configure.ac): Likewise.
37573         * modules/atan (configure.ac): Likewise.
37574         * modules/atan2 (configure.ac): Likewise.
37575         * modules/cbrt (configure.ac): Likewise.
37576         * modules/copysign (configure.ac): Likewise.
37577         * modules/cos (configure.ac): Likewise.
37578         * modules/cosh (configure.ac): Likewise.
37579         * modules/erf (configure.ac): Likewise.
37580         * modules/erfc (configure.ac): Likewise.
37581         * modules/exp (configure.ac): Likewise.
37582         * modules/fabs (configure.ac): Likewise.
37583         * modules/fmod (configure.ac): Likewise.
37584         * modules/hypot (configure.ac): Likewise.
37585         * modules/j0 (configure.ac): Likewise.
37586         * modules/j1 (configure.ac): Likewise.
37587         * modules/jn (configure.ac): Likewise.
37588         * modules/ldexp (configure.ac): Likewise.
37589         * modules/lgamma (configure.ac): Likewise.
37590         * modules/log (configure.ac): Likewise.
37591         * modules/log10 (configure.ac): Likewise.
37592         * modules/log1p (configure.ac): Likewise.
37593         * modules/logb (configure.ac): Likewise.
37594         * modules/modf (configure.ac): Likewise.
37595         * modules/nextafter (configure.ac): Likewise.
37596         * modules/pow (configure.ac): Likewise.
37597         * modules/remainder (configure.ac): Likewise.
37598         * modules/rint (configure.ac): Likewise.
37599         * modules/sin (configure.ac): Likewise.
37600         * modules/sinh (configure.ac): Likewise.
37601         * modules/tan (configure.ac): Likewise.
37602         * modules/tanh (configure.ac): Likewise.
37603         * modules/y0 (configure.ac): Likewise.
37604         * modules/y1 (configure.ac): Likewise.
37605         * modules/yn (configure.ac): Likewise.
37606
37607 2010-01-24  Bruno Haible  <bruno@clisp.org>
37608
37609         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37610         * tests/test-acosl.c (x): New variable.
37611         (main): Store argument in x and fetch it from x.
37612         * tests/test-asinl.c (x): New variable.
37613         (main): Store argument in x and fetch it from x.
37614         * tests/test-atanl.c (x): New variable.
37615         (main): Store argument in x and fetch it from x.
37616         * tests/test-cosl.c (x): New variable.
37617         (main): Store argument in x and fetch it from x.
37618         * tests/test-expl.c (x): New variable.
37619         (main): Store argument in x and fetch it from x.
37620         * tests/test-logl.c (x): New variable.
37621         (main): Store argument in x and fetch it from x.
37622         * tests/test-sinl.c (x): New variable.
37623         (main): Store argument in x and fetch it from x.
37624         * tests/test-sqrtl.c (x): New variable.
37625         (main): Store argument in x and fetch it from x.
37626         * tests/test-tanl.c (x): New variable.
37627         (main): Store argument in x and fetch it from x.
37628
37629 2010-01-24  Bruno Haible  <bruno@clisp.org>
37630
37631         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37632         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37633         assignments to the initial TESTS_ENVIRONMENT.
37634         * doc/gnulib.texi (Unit test modules): Document it.
37635         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37636         TESTS_ENVIRONMENT.
37637         * modules/btowc-tests (Makefile.am): Likewise.
37638         * modules/c-stack-tests (Makefile.am): Likewise.
37639         * modules/c-strcase-tests (Makefile.am): Likewise.
37640         * modules/copy-file-tests (Makefile.am): Likewise.
37641         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37642         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37643         * modules/mbrtowc-tests (Makefile.am): Likewise.
37644         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37645         * modules/mbscasestr-tests (Makefile.am): Likewise.
37646         * modules/mbschr-tests (Makefile.am): Likewise.
37647         * modules/mbscspn-tests (Makefile.am): Likewise.
37648         * modules/mbsinit-tests (Makefile.am): Likewise.
37649         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37650         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37651         * modules/mbspbrk-tests (Makefile.am): Likewise.
37652         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37653         * modules/mbsrchr-tests (Makefile.am): Likewise.
37654         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37655         * modules/mbsspn-tests (Makefile.am): Likewise.
37656         * modules/mbsstr-tests (Makefile.am): Likewise.
37657         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37658         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37659         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37660         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37661         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37662         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37663         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37664         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37665         * modules/wcrtomb-tests (Makefile.am): Likewise.
37666         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37667         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37668         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37669         assignments from TESTS_ENVIRONMENT.
37670         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37671         augmentation.
37672         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37673         * modules/atexit-tests (Makefile.am): Likewise.
37674         * modules/binary-io-tests (Makefile.am): Likewise.
37675         * modules/closein-tests (Makefile.am): Likewise.
37676         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37677         * modules/exclude-tests (Makefile.am): Likewise.
37678         * modules/fflush-tests (Makefile.am): Likewise.
37679         * modules/fpending-tests (Makefile.am): Likewise.
37680         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37681         * modules/freadahead-tests (Makefile.am): Likewise.
37682         * modules/freadptr-tests (Makefile.am): Likewise.
37683         * modules/freadseek-tests (Makefile.am): Likewise.
37684         * modules/fseek-tests (Makefile.am): Likewise.
37685         * modules/fseeko-tests (Makefile.am): Likewise.
37686         * modules/ftell-tests (Makefile.am): Likewise.
37687         * modules/ftello-tests (Makefile.am): Likewise.
37688         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37689         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37690         * modules/lseek-tests (Makefile.am): Likewise.
37691         * modules/parse-duration-tests (Makefile.am): Likewise.
37692         * modules/perror-tests (Makefile.am): Likewise.
37693         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37694         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37695         * modules/pipe-tests (Makefile.am): Likewise.
37696         * modules/pread-tests (Makefile.am): Likewise.
37697         * modules/printf-posix-tests (Makefile.am): Likewise.
37698         * modules/select-tests (Makefile.am): Likewise.
37699         * modules/sigpipe-tests (Makefile.am): Likewise.
37700         * modules/tsearch-tests (Makefile.am): Likewise.
37701         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37702         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37703         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37704         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37705         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37706         * modules/version-etc-tests (Makefile.am): Likewise.
37707         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37708         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37709         * modules/xalloc-die-tests (Makefile.am): Likewise.
37710         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37711         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37712         * modules/xstrtol-tests (Makefile.am): Likewise.
37713         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37714         * modules/yesno-tests (Makefile.am): Likewise.
37715         Suggested by Jim Meyering.
37716
37717 2010-01-24  Bruno Haible  <bruno@clisp.org>
37718
37719         More documentation.
37720         * doc/gnulib.texi (Writing modules): New chapter.
37721         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37722         the new chapter.
37723
37724 2010-01-24  Jim Meyering  <meyering@redhat.com>
37725
37726         maint.mk: do not prepend "./" after filtering
37727         * top/maint.mk (_prepend_srcdir_prefix): New variable
37728         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37729         "./" when $(srcdir) is ".".
37730
37731         define STREQ(a,b) consistently, removing useless parentheses
37732         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37733         since the only risk is that "a" or "b" contains an unparenthesized
37734         comma, but if either did that, STREQ would have 3 or more arguments.
37735         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37736         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37737         * lib/hash-triple.c (STREQ): Likewise.
37738         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37739         * lib/getugroups.c (STREQ): Likewise.
37740
37741 2010-01-23  Jim Meyering  <meyering@redhat.com>
37742
37743         maint.mk: fix syntax-check in a non-srcdir build directory
37744         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37745         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37746
37747 2010-01-22  Jim Meyering  <meyering@redhat.com>
37748
37749         userspec: add unit tests
37750         * tests/test-userspec.c: New file.
37751         * modules/userspec-tests: Likewise.
37752
37753 2010-01-21  Jim Meyering  <meyering@redhat.com>
37754
37755         maint.mk: handle source file names containing "." robustly
37756         * top/maint.mk (_dot_escaped_srcdir): Define.
37757         (VC_LIST): Use it in LHS of sed substitution.
37758
37759 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37760
37761         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37762         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37763         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37764         from a non-srcdir build.
37765
37766 2010-01-20  Eric Blake  <ebb9@byu.net>
37767
37768         warn-on-use: use instead of link-warning
37769         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37770         * modules/unistd (Depends-on, Makefile.am): Likewise.
37771         * modules/arpa_inet (Depends-on): Replace link-warning with
37772         warn-on-use.
37773         (Makefile.am): Update rules accordingly.
37774         * modules/ctype (Depends-on, Makefile.am): Likewise.
37775         * modules/dirent (Depends-on, Makefile.am): Likewise.
37776         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37777         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37778         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37779         * modules/locale (Depends-on, Makefile.am): Likewise.
37780         * modules/math (Depends-on, Makefile.am): Likewise.
37781         * modules/search (Depends-on, Makefile.am): Likewise.
37782         * modules/signal (Depends-on, Makefile.am): Likewise.
37783         * modules/spawn (Depends-on, Makefile.am): Likewise.
37784         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37785         * modules/string (Depends-on, Makefile.am): Likewise.
37786         * modules/strings (Depends-on, Makefile.am): Likewise.
37787         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37788         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37789         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37790         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37791         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37792         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37793         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37794         * modules/wchar (Depends-on, Makefile.am): Likewise.
37795         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37796         should be poisoned.
37797         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37798         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37799         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37800         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37801         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37802         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37803         * m4/math_h.m4 (gl_MATH_H): Likewise.
37804         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37805         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37806         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37807         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37808         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37810         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37816         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37817         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37818         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37819         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37820         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37821         GL_LINK_WARNING.
37822         * lib/ctype.in.h: Likewise.
37823         * lib/dirent.in.h: Likewise.
37824         * lib/fcntl.in.h: Likewise.
37825         * lib/inttypes.in.h: Likewise.
37826         * lib/langinfo.in.h: Likewise.
37827         * lib/locale.in.h: Likewise.
37828         * lib/math.in.h: Likewise.
37829         * lib/search.in.h: Likewise.
37830         * lib/signal.in.h: Likewise.
37831         * lib/spawn.in.h: Likewise.
37832         * lib/stdio.in.h: Likewise.
37833         * lib/stdlib.in.h: Likewise.
37834         * lib/string.in.h: Likewise.
37835         * lib/strings.in.h: Likewise.
37836         * lib/sys_file.in.h: Likewise.
37837         * lib/sys_ioctl.in.h: Likewise.
37838         * lib/sys_select.in.h: Likewise.
37839         * lib/sys_socket.in.h: Likewise.
37840         * lib/sys_stat.in.h: Likewise.
37841         * lib/sys_times.in.h: Likewise.
37842         * lib/sys_utsname.in.h: Likewise.
37843         * lib/unistd.in.h: Likewise.
37844         * lib/wchar.in.h: Likewise.
37845
37846 2010-01-20  Bruno Haible  <bruno@clisp.org>
37847
37848         Avoid duplicate -lm.
37849         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37850         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37852         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37853         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37854         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37855         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37856         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37857         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37858         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37859         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37860         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37861         Reported by Paolo Bonzini.
37862
37863 2010-01-19  Bruno Haible  <bruno@clisp.org>
37864
37865         langinfo, nl_langinfo: Relicense under LGPLv2+.
37866         * modules/langinfo (License): Change to LGPLv2+.
37867         * modules/nl_langinfo (License): Likewise.
37868         Patch by David Lutterkort <lutter@redhat.com>.
37869
37870 2010-01-19  Bruno Haible  <bruno@clisp.org>
37871
37872         Avoid compilation error with cc on OSF/1 5.1.
37873         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37874         statement, not before.
37875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37876
37877 2010-01-18  Bruno Haible  <bruno@clisp.org>
37878
37879         Avoid a link error due to the __printf__ symbol.
37880         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37881         and 2.6.x.
37882         (__format__, __printf__): Remove definitions.
37883         * lib/argp-fmtstream.h: Likewise.
37884         * lib/argp.h: Likewise.
37885         * lib/error.h: Likewise.
37886         * lib/vasnprintf.h: Likewise.
37887         * lib/xprintf.h: Likewise.
37888         * lib/xvasprintf.h: Likewise.
37889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37890
37891 2010-01-18  Bruno Haible  <bruno@clisp.org>
37892
37893         Tests for module 'tanl'.
37894         * modules/tanl-tests: New file.
37895         * tests/test-tanl.c: New file.
37896
37897         Tests for module 'sqrtl'.
37898         * modules/sqrtl-tests: New file.
37899         * tests/test-sqrtl.c: New file.
37900
37901         Tests for module 'sinl'.
37902         * modules/sinl-tests: New file.
37903         * tests/test-sinl.c: New file.
37904
37905         Tests for module 'logl'.
37906         * modules/logl-tests: New file.
37907         * tests/test-logl.c: New file.
37908
37909         Tests for module 'expl'.
37910         * modules/expl-tests: New file.
37911         * tests/test-expl.c: New file.
37912
37913         Tests for module 'cosl'.
37914         * modules/cosl-tests: New file.
37915         * tests/test-cosl.c: New file.
37916
37917         Tests for module 'atanl'.
37918         * modules/atanl-tests: New file.
37919         * tests/test-atanl.c: New file.
37920
37921         Tests for module 'asinl'.
37922         * modules/asinl-tests: New file.
37923         * tests/test-asinl.c: New file.
37924
37925         Tests for module 'acosl'.
37926         * modules/acosl-tests: New file.
37927         * tests/test-acosl.c: New file.
37928
37929         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37930         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37931         tanl): Use the standard gnulib idiom.
37932         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37933         * lib/sinl.c: Likewise.
37934         * lib/tanl.c: Don't include trigl.c.
37935         (kernel_tanl): Make static.
37936         * lib/sincosl.c: Include trigl.h first.
37937         * lib/trigl.c: Likewise.
37938         * m4/acosl.m4: New file.
37939         * m4/asinl.m4: New file.
37940         * m4/atanl.m4: New file.
37941         * m4/cosl.m4: New file.
37942         * m4/expl.m4: New file.
37943         * m4/logl.m4: New file.
37944         * m4/sinl.m4: New file.
37945         * m4/sqrtl.m4: New file.
37946         * m4/tanl.m4: New file.
37947         * m4/mathl.m4: Remove file.
37948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37949         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37950         Don't initialize GNULIB_MATHL.
37951         * modules/acosl: New file.
37952         * modules/asinl: New file.
37953         * modules/atanl: New file.
37954         * modules/cosl: New file.
37955         * modules/expl: New file.
37956         * modules/logl: New file.
37957         * modules/sinl: New file.
37958         * modules/sqrtl: New file.
37959         * modules/tanl: New file.
37960         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37961         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37962         substitute GNULIB_MATHL.
37963         * modules/mathl: Rewritten.
37964         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37965         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37966         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37967         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37968         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37969         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37970         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37971         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37972         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37973
37974 2010-01-18  Bruno Haible  <bruno@clisp.org>
37975
37976         sqrt: Make gl_FUNC_SQRT requirable.
37977         * m4/sqrt.m4: New file.
37978         * modules/sqrt (Files): Add it.
37979         (configure.ac): Invoke gl_FUNC_SQRT.
37980
37981 2010-01-18  Bruno Haible  <bruno@clisp.org>
37982
37983         New modules for common <math.h> functions.
37984         * m4/mathfunc.m4: New file.
37985         * modules/acos: New file.
37986         * modules/asin: New file.
37987         * modules/atan: New file.
37988         * modules/atan2: New file.
37989         * modules/cbrt: New file.
37990         * modules/copysign: New file.
37991         * modules/cos: New file.
37992         * modules/cosh: New file.
37993         * modules/erf: New file.
37994         * modules/erfc: New file.
37995         * modules/exp: New file.
37996         * modules/fabs: New file.
37997         * modules/fmod: New file.
37998         * modules/hypot: New file.
37999         * modules/j0: New file.
38000         * modules/j1: New file.
38001         * modules/jn: New file.
38002         * modules/ldexp: New file.
38003         * modules/lgamma: New file.
38004         * modules/log: New file.
38005         * modules/log10: New file.
38006         * modules/log1p: New file.
38007         * modules/logb: New file.
38008         * modules/modf: New file.
38009         * modules/nextafter: New file.
38010         * modules/pow: New file.
38011         * modules/remainder: New file.
38012         * modules/rint: New file.
38013         * modules/sin: New file.
38014         * modules/sinh: New file.
38015         * modules/sqrt: New file.
38016         * modules/tan: New file.
38017         * modules/tanh: New file.
38018         * modules/y0: New file.
38019         * modules/y1: New file.
38020         * modules/yn: New file.
38021         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38022         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38023         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38024         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38025         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38026         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38027         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38028         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38029         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38030         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38031         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38032         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38033         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38034         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38035         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38036         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38037         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38038         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38039         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38040         * doc/posix-functions/log.texi: Mention the 'log' module.
38041         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38042         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38043         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38044         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38045         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38046         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38047         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38048         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38049         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38050         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38051         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38052         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38053         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38054         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38055         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38056         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38057
38058 2010-01-18  Jim Meyering  <meyering@redhat.com>
38059
38060         ignore-value: relax license to LGPLv2+
38061         * modules/ignore-value (License): Relax to LGPLv2+.
38062
38063         getdate: don't leak when TZ contains two or more '"'s
38064         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38065         double quote in TZ after the first one.
38066
38067         readtokens: do not leak internal token_lengths buffer
38068         * lib/readtokens.c (readtokens): Free the local, lengths,
38069         when the supplied "token_lengths" parameter is NULL.
38070
38071 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38072
38073         Fix a couple of missing LIBTHREAD link failures on AIX.
38074         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38075         $(LIBTHREAD).
38076         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38077
38078         Link test-poll against INET_PTON_LIB.
38079         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38080         for inet_pton on Solaris 10.
38081
38082 2010-01-17  Bruno Haible  <bruno@clisp.org>
38083
38084         unistdio/*-sprintf: Fix typo in module description.
38085         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38086         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38087         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38088         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38089         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38090         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38091         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38093
38094 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38095
38096         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38097         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38098         variables in shell case patterns, for AIX and HP-UX ksh.
38099
38100         Split large sed scripts, for HP-UX sed.
38101         * modules/stdio: Split sed scripts around 50 sed commands,
38102         to avoid HP-UX limit of 99 commands, in the near future.
38103         * modules/string: Likewise.
38104         * modules/unistd: Likewise.
38105
38106         gnulib-tool: avoid writing in the current directory.
38107         * gnulib-tool (func_emit_lib_Makefile_am)
38108         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38109         not in the current directory, so concurrent gnulib-tool
38110         instances do not interfere.
38111
38112 2010-01-16  Jim Meyering  <meyering@redhat.com>
38113
38114         doc: update users.txt
38115         * users.txt: Add grep.
38116         (diffutils, gzip): Update URLs.
38117
38118 2010-01-12  Bruno Haible  <bruno@clisp.org>
38119
38120         posix_spawn: Avoid test failure on Cygwin.
38121         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38122         characters.
38123         Reported by Simon Josefsson.
38124
38125 2010-01-12  Bruno Haible  <bruno@clisp.org>
38126
38127         * tests/test-cond.c (main): When skipping the test, show the reason.
38128
38129 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38130
38131         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38132
38133 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38134
38135         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38136         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38137
38138 2010-01-12  Eric Blake  <ebb9@byu.net>
38139
38140         build: guarantee AS_VAR_IF
38141         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38142         (gl_AS_VAR_IF): Move...
38143         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38144         Reported by Simon Josefsson.
38145
38146 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38147
38148         * lib/stdio.in.h: Fix typo.
38149
38150 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38151
38152         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38153         libgpg-error.
38154
38155 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38156
38157         * tests/test-xalloc-die.sh: Use $EXEEXT.
38158
38159 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38160             Bruno Haible  <bruno@clisp.org>
38161
38162         getlogin, getlogin_r: Avoid test failure.
38163         * tests/test-getlogin.c: Include <stdio.h>.
38164         (main): Skip the test when the function fails because stdin is not a
38165         tty.
38166         * tests/test-getlogin_r.c: Include <stdio.h>.
38167         (main): Skip the test when the function fails because stdin is not a
38168         tty.
38169
38170 2010-01-11  Eric Blake  <ebb9@byu.net>
38171
38172         tests: avoid more large file warnings
38173         * tests/test-fflush.c: Avoid warning about ftell use.
38174         * tests/test-fseek.c: Avoid warning about fseek use.
38175
38176 2010-01-10  Bruno Haible  <bruno@clisp.org>
38177
38178         nproc: Work better on Linux when /proc and /sys are not mounted.
38179         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38180         as lower bound when, on glibc/Linux systems,
38181         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38182         Suggested by Pádraig Brady <P@draigbrady.com>.
38183         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38184
38185         nproc: Refactor.
38186         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38187         extracted from num_processors.
38188         (num_processors): Call it.
38189
38190 2010-01-11  Jim Meyering  <meyering@redhat.com>
38191
38192         utimecmp: avoid new warning from upcoming gcc-4.5.0
38193         * lib/utimecmp.c (BILLION): Define using #define rather than an
38194         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38195
38196 2010-01-11  Eric Blake  <ebb9@byu.net>
38197
38198         math: add portability warnings for classification macros
38199         * modules/math (Depends-on): Add warn-on-use.
38200         (Makefile.am): Provide new substitutions.
38201         * m4/math_h.m4 (gl_MATH_H): Require inline.
38202         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38203         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38204         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38205         implement warnings.
38206
38207         unistd: warn on use of environ without module
38208         * modules/unistd (Depends-on): Add warn-on-use.
38209         (Makefile.am): Provide new substitutions.
38210         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38211         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38212
38213         stdio: warn on suspicious uses
38214         * modules/stdio (Depends-on): Add warn-on-use.
38215         (Makefile.am): Provide new substitutions.
38216         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38217         fseeko.
38218         * lib/stdio.in.h (gets): Always warn on use.
38219         (fseek, ftell): Adjust when warnings are issued, and honor
38220         _GL_NO_LARGE_FILES as a way to silence the warning.
38221         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38222         any warning about large file offsets.
38223         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38224         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38225         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38226         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38227         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38228         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38229         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38230         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38231
38232         warn-on-use: new module
38233         * modules/warn-on-use: New file.
38234         * build-aux/warn-on-use.h: Likewise.
38235         * m4/warn-on-use.m4: Likewise.
38236         * MODULES.html.sh (Support for building): Mention it.
38237
38238 2010-01-10  Bruno Haible  <bruno@clisp.org>
38239
38240         Tests for module 'unistr/u32-strdup'.
38241         * modules/unistr/u32-strdup-tests: New file.
38242         * tests/unistr/test-u32-strdup.c: New file.
38243
38244         Tests for module 'unistr/u16-strdup'.
38245         * modules/unistr/u16-strdup-tests: New file.
38246         * tests/unistr/test-u16-strdup.c: New file.
38247
38248         Tests for module 'unistr/u8-strdup'.
38249         * modules/unistr/u8-strdup-tests: New file.
38250         * tests/unistr/test-u8-strdup.c: New file.
38251         * tests/unistr/test-strdup.h: New file.
38252
38253         Tests for module 'unistr/u32-strncmp'.
38254         * modules/unistr/u32-strncmp-tests: New file.
38255         * tests/unistr/test-u32-strncmp.c: New file.
38256
38257         Tests for module 'unistr/u16-strncmp'.
38258         * modules/unistr/u16-strncmp-tests: New file.
38259         * tests/unistr/test-u16-strncmp.c: New file.
38260
38261         Tests for module 'unistr/u8-strncmp'.
38262         * modules/unistr/u8-strncmp-tests: New file.
38263         * tests/unistr/test-u8-strncmp.c: New file.
38264         * tests/unistr/test-strncmp.h: New file.
38265
38266         Tests for module 'unistr/u32-strcoll'.
38267         * modules/unistr/u32-strcoll-tests: New file.
38268         * tests/unistr/test-u32-strcoll.c: New file.
38269
38270         Tests for module 'unistr/u16-strcoll'.
38271         * modules/unistr/u16-strcoll-tests: New file.
38272         * tests/unistr/test-u16-strcoll.c: New file.
38273
38274         Tests for module 'unistr/u8-strcoll'.
38275         * modules/unistr/u8-strcoll-tests: New file.
38276         * tests/unistr/test-u8-strcoll.c: New file.
38277
38278         Tests for module 'unistr/u32-strcmp'.
38279         * modules/unistr/u32-strcmp-tests: New file.
38280         * tests/unistr/test-u32-strcmp.c: New file.
38281         * tests/unistr/test-u32-strcmp.h: New file.
38282
38283         Tests for module 'unistr/u16-strcmp'.
38284         * modules/unistr/u16-strcmp-tests: New file.
38285         * tests/unistr/test-u16-strcmp.c: New file.
38286         * tests/unistr/test-u16-strcmp.h: New file.
38287
38288         Tests for module 'unistr/u8-strcmp'.
38289         * modules/unistr/u8-strcmp-tests: New file.
38290         * tests/unistr/test-u8-strcmp.c: New file.
38291         * tests/unistr/test-u8-strcmp.h: New file.
38292         * tests/unistr/test-strcmp.h: New file.
38293
38294         Tests for module 'unistr/u32-strncat'.
38295         * modules/unistr/u32-strncat-tests: New file.
38296         * tests/unistr/test-u32-strncat.c: New file.
38297
38298         Tests for module 'unistr/u16-strncat'.
38299         * modules/unistr/u16-strncat-tests: New file.
38300         * tests/unistr/test-u16-strncat.c: New file.
38301
38302         Tests for module 'unistr/u8-strncat'.
38303         * modules/unistr/u8-strncat-tests: New file.
38304         * tests/unistr/test-u8-strncat.c: New file.
38305         * tests/unistr/test-strncat.h: New file.
38306
38307         Tests for module 'unistr/u32-strcat'.
38308         * modules/unistr/u32-strcat-tests: New file.
38309         * tests/unistr/test-u32-strcat.c: New file.
38310
38311         Tests for module 'unistr/u16-strcat'.
38312         * modules/unistr/u16-strcat-tests: New file.
38313         * tests/unistr/test-u16-strcat.c: New file.
38314
38315         Tests for module 'unistr/u8-strcat'.
38316         * modules/unistr/u8-strcat-tests: New file.
38317         * tests/unistr/test-u8-strcat.c: New file.
38318         * tests/unistr/test-strcat.h: New file.
38319
38320         Tests for module 'unistr/u32-stpncpy'.
38321         * modules/unistr/u32-stpncpy-tests: New file.
38322         * tests/unistr/test-u32-stpncpy.c: New file.
38323
38324         Tests for module 'unistr/u16-stpncpy'.
38325         * modules/unistr/u16-stpncpy-tests: New file.
38326         * tests/unistr/test-u16-stpncpy.c: New file.
38327
38328         Tests for module 'unistr/u8-stpncpy'.
38329         * modules/unistr/u8-stpncpy-tests: New file.
38330         * tests/unistr/test-u8-stpncpy.c: New file.
38331         * tests/unistr/test-stpncpy.h: New file.
38332
38333         Tests for module 'unistr/u32-strncpy'.
38334         * modules/unistr/u32-strncpy-tests: New file.
38335         * tests/unistr/test-u32-strncpy.c: New file.
38336
38337         Tests for module 'unistr/u16-strncpy'.
38338         * modules/unistr/u16-strncpy-tests: New file.
38339         * tests/unistr/test-u16-strncpy.c: New file.
38340
38341         Tests for module 'unistr/u8-strncpy'.
38342         * modules/unistr/u8-strncpy-tests: New file.
38343         * tests/unistr/test-u8-strncpy.c: New file.
38344         * tests/unistr/test-strncpy.h: New file.
38345
38346         Tests for module 'unistr/u32-stpcpy'.
38347         * modules/unistr/u32-stpcpy-tests: New file.
38348         * tests/unistr/test-u32-stpcpy.c: New file.
38349
38350         Tests for module 'unistr/u16-stpcpy'.
38351         * modules/unistr/u16-stpcpy-tests: New file.
38352         * tests/unistr/test-u16-stpcpy.c: New file.
38353
38354         Tests for module 'unistr/u8-stpcpy'.
38355         * modules/unistr/u8-stpcpy-tests: New file.
38356         * tests/unistr/test-u8-stpcpy.c: New file.
38357         * tests/unistr/test-stpcpy.h: New file.
38358
38359         Tests for module 'unistr/u32-strcpy'.
38360         * modules/unistr/u32-strcpy-tests: New file.
38361         * tests/unistr/test-u32-strcpy.c: New file.
38362
38363         Tests for module 'unistr/u16-strcpy'.
38364         * modules/unistr/u16-strcpy-tests: New file.
38365         * tests/unistr/test-u16-strcpy.c: New file.
38366
38367         Tests for module 'unistr/u8-strcpy'.
38368         * modules/unistr/u8-strcpy-tests: New file.
38369         * tests/unistr/test-u8-strcpy.c: New file.
38370         * tests/unistr/test-strcpy.h: New file.
38371
38372         Tests for module 'unistr/u32-strnlen'.
38373         * modules/unistr/u32-strnlen-tests: New file.
38374         * tests/unistr/test-u32-strnlen.c: New file.
38375
38376         Tests for module 'unistr/u16-strnlen'.
38377         * modules/unistr/u16-strnlen-tests: New file.
38378         * tests/unistr/test-u16-strnlen.c: New file.
38379
38380         Tests for module 'unistr/u8-strnlen'.
38381         * modules/unistr/u8-strnlen-tests: New file.
38382         * tests/unistr/test-u8-strnlen.c: New file.
38383         * tests/unistr/test-strnlen.h: New file.
38384
38385         Tests for module 'unistr/u32-strlen'.
38386         * modules/unistr/u32-strlen-tests: New file.
38387         * tests/unistr/test-u32-strlen.c: New file.
38388
38389         Tests for module 'unistr/u16-strlen'.
38390         * modules/unistr/u16-strlen-tests: New file.
38391         * tests/unistr/test-u16-strlen.c: New file.
38392
38393         Tests for module 'unistr/u8-strlen'.
38394         * modules/unistr/u8-strlen-tests: New file.
38395         * tests/unistr/test-u8-strlen.c: New file.
38396
38397         Tests for module 'unistr/u32-prev'.
38398         * modules/unistr/u32-prev-tests: New file.
38399         * tests/unistr/test-u32-prev.c: New file.
38400
38401         Tests for module 'unistr/u16-prev'.
38402         * modules/unistr/u16-prev-tests: New file.
38403         * tests/unistr/test-u16-prev.c: New file.
38404
38405         Tests for module 'unistr/u8-prev'.
38406         * modules/unistr/u8-prev-tests: New file.
38407         * tests/unistr/test-u8-prev.c: New file.
38408
38409         Tests for module 'unistr/u32-next'.
38410         * modules/unistr/u32-next-tests: New file.
38411         * tests/unistr/test-u32-next.c: New file.
38412
38413         Tests for module 'unistr/u16-next'.
38414         * modules/unistr/u16-next-tests: New file.
38415         * tests/unistr/test-u16-next.c: New file.
38416
38417         Tests for module 'unistr/u8-next'.
38418         * modules/unistr/u8-next-tests: New file.
38419         * tests/unistr/test-u8-next.c: New file.
38420
38421         Tests for module 'unistr/u32-strmbtouc'.
38422         * modules/unistr/u32-strmbtouc-tests: New file.
38423         * tests/unistr/test-u32-strmbtouc.c: New file.
38424
38425         Tests for module 'unistr/u16-strmbtouc'.
38426         * modules/unistr/u16-strmbtouc-tests: New file.
38427         * tests/unistr/test-u16-strmbtouc.c: New file.
38428
38429         Tests for module 'unistr/u8-strmbtouc'.
38430         * modules/unistr/u8-strmbtouc-tests: New file.
38431         * tests/unistr/test-u8-strmbtouc.c: New file.
38432
38433         Tests for module 'unistr/u32-strmblen'.
38434         * modules/unistr/u32-strmblen-tests: New file.
38435         * tests/unistr/test-u32-strmblen.c: New file.
38436
38437         Tests for module 'unistr/u16-strmblen'.
38438         * modules/unistr/u16-strmblen-tests: New file.
38439         * tests/unistr/test-u16-strmblen.c: New file.
38440
38441         Tests for module 'unistr/u8-strmblen'.
38442         * modules/unistr/u8-strmblen-tests: New file.
38443         * tests/unistr/test-u8-strmblen.c: New file.
38444
38445         Tests for module 'unistr/u32-cpy-alloc'.
38446         * modules/unistr/u32-cpy-alloc-tests: New file.
38447         * tests/unistr/test-u32-cpy-alloc.c: New file.
38448
38449         Tests for module 'unistr/u16-cpy-alloc'.
38450         * modules/unistr/u16-cpy-alloc-tests: New file.
38451         * tests/unistr/test-u16-cpy-alloc.c: New file.
38452
38453         Tests for module 'unistr/u8-cpy-alloc'.
38454         * modules/unistr/u8-cpy-alloc-tests: New file.
38455         * tests/unistr/test-u8-cpy-alloc.c: New file.
38456         * tests/unistr/test-cpy-alloc.h: New file.
38457
38458         Tests for module 'unistr/u32-mbsnlen'.
38459         * modules/unistr/u32-mbsnlen-tests: New file.
38460         * tests/unistr/test-u32-mbsnlen.c: New file.
38461
38462         Tests for module 'unistr/u16-mbsnlen'.
38463         * modules/unistr/u16-mbsnlen-tests: New file.
38464         * tests/unistr/test-u16-mbsnlen.c: New file.
38465
38466         Tests for module 'unistr/u8-mbsnlen'.
38467         * modules/unistr/u8-mbsnlen-tests: New file.
38468         * tests/unistr/test-u8-mbsnlen.c: New file.
38469
38470         Tests for module 'unistr/u32-chr'.
38471         * modules/unistr/u32-chr-tests: New file.
38472         * tests/unistr/test-u32-chr.c: New file.
38473
38474         Tests for module 'unistr/u16-chr'.
38475         * modules/unistr/u16-chr-tests: New file.
38476         * tests/unistr/test-u16-chr.c: New file.
38477
38478         Tests for module 'unistr/u8-chr'.
38479         * modules/unistr/u8-chr-tests: New file.
38480         * tests/unistr/test-u8-chr.c: New file.
38481         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38482
38483         Tests for module 'unistr/u32-cmp2'.
38484         * modules/unistr/u32-cmp2-tests: New file.
38485         * tests/unistr/test-u32-cmp2.c: New file.
38486
38487         Tests for module 'unistr/u16-cmp2'.
38488         * modules/unistr/u16-cmp2-tests: New file.
38489         * tests/unistr/test-u16-cmp2.c: New file.
38490
38491         Tests for module 'unistr/u8-cmp2'.
38492         * modules/unistr/u8-cmp2-tests: New file.
38493         * tests/unistr/test-u8-cmp2.c: New file.
38494         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38495
38496         Tests for module 'unistr/u32-cmp'.
38497         * modules/unistr/u32-cmp-tests: New file.
38498         * tests/unistr/test-u32-cmp.c: New file.
38499
38500         Tests for module 'unistr/u16-cmp'.
38501         * modules/unistr/u16-cmp-tests: New file.
38502         * tests/unistr/test-u16-cmp.c: New file.
38503
38504         Tests for module 'unistr/u8-cmp'.
38505         * modules/unistr/u8-cmp-tests: New file.
38506         * tests/unistr/test-u8-cmp.c: New file.
38507         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38508
38509         Tests for module 'unistr/u32-set'.
38510         * modules/unistr/u32-set-tests: New file.
38511         * tests/unistr/test-u32-set.c: New file.
38512
38513         Tests for module 'unistr/u16-set'.
38514         * modules/unistr/u16-set-tests: New file.
38515         * tests/unistr/test-u16-set.c: New file.
38516
38517         Tests for module 'unistr/u8-set'.
38518         * modules/unistr/u8-set-tests: New file.
38519         * tests/unistr/test-u8-set.c: New file.
38520         * tests/unistr/test-set.h: New file.
38521
38522         Tests for module 'unistr/u32-move'.
38523         * modules/unistr/u32-move-tests: New file.
38524         * tests/unistr/test-u32-move.c: New file.
38525
38526         Tests for module 'unistr/u16-move'.
38527         * modules/unistr/u16-move-tests: New file.
38528         * tests/unistr/test-u16-move.c: New file.
38529
38530         Tests for module 'unistr/u8-move'.
38531         * modules/unistr/u8-move-tests: New file.
38532         * tests/unistr/test-u8-move.c: New file.
38533         * tests/unistr/test-move.h: New file.
38534
38535         Tests for module 'unistr/u32-cpy'.
38536         * modules/unistr/u32-cpy-tests: New file.
38537         * tests/unistr/test-u32-cpy.c: New file.
38538
38539         Tests for module 'unistr/u16-cpy'.
38540         * modules/unistr/u16-cpy-tests: New file.
38541         * tests/unistr/test-u16-cpy.c: New file.
38542
38543         Tests for module 'unistr/u8-cpy'.
38544         * modules/unistr/u8-cpy-tests: New file.
38545         * tests/unistr/test-u8-cpy.c: New file.
38546         * tests/unistr/test-cpy.h: New file.
38547
38548 2010-01-09  Bruno Haible  <bruno@clisp.org>
38549
38550         Tests for module 'unistr/u32-uctomb'.
38551         * modules/unistr/u32-uctomb-tests: New file.
38552         * tests/unistr/test-u32-uctomb.c: New file.
38553
38554         Tests for module 'unistr/u16-uctomb'.
38555         * modules/unistr/u16-uctomb-tests: New file.
38556         * tests/unistr/test-u16-uctomb.c: New file.
38557
38558         Tests for module 'unistr/u8-uctomb'.
38559         * modules/unistr/u8-uctomb-tests: New file.
38560         * tests/unistr/test-u8-uctomb.c: New file.
38561
38562         Tests for module 'unistr/u32-mbtoucr'.
38563         * modules/unistr/u32-mbtoucr-tests: New file.
38564         * tests/unistr/test-u32-mbtoucr.c: New file.
38565
38566         Tests for module 'unistr/u16-mbtoucr'.
38567         * modules/unistr/u16-mbtoucr-tests: New file.
38568         * tests/unistr/test-u16-mbtoucr.c: New file.
38569
38570         Tests for module 'unistr/u8-mbtoucr'.
38571         * modules/unistr/u8-mbtoucr-tests: New file.
38572         * tests/unistr/test-u8-mbtoucr.c: New file.
38573
38574         Tests for module 'unistr/u32-mbtouc'.
38575         * modules/unistr/u32-mbtouc-tests: New file.
38576         * tests/unistr/test-u32-mbtouc.c: New file.
38577
38578         Tests for module 'unistr/u16-mbtouc'.
38579         * modules/unistr/u16-mbtouc-tests: New file.
38580         * tests/unistr/test-u16-mbtouc.c: New file.
38581
38582         Tests for module 'unistr/u8-mbtouc'.
38583         * modules/unistr/u8-mbtouc-tests: New file.
38584         * tests/unistr/test-u8-mbtouc.c: New file.
38585
38586         Tests for module 'unistr/u32-mbtouc-unsafe'.
38587         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38588         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38589         * tests/unistr/test-u32-mbtouc.h: New file.
38590
38591         Tests for module 'unistr/u16-mbtouc-unsafe'.
38592         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38593         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38594         * tests/unistr/test-u16-mbtouc.h: New file.
38595
38596         Tests for module 'unistr/u8-mbtouc-unsafe'.
38597         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38598         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38599         * tests/unistr/test-u8-mbtouc.h: New file.
38600
38601         Tests for module 'unistr/u32-mblen'.
38602         * modules/unistr/u32-mblen-tests: New file.
38603         * tests/unistr/test-u32-mblen.c: New file.
38604
38605         Tests for module 'unistr/u16-mblen'.
38606         * modules/unistr/u16-mblen-tests: New file.
38607         * tests/unistr/test-u16-mblen.c: New file.
38608
38609         Tests for module 'unistr/u8-mblen'.
38610         * modules/unistr/u8-mblen-tests: New file.
38611         * tests/unistr/test-u8-mblen.c: New file.
38612
38613         Tests for module 'unistr/u32-to-u16'.
38614         * modules/unistr/u32-to-u16-tests: New file.
38615         * tests/unistr/test-u32-to-u16.c: New file.
38616
38617         Tests for module 'unistr/u32-to-u8'.
38618         * modules/unistr/u32-to-u8-tests: New file.
38619         * tests/unistr/test-u32-to-u8.c: New file.
38620
38621         Tests for module 'unistr/u16-to-u32'.
38622         * modules/unistr/u16-to-u32-tests: New file.
38623         * tests/unistr/test-u16-to-u32.c: New file.
38624
38625         Tests for module 'unistr/u16-to-u8'.
38626         * modules/unistr/u16-to-u8-tests: New file.
38627         * tests/unistr/test-u16-to-u8.c: New file.
38628
38629         Tests for module 'unistr/u8-to-u32'.
38630         * modules/unistr/u8-to-u32-tests: New file.
38631         * tests/unistr/test-u8-to-u32.c: New file.
38632
38633         Tests for module 'unistr/u8-to-u16'.
38634         * modules/unistr/u8-to-u16-tests: New file.
38635         * tests/unistr/test-u8-to-u16.c: New file.
38636
38637         Tests for module 'unistr/u32-check'.
38638         * modules/unistr/u32-check-tests: New file.
38639         * tests/unistr/test-u32-check.c: New file.
38640
38641         Tests for module 'unistr/u16-check'.
38642         * modules/unistr/u16-check-tests: New file.
38643         * tests/unistr/test-u16-check.c: New file.
38644
38645         Tests for module 'unistr/u8-check'.
38646         * modules/unistr/u8-check-tests: New file.
38647         * tests/unistr/test-u8-check.c: New file.
38648
38649         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38650         (category_equals): New function.
38651         (main): Add more tests.
38652         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38653
38654         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38655
38656 2010-01-10  Bruno Haible  <bruno@clisp.org>
38657
38658         unistr/u*-strcoll: Try harder to distinguish different strings.
38659         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38660         compare s1 and s2 to see if they are different.
38661
38662 2010-01-10  Bruno Haible  <bruno@clisp.org>
38663
38664         unistr/u*-stpncpy: Fix the return value.
38665         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38666         description of the return value consistent with stpncpy in glibc.
38667         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38668         written non-NUL unit.
38669
38670 2010-01-10  Bruno Haible  <bruno@clisp.org>
38671
38672         unistr/u*-next: Add missing dependencies.
38673         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38674         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38675         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38676
38677 2010-01-10  Bruno Haible  <bruno@clisp.org>
38678
38679         unistr/u8-mbsnlen: Fix return value for incomplete character.
38680         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38681         u8_mblen.
38682         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38683         Remove unistr/u8-mblen.
38684         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38685         u16_mblen.
38686         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38687         Remove unistr/u16-mblen.
38688
38689 2010-01-10  Bruno Haible  <bruno@clisp.org>
38690
38691         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38692         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38693         Reported by Brian Gough <bjg@gnu.org> and
38694         Chris Clayton <chris2553@googlemail.com> via
38695         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38696
38697 2010-01-09  Bruno Haible  <bruno@clisp.org>
38698
38699         unistr/u16-to-u32: Reject invalid input.
38700         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38701         u16_mbtouc.
38702         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38703         Remove unistr/u16-mbtouc.
38704
38705         unistr/u16-to-u8: Reject invalid input.
38706         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38707         u16_mbtouc.
38708         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38709         Remove unistr/u16-mbtouc.
38710
38711         unistr/u8-to-u32: Reject invalid input.
38712         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38713         u8_mbtouc.
38714         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38715         Remove unistr/u8-mbtouc.
38716
38717         unistr/u8-to-u16: Reject invalid input.
38718         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38719         u8_mbtouc.
38720         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38721         Remove unistr/u8-mbtouc.
38722
38723 2010-01-09  Bruno Haible  <bruno@clisp.org>
38724
38725         Tests for module 'getlogin'.
38726         * modules/getlogin-tests: New file.
38727         * tests/test-getlogin.c: New file.
38728
38729         New module 'getlogin'.
38730         * lib/unistd.in.h (getlogin): New declaration.
38731         * lib/getlogin.c: New file.
38732         * m4/getlogin.m4: New file.
38733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38734         HAVE_GETLOGIN.
38735         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38736         HAVE_GETLOGIN.
38737         * modules/getlogin: New file.
38738         * doc/posix-functions/getlogin.texi: Mention the new module.
38739         Reported by John W. Eaton <jwe@gnu.org>.
38740
38741 2010-01-09  Bruno Haible  <bruno@clisp.org>
38742
38743         getlogin_r: Support for native Windows.
38744         * lib/getlogin_r.c: Include <windows.h>
38745         (getlogin_r): Implement for native Windows.
38746         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38747         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38748         via John W. Eaton <jwe@gnu.org>.
38749
38750 2010-01-09  Bruno Haible  <bruno@clisp.org>
38751
38752         getlogin_r: Small fixes.
38753         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38754         succeeds.
38755         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38756         before testing whether getlogin_r is declared. No need to set
38757         HAVE_DECL_GETLOGIN_R to 1.
38758         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38759
38760 2010-01-09  Bruno Haible  <bruno@clisp.org>
38761
38762         * lib/unistd.in.h (getlogin_r): Add comment.
38763
38764 2010-01-09  Bruno Haible  <bruno@clisp.org>
38765
38766         Tests for module 'getlogin_r'.
38767         * modules/getlogin_r-tests: New file.
38768         * tests/test-getlogin_r.c: New file.
38769
38770 2010-01-09  Jim Meyering  <meyering@redhat.com>
38771
38772         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38773         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38774         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38775
38776 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38777
38778         * lib/dup2.c (rpl_dup2): Improve comment.
38779
38780 2010-01-08  Eric Blake  <ebb9@byu.net>
38781
38782         maint.mk: allow packages to add makefile @@ exceptions
38783         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38784         (sc_makefile_check): Rename...
38785         (sc_makefile_at_at_check): ...to this, and use hook.
38786
38787         dup2: work around mingw bug
38788         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38789         Reported by Simon Josefsson.
38790
38791 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38792
38793         glob: Fix C++ compilation.
38794         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38795         C++.
38796
38797 2010-01-07  Bruno Haible  <bruno@clisp.org>
38798
38799         Fix indentation of wctype.in.h, broken since 2007-01-06.
38800         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38801
38802 2010-01-07  Bruno Haible  <bruno@clisp.org>
38803
38804         mbslen: Avoid collision with system function.
38805         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38806         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38807         * m4/mbslen.m4: New file.
38808         * modules/mbslen (Files): Add it.
38809         (configure.ac): Invoke gl_MBSLEN.
38810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38811         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38812         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38813         via Ian Beckwith <ianb@erislabs.net>.
38814
38815 2010-01-07  Bruno Haible  <bruno@clisp.org>
38816
38817         dirent: Document the last fix.
38818         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38819
38820 2010-01-07  Bruno Haible  <bruno@clisp.org>
38821
38822         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38823         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38824         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38825         va_list are defined.
38826         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38827         Reported by Eric Blake.
38828
38829 2010-01-07  Bruno Haible  <bruno@clisp.org>
38830
38831         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38832         * modules/xlist (Depends-on): Add 'list',
38833         * modules/xoset (Depends-on): Add 'oset'.
38834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38835
38836 2010-01-07  Bruno Haible  <bruno@clisp.org>
38837
38838         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38839         * doc/posix-functions/strncasecmp.texi: Likewise.
38840
38841 2010-01-07  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38844
38845 2010-01-07  John W. Eaton  <jwe@octave.org>
38846
38847         wctype: allow C++ use
38848         * lib/wctype.in.h: Add extern "C" block for C++.
38849
38850 2010-01-06  Eric Blake  <ebb9@byu.net>
38851
38852         maint.mk: detect incorrect GFDL usage
38853         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38854
38855 2010-01-06  Jim Meyering  <meyering@redhat.com>
38856         and Eric Blake  <ebb9@byu.net>
38857
38858         maint.mk: ignore multi-line copyright in NEWS
38859         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38860
38861 2010-01-06  Eric Blake  <ebb9@byu.net>
38862
38863         select: add missing dependency
38864         * modules/select-tests (Depends-on): Move sockets dependency...
38865         * modules/select (Depends-on): ...here.
38866         Reported by Ian Beckwith.
38867
38868         doc: regenerate INSTALL
38869         * doc/INSTALL: Reflect recent autoconf update.
38870         * doc/INSTALL.ISO: Likewise.
38871         * doc/INSTALL.UTF-8: Likewise.
38872
38873         pread: fix compilation on glibc
38874         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38875         Reported by Ralf Wildenhues.
38876
38877         dirent: fix test failure
38878         * lib/dirent.in.h (includes): Guarantee ino_t.
38879         Reported by Ralf Wildenhues.
38880
38881 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38882
38883         linkat, renameat: avoid bad free
38884         * lib/at-func2.c (at_func2): Fix typo.
38885         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38886
38887 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38888
38889         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38890         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38891         to avoid failure of symlink test later.
38892
38893 2010-01-06  Eric Blake  <ebb9@byu.net>
38894
38895         stdio, unistd: guarantee ssize_t
38896         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38897         2008 are exposed when needed.
38898         * lib/stdio.in.h (includes): Likewise.
38899         Reported by Ralf Wildenhues.
38900
38901 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38902
38903         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38904         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38905         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38906
38907 2010-01-06  Jim Meyering  <meyering@redhat.com>
38908
38909         readtokens: this module *does* require xalloc.h
38910         It uses only functions that were omitted by the old syntax-check rule.
38911         * lib/readtokens.c: Include "xalloc.h" once again.
38912         * modules/readtokens (Depends-on): Add xalloc.
38913         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38914
38915 2010-01-05  Eric Blake  <ebb9@byu.net>
38916
38917         maint: support 'make announcement' from a VPATH build
38918         * top/maint.mk (announcement): Look for correct NEWS file.
38919
38920 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38921
38922         utimens (fdutimens): ignore a negative FD, per contract
38923         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38924         when we have a valid file descriptor.  Otherwise, using a brand
38925         new glibc (with just-patched futimens that now fails with EBADF)
38926         would cause this function to fail with ENOSYS.
38927         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38928         See also http://bugzilla.redhat.com/552320.
38929
38930 2010-01-05  Eric Blake  <ebb9@byu.net>
38931
38932         strcase: document what it provides
38933         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38934         gnulib module.
38935         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38936         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38937
38938 2010-01-05  Jim Meyering  <meyering@redhat.com>
38939
38940         maint: remove useless inclusions of "xalloc.h"
38941         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38942         * lib/readtokens.c: Likewise.
38943         * lib/same.c: Likewise.
38944         * modules/getloadavg (Depends-on): Remove xalloc.
38945         * modules/readtokens: Likewise.
38946         * modules/same: Likewise.
38947
38948         maint.mk: include 4 more function names in alloca.h-checking regexp
38949         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38950         regexp.  Before, we would give a false-positive (saying alloca.h
38951         is included unnecessarily) when the only uses involved omitted symbols.
38952
38953         xalloc.h: use consistent formatting
38954         * lib/xalloc.h: Move declarations to start in the first column.
38955
38956 2010-01-05  Eric Blake  <ebb9@byu.net>
38957
38958         mkdir: avoid xalloc
38959         * lib/mkdir.c (includes): Drop unused header.
38960         Reported by John W. Eaton.
38961
38962 2010-01-04  Jim Meyering  <meyering@redhat.com>
38963
38964         nl_langinfo: avoid configure-time syntax error
38965         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38966         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38967         the empty string.  Don't let that provoke a shell syntax error.
38968
38969         regcomp, regexec, fnmatch: avoid array bounds read error
38970         * lib/regcomp.c (build_equiv_class): From glibc:
38971         Use only the low 24 bits of a findidx return value as an index
38972         into the weights array.  Patch by Ulrich Drepper:
38973         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38974         * lib/regexec.c (check_node_accept_bytes): Likewise.
38975         * lib/fnmatch_loop.c (FCT): Likewise.
38976
38977         regcomp: skip collseq lookup when there are no rules
38978         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38979         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38980
38981         regcomp: recognize ill-formed { } expressions
38982         * lib/regcomp.c (parse_dup_op): From glibc:
38983         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38984
38985         regcomp: fix typo in comment
38986         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38987         s/satisfy/satisfies/.
38988
38989         regcomp: sync from glibc: remove dead store
38990         * lib/regcomp.c (duplicate_node_closure): Remove useless
38991         search_duplicated_node call and dead store.
38992
38993         regcomp: sync from glibc; always use nl_langinfo
38994         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38995         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38996         * modules/regex (Depends-on): Add nl_langinfo.
38997
38998 2010-01-04  Eric Blake  <ebb9@byu.net>
38999
39000         fdopendir: fix configure test
39001         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39002
39003 2010-01-01  Bruno Haible  <bruno@clisp.org>
39004
39005         wchar: Remove unused configure check.
39006         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39007
39008 2010-01-01  Eric Blake  <ebb9@byu.net>
39009
39010         headers: make check of system header explicit
39011         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39012         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39013         ourselves.
39014         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39016         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39017         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39018         internals.
39019         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39020         missing.
39021         Suggested by Bruno Haible.
39022
39023 2010-01-01  Jim Meyering  <meyering@redhat.com>
39024
39025         ChangeLog: tweak to eliminate unnecessary copyright line
39026         * ChangeLog: Remove a copyright line that was mistakenly updated
39027         by today's update-copyright run.  Reported by Eric Blake.
39028
39029         test-update-copyright: don't let envvar setting cause test failure
39030         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39031
39032 2010-01-01  Bruno Haible  <bruno@clisp.org>
39033
39034         localename: Avoid gcc warning.
39035         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39036         function if it is not used.
39037
39038 2010-01-01  Jim Meyering  <meyering@redhat.com>
39039
39040         update nearly all FSF copyright year lists to include 2010
39041         Use the same procedure as for 2009, outlined in
39042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39043
39044         version-etc: set COPYRIGHT_YEAR to 2010
39045         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39046
39047 2009-12-31  Eric Blake  <ebb9@byu.net>
39048
39049         doc: correct availability of cygwin 1.5.x getopt
39050         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39051         variables.
39052         * doc/posix-functions/opterr.texi (opterr): Likewise.
39053         * doc/posix-functions/optind.texi (optind): Likewise.
39054         * doc/posix-functions/optopt.texi (optopt): Likewise.
39055         * doc/posix-functions/tzname.texi (tzname): Likewise.
39056
39057         openat: update maintainer
39058         * modules/openat (Maintainer): Add myself.
39059
39060         utimens: avoid shadowing warning
39061         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39062         buffers into one, to avoid shadowing, as well as avoiding a
39063         redundant stat.
39064         Reported by Jim Meyering.
39065
39066         test-dup2: avoid compiler warning
39067         * tests/test-dup2.c (is_inheritable): Only define if used.
39068
39069 2010-01-01  Bruno Haible  <bruno@clisp.org>
39070
39071         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39072         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39073         defined, use wctomb instead of wcrtomb.
39074
39075 2010-01-01  Bruno Haible  <bruno@clisp.org>
39076
39077         iconv: Reject native Solaris iconv.
39078         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39079         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39080
39081 2009-12-31  Bruno Haible  <bruno@clisp.org>
39082
39083         * tests/test-signal.c (main): Remove test of 'SIG'.
39084
39085 2009-12-31  Bruno Haible  <bruno@clisp.org>
39086
39087         spawn: Fix incomplete fix.
39088         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39089         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39090         warnings for GNULIB_POSIXCHECK again.
39091         Reported by Eric Blake.
39092
39093 2009-12-31  Bruno Haible  <bruno@clisp.org>
39094
39095         Avoid namespace pollution on glibc systems.
39096         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39097         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39098         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39099         glibc systems.
39100
39101 2009-12-31  Bruno Haible  <bruno@clisp.org>
39102
39103         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39104         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39105         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39106         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39107         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39108         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39109         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39110
39111 2009-12-31  Bruno Haible  <bruno@clisp.org>
39112
39113         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39114         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39115         afterwards.
39116
39117 2009-12-31  Bruno Haible  <bruno@clisp.org>
39118
39119         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39120         SYS_UTSNAME_H.
39121
39122 2009-12-31  Bruno Haible  <bruno@clisp.org>
39123
39124         spawn: Fix misapplied patch.
39125         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39126         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39127         warnings for GNULIB_POSIXCHECK.
39128
39129 2009-12-31  Bruno Haible  <bruno@clisp.org>
39130
39131         times: Update after sys_times changed.
39132         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39133         * modules/times (Files): Add it.
39134         (configure.ac): Invoke gl_FUNC_TIMES.
39135
39136 2009-12-31  Bruno Haible  <bruno@clisp.org>
39137
39138         Use AC_C_INLINE where necessary.
39139         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39140         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39142         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39143         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39144         * m4/mbiter.m4 (gl_MBITER): Likewise.
39145         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39146         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39147         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39148         * modules/u64 (configure.ac): Likewise.
39149
39150 2009-12-31  Bruno Haible  <bruno@clisp.org>
39151
39152         Use AC_C_INLINE instead of module 'inline' where possible.
39153         * modules/inline (Description): Clarify purpose.
39154         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39155         * modules/count-one-bits (Depends-on): Remove inline.
39156         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39157         * modules/openat (Depends-on): Remove inline.
39158         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39159         instead of depending on module 'inline'.
39160         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39161         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39162         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39163         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39164         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39165         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39166         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39167         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39168         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39169         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39170         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39171         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39172         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39173         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39174         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39175         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39176         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39177         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39178         Likewise.
39179         * modules/unictype/property-ascii-hex-digit (Depends-on,
39180         configure.ac): Likewise.
39181         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39182         configure.ac): Likewise.
39183         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39184         configure.ac): Likewise.
39185         * modules/unictype/property-bidi-block-separator (Depends-on,
39186         configure.ac): Likewise.
39187         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39188         configure.ac): Likewise.
39189         * modules/unictype/property-bidi-common-separator (Depends-on,
39190         configure.ac): Likewise.
39191         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39192         Likewise.
39193         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39194         configure.ac): Likewise.
39195         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39196         configure.ac): Likewise.
39197         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39198         configure.ac): Likewise.
39199         * modules/unictype/property-bidi-european-digit (Depends-on,
39200         configure.ac): Likewise.
39201         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39202         configure.ac): Likewise.
39203         * modules/unictype/property-bidi-left-to-right (Depends-on,
39204         configure.ac): Likewise.
39205         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39206         configure.ac): Likewise.
39207         * modules/unictype/property-bidi-other-neutral (Depends-on,
39208         configure.ac): Likewise.
39209         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39210         Likewise.
39211         * modules/unictype/property-bidi-segment-separator (Depends-on,
39212         configure.ac): Likewise.
39213         * modules/unictype/property-bidi-whitespace (Depends-on,
39214         configure.ac): Likewise.
39215         * modules/unictype/property-combining (Depends-on, configure.ac):
39216         Likewise.
39217         * modules/unictype/property-composite (Depends-on, configure.ac):
39218         Likewise.
39219         * modules/unictype/property-currency-symbol (Depends-on,
39220         configure.ac): Likewise.
39221         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39222         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39223         Likewise.
39224         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39225         configure.ac): Likewise.
39226         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39227         Likewise.
39228         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39229         Likewise.
39230         * modules/unictype/property-extender (Depends-on, configure.ac):
39231         Likewise.
39232         * modules/unictype/property-format-control (Depends-on, configure.ac):
39233         Likewise.
39234         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39235         Likewise.
39236         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39237         Likewise.
39238         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39239         Likewise.
39240         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39241         Likewise.
39242         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39243         Likewise.
39244         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39245         Likewise.
39246         * modules/unictype/property-id-start (Depends-on, configure.ac):
39247         Likewise.
39248         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39249         Likewise.
39250         * modules/unictype/property-ids-binary-operator (Depends-on,
39251         configure.ac): Likewise.
39252         * modules/unictype/property-ids-trinary-operator (Depends-on,
39253         configure.ac): Likewise.
39254         * modules/unictype/property-ignorable-control (Depends-on,
39255         configure.ac): Likewise.
39256         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39257         Likewise.
39258         * modules/unictype/property-join-control (Depends-on, configure.ac):
39259         Likewise.
39260         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39261         Likewise.
39262         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39263         Likewise.
39264         * modules/unictype/property-logical-order-exception (Depends-on,
39265         configure.ac): Likewise.
39266         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39267         Likewise.
39268         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39269         * modules/unictype/property-non-break (Depends-on, configure.ac):
39270         Likewise.
39271         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39272         Likewise.
39273         * modules/unictype/property-numeric (Depends-on, configure.ac):
39274         Likewise.
39275         * modules/unictype/property-other-alphabetic (Depends-on,
39276         configure.ac): Likewise.
39277         * modules/unictype/property-other-default-ignorable-code-point
39278         (Depends-on, configure.ac): Likewise.
39279         * modules/unictype/property-other-grapheme-extend (Depends-on,
39280         configure.ac): Likewise.
39281         * modules/unictype/property-other-id-continue (Depends-on,
39282         configure.ac): Likewise.
39283         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39284         Likewise.
39285         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39286         Likewise.
39287         * modules/unictype/property-other-math (Depends-on, configure.ac):
39288         Likewise.
39289         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39290         Likewise.
39291         * modules/unictype/property-paired-punctuation (Depends-on,
39292         configure.ac): Likewise.
39293         * modules/unictype/property-paragraph-separator (Depends-on,
39294         configure.ac): Likewise.
39295         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39296         Likewise.
39297         * modules/unictype/property-pattern-white-space (Depends-on,
39298         configure.ac): Likewise.
39299         * modules/unictype/property-private-use (Depends-on, configure.ac):
39300         Likewise.
39301         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39302         Likewise.
39303         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39304         Likewise.
39305         * modules/unictype/property-radical (Depends-on, configure.ac):
39306         Likewise.
39307         * modules/unictype/property-sentence-terminal (Depends-on,
39308         configure.ac): Likewise.
39309         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39310         Likewise.
39311         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39312         * modules/unictype/property-terminal-punctuation (Depends-on,
39313         configure.ac): Likewise.
39314         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39315         Likewise.
39316         * modules/unictype/property-unassigned-code-value (Depends-on,
39317         configure.ac): Likewise.
39318         * modules/unictype/property-unified-ideograph (Depends-on,
39319         configure.ac): Likewise.
39320         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39321         Likewise.
39322         * modules/unictype/property-variation-selector (Depends-on,
39323         configure.ac): Likewise.
39324         * modules/unictype/property-white-space (Depends-on, configure.ac):
39325         Likewise.
39326         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39327         Likewise.
39328         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39329         Likewise.
39330         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39331         Likewise.
39332         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39333         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39334         Likewise.
39335
39336 2009-12-31  Bruno Haible  <bruno@clisp.org>
39337
39338         Remove unnecessary AC_C_INLINE invocation.
39339         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39340         since 2009-08-21.
39341
39342 2009-12-31  Jim Meyering  <meyering@redhat.com>
39343
39344         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39345         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39346         With this change, we can all remove the gpg_key_ID = ... definition
39347         from our respective cfg.mk files.
39348
39349         maint.mk: create announcement template in ~/, not in /tmp
39350         * top/maint.mk (emit_upload_commands): Adjust.
39351         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39352         Remove temporary file, .ci-msg.
39353
39354 2009-12-31  Eric Blake  <ebb9@byu.net>
39355
39356         link-warning: always build headers with link warnings
39357         * modules/arpa_inet (Makefile.am): Always build replacement
39358         header.
39359         * modules/ctype (Makefile.am): Likewise.
39360         * modules/dirent (Makefile.am): Likewise.
39361         * modules/inttypes (Makefile.am): Likewise.
39362         * modules/langinfo (Makefile.am): Likewise.
39363         * modules/locale (Makefile.am): Likewise.
39364         * modules/spawn (Makefile.am): Likewise.
39365         * modules/sys_file (Makefile.am): Likewise.
39366         * modules/sys_ioctl (Makefile.am): Likewise.
39367         * modules/sys_select (Makefile.am): Likewise.
39368         * modules/sys_socket (Makefile.am): Likewise.
39369         * modules/sys_times (Makefile.am): Likewise.
39370         * modules/sys_utsname (Makefile.am): Likewise.
39371         * modules/sys_wait (Makefile.am): Likewise.
39372         * modules/wchar (Makefile.am): Likewise.
39373         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39374         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39375         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39376         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39377         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39378         Likewise.
39379         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39380         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39381         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39382         Likewise.
39383         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39384         Likewise.
39385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39387         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39389         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39390         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39391         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39392         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39393         (gl_WCHAR_H_DEFAULTS): Likewise.
39394
39395 2009-12-31  Eric Blake  <ebb9@byu.net>
39396
39397         signal, spawn: use link warnings
39398         * lib/signal.in.h (sigset_t): Make unconditional.
39399         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39400         (sigpending, sigprocmask, sigaction): Add link warnings.
39401         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39402         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39403         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39404         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39405         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39406         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39407         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39408         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39409         (posix_spawn_file_actions_destroy)
39410         (posix_spawn_file_actions_addopen)
39411         (posix_spawn_file_actions_addclose)
39412         (posix_spawn_file_actions_adddup2): Likewise.
39413         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39414         * tests/test-signal.c (main): Enhance test.
39415
39416         spawn: improve wrapper support
39417         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39418         (gl_SPAWN_H_DEFAULTS): New defaults.
39419         * modules/spawn (Makefile.am): Substitute them.
39420         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39421         Only declare if missing or broken.
39422
39423         sys_times, sys_utsname: use include_next
39424         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39425         header.
39426         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39427         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39428         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39429         * modules/sys_times (Depends-on): Add include_next.
39430         (Makefile.am): Substitute additional values.
39431         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39432         * lib/sys_times.in.h (includes): Include native header, if
39433         available.
39434         * lib/sys_utsname.in.h (includes): Likewise.
39435         * tests/test-sys_times.c (main): Enhance test.
39436
39437         fdutimensat: revert prior patch
39438         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39439         utimens.h.
39440         Reported by Bruno Haible.
39441
39442 2009-12-30  Eric Blake  <ebb9@byu.net>
39443
39444         sys_wait: drop link-warning dependency
39445         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39446         link-warning efforts.
39447         * lib/sys_wait.in.h: Likewise.
39448
39449         fdutimensat: remove bogus dependency
39450         * modules/fdutimensat (Depends-on): Drop inline.
39451
39452         unistd: fix typo
39453         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39454
39455 2009-12-30  Bruno Haible  <bruno@clisp.org>
39456
39457         Fix compilation error with Solaris cc.
39458         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39459         * lib/unicase/u16-is-invariant.c: Likewise.
39460         * lib/unicase/u32-is-invariant.c: Likewise.
39461         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39462
39463 2009-12-30  Bruno Haible  <bruno@clisp.org>
39464
39465         Fix test crash.
39466         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39467         locales.
39468         Reported by Simon Josefsson <simon@josefsson.org>.
39469
39470 2009-12-30  Bruno Haible  <bruno@clisp.org>
39471
39472         Fix compilation error on most platforms.
39473         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39474         Reported by Simon Josefsson <simon@josefsson.org>
39475         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39476
39477 2009-12-30  Eric Blake  <ebb9@byu.net>
39478
39479         futimens, utimensat: work around ntfs-3g bug
39480         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39481         a ctime bug is present, and expand workaround to cover ntfs-3g.
39482         * lib/utimens.c (fdutimens, lutimens): Likewise.
39483         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39484         (validate_timespec): Adjust return value.
39485         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39486         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39487         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39488
39489 2009-12-29  Eric Blake  <ebb9@byu.net>
39490
39491         link-warning: make usage consistent
39492         * modules/ctype (Depends-on): Add link-warning.
39493         (Makefile.am): Update rules accordingly.
39494         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39495         * modules/locale (Depends-on, Makefile.am): Likewise.
39496         * modules/sys_file (Makefile.am): Likewise.
39497         * modules/getopt-posix (Makefile.am): Delete unused link warning
39498         efforts.
39499         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39500         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39501         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39502         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39503
39504         stdio: remove unused variables
39505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39507         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39508
39509         tests: test more substitute headers
39510         * modules/ctype-tests: New file.
39511         * modules/dirent-tests: Likewise.
39512         * modules/spawn-tests: Likewise.
39513         * modules/sys_file-tests: Likewise.
39514         * modules/sys_ioctl-tests: Likewise.
39515         * modules/sys_wait-tests: Likewise.
39516         * tests/test-ctype.c: Likewise.
39517         * tests/test-dirent.c: Likewise.
39518         * tests/test-spawn.c: Likewise.
39519         * tests/test-sys_file.c: Likewise.
39520         * tests/test-sys_ioctl.c: Likewise.
39521         * tests/test-sys_wait.c: Likewise.
39522         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39523         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39524         whether or not flock is in use.
39525
39526         tests: remove License section from module
39527         * modules/arpa_inet-tests: Remove unneeded section.
39528         * modules/byteswap-tests: Likewise.
39529         * modules/ceilf-tests: Likewise.
39530         * modules/ceill-tests: Likewise.
39531         * modules/crypto/des-tests: Likewise.
39532         * modules/crypto/gc-arcfour-tests: Likewise.
39533         * modules/crypto/gc-arctwo-tests: Likewise.
39534         * modules/crypto/gc-des-tests: Likewise.
39535         * modules/crypto/gc-hmac-md5-tests: Likewise.
39536         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39537         * modules/crypto/gc-md2-tests: Likewise.
39538         * modules/crypto/gc-md4-tests: Likewise.
39539         * modules/crypto/gc-md5-tests: Likewise.
39540         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39541         * modules/crypto/gc-rijndael-tests: Likewise.
39542         * modules/crypto/gc-sha1-tests: Likewise.
39543         * modules/crypto/gc-tests: Likewise.
39544         * modules/crypto/md2-tests: Likewise.
39545         * modules/crypto/md4-tests: Likewise.
39546         * modules/fcntl-h-tests: Likewise.
39547         * modules/floorf-tests: Likewise.
39548         * modules/floorl-tests: Likewise.
39549         * modules/frexp-nolibm-tests: Likewise.
39550         * modules/frexp-tests: Likewise.
39551         * modules/frexpl-nolibm-tests: Likewise.
39552         * modules/frexpl-tests: Likewise.
39553         * modules/getaddrinfo-tests: Likewise.
39554         * modules/inttypes-tests: Likewise.
39555         * modules/isfinite-tests: Likewise.
39556         * modules/isinf-tests: Likewise.
39557         * modules/ldexpl-tests: Likewise.
39558         * modules/locale-tests: Likewise.
39559         * modules/math-tests: Likewise.
39560         * modules/netdb-tests: Likewise.
39561         * modules/netinet_in-tests: Likewise.
39562         * modules/printf-frexp-tests: Likewise.
39563         * modules/printf-frexpl-tests: Likewise.
39564         * modules/priv-set-tests: Likewise.
39565         * modules/random_r-tests: Likewise.
39566         * modules/round-tests: Likewise.
39567         * modules/roundf-tests: Likewise.
39568         * modules/roundl-tests: Likewise.
39569         * modules/search-tests: Likewise.
39570         * modules/select-tests: Likewise.
39571         * modules/signal-tests: Likewise.
39572         * modules/stdbool-tests: Likewise.
39573         * modules/stddef-tests: Likewise.
39574         * modules/stdint-tests: Likewise.
39575         * modules/stdio-tests: Likewise.
39576         * modules/stdlib-tests: Likewise.
39577         * modules/string-tests: Likewise.
39578         * modules/strings-tests: Likewise.
39579         * modules/sys_select-tests: Likewise.
39580         * modules/sys_socket-tests: Likewise.
39581         * modules/sys_stat-tests: Likewise.
39582         * modules/sys_time-tests: Likewise.
39583         * modules/sys_utsname-tests: Likewise.
39584         * modules/sysexits-tests: Likewise.
39585         * modules/time-tests: Likewise.
39586         * modules/trunc-tests: Likewise.
39587         * modules/truncf-tests: Likewise.
39588         * modules/truncl-tests: Likewise.
39589         * modules/tsearch-tests: Likewise.
39590         * modules/unistd-tests: Likewise.
39591         * modules/wchar-tests: Likewise.
39592         * modules/wctype-tests: Likewise.
39593
39594         tests: fix license on several tests
39595         * tests/test-des.c: Update to GPLv3+.
39596         * tests/test-flock.c: Likewise.
39597         * tests/test-fsync.c: Likewise.
39598         * tests/test-futimens.h: Likewise.
39599         * tests/test-gc-arcfour.c: Likewise.
39600         * tests/test-gc-arctwo.c: Likewise.
39601         * tests/test-gc-des.c: Likewise.
39602         * tests/test-gc-hmac-md5.c: Likewise.
39603         * tests/test-gc-hmac-sha1.c: Likewise.
39604         * tests/test-gc-md2.c: Likewise.
39605         * tests/test-gc-md4.c: Likewise.
39606         * tests/test-gc-md5.c: Likewise.
39607         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39608         * tests/test-gc-rijndael.c: Likewise.
39609         * tests/test-gc-sha1.c: Likewise.
39610         * tests/test-gc.c: Likewise.
39611         * tests/test-getcwd.c: Likewise.
39612         * tests/test-link.c: Likewise.
39613         * tests/test-link.h: Likewise.
39614         * tests/test-lutimens.h: Likewise.
39615         * tests/test-md2.c: Likewise.
39616         * tests/test-md4.c: Likewise.
39617         * tests/test-mkdir.h: Likewise.
39618         * tests/test-rename.c: Likewise.
39619         * tests/test-rename.h: Likewise.
39620         * tests/test-safe-alloc.c: Likewise.
39621         * tests/test-utimens-common.h: Likewise.
39622         * tests/test-utimens.h: Likewise.
39623
39624         maint: sync license texts
39625         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39626         * doc/gpl-3.0.texi: Revert copyright year update.
39627         * doc/lgpl-3.0.texi: Likewise.
39628
39629 2009-12-29  Jim Meyering  <meyering@redhat.com>
39630
39631         update nearly all FSF copyright year lists to include 2009
39632         The files named by the following are exempted:
39633             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39634               test -f "$dst" && { echo "$dst"; continue; }
39635               test -d "$dst" || continue
39636               echo "$dst"/$(basename "$src")
39637             done > exempt
39638             git ls-files tests/unictype >> exempt
39639         In the remaining files, convert to all-interval notation if
39640         - there is already at least one year interval like 2000-2003
39641         - the file is maintained by me
39642         - the file is in lib/uni*/, where that style already prevails
39643         Otherwise, use update-copyright's default.
39644
39645 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39646         and Eric Blake  <ebb9@byu.net>
39647
39648         tests: don't require debug system() to pass
39649         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39650         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39651         * tests/test-unlink.h (test_unlink_func): Likewise.
39652         * tests/test-fstatat.c (main): ...into callers.
39653         * tests/test-lstat.c (main): Likewise.
39654         * tests/test-rmdir.c (main): Likewise.
39655         * tests/test-unlink.c (main): Likewise.
39656         * tests/test-unlinkat.c (main): Likewise.
39657         * tests/test-areadlink-with-size.c (main): Don't require a
39658         debug-only system call to pass, aiding cross-testing to mingw.
39659         * tests/test-areadlink.c (main): Likewise.
39660         * tests/test-areadlinkat-with-size.c (main): Likewise.
39661         * tests/test-areadlinkat.c (main): Likewise.
39662         * tests/test-canonicalize-lgpl.c (main): Likewise.
39663         * tests/test-canonicalize.c (main): Likewise.
39664         * tests/test-chown.c (main): Likewise.
39665         * tests/test-fchownat.c (main): Likewise.
39666         * tests/test-lchown.c (main): Likewise.
39667         * tests/test-fdutimensat.c (main): Likewise.
39668         * tests/test-futimens.c (main): Likewise.
39669         * tests/test-link.c (main): Likewise.
39670         * tests/test-linkat.c (main): Likewise.
39671         * tests/test-mkdir.c (main): Likewise.
39672         * tests/test-mkdirat.c (main): Likewise.
39673         * tests/test-mkfifo.c (main): Likewise.
39674         * tests/test-mkfifoat.c (main): Likewise.
39675         * tests/test-mknod.c (main): Likewise.
39676         * tests/test-readlink.c (main): Likewise.
39677         * tests/test-remove.c (main): Likewise.
39678         * tests/test-rename.c (main): Likewise.
39679         * tests/test-renameat.c (main): Likewise.
39680         * tests/test-symlink.c (main): Likewise.
39681         * tests/test-symlinkat.c (main): Likewise.
39682         * tests/test-utimens.c (main): Likewise.
39683         * tests/test-utimensat.c (main): Likewise.
39684
39685 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39686
39687         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39688         on $(UNUSED_PARAMETER_H) to avoid build failure.
39689
39690 2009-12-28  Jim Meyering  <meyering@redhat.com>
39691
39692         update-copyright: you may specify a max. line length other than 72
39693         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39694
39695         maint: use consistent FSF copyright line syntax
39696         * lib/posixtm.c: Add missing comma in FSF copyright line.
39697         * lib/posixtm.h: Likewise.
39698         * lib/getugroups.c: Add missing ", Inc.".
39699
39700         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39701         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39702         FSF copyright line.  Remove trailing blanks.
39703
39704 2009-12-28  Eric Blake  <ebb9@byu.net>
39705
39706         test-dup2: reduce dependencies
39707         * modules/cloexec (Configure.ac): Set witness.
39708         * modules/dup2-tests (Depends-on): Drop cloexec.
39709         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39710         not present.
39711         Suggested by Bruno Haible.
39712
39713 2009-12-26  Bruno Haible  <bruno@clisp.org>
39714
39715         Remove an unneeded dependency.
39716         * modules/fseterr (Depends-on): Remove dup2.
39717
39718 2009-12-26  Eric Blake  <ebb9@byu.net>
39719
39720         tests: use macros.h in more places
39721         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39722         (ASSERT_STREAM): Provide default of stderr.
39723         * tests/test-dirent-safer.c: Include macros.h, using alternate
39724         stream for assertions.
39725         * tests/test-dup-safer.c: Likewise.
39726         * tests/test-freopen-safer.c: Likewise.
39727         * tests/test-getopt.c: Likewise.
39728         * tests/test-openat-safer.c: Likewise.
39729         * tests/test-pipe.c: Likewise.
39730         * tests/test-popen-safer.c: Likewise.
39731         * modules/dirent-safer-tests (Files): Include macros.h.
39732         * modules/unistd-safer-tests (Files): Likewise.
39733         * modules/freopen-safer-tests (Files): Likewise.
39734         * modules/getopt-posix-tests (Files): Likewise.
39735         * modules/openat-safer-tests (Files): Likewise.
39736         * modules/pipe-tests (Files): Likewise.
39737
39738 2009-12-26  Bruno Haible  <bruno@clisp.org>
39739
39740         javacomp: Portability fix.
39741         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39742         that it also works on Solaris.
39743
39744 2009-12-26  Bruno Haible  <bruno@clisp.org>
39745
39746         localename: Fix storage allocation of gl_locale_name_thread's result.
39747         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39748         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39749         all platforms that have 'uselocale'.
39750         (gl_locale_name_thread_unsafe): New function, extracted from
39751         gl_locale_name_thread.
39752         (gl_locale_name_thread): Call struniq on all platforms that have
39753         'uselocale'.
39754         * tests/test-localename.c (test_locale_name_thread): Check that the
39755         resulting strings are permanently allocated.
39756         * modules/localename-tests (Depends-on): Add strdup.
39757
39758 2009-12-26  Bruno Haible  <bruno@clisp.org>
39759
39760         * tests/test-localename.c (categories): Fill in the strings.
39761
39762 2009-12-26  Jim Meyering  <meyering@redhat.com>
39763
39764         isdir: complete the removal of m4/isdir.m4
39765         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39766
39767         isdir: clean up, since at least grep still uses it
39768         * lib/isdir.c: Include "isdir.h".
39769         (S_ISDIR): Remove now-unneeded definition.
39770         * modules/isdir (Files): Add lib/isdir.h.
39771         * lib/isdir.h: New file, with declaration.
39772         * m4/isdir.m4: Remove file -- unneeded.
39773
39774 2009-12-25  Bruno Haible  <bruno@clisp.org>
39775
39776         selinux-h: Make generated .h files standalone.
39777         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39778         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39779         * lib/se-selinux.in.h: Likewise.
39780         * modules/selinux-h (Depends-on): Add unused-parameter.
39781         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39782         selinux/selinux.h and selinux/context.h.
39783         Suggested by Eric Blake.
39784
39785 2009-12-25  Bruno Haible  <bruno@clisp.org>
39786
39787         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39788         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39789         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39790         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39791         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39792
39793 2009-12-24  Bruno Haible  <bruno@clisp.org>
39794
39795         openat: Fix warning.
39796         * lib/openat-proc.c: Include <unistd.h>.
39797
39798 2009-12-24  Bruno Haible  <bruno@clisp.org>
39799
39800         New module 'unused-parameter'.
39801         * build-aux/unused-parameter.h: New file, extracted from earlier
39802         gnulib-common.m4.
39803         * modules/unused-parameter: New file.
39804         * lib/unistr.h: Include unused-parameter.h.
39805         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39806         _GL_UNUSED.
39807         * modules/unistr/base (Depends-on): Add unused-parameter.
39808
39809 2009-12-24  Bruno Haible  <bruno@clisp.org>
39810
39811         Add missing dependencies to 'extensions' module.
39812         * m4/extensions.m4: Add comment.
39813         * modules/accept4 (Depends-on): Add extensions.
39814         * modules/dup3 (Depends-on): Likewise.
39815         * modules/fcntl (Depends-on): Likewise.
39816         * modules/futimens (Depends-on): Likewise.
39817         * modules/mknod (Depends-on): Likewise.
39818         * modules/pipe2 (Depends-on): Likewise.
39819         * modules/stat-time (Depends-on): Likewise.
39820         * modules/strcasestr-simple (Depends-on): Likewise.
39821         * modules/strsignal (Depends-on): Likewise.
39822         * modules/utimensat (Depends-on): Likewise.
39823         * modules/localcharset (Depends-on): Likewise. Needed because of
39824         gl_FCNTL_O_FLAGS.
39825         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39826         AC_TYPE_MBSTATE_T.
39827         * modules/wcsnrtombs (Depends-on): Likewise.
39828         * modules/wcsrtombs (Depends-on): Likewise.
39829
39830 2009-12-24  Bruno Haible  <bruno@clisp.org>
39831
39832         binary-io: Avoid gcc warning due to SET_BINARY.
39833         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39834         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39835
39836 2009-12-24  Bruno Haible  <bruno@clisp.org>
39837
39838         Avoid future namespace pollution on glibc systems.
39839         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39840         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39841         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39842         glibc systems.
39843
39844 2009-12-24  Bruno Haible  <bruno@clisp.org>
39845
39846         Refactor common macros used in tests.
39847         * tests/macros.h: New file.
39848         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39849         and/or <stdlib.h>, if appropriate.
39850         (ASSERT, SIZEOF): Remove macros.
39851         * tests/test-areadlink-with-size.c: Likewise.
39852         * tests/test-areadlinkat.c: Likewise.
39853         * tests/test-areadlinkat-with-size.c: Likewise.
39854         * tests/test-argmatch.c: Likewise.
39855         * tests/test-argv-iter.c: Likewise.
39856         * tests/test-array-mergesort.c: Likewise.
39857         * tests/test-array_list.c: Likewise.
39858         * tests/test-array_oset.c: Likewise.
39859         * tests/test-avltree_list.c: Likewise.
39860         * tests/test-avltree_oset.c: Likewise.
39861         * tests/test-avltreehash_list.c: Likewise.
39862         * tests/test-base64.c: Likewise.
39863         * tests/test-binary-io.c: Likewise.
39864         * tests/test-bitrotate.c: Likewise.
39865         * tests/test-btowc.c: Likewise.
39866         * tests/test-byteswap.c: Likewise.
39867         * tests/test-c-ctype.c: Likewise.
39868         * tests/test-c-stack.c: Likewise.
39869         * tests/test-c-strcasecmp.c: Likewise.
39870         * tests/test-c-strcasestr.c: Likewise.
39871         * tests/test-c-strncasecmp.c: Likewise.
39872         * tests/test-c-strstr.c: Likewise.
39873         * tests/test-canonicalize-lgpl.c: Likewise.
39874         * tests/test-canonicalize.c: Likewise.
39875         * tests/test-carray_list.c: Likewise.
39876         * tests/test-ceilf1.c: Likewise.
39877         * tests/test-ceilf2.c: Likewise.
39878         * tests/test-ceill.c: Likewise.
39879         * tests/test-chown.c: Likewise.
39880         * tests/test-cloexec.c: Likewise.
39881         * tests/test-copy-acl.c: Likewise.
39882         * tests/test-copy-file.c: Likewise.
39883         * tests/test-count-one-bits.c: Likewise.
39884         * tests/test-dprintf-posix.c: Likewise.
39885         * tests/test-dup2.c: Likewise.
39886         * tests/test-dup3.c: Likewise.
39887         * tests/test-duplocale.c: Likewise.
39888         * tests/test-fbufmode.c: Likewise.
39889         * tests/test-fchdir.c: Likewise.
39890         * tests/test-fchownat.c: Likewise.
39891         * tests/test-fcntl-safer.c: Likewise.
39892         * tests/test-fcntl.c: Likewise.
39893         * tests/test-fdopendir.c: Likewise.
39894         * tests/test-fdutimensat.c: Likewise.
39895         * tests/test-fflush2.c: Likewise.
39896         * tests/test-file-has-acl.c: Likewise.
39897         * tests/test-filevercmp.c: Likewise.
39898         * tests/test-flock.c: Likewise.
39899         * tests/test-floorf1.c: Likewise.
39900         * tests/test-floorf2.c: Likewise.
39901         * tests/test-floorl.c: Likewise.
39902         * tests/test-fnmatch.c: Likewise.
39903         * tests/test-fopen.h: Likewise.
39904         * tests/test-fpending.c: Likewise.
39905         * tests/test-fprintf-posix.c: Likewise.
39906         * tests/test-fpurge.c: Likewise.
39907         * tests/test-freadable.c: Likewise.
39908         * tests/test-freadahead.c: Likewise.
39909         * tests/test-freading.c: Likewise.
39910         * tests/test-freadptr.c: Likewise.
39911         * tests/test-freadptr2.c: Likewise.
39912         * tests/test-freadseek.c: Likewise.
39913         * tests/test-freopen.c: Likewise.
39914         * tests/test-frexp.c: Likewise.
39915         * tests/test-frexpl.c: Likewise.
39916         * tests/test-fseek.c: Likewise.
39917         * tests/test-fseeko.c: Likewise.
39918         * tests/test-fstatat.c: Likewise.
39919         * tests/test-fstrcmp.c: Likewise.
39920         * tests/test-fsync.c: Likewise.
39921         * tests/test-ftell.c: Likewise.
39922         * tests/test-ftello.c: Likewise.
39923         * tests/test-func.c: Likewise.
39924         * tests/test-futimens.c: Likewise.
39925         * tests/test-fwritable.c: Likewise.
39926         * tests/test-fwriting.c: Likewise.
39927         * tests/test-getcwd.c: Likewise.
39928         * tests/test-getdate.c: Likewise.
39929         * tests/test-getdelim.c: Likewise.
39930         * tests/test-getdtablesize.c: Likewise.
39931         * tests/test-getgroups.c: Likewise.
39932         * tests/test-getline.c: Likewise.
39933         * tests/test-getndelim2.c: Likewise.
39934         * tests/test-glob.c: Likewise.
39935         * tests/test-hash.c: Likewise.
39936         * tests/test-i-ring.c: Likewise.
39937         * tests/test-iconv-utf.c: Likewise.
39938         * tests/test-iconv.c: Likewise.
39939         * tests/test-idpriv-drop.c: Likewise.
39940         * tests/test-idpriv-droptemp.c: Likewise.
39941         * tests/test-inet_ntop.c: Likewise.
39942         * tests/test-inet_pton.c: Likewise.
39943         * tests/test-isblank.c: Likewise.
39944         * tests/test-isfinite.c: Likewise.
39945         * tests/test-isinf.c: Likewise.
39946         * tests/test-isnan.c: Likewise.
39947         * tests/test-isnand.h: Likewise.
39948         * tests/test-isnanf.h: Likewise.
39949         * tests/test-isnanl.h: Likewise.
39950         * tests/test-lchown.c: Likewise.
39951         * tests/test-ldexpl.c: Likewise.
39952         * tests/test-link.c: Likewise.
39953         * tests/test-linkat.c: Likewise.
39954         * tests/test-linked_list.c: Likewise.
39955         * tests/test-linkedhash_list.c: Likewise.
39956         * tests/test-localename.c: Likewise.
39957         * tests/test-lseek.c: Likewise.
39958         * tests/test-lstat.c: Likewise.
39959         * tests/test-mbmemcasecmp.c: Likewise.
39960         * tests/test-mbmemcasecoll.c: Likewise.
39961         * tests/test-mbrtowc.c: Likewise.
39962         * tests/test-mbscasecmp.c: Likewise.
39963         * tests/test-mbscasestr1.c: Likewise.
39964         * tests/test-mbscasestr2.c: Likewise.
39965         * tests/test-mbscasestr3.c: Likewise.
39966         * tests/test-mbscasestr4.c: Likewise.
39967         * tests/test-mbschr.c: Likewise.
39968         * tests/test-mbscspn.c: Likewise.
39969         * tests/test-mbsinit.c: Likewise.
39970         * tests/test-mbsncasecmp.c: Likewise.
39971         * tests/test-mbsnrtowcs.c: Likewise.
39972         * tests/test-mbspbrk.c: Likewise.
39973         * tests/test-mbspcasecmp.c: Likewise.
39974         * tests/test-mbsrchr.c: Likewise.
39975         * tests/test-mbsrtowcs.c: Likewise.
39976         * tests/test-mbsspn.c: Likewise.
39977         * tests/test-mbsstr1.c: Likewise.
39978         * tests/test-mbsstr2.c: Likewise.
39979         * tests/test-mbsstr3.c: Likewise.
39980         * tests/test-memchr.c: Likewise.
39981         * tests/test-memchr2.c: Likewise.
39982         * tests/test-memcmp.c: Likewise.
39983         * tests/test-memmem.c: Likewise.
39984         * tests/test-memrchr.c: Likewise.
39985         * tests/test-mkdir.c: Likewise.
39986         * tests/test-mkdirat.c: Likewise.
39987         * tests/test-mkfifo.c: Likewise.
39988         * tests/test-mkfifoat.c: Likewise.
39989         * tests/test-mknod.c: Likewise.
39990         * tests/test-nanosleep.c: Likewise.
39991         * tests/test-nl_langinfo.c: Likewise.
39992         * tests/test-obstack-printf.c: Likewise.
39993         * tests/test-open.c: Likewise.
39994         * tests/test-openat.c: Likewise.
39995         * tests/test-pipe-filter-gi1.c: Likewise.
39996         * tests/test-pipe-filter-gi2-main.c: Likewise.
39997         * tests/test-pipe-filter-ii1.c: Likewise.
39998         * tests/test-pipe-filter-ii2-main.c: Likewise.
39999         * tests/test-pipe2.c: Likewise.
40000         * tests/test-popen.h: Likewise.
40001         * tests/test-posixtm.c: Likewise.
40002         * tests/test-pread.c: Likewise.
40003         * tests/test-printf-frexp.c: Likewise.
40004         * tests/test-printf-frexpl.c: Likewise.
40005         * tests/test-printf-posix.c: Likewise.
40006         * tests/test-priv-set.c: Likewise.
40007         * tests/test-quotearg.c: Likewise.
40008         * tests/test-random_r.c: Likewise.
40009         * tests/test-rawmemchr.c: Likewise.
40010         * tests/test-rbtree_list.c: Likewise.
40011         * tests/test-rbtree_oset.c: Likewise.
40012         * tests/test-rbtreehash_list.c: Likewise.
40013         * tests/test-readlink.c: Likewise.
40014         * tests/test-remove.c: Likewise.
40015         * tests/test-rename.c: Likewise.
40016         * tests/test-renameat.c: Likewise.
40017         * tests/test-rmdir.c: Likewise.
40018         * tests/test-round1.c: Likewise.
40019         * tests/test-roundf1.c: Likewise.
40020         * tests/test-roundl.c: Likewise.
40021         * tests/test-safe-alloc.c: Likewise.
40022         * tests/test-sameacls.c: Likewise.
40023         * tests/test-set-mode-acl.c: Likewise.
40024         * tests/test-setenv.c: Likewise.
40025         * tests/test-sigaction.c: Likewise.
40026         * tests/test-signbit.c: Likewise.
40027         * tests/test-sleep.c: Likewise.
40028         * tests/test-snprintf-posix.c: Likewise.
40029         * tests/test-snprintf.c: Likewise.
40030         * tests/test-sprintf-posix.c: Likewise.
40031         * tests/test-stat-time.c: Likewise.
40032         * tests/test-stat.c: Likewise.
40033         * tests/test-strcasestr.c: Likewise.
40034         * tests/test-strchrnul.c: Likewise.
40035         * tests/test-strerror.c: Likewise.
40036         * tests/test-striconv.c: Likewise.
40037         * tests/test-striconveh.c: Likewise.
40038         * tests/test-striconveha.c: Likewise.
40039         * tests/test-strsignal.c: Likewise.
40040         * tests/test-strstr.c: Likewise.
40041         * tests/test-strtod.c: Likewise.
40042         * tests/test-strverscmp.c: Likewise.
40043         * tests/test-symlink.c: Likewise.
40044         * tests/test-symlinkat.c: Likewise.
40045         * tests/test-trunc1.c: Likewise.
40046         * tests/test-trunc2.c: Likewise.
40047         * tests/test-truncf1.c: Likewise.
40048         * tests/test-truncf2.c: Likewise.
40049         * tests/test-truncl.c: Likewise.
40050         * tests/test-uname.c: Likewise.
40051         * tests/test-unlink.c: Likewise.
40052         * tests/test-unlinkat.c: Likewise.
40053         * tests/test-unsetenv.c: Likewise.
40054         * tests/test-usleep.c: Likewise.
40055         * tests/test-utimens.c: Likewise.
40056         * tests/test-utimensat.c: Likewise.
40057         * tests/test-vasnprintf-posix.c: Likewise.
40058         * tests/test-vasnprintf-posix2.c: Likewise.
40059         * tests/test-vasnprintf.c: Likewise.
40060         * tests/test-vasprintf-posix.c: Likewise.
40061         * tests/test-vasprintf.c: Likewise.
40062         * tests/test-vdprintf-posix.c: Likewise.
40063         * tests/test-vfprintf-posix.c: Likewise.
40064         * tests/test-vprintf-posix.c: Likewise.
40065         * tests/test-vsnprintf-posix.c: Likewise.
40066         * tests/test-vsnprintf.c: Likewise.
40067         * tests/test-vsprintf-posix.c: Likewise.
40068         * tests/test-wcrtomb.c: Likewise.
40069         * tests/test-wcsnrtombs.c: Likewise.
40070         * tests/test-wcsrtombs.c: Likewise.
40071         * tests/test-wctype.c: Likewise.
40072         * tests/test-wcwidth.c: Likewise.
40073         * tests/test-xfprintf-posix.c: Likewise.
40074         * tests/test-xmemdup0.c: Likewise.
40075         * tests/test-xprintf-posix.c: Likewise.
40076         * tests/test-xvasprintf.c: Likewise.
40077         * tests/unicase/test-locale-language.c: Likewise.
40078         * tests/unicase/test-mapping-part1.h: Likewise.
40079         * tests/unicase/test-predicate-part1.h: Likewise.
40080         * tests/unicase/test-u8-casecmp.c: Likewise.
40081         * tests/unicase/test-u8-casecoll.c: Likewise.
40082         * tests/unicase/test-u8-casefold.c: Likewise.
40083         * tests/unicase/test-u8-is-cased.c: Likewise.
40084         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40085         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40086         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40087         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40088         * tests/unicase/test-u8-tolower.c: Likewise.
40089         * tests/unicase/test-u8-totitle.c: Likewise.
40090         * tests/unicase/test-u8-toupper.c: Likewise.
40091         * tests/unicase/test-u16-casecmp.c: Likewise.
40092         * tests/unicase/test-u16-casecoll.c: Likewise.
40093         * tests/unicase/test-u16-casefold.c: Likewise.
40094         * tests/unicase/test-u16-is-cased.c: Likewise.
40095         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40096         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40097         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40098         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40099         * tests/unicase/test-u16-tolower.c: Likewise.
40100         * tests/unicase/test-u16-totitle.c: Likewise.
40101         * tests/unicase/test-u16-toupper.c: Likewise.
40102         * tests/unicase/test-u32-casecmp.c: Likewise.
40103         * tests/unicase/test-u32-casecoll.c: Likewise.
40104         * tests/unicase/test-u32-casefold.c: Likewise.
40105         * tests/unicase/test-u32-is-cased.c: Likewise.
40106         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40107         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40108         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40109         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40110         * tests/unicase/test-u32-tolower.c: Likewise.
40111         * tests/unicase/test-u32-totitle.c: Likewise.
40112         * tests/unicase/test-u32-toupper.c: Likewise.
40113         * tests/unicase/test-ulc-casecmp.c: Likewise.
40114         * tests/unicase/test-ulc-casecoll.c: Likewise.
40115         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40116         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40117         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40118         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40119         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40120         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40121         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40122         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40123         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40124         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40125         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40126         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40127         * tests/unictype/test-bidi_byname.c: Likewise.
40128         * tests/unictype/test-bidi_name.c: Likewise.
40129         * tests/unictype/test-bidi_of.c: Likewise.
40130         * tests/unictype/test-bidi_test.c: Likewise.
40131         * tests/unictype/test-block_list.c: Likewise.
40132         * tests/unictype/test-block_of.c: Likewise.
40133         * tests/unictype/test-block_test.c: Likewise.
40134         * tests/unictype/test-categ_and.c: Likewise.
40135         * tests/unictype/test-categ_and_not.c: Likewise.
40136         * tests/unictype/test-categ_byname.c: Likewise.
40137         * tests/unictype/test-categ_name.c: Likewise.
40138         * tests/unictype/test-categ_none.c: Likewise.
40139         * tests/unictype/test-categ_of.c: Likewise.
40140         * tests/unictype/test-categ_or.c: Likewise.
40141         * tests/unictype/test-categ_test_withtable.c: Likewise.
40142         * tests/unictype/test-combining.c: Likewise.
40143         * tests/unictype/test-decdigit.c: Likewise.
40144         * tests/unictype/test-digit.c: Likewise.
40145         * tests/unictype/test-mirror.c: Likewise.
40146         * tests/unictype/test-numeric.c: Likewise.
40147         * tests/unictype/test-pr_byname.c: Likewise.
40148         * tests/unictype/test-pr_test.c: Likewise.
40149         * tests/unictype/test-predicate-part1.h: Likewise.
40150         * tests/unictype/test-scripts.c: Likewise.
40151         * tests/unictype/test-sy_c_ident.c: Likewise.
40152         * tests/unictype/test-sy_java_ident.c: Likewise.
40153         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40154         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40155         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40156         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40157         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40158         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40159         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40160         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40161         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40162         * tests/uninorm/test-compat-decomposition.c: Likewise.
40163         * tests/uninorm/test-composition.c: Likewise.
40164         * tests/uninorm/test-decomposing-form.c: Likewise.
40165         * tests/uninorm/test-decomposition.c: Likewise.
40166         * tests/uninorm/test-u8-nfc.c: Likewise.
40167         * tests/uninorm/test-u8-nfd.c: Likewise.
40168         * tests/uninorm/test-u8-nfkc.c: Likewise.
40169         * tests/uninorm/test-u8-nfkd.c: Likewise.
40170         * tests/uninorm/test-u8-normcmp.c: Likewise.
40171         * tests/uninorm/test-u8-normcoll.c: Likewise.
40172         * tests/uninorm/test-u16-nfc.c: Likewise.
40173         * tests/uninorm/test-u16-nfd.c: Likewise.
40174         * tests/uninorm/test-u16-nfkc.c: Likewise.
40175         * tests/uninorm/test-u16-nfkd.c: Likewise.
40176         * tests/uninorm/test-u16-normcmp.c: Likewise.
40177         * tests/uninorm/test-u16-normcoll.c: Likewise.
40178         * tests/uninorm/test-u32-nfc.c: Likewise.
40179         * tests/uninorm/test-u32-nfd.c: Likewise.
40180         * tests/uninorm/test-u32-nfkc.c: Likewise.
40181         * tests/uninorm/test-u32-nfkd.c: Likewise.
40182         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40183         * tests/uninorm/test-u32-normcmp.c: Likewise.
40184         * tests/uninorm/test-u32-normcoll.c: Likewise.
40185         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40186         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40187         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40188         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40189         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40190         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40191         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40192         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40193         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40194         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40195         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40196         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40197         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40198         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40199         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40200         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40201         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40202         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40203         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40204         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40205         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40206         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40207         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40208         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40209         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40210         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40211         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40212         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40213         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40214         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40215         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40216         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40217         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40218         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40219         * tests/uniwidth/test-u8-width.c: Likewise.
40220         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40221         * tests/uniwidth/test-u16-width.c: Likewise.
40222         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40223         * tests/uniwidth/test-u32-width.c: Likewise.
40224         * tests/uniwidth/test-uc_width.c: Likewise.
40225         * tests/uniwidth/test-uc_width2.c: Likewise.
40226         * modules/acl-tests (Files): Add tests/macros.h.
40227         * modules/areadlink-tests (Files): Likewise.
40228         * modules/areadlink-with-size-tests (Files): Likewise.
40229         * modules/areadlinkat-tests (Files): Likewise.
40230         * modules/areadlinkat-with-size-tests (Files): Likewise.
40231         * modules/argmatch-tests (Files): Likewise.
40232         * modules/argv-iter-tests (Files): Likewise.
40233         * modules/array-list-tests (Files): Likewise.
40234         * modules/array-mergesort-tests (Files): Likewise.
40235         * modules/array-oset-tests (Files): Likewise.
40236         * modules/avltree-list-tests (Files): Likewise.
40237         * modules/avltree-oset-tests (Files): Likewise.
40238         * modules/avltreehash-list-tests (Files): Likewise.
40239         * modules/base64-tests (Files): Likewise.
40240         * modules/binary-io-tests (Files): Likewise.
40241         * modules/bitrotate-tests (Files): Likewise.
40242         * modules/btowc-tests (Files): Likewise.
40243         * modules/byteswap-tests (Files): Likewise.
40244         * modules/c-ctype-tests (Files): Likewise.
40245         * modules/c-stack-tests (Files): Likewise.
40246         * modules/c-strcase-tests (Files): Likewise.
40247         * modules/c-strcasestr-tests (Files): Likewise.
40248         * modules/c-strstr-tests (Files): Likewise.
40249         * modules/canonicalize-lgpl-tests (Files): Likewise.
40250         * modules/canonicalize-tests (Files): Likewise.
40251         * modules/carray-list-tests (Files): Likewise.
40252         * modules/ceilf-tests (Files): Likewise.
40253         * modules/ceill-tests (Files): Likewise.
40254         * modules/chown-tests (Files): Likewise.
40255         * modules/cloexec-tests (Files): Likewise.
40256         * modules/copy-file-tests (Files): Likewise.
40257         * modules/count-one-bits-tests (Files): Likewise.
40258         * modules/dprintf-posix-tests (Files): Likewise.
40259         * modules/dup2-tests (Files): Likewise.
40260         * modules/dup3-tests (Files): Likewise.
40261         * modules/duplocale-tests (Files): Likewise.
40262         * modules/fbufmode-tests (Files): Likewise.
40263         * modules/fchdir-tests (Files): Likewise.
40264         * modules/fcntl-safer-tests (Files): Likewise.
40265         * modules/fcntl-tests (Files): Likewise.
40266         * modules/fdopendir-tests (Files): Likewise.
40267         * modules/fdutimensat-tests (Files): Likewise.
40268         * modules/fflush-tests (Files): Likewise.
40269         * modules/filevercmp-tests (Files): Likewise.
40270         * modules/flock-tests (Files): Likewise.
40271         * modules/floorf-tests (Files): Likewise.
40272         * modules/floorl-tests (Files): Likewise.
40273         * modules/fnmatch-tests (Files): Likewise.
40274         * modules/fopen-safer-tests (Files): Likewise.
40275         * modules/fopen-tests (Files): Likewise.
40276         * modules/fpending-tests (Files): Likewise.
40277         * modules/fprintf-posix-tests (Files): Likewise.
40278         * modules/fpurge-tests (Files): Likewise.
40279         * modules/freadable-tests (Files): Likewise.
40280         * modules/freadahead-tests (Files): Likewise.
40281         * modules/freading-tests (Files): Likewise.
40282         * modules/freadptr-tests (Files): Likewise.
40283         * modules/freadseek-tests (Files): Likewise.
40284         * modules/freopen-tests (Files): Likewise.
40285         * modules/frexp-nolibm-tests (Files): Likewise.
40286         * modules/frexp-tests (Files): Likewise.
40287         * modules/frexpl-nolibm-tests (Files): Likewise.
40288         * modules/frexpl-tests (Files): Likewise.
40289         * modules/fseek-tests (Files): Likewise.
40290         * modules/fseeko-tests (Files): Likewise.
40291         * modules/fstrcmp-tests (Files): Likewise.
40292         * modules/fsync-tests (Files): Likewise.
40293         * modules/ftell-tests (Files): Likewise.
40294         * modules/ftello-tests (Files): Likewise.
40295         * modules/func-tests (Files): Likewise.
40296         * modules/futimens-tests (Files): Likewise.
40297         * modules/fwritable-tests (Files): Likewise.
40298         * modules/fwriting-tests (Files): Likewise.
40299         * modules/getcwd-tests (Files): Likewise.
40300         * modules/getdate-tests (Files): Likewise.
40301         * modules/getdelim-tests (Files): Likewise.
40302         * modules/getdtablesize-tests (Files): Likewise.
40303         * modules/getgroups-tests (Files): Likewise.
40304         * modules/getline-tests (Files): Likewise.
40305         * modules/getndelim2-tests (Files): Likewise.
40306         * modules/glob-tests (Files): Likewise.
40307         * modules/hash-tests (Files): Likewise.
40308         * modules/i-ring-tests (Files): Likewise.
40309         * modules/iconv-tests (Files): Likewise.
40310         * modules/iconv_open-utf-tests (Files): Likewise.
40311         * modules/idpriv-drop-tests (Files): Likewise.
40312         * modules/idpriv-droptemp-tests (Files): Likewise.
40313         * modules/inet_ntop-tests (Files): Likewise.
40314         * modules/inet_pton-tests (Files): Likewise.
40315         * modules/isblank-tests (Files): Likewise.
40316         * modules/isfinite-tests (Files): Likewise.
40317         * modules/isinf-tests (Files): Likewise.
40318         * modules/isnan-tests (Files): Likewise.
40319         * modules/isnand-nolibm-tests (Files): Likewise.
40320         * modules/isnand-tests (Files): Likewise.
40321         * modules/isnanf-nolibm-tests (Files): Likewise.
40322         * modules/isnanf-tests (Files): Likewise.
40323         * modules/isnanl-nolibm-tests (Files): Likewise.
40324         * modules/isnanl-tests (Files): Likewise.
40325         * modules/lchown-tests (Files): Likewise.
40326         * modules/ldexpl-tests (Files): Likewise.
40327         * modules/link-tests (Files): Likewise.
40328         * modules/linkat-tests (Files): Likewise.
40329         * modules/linked-list-tests (Files): Likewise.
40330         * modules/linkedhash-list-tests (Files): Likewise.
40331         * modules/localename-tests (Files): Likewise.
40332         * modules/lseek-tests (Files): Likewise.
40333         * modules/lstat-tests (Files): Likewise.
40334         * modules/mbmemcasecmp-tests (Files): Likewise.
40335         * modules/mbmemcasecoll-tests (Files): Likewise.
40336         * modules/mbrtowc-tests (Files): Likewise.
40337         * modules/mbscasecmp-tests (Files): Likewise.
40338         * modules/mbscasestr-tests (Files): Likewise.
40339         * modules/mbschr-tests (Files): Likewise.
40340         * modules/mbscspn-tests (Files): Likewise.
40341         * modules/mbsinit-tests (Files): Likewise.
40342         * modules/mbsncasecmp-tests (Files): Likewise.
40343         * modules/mbsnrtowcs-tests (Files): Likewise.
40344         * modules/mbspbrk-tests (Files): Likewise.
40345         * modules/mbspcasecmp-tests (Files): Likewise.
40346         * modules/mbsrchr-tests (Files): Likewise.
40347         * modules/mbsrtowcs-tests (Files): Likewise.
40348         * modules/mbsspn-tests (Files): Likewise.
40349         * modules/mbsstr-tests (Files): Likewise.
40350         * modules/memchr-tests (Files): Likewise.
40351         * modules/memchr2-tests (Files): Likewise.
40352         * modules/memcmp-tests (Files): Likewise.
40353         * modules/memmem-tests (Files): Likewise.
40354         * modules/memrchr-tests (Files): Likewise.
40355         * modules/mkdir-tests (Files): Likewise.
40356         * modules/mkfifo-tests (Files): Likewise.
40357         * modules/mkfifoat-tests (Files): Likewise.
40358         * modules/mknod-tests (Files): Likewise.
40359         * modules/nanosleep-tests (Files): Likewise.
40360         * modules/nl_langinfo-tests (Files): Likewise.
40361         * modules/obstack-printf-tests (Files): Likewise.
40362         * modules/open-tests (Files): Likewise.
40363         * modules/openat-tests (Files): Likewise.
40364         * modules/pipe-filter-gi-tests (Files): Likewise.
40365         * modules/pipe-filter-ii-tests (Files): Likewise.
40366         * modules/pipe2-tests (Files): Likewise.
40367         * modules/popen-safer-tests (Files): Likewise.
40368         * modules/popen-tests (Files): Likewise.
40369         * modules/posixtm-tests (Files): Likewise.
40370         * modules/pread-tests (Files): Likewise.
40371         * modules/printf-frexp-tests (Files): Likewise.
40372         * modules/printf-frexpl-tests (Files): Likewise.
40373         * modules/printf-posix-tests (Files): Likewise.
40374         * modules/priv-set-tests (Files): Likewise.
40375         * modules/quotearg-tests (Files): Likewise.
40376         * modules/random_r-tests (Files): Likewise.
40377         * modules/rawmemchr-tests (Files): Likewise.
40378         * modules/rbtree-list-tests (Files): Likewise.
40379         * modules/rbtree-oset-tests (Files): Likewise.
40380         * modules/rbtreehash-list-tests (Files): Likewise.
40381         * modules/readlink-tests (Files): Likewise.
40382         * modules/remove-tests (Files): Likewise.
40383         * modules/rename-tests (Files): Likewise.
40384         * modules/renameat-tests (Files): Likewise.
40385         * modules/rmdir-tests (Files): Likewise.
40386         * modules/round-tests (Files): Likewise.
40387         * modules/roundf-tests (Files): Likewise.
40388         * modules/roundl-tests (Files): Likewise.
40389         * modules/safe-alloc-tests (Files): Likewise.
40390         * modules/setenv-tests (Files): Likewise.
40391         * modules/sigaction-tests (Files): Likewise.
40392         * modules/signbit-tests (Files): Likewise.
40393         * modules/sleep-tests (Files): Likewise.
40394         * modules/snprintf-posix-tests (Files): Likewise.
40395         * modules/snprintf-tests (Files): Likewise.
40396         * modules/sprintf-posix-tests (Files): Likewise.
40397         * modules/stat-tests (Files): Likewise.
40398         * modules/stat-time-tests (Files): Likewise.
40399         * modules/strcasestr-tests (Files): Likewise.
40400         * modules/strchrnul-tests (Files): Likewise.
40401         * modules/strerror-tests (Files): Likewise.
40402         * modules/striconv-tests (Files): Likewise.
40403         * modules/striconveh-tests (Files): Likewise.
40404         * modules/striconveha-tests (Files): Likewise.
40405         * modules/strsignal-tests (Files): Likewise.
40406         * modules/strstr-tests (Files): Likewise.
40407         * modules/strtod-tests (Files): Likewise.
40408         * modules/strverscmp-tests (Files): Likewise.
40409         * modules/symlink-tests (Files): Likewise.
40410         * modules/symlinkat-tests (Files): Likewise.
40411         * modules/trunc-tests (Files): Likewise.
40412         * modules/truncf-tests (Files): Likewise.
40413         * modules/truncl-tests (Files): Likewise.
40414         * modules/uname-tests (Files): Likewise.
40415         * modules/unicase/cased-tests (Files): Likewise.
40416         * modules/unicase/ignorable-tests (Files): Likewise.
40417         * modules/unicase/locale-language-tests (Files): Likewise.
40418         * modules/unicase/tolower-tests (Files): Likewise.
40419         * modules/unicase/totitle-tests (Files): Likewise.
40420         * modules/unicase/toupper-tests (Files): Likewise.
40421         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40422         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40423         * modules/unicase/u8-casefold-tests (Files): Likewise.
40424         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40425         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40426         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40427         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40428         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40429         * modules/unicase/u8-tolower-tests (Files): Likewise.
40430         * modules/unicase/u8-totitle-tests (Files): Likewise.
40431         * modules/unicase/u8-toupper-tests (Files): Likewise.
40432         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40433         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40434         * modules/unicase/u16-casefold-tests (Files): Likewise.
40435         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40436         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40437         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40438         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40439         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40440         * modules/unicase/u16-tolower-tests (Files): Likewise.
40441         * modules/unicase/u16-totitle-tests (Files): Likewise.
40442         * modules/unicase/u16-toupper-tests (Files): Likewise.
40443         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40444         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40445         * modules/unicase/u32-casefold-tests (Files): Likewise.
40446         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40447         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40448         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40449         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40450         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40451         * modules/unicase/u32-tolower-tests (Files): Likewise.
40452         * modules/unicase/u32-totitle-tests (Files): Likewise.
40453         * modules/unicase/u32-toupper-tests (Files): Likewise.
40454         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40455         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40456         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40457         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40458         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40459         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40460         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40461         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40462         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40463         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40464         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40465         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40466         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40467         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40468         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40469         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40470         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40471         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40472         * modules/unictype/block-list-tests (Files): Likewise.
40473         * modules/unictype/block-of-tests (Files): Likewise.
40474         * modules/unictype/block-test-tests (Files): Likewise.
40475         * modules/unictype/category-C-tests (Files): Likewise.
40476         * modules/unictype/category-Cc-tests (Files): Likewise.
40477         * modules/unictype/category-Cf-tests (Files): Likewise.
40478         * modules/unictype/category-Cn-tests (Files): Likewise.
40479         * modules/unictype/category-Co-tests (Files): Likewise.
40480         * modules/unictype/category-Cs-tests (Files): Likewise.
40481         * modules/unictype/category-L-tests (Files): Likewise.
40482         * modules/unictype/category-Ll-tests (Files): Likewise.
40483         * modules/unictype/category-Lm-tests (Files): Likewise.
40484         * modules/unictype/category-Lo-tests (Files): Likewise.
40485         * modules/unictype/category-Lt-tests (Files): Likewise.
40486         * modules/unictype/category-Lu-tests (Files): Likewise.
40487         * modules/unictype/category-M-tests (Files): Likewise.
40488         * modules/unictype/category-Mc-tests (Files): Likewise.
40489         * modules/unictype/category-Me-tests (Files): Likewise.
40490         * modules/unictype/category-Mn-tests (Files): Likewise.
40491         * modules/unictype/category-N-tests (Files): Likewise.
40492         * modules/unictype/category-Nd-tests (Files): Likewise.
40493         * modules/unictype/category-Nl-tests (Files): Likewise.
40494         * modules/unictype/category-No-tests (Files): Likewise.
40495         * modules/unictype/category-P-tests (Files): Likewise.
40496         * modules/unictype/category-Pc-tests (Files): Likewise.
40497         * modules/unictype/category-Pd-tests (Files): Likewise.
40498         * modules/unictype/category-Pe-tests (Files): Likewise.
40499         * modules/unictype/category-Pf-tests (Files): Likewise.
40500         * modules/unictype/category-Pi-tests (Files): Likewise.
40501         * modules/unictype/category-Po-tests (Files): Likewise.
40502         * modules/unictype/category-Ps-tests (Files): Likewise.
40503         * modules/unictype/category-S-tests (Files): Likewise.
40504         * modules/unictype/category-Sc-tests (Files): Likewise.
40505         * modules/unictype/category-Sk-tests (Files): Likewise.
40506         * modules/unictype/category-Sm-tests (Files): Likewise.
40507         * modules/unictype/category-So-tests (Files): Likewise.
40508         * modules/unictype/category-Z-tests (Files): Likewise.
40509         * modules/unictype/category-Zl-tests (Files): Likewise.
40510         * modules/unictype/category-Zp-tests (Files): Likewise.
40511         * modules/unictype/category-Zs-tests (Files): Likewise.
40512         * modules/unictype/category-and-not-tests (Files): Likewise.
40513         * modules/unictype/category-and-tests (Files): Likewise.
40514         * modules/unictype/category-byname-tests (Files): Likewise.
40515         * modules/unictype/category-name-tests (Files): Likewise.
40516         * modules/unictype/category-none-tests (Files): Likewise.
40517         * modules/unictype/category-of-tests (Files): Likewise.
40518         * modules/unictype/category-or-tests (Files): Likewise.
40519         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40520         * modules/unictype/combining-class-tests (Files): Likewise.
40521         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40522         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40523         * modules/unictype/ctype-blank-tests (Files): Likewise.
40524         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40525         * modules/unictype/ctype-digit-tests (Files): Likewise.
40526         * modules/unictype/ctype-graph-tests (Files): Likewise.
40527         * modules/unictype/ctype-lower-tests (Files): Likewise.
40528         * modules/unictype/ctype-print-tests (Files): Likewise.
40529         * modules/unictype/ctype-punct-tests (Files): Likewise.
40530         * modules/unictype/ctype-space-tests (Files): Likewise.
40531         * modules/unictype/ctype-upper-tests (Files): Likewise.
40532         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40533         * modules/unictype/decimal-digit-tests (Files): Likewise.
40534         * modules/unictype/digit-tests (Files): Likewise.
40535         * modules/unictype/mirror-tests (Files): Likewise.
40536         * modules/unictype/numeric-tests (Files): Likewise.
40537         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40538         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40539         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40540         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40541         Likewise.
40542         * modules/unictype/property-bidi-block-separator-tests (Files):
40543         Likewise.
40544         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40545         Likewise.
40546         * modules/unictype/property-bidi-common-separator-tests (Files):
40547         Likewise.
40548         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40549         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40550         Likewise.
40551         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40552         Likewise.
40553         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40554         Likewise.
40555         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40556         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40557         Likewise.
40558         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40559         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40560         Likewise.
40561         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40562         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40563         * modules/unictype/property-bidi-segment-separator-tests (Files):
40564         Likewise.
40565         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40566         * modules/unictype/property-byname-tests (Files): Likewise.
40567         * modules/unictype/property-combining-tests (Files): Likewise.
40568         * modules/unictype/property-composite-tests (Files): Likewise.
40569         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40570         * modules/unictype/property-dash-tests (Files): Likewise.
40571         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40572         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40573         Likewise.
40574         * modules/unictype/property-deprecated-tests (Files): Likewise.
40575         * modules/unictype/property-diacritic-tests (Files): Likewise.
40576         * modules/unictype/property-extender-tests (Files): Likewise.
40577         * modules/unictype/property-format-control-tests (Files): Likewise.
40578         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40579         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40580         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40581         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40582         * modules/unictype/property-hyphen-tests (Files): Likewise.
40583         * modules/unictype/property-id-continue-tests (Files): Likewise.
40584         * modules/unictype/property-id-start-tests (Files): Likewise.
40585         * modules/unictype/property-ideographic-tests (Files): Likewise.
40586         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40587         * modules/unictype/property-ids-trinary-operator-tests (Files):
40588         Likewise.
40589         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40590         * modules/unictype/property-iso-control-tests (Files): Likewise.
40591         * modules/unictype/property-join-control-tests (Files): Likewise.
40592         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40593         * modules/unictype/property-line-separator-tests (Files): Likewise.
40594         * modules/unictype/property-logical-order-exception-tests (Files):
40595         Likewise.
40596         * modules/unictype/property-lowercase-tests (Files): Likewise.
40597         * modules/unictype/property-math-tests (Files): Likewise.
40598         * modules/unictype/property-non-break-tests (Files): Likewise.
40599         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40600         * modules/unictype/property-numeric-tests (Files): Likewise.
40601         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40602         * modules/unictype/property-other-default-ignorable-code-point-tests
40603         (Files): Likewise.
40604         * modules/unictype/property-other-grapheme-extend-tests (Files):
40605         Likewise.
40606         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40607         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40608         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40609         * modules/unictype/property-other-math-tests (Files): Likewise.
40610         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40611         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40612         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40613         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40614         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40615         * modules/unictype/property-private-use-tests (Files): Likewise.
40616         * modules/unictype/property-punctuation-tests (Files): Likewise.
40617         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40618         * modules/unictype/property-radical-tests (Files): Likewise.
40619         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40620         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40621         * modules/unictype/property-space-tests (Files): Likewise.
40622         * modules/unictype/property-terminal-punctuation-tests (Files):
40623         Likewise.
40624         * modules/unictype/property-test-tests (Files): Likewise.
40625         * modules/unictype/property-titlecase-tests (Files): Likewise.
40626         * modules/unictype/property-unassigned-code-value-tests (Files):
40627         Likewise.
40628         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40629         * modules/unictype/property-uppercase-tests (Files): Likewise.
40630         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40631         * modules/unictype/property-white-space-tests (Files): Likewise.
40632         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40633         * modules/unictype/property-xid-start-tests (Files): Likewise.
40634         * modules/unictype/property-zero-width-tests (Files): Likewise.
40635         * modules/unictype/scripts-tests (Files): Likewise.
40636         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40637         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40638         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40639         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40640         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40641         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40642         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40643         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40644         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40645         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40646         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40647         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40648         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40649         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40650         * modules/uninorm/composition-tests (Files): Likewise.
40651         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40652         * modules/uninorm/decomposition-tests (Files): Likewise.
40653         * modules/uninorm/filter-tests (Files): Likewise.
40654         * modules/uninorm/nfc-tests (Files): Likewise.
40655         * modules/uninorm/nfd-tests (Files): Likewise.
40656         * modules/uninorm/nfkc-tests (Files): Likewise.
40657         * modules/uninorm/nfkd-tests (Files): Likewise.
40658         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40659         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40660         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40661         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40662         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40663         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40664         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40665         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40666         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40667         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40668         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40669         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40670         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40671         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40672         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40673         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40674         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40675         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40676         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40677         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40678         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40679         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40680         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40681         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40682         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40683         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40684         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40685         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40686         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40687         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40688         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40689         * modules/uniwidth/u8-width-tests (Files): Likewise.
40690         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40691         * modules/uniwidth/u16-width-tests (Files): Likewise.
40692         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40693         * modules/uniwidth/u32-width-tests (Files): Likewise.
40694         * modules/uniwidth/width-tests (Files): Likewise.
40695         * modules/unlink-tests (Files): Likewise.
40696         * modules/unsetenv-tests (Files): Likewise.
40697         * modules/usleep-tests (Files): Likewise.
40698         * modules/utimens-tests (Files): Likewise.
40699         * modules/utimensat-tests (Files): Likewise.
40700         * modules/vasnprintf-posix-tests (Files): Likewise.
40701         * modules/vasnprintf-tests (Files): Likewise.
40702         * modules/vasprintf-posix-tests (Files): Likewise.
40703         * modules/vasprintf-tests (Files): Likewise.
40704         * modules/vdprintf-posix-tests (Files): Likewise.
40705         * modules/vfprintf-posix-tests (Files): Likewise.
40706         * modules/vprintf-posix-tests (Files): Likewise.
40707         * modules/vsnprintf-posix-tests (Files): Likewise.
40708         * modules/vsnprintf-tests (Files): Likewise.
40709         * modules/vsprintf-posix-tests (Files): Likewise.
40710         * modules/wcrtomb-tests (Files): Likewise.
40711         * modules/wcsnrtombs-tests (Files): Likewise.
40712         * modules/wcsrtombs-tests (Files): Likewise.
40713         * modules/wctype-tests (Files): Likewise.
40714         * modules/wcwidth-tests (Files): Likewise.
40715         * modules/xmemdup0-tests (Files): Likewise.
40716         * modules/xprintf-posix-tests (Files): Likewise.
40717         * modules/xvasprintf-tests (Files): Likewise.
40718
40719 2009-12-24  Eric Blake  <ebb9@byu.net>
40720
40721         test-nanosleep: fix typo
40722         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40723         patch.
40724         Reported by Bruno Haible.
40725
40726 2009-12-24  Bruno Haible  <bruno@clisp.org>
40727
40728         Reduce namespace pollution on glibc systems.
40729         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40730         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40731         systems.
40732         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40733         <getopt.h> on glibc systems.
40734         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40735         systems.
40736         * lib/fcntl.c: Include <unistd.h> here instead.
40737
40738 2009-12-24  Bruno Haible  <bruno@clisp.org>
40739
40740         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40741
40742 2009-12-24  Eric Blake  <ebb9@byu.net>
40743
40744         tests: add signature checks
40745         * tests/signature.h (SIGNATURE_CHECK): New file.
40746         * modules/atexit-tests (Files): Use it.
40747         * modules/btowc-tests (Files): Likewise.
40748         * modules/canonicalize-lgpl-tests (Files): Likewise.
40749         * modules/ceilf-tests (Files): Likewise.
40750         * modules/ceill-tests (Files): Likewise.
40751         * modules/chown-tests (Files): Likewise.
40752         * modules/dprintf-posix-tests (Files): Likewise.
40753         * modules/dup2-tests (Files): Likewise.
40754         * modules/dup3-tests (Files): Likewise.
40755         * modules/duplocale-tests (Files): Likewise.
40756         * modules/fchdir-tests (Files): Likewise.
40757         * modules/fcntl-tests (Files): Likewise.
40758         * modules/fdopendir-tests (Files): Likewise.
40759         * modules/fflush-tests (Files): Likewise.
40760         * modules/flock-tests (Files): Likewise.
40761         * modules/floorf-tests (Files): Likewise.
40762         * modules/floorl-tests (Files): Likewise.
40763         * modules/fnmatch-tests (Files): Likewise.
40764         * modules/fopen-tests (Files): Likewise.
40765         * modules/fprintf-posix-tests (Files): Likewise.
40766         * modules/freopen-tests (Files): Likewise.
40767         * modules/frexp-nolibm-tests (Files): Likewise.
40768         * modules/frexp-tests (Files): Likewise.
40769         * modules/frexpl-nolibm-tests (Files): Likewise.
40770         * modules/frexpl-tests (Files): Likewise.
40771         * modules/fseek-tests (Files): Likewise.
40772         * modules/fseeko-tests (Files): Likewise.
40773         * modules/fsync-tests (Files): Likewise.
40774         * modules/ftell-tests (Files): Likewise.
40775         * modules/ftello-tests (Files): Likewise.
40776         * modules/futimens-tests (Files): Likewise.
40777         * modules/getaddrinfo-tests (Files): Likewise.
40778         * modules/getcwd-tests (Files): Likewise.
40779         * modules/getdelim-tests (Files): Likewise.
40780         * modules/getdtablesize-tests (Files): Likewise.
40781         * modules/getgroups-tests (Files): Likewise.
40782         * modules/gethostname-tests (Files): Likewise.
40783         * modules/getline-tests (Files): Likewise.
40784         * modules/getopt-posix-tests (Files): Likewise.
40785         * modules/gettimeofday-tests (Files): Likewise.
40786         * modules/glob-tests (Files): Likewise.
40787         * modules/iconv-tests (Files): Likewise.
40788         * modules/inet_ntop-tests (Files): Likewise.
40789         * modules/inet_pton-tests (Files): Likewise.
40790         * modules/isblank-tests (Files): Likewise.
40791         * modules/lchown-tests (Files): Likewise.
40792         * modules/ldexpl-tests (Files): Likewise.
40793         * modules/link-tests (Files): Likewise.
40794         * modules/linkat-tests (Files): Likewise.
40795         * modules/lseek-tests (Files): Likewise.
40796         * modules/lstat-tests (Files): Likewise.
40797         * modules/mbrtowc-tests (Files): Likewise.
40798         * modules/mbsinit-tests (Files): Likewise.
40799         * modules/mbsnrtowcs-tests (Files): Likewise.
40800         * modules/mbsrtowcs-tests (Files): Likewise.
40801         * modules/memchr-tests (Files): Likewise.
40802         * modules/memcmp-tests (Files): Likewise.
40803         * modules/memmem-tests (Files): Likewise.
40804         * modules/memrchr-tests (Files): Likewise.
40805         * modules/mkdir-tests (Files): Likewise.
40806         * modules/mkfifo-tests (Files): Likewise.
40807         * modules/mkfifoat-tests (Files): Likewise.
40808         * modules/mknod-tests (Files): Likewise.
40809         * modules/nanosleep-tests (Files): Likewise.
40810         * modules/nl_langinfo-tests (Files): Likewise.
40811         * modules/obstack-printf-tests (Files): Likewise.
40812         * modules/open-tests (Files): Likewise.
40813         * modules/openat-tests (Files): Likewise.
40814         * modules/perror-tests (Files): Likewise.
40815         * modules/pipe2-tests (Files): Likewise.
40816         * modules/poll-tests (Files): Likewise.
40817         * modules/popen-tests (Files): Likewise.
40818         * modules/posix_spawn-tests (Files): Likewise.
40819         * modules/posix_spawnp-tests (Files): Likewise.
40820         * modules/pread-tests (Files): Likewise.
40821         * modules/printf-posix-tests (Files): Likewise.
40822         * modules/pty-tests (Files): Likewise.
40823         * modules/random_r-tests (Files): Likewise.
40824         * modules/rawmemchr-tests (Files): Likewise.
40825         * modules/readlink-tests (Files): Likewise.
40826         * modules/remove-tests (Files): Likewise.
40827         * modules/rename-tests (Files): Likewise.
40828         * modules/renameat-tests (Files): Likewise.
40829         * modules/rmdir-tests (Files): Likewise.
40830         * modules/round-tests (Files): Likewise.
40831         * modules/roundf-tests (Files): Likewise.
40832         * modules/roundl-tests (Files): Likewise.
40833         * modules/select-tests (Files): Likewise.
40834         * modules/setenv-tests (Files): Likewise.
40835         * modules/sigaction-tests (Files): Likewise.
40836         * modules/sleep-tests (Files): Likewise.
40837         * modules/snprintf-posix-tests (Files): Likewise.
40838         * modules/snprintf-tests (Files): Likewise.
40839         * modules/sprintf-posix-tests (Files): Likewise.
40840         * modules/stat-tests (Files): Likewise.
40841         * modules/strcasestr-tests (Files): Likewise.
40842         * modules/strchrnul-tests (Files): Likewise.
40843         * modules/strerror-tests (Files): Likewise.
40844         * modules/strsignal-tests (Files): Likewise.
40845         * modules/strstr-tests (Files): Likewise.
40846         * modules/strtod-tests (Files): Likewise.
40847         * modules/strverscmp-tests (Files): Likewise.
40848         * modules/symlink-tests (Files): Likewise.
40849         * modules/symlinkat-tests (Files): Likewise.
40850         * modules/times-tests (Files): Likewise.
40851         * modules/trunc-tests (Files): Likewise.
40852         * modules/truncf-tests (Files): Likewise.
40853         * modules/truncl-tests (Files): Likewise.
40854         * modules/tsearch-tests (Files): Likewise.
40855         * modules/uname-tests (Files): Likewise.
40856         * modules/unlink-tests (Files): Likewise.
40857         * modules/unsetenv-tests (Files): Likewise.
40858         * modules/usleep-tests (Files): Likewise.
40859         * modules/utimensat-tests (Files): Likewise.
40860         * modules/vasprintf-tests (Files): Likewise.
40861         * modules/vdprintf-posix-tests (Files): Likewise.
40862         * modules/vfprintf-posix-tests (Files): Likewise.
40863         * modules/vprintf-posix-tests (Files): Likewise.
40864         * modules/vsnprintf-posix-tests (Files): Likewise.
40865         * modules/vsnprintf-tests (Files): Likewise.
40866         * modules/vsprintf-posix-tests (Files): Likewise.
40867         * modules/wcrtomb-tests (Files): Likewise.
40868         * modules/wcsnrtombs-tests (Files): Likewise.
40869         * modules/wcsrtombs-tests (Files): Likewise.
40870         * modules/wcwidth-tests (Files): Likewise.
40871         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40872         * tests/test-isinf.c (isinf): Likewise.
40873         * tests/test-isnan.c (isnan): Likewise.
40874         * tests/test-signbit.c (signbit): Likewise.
40875         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40876         declaration, either as macro or with correct signature.
40877         (select): Ensure function under test is declared with correct
40878         signature in correct header.
40879         * tests/test-atexit.c (atexit): Likewise.
40880         * tests/test-btowc.c (btowc): Likewise.
40881         * tests/test-canonicalize-lgpl.c (realpath)
40882         (canonicalize_file_name): Likewise.
40883         * tests/test-ceilf1.c (ceilf): Likewise.
40884         * tests/test-ceill.c (ceill): Likewise.
40885         * tests/test-chown.c (chown): Likewise.
40886         * tests/test-dprintf-posix.c (dprintf): Likewise.
40887         * tests/test-dup2.c (dup2): Likewise.
40888         * tests/test-dup3.c (dup3): Likewise.
40889         * tests/test-duplocale.c (duplocale): Likewise.
40890         * tests/test-fchdir.c (fchdir): Likewise.
40891         * tests/test-fchownat.c (fchownat): Likewise.
40892         * tests/test-fcntl.c (fcntl): Likewise.
40893         * tests/test-fdopendir.c (fdopendir): Likewise.
40894         * tests/test-fflush.c (fflush): Likewise.
40895         * tests/test-flock.c (flock): Likewise.
40896         * tests/test-floorf1.c (floorf): Likewise.
40897         * tests/test-floorl.c (floorl): Likewise.
40898         * tests/test-fnmatch.c (fnmatch): Likewise.
40899         * tests/test-fopen.c (fopen): Likewise.
40900         * tests/test-fprintf-posix.c (fprintf): Likewise.
40901         * tests/test-freopen.c (freopen): Likewise.
40902         * tests/test-frexp.c (frexp): Likewise.
40903         * tests/test-frexpl.c (frexpl): Likewise.
40904         * tests/test-fseek.c (fseek): Likewise.
40905         * tests/test-fseeko.c (fseeko): Likewise.
40906         * tests/test-fstatat.c (fstatat): Likewise.
40907         * tests/test-fsync.c (fsync): Likewise.
40908         * tests/test-ftell.c (ftell): Likewise.
40909         * tests/test-ftello.c (ftello): Likewise.
40910         * tests/test-futimens.c (futimens): Likewise.
40911         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40912         (gai_strerror): Likewise.
40913         * tests/test-getcwd.c (getcwd): Likewise.
40914         * tests/test-getdelim.c (getdelim): Likewise.
40915         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40916         * tests/test-getgroups.c (getgroups): Likewise.
40917         * tests/test-gethostname.c (gethostname): Likewise.
40918         * tests/test-getline.c (getline): Likewise.
40919         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40920         Likewise.
40921         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40922         * tests/test-glob.c (glob, globfree): Likewise.
40923         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40924         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40925         * tests/test-inet_pton.c (inet_pton): Likewise.
40926         * tests/test-isblank.c (isblank): Likewise.
40927         * tests/test-lchown.c (lchown): Likewise.
40928         * tests/test-ldexpl.c (ldexpl): Likewise.
40929         * tests/test-link.c (link): Likewise.
40930         * tests/test-linkat.c (linkat): Likewise.
40931         * tests/test-lseek.c (lseek): Likewise.
40932         * tests/test-lstat.c (lstat): Likewise.
40933         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40934         * tests/test-mbsinit.c (mbsinit): Likewise.
40935         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40936         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40937         * tests/test-memchr.c (memchr): Likewise.
40938         * tests/test-memcmp.c (memcmp): Likewise.
40939         * tests/test-memmem.c (memmem): Likewise.
40940         * tests/test-memrchr.c (memrchr): Likewise.
40941         * tests/test-mkdir.c (mkdir): Likewise.
40942         * tests/test-mkdirat.c (mkdirat): Likewise.
40943         * tests/test-mkfifo.c (mkfifo): Likewise.
40944         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40945         * tests/test-mknod.c (mknod): Likewise.
40946         * tests/test-nanosleep.c (nanosleep): Likewise.
40947         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40948         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40949         Likewise.
40950         * tests/test-open.c (open): Likewise.
40951         * tests/test-openat.c (openat): Likewise.
40952         * tests/test-perror.c (perror): Likewise.
40953         * tests/test-pipe2.c (pipe2): Likewise.
40954         * tests/test-poll.c (poll): Likewise.
40955         * tests/test-popen.c (popen, pclose): Likewise.
40956         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40957         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40958         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40959         (posix_spawn_file_actions_destroy)
40960         (posix_spawn_file_actions_addclose)
40961         (posix_spawn_file_actions_addopen)
40962         (posix_spawn_file_actions_adddup2): Likewise.
40963         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40964         * tests/test-pread.c (pread): Likewise.
40965         * tests/test-printf-posix.c (printf): Likewise.
40966         * tests/test-pty.c (openpty, forkpty): Likewise.
40967         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40968         (random_r): Likewise.
40969         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40970         * tests/test-readlink.c (readlink): Likewise.
40971         * tests/test-remove.c (remove): Likewise.
40972         * tests/test-rename.c (rename): Likewise.
40973         * tests/test-renameat.c (renameat): Likewise.
40974         * tests/test-rmdir.c (rmdir): Likewise.
40975         * tests/test-round1.c (round): Likewise.
40976         * tests/test-roundf1.c (roundf): Likewise.
40977         * tests/test-roundl.c (roundl): Likewise.
40978         * tests/test-setenv.c (setenv): Likewise.
40979         * tests/test-sigaction.c (sigaction): Likewise.
40980         * tests/test-sleep.c (sleep): Likewise.
40981         * tests/test-snprintf.c (snprintf): Likewise.
40982         * tests/test-sprintf-posix.c (sprintf): Likewise.
40983         * tests/test-stat.c (stat): Likewise.
40984         * tests/test-stpncpy.c (stpncpy): Likewise.
40985         * tests/test-strcasestr.c (strcasestr): Likewise.
40986         * tests/test-strchrnul.c (strchrnul): Likewise.
40987         * tests/test-strerror.c (strerror): Likewise.
40988         * tests/test-strsignal.c (strsignal): Likewise.
40989         * tests/test-strstr.c (strstr): Likewise.
40990         * tests/test-strtod.c (strtod): Likewise.
40991         * tests/test-strverscmp.c (strverscmp): Likewise.
40992         * tests/test-symlink.c (symlink): Likewise.
40993         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40994         * tests/test-times.c (times): Likewise.
40995         * tests/test-trunc1.c (trunc): Likewise.
40996         * tests/test-truncf1.c (truncf): Likewise.
40997         * tests/test-truncl.c (truncl): Likewise.
40998         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40999         Likewise.
41000         * tests/test-uname.c (uname): Likewise.
41001         * tests/test-unlink.c (unlink): Likewise.
41002         * tests/test-unlinkat.c (unlinkat): Likewise.
41003         * tests/test-unsetenv.c (unsetenv): Likewise.
41004         * tests/test-usleep.c (usleep): Likewise.
41005         * tests/test-utimensat.c (utimensat): Likewise.
41006         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41007         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41008         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41009         * tests/test-vprintf-posix.c (vprintf): Likewise.
41010         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41011         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41012         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41013         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41014         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41015         * tests/test-wcwidth.c (wcwidth): Likewise.
41016
41017         build: pull in conditional headers during GNULIB_POSIXCHECK
41018         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41019         definitions from any conditionally-included headers.
41020         * lib/stdlib.in.h (includes): Likewise.
41021         * lib/unistd.in.h (includes): Likewise.
41022
41023 2009-12-24  Bruno Haible  <bruno@clisp.org>
41024
41025         * tests/test-argv-iter.c: Include header file being tested immediately
41026         after config.h.
41027         * tests/test-base64.c: Likewise.
41028         * tests/test-flock.c: Likewise.
41029         * tests/test-fsync.c: Likewise.
41030         * tests/test-getdate.c: Likewise.
41031         * tests/test-getndelim2.c: Likewise.
41032         * tests/test-isfinite.c: Likewise.
41033         * tests/test-isinf.c: Likewise.
41034         * tests/test-strerror.c: Likewise.
41035         * tests/test-strsignal.c: Likewise.
41036
41037 2009-12-23  Eric Blake  <ebb9@byu.net>
41038
41039         unistd: work around cygwin bug
41040         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41041         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41042         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41043
41044 2009-12-23  Bruno Haible  <bruno@clisp.org>
41045
41046         localename: More tests.
41047         * tests/test-localename.c (SIZEOF): New macro.
41048         (categories): New variable.
41049         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41050         test_locale_name_default): Add test w.r.t. thread locale.
41051         (test_locale_name_thread): New function.
41052         (main): Invoke it.
41053
41054         localename: Make aware of thread locale.
41055         * lib/localename.h (gl_locale_name_thread): New declaration.
41056         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41057         behaviour with respect to thread locale.
41058         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41059         <langinfo.h>, glthread/lock.h.
41060         (SIZE_BITS): New macro.
41061         (string_hash): New function.
41062         (struct hash_node): New type.
41063         (HASH_TABLE_SIZE): New macro.
41064         (struniq_hash_table, struniq_lock): New variables.
41065         (struniq): New function.
41066         (gl_locale_name_thread): New function.
41067         (gl_locale_name): Invoke it.
41068         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41069         * modules/localename (Depends-on): Add lock.
41070         Reported by Mike Gran <spk121@yahoo.com>.
41071
41072 2009-12-23  Eric Blake  <ebb9@byu.net>
41073
41074         va-args: new module
41075         * modules/va-args: New file.
41076         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41077         * MODULES.html.sh (Core language properties): Mention it.
41078
41079         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41080         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41081         named alias for __attribute__((__unused__)).
41082         * lib/chown.c: Update client.
41083         * lib/fchmodat.c: Likewise.
41084         * lib/fts.c: Likewise.
41085         * lib/getdate.y: Likewise.
41086         * lib/getgroups.c: Likewise.
41087         * lib/getopt.c: Likewise.
41088         * lib/getugroups.c: Likewise.
41089         * lib/mkdir.c: Likewise.
41090         * lib/mkfifo.c: Likewise.
41091         * lib/mkfifoat.c: Likewise.
41092         * lib/mknod.c: Likewise.
41093         * lib/mknodat.c: Likewise.
41094         * lib/readlink.c: Likewise.
41095         * lib/se-context.in.h: Likewise.
41096         * lib/se-selinux.in.h: Likewise.
41097         * lib/sockets.c: Likewise.
41098         * lib/symlink.c: Likewise.
41099         * lib/symlinkat.c: Likewise.
41100         * lib/unicodeio.c: Likewise.
41101         * lib/unistr.h: Likewise.
41102         * tests/test-areadlink.c: Likewise.
41103         * tests/test-areadlinkat.c: Likewise.
41104         * tests/test-filenamecat.c: Likewise.
41105         * tests/test-fseeko.c: Likewise.
41106         * tests/test-ftello.c: Likewise.
41107         * tests/test-getdate.c: Likewise.
41108         * tests/test-getgroups.c: Likewise.
41109         * tests/test-gethostname.c: Likewise.
41110         * tests/test-quotearg.c: Likewise.
41111         * tests/test-version-etc.c: Likewise.
41112         * tests/test-xalloc-die.c: Likewise.
41113         * tests/test-xfprintf-posix.c: Likewise.
41114         * tests/test-xprintf-posix.c: Likewise.
41115         * tests/test-xvasprintf.c: Likewise.
41116
41117         tests: avoid compiler warnings
41118         * tests/test-fcntl.c (main): Delete unused parameters.
41119         * tests/test-freopen-safer.c (main): Likewise.
41120         * tests/test-xalloc-die.c (main): Mark unused parameters.
41121         * tests/test-fseeko.c (main): Likewise.
41122         * tests/test-ftello.c (main): Likewise.
41123         * tests/test-nanosleep.c (main): Avoid declaration warning.
41124         * tests/test-sleep.c (main): Likewise.
41125         * tests/test-unsetenv.c (main): Silence warning about string
41126         literal.
41127         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41128
41129 2009-12-23  Bruno Haible  <bruno@clisp.org>
41130
41131         * tests/test-localename.c (test_locale_name): New function, extracted
41132         from main. Also test mixed situations.
41133         (test_locale_name_posix, test_locale_name_environ,
41134         test_locale_name_default): New functions.
41135         (main): Invoke them all.
41136         * modules/localename-tests (configure.ac): Test for newlocale.
41137
41138 2009-12-23  Bruno Haible  <bruno@clisp.org>
41139
41140         unistd: Ensure getcwd gets declared before being overridden.
41141         * lib/unistd.in.h: Conditionally include <io.h>.
41142
41143 2009-12-22  Bruno Haible  <bruno@clisp.org>
41144
41145         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41146         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41147         (gl_WCHAR_H): Invoke it.
41148         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41149         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41150         Reported by Karl Berry <karl@freefriends.org>.
41151
41152 2009-12-22  Eric Blake  <ebb9@byu.net>
41153
41154         math, unistd: avoid redundant includes
41155         * lib/math.in.h (isnan): No need to re-include <math.h>.
41156         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41157
41158         getsubopt: work around cygwin bug
41159         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41160         avoid conflicting with system getsubopt.
41161         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41162         bug.
41163
41164         getopt: synchronize from glibc
41165         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41166         parameter order.  Adjust all callers.
41167         (_getopt_internal_r, main): Adjust quoting in error messages.
41168         Drop considerations for outdated POSIX 1003.2 error message.
41169         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41170         callers.
41171         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41172
41173         test-getopt: test stderr behavior
41174         * modules/getopt-posix-tests (Depends-on): Add dup2.
41175         * tests/test-getopt.c (ASSERT): Avoid stderr.
41176         (main): Move stderr to a temporary file.
41177         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41178         Instead, add parameter to inform caller if output occurred.
41179         (test_getopt): Adjust all existing tests to expect silence, and
41180         add new tests of leading ":".
41181         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41182         glibc shortcomings with leading "-:" or "+:" in optstring.
41183         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41184         Likewise.
41185         * doc/posix-functions/getopt.texi (getopt): Likewise.
41186
41187         test-getopt: enhance test
41188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41189         supports optind=0.
41190         * tests/test-getopt.c (OPTIND_MIN): Move...
41191         * tests/test-getopt.h (OPTIND_MIN): ...here.
41192         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41193         Require that optind=0 works, since modern BSD supports it in
41194         addition to optreset, and since coreutils expects it.
41195         (test_getopt_long_only): New test.
41196         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41197         glibc shortcomings with 'W;', and enforcement of optind=0.
41198         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41199         Likewise.
41200
41201 2009-12-21  Bruno Haible  <bruno@clisp.org>
41202
41203         localename: Improvements for MacOS X and Cygwin.
41204         * lib/localename.h (gl_locale_name_environ): New declaration.
41205         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41206         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41207         (gl_locale_name_posix): Invoke it.
41208         (gl_locale_name_default): Add comments. Use Windows native API also on
41209         Cygwin.
41210
41211 2009-12-21  Bruno Haible  <bruno@clisp.org>
41212
41213         Update list of Win32 locale ids.
41214         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41215         (LANG_SAMI): Renamed from LANG_SAAMI.
41216         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41217         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41218         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41219         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41220         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41221         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41222         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41223         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41224         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41225         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41226         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41227         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41228         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41229         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41230         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41231         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41232         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41233         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41234         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41235         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41236         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41237         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41238         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41239         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41240         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41241         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41242         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41243         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41244         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41245         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41246         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41247         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41248         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41249         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41250         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41251         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41252         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41253         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41254         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41255         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41256         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41257         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41258         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41259         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41260         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41261         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41262         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41263         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41264         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41265         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41266         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41267         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41268         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41269         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41270         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41271         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41272         Add more languages and countries for Sami, Sorbian. Add more countries
41273         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41274         for Pashto. Change country for Syriac, Tswana.
41275
41276 2009-12-21  Eric Blake  <ebb9@byu.net>
41277
41278         test-utimens: avoid spurious failure
41279         * tests/test-chown.h (nap): Factor...
41280         * tests/nap.h: ...into new file.
41281         * tests/test-lchown.h (nap): Avoid duplication.
41282         * tests/test-utimens-common.h (nap): Use shared implementation,
41283         necessary on file systems with 1-second resolution.
41284         * modules/chown-tests (Files): Include new file.
41285         * modules/fdutimensat-tests (Files): Likewise.
41286         * modules/futimens-tests (Files): Likewise.
41287         * modules/lchown-tests (Files): Likewise.
41288         * modules/openat-tests (Files): Likewise.
41289         * modules/utimens-tests (Files): Likewise.
41290         * modules/utimensat-tests (Files): Likewise.
41291
41292 2009-12-19  Eric Blake  <ebb9@byu.net>
41293
41294         futimens, utimensat: work around Linux bug
41295         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41296         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41297         * lib/utimensat.c (rpl_utimensat): Work around it.
41298         * lib/futimens.c (rpl_futimens): Adjust comment.
41299
41300         utimens: work around Linux ctime bug
41301         * lib/utimens.c (detect_ctime_bug): New helper function.
41302         (update_timespec): Differentiate between workaround needed for
41303         this bug vs. what is needed for systems that lack utimensat.
41304         (fdutimens, lutimens): Work around bug.
41305
41306         utimens: check for ctime update
41307         * tests/test-utimens-common.h (check_ctime): Define.
41308         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41309         * tests/test-futimens.h (test_futimens): Likewise.
41310         * tests/test-lutimens.h (test_lutimens): Likewise.
41311         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41312         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41313
41314 2009-12-19  Bruno Haible  <bruno@clisp.org>
41315
41316         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41317         * tests/test-dprintf-posix2.sh: New file.
41318         * tests/test-dprintf-posix2.c: New file.
41319         * modules/dprintf-posix-tests (Files): Add them.
41320         (configure.ac): Check for getrlimit and setrlimit.
41321         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41322
41323 2009-12-19  Bruno Haible  <bruno@clisp.org>
41324
41325         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41326         * tests/test-fprintf-posix3.sh: New file.
41327         * tests/test-fprintf-posix3.c: New file.
41328         * modules/fprintf-posix-tests (Files): Add them.
41329         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41330
41331 2009-12-19  Eric Blake  <ebb9@byu.net>
41332
41333         dirfd: fix prototype
41334         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41335         * lib/dirfd.c (dirfd): Likewise.
41336
41337         canonicalize: reduce memory usage
41338         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41339         allocation to size.
41340         Reported by Solar Designer <solar@openwall.com>.
41341
41342 2009-12-19  Bruno Haible  <bruno@clisp.org>
41343
41344         New module attribute 'Applicability'.
41345         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41346         * gnulib-tool: New option --extract-applicability.
41347         (func_usage): Document it.
41348         (sed_extract_prog): Recognize it.
41349         (func_get_applicability): New function.
41350         (func_import): Generalize handling of 'link-warning' module.
41351         * modules/link-warning (Applicability): New section.
41352         * modules/arg-nonnull (Applicability): New section.
41353         Repoted by Simon Josefsson <simon@josefsson.org>.
41354
41355 2009-12-19  Bruno Haible  <bruno@clisp.org>
41356
41357         fflush: tweak
41358         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41359         * lib/fseeko.c (rpl_fseeko): Likewise.
41360
41361 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41362
41363         * lib/gl_list.h: Fix typo in comment.
41364
41365 2009-12-16  Eric Blake  <ebb9@byu.net>
41366
41367         fcntl: use to simplify other modules
41368         * modules/cloexec (Depends-on): Add fcntl.
41369         * modules/fchdir (Depends-on): Likewise.
41370         * modules/fd-safer-flag (Depends-on): Likewise.
41371         * modules/unistd-safer (Depends-on): Likewise.
41372         * modules/dup3 (configure.ac): Set module indicator.
41373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41374         missing.
41375         * lib/fchdir.c (_gl_register_dup): Fix comment.
41376         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41377         * lib/dup-safer.c (dup_safer): Likewise.
41378         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41379         * lib/dup3.c (dup3): Likewise.
41380         * tests/test-fchdir.c (main): Enhance test.
41381         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
41382
41383         fcntl: port portions of fcntl to mingw
41384         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41385         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41386         replacement for mingw.
41387         * modules/fcntl (Description): Update.
41388         (Depends-on): Add dup2.
41389         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41390         * modules/fcntl-h (Makefile.am): Substitute it.
41391         * lib/fcntl.in.h (fcntl): Update declaration.
41392         (F_DUPFD, F_GETFD): New macros, when needed.
41393         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41394         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41395         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41396         we now guarantee.
41397
41398         fcntl: work around cygwin bug in F_DUPFD
41399         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41400         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41401         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41402         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41403         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41404
41405         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41406         * modules/fcntl (Files): List new files.
41407         (configure.ac): Run a test.
41408         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41409         * lib/fcntl.c (rpl_fcntl): Likewise.
41410         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41411         (gl_FCNTL_H): Always replace fcntl.h.
41412         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41413         * lib/fcntl.in.h (fcntl): Declare replacement.
41414         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41415         needed, plus a witness.
41416         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41417         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41418         * tests/test-fcntl.c: New file.
41419         * modules/fcntl-tests: Likewise.
41420
41421         binary-io: avoid potential compilation warning
41422         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41423         directives.
41424
41425         fflush: avoid compilation error on NetBSD
41426         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41427         between off_t and fpos_t, since the latter is sometimes a struct.
41428         * lib/fseeko.c (rpl_fseeko): Likewise.
41429         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41430
41431 2009-12-15  Eric Blake  <ebb9@byu.net>
41432
41433         fcntl-h, stdio, sys_ioctl: fix declarations
41434         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41435         function must not take arguments.
41436         * lib/sys_ioctl.in.h (ioctl): Likewise.
41437         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41438         (open): Add a link warning.
41439
41440 2009-12-15  Jim Meyering  <meyering@redhat.com>
41441
41442         areadlink, areadlink-with-size: relax license to LGPLv2+
41443         * modules/areadlink (License): Relax to LGPLv2+.
41444         * modules/areadlink-with-size (License): Likewise.
41445
41446 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41447             Bruno Haible  <bruno@clisp.org>
41448
41449         *printf: Fix memory leak.
41450         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41451         * lib/vfprintf.c (vfprintf): Likewise.
41452         * lib/dprintf.c (dprintf): Likewise.
41453         * lib/vdprintf.c (vdprintf): Likewise.
41454
41455 2009-12-14  Eric Blake  <ebb9@byu.net>
41456
41457         accept4: adjust module dependencies
41458         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41459
41460         utimens: one more try at avoiding compiler warning
41461         * lib/utimens.c (lutimens): Lower scope of result.
41462
41463 2009-12-13  Bruno Haible  <bruno@clisp.org>
41464
41465         Move the malloc checking from module 'list' to new module 'xlist'.
41466         * modules/xlist: New file.
41467         * lib/gl_xlist.h: New file.
41468         * lib/gl_xlist.c: New file.
41469         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41470         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41471         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41472         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41473         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41474         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41475         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41476         gl_sortedlist_nx_add): New declarations.
41477         (struct gl_list_implementation): Rename and change methods accordingly.
41478         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41479         (gl_list_nx_create): Renamed from gl_list_create.
41480         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41481         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41482         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41483         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41484         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41485         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41486         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41487         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41488         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41489         gl_list_create_empty.
41490         (gl_list_nx_create): Renamed from gl_list_create.
41491         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41492         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41493         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41494         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41495         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41496         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41497         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41498         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41499         * lib/gl_array_list.c: Don't include xalloc.h.
41500         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41501         NULL upon out-of-memory.
41502         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41503         out-of-memory.
41504         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41505         Change return type to 'int'.
41506         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41507         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41508         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41509         upon out-of-memory.
41510         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41511         upon out-of-memory.
41512         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41513         upon out-of-memory.
41514         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41515         upon out-of-memory.
41516         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41517         out-of-memory.
41518         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41519         Update.
41520         (gl_array_list_implementation): Update.
41521         * lib/gl_carray_list.c: Don't include xalloc.h.
41522         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41523         Return NULL upon out-of-memory.
41524         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41525         out-of-memory.
41526         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41527         Change return type to 'int'.
41528         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41529         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41530         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41531         upon out-of-memory.
41532         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41533         upon out-of-memory.
41534         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41535         out-of-memory.
41536         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41537         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41538         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41539         Update.
41540         (gl_carray_list_implementation): Update.
41541         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41542         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41543         gl_linked_create_empty. Return NULL upon out-of-memory.
41544         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41545         out-of-memory.
41546         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41547         Change return type to 'int'. Return -1 upon out-of-memory.
41548         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41549         out-of-memory.
41550         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41551         upon out-of-memory.
41552         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41553         upon out-of-memory.
41554         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41555         NULL upon out-of-memory.
41556         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41557         upon out-of-memory.
41558         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41559         out-of-memory.
41560         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41561         Update.
41562         * lib/gl_linked_list.c: Don't include xalloc.h.
41563         (gl_linked_list_implementation): Update.
41564         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41565         (add_to_bucket): Change return type to 'int'.
41566         (gl_linkedhash_list_implementation): Update.
41567         * lib/gl_anytree_list1.h (free_subtree): New function.
41568         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41569         gl_tree_create_empty. Return NULL upon out-of-memory.
41570         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41571         Change return type to 'int'. Return -1 upon out-of-memory.
41572         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41573         out-of-memory.
41574         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41575         (gl_tree_remove_node): New function, moved here from
41576         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41577         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41578         Update.
41579         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41580         malloc, not xmalloc. Return NULL upon out-of-memory.
41581         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41582         out-of-memory.
41583         (gl_tree_remove_node_from_tree): New function, extracted from
41584         gl_tree_remove_node.
41585         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41586         upon out-of-memory.
41587         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41588         out-of-memory.
41589         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41590         upon out-of-memory.
41591         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41592         upon out-of-memory.
41593         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41594         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41595         not xmalloc. Return NULL upon out-of-memory.
41596         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41597         out-of-memory.
41598         (gl_tree_remove_node_from_tree): New function, extracted from
41599         gl_tree_remove_node.
41600         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41601         upon out-of-memory.
41602         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41603         out-of-memory.
41604         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41605         upon out-of-memory.
41606         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41607         upon out-of-memory.
41608         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41609         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41610         gl_anytree_list1.h before gl_anyavltree_list2.h.
41611         (gl_avltree_list_implementation): Update.
41612         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41613         gl_anytree_list1.h before gl_anyavltree_list2.h.
41614         (gl_rbtree_list_implementation): Update.
41615         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41616         Change return type to 'int'. Return -1 upon out-of-memory. Use
41617         __builtin_expect.
41618         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41619         (gl_avltreehash_list_implementation): Update.
41620         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41621         (gl_rbtreehash_list_implementation): Update.
41622         * modules/array-list (Depends-on): Remove xalloc.
41623         * modules/carray-list (Depends-on): Likewise.
41624         * modules/linked-list (Depends-on): Likewise.
41625         * modules/linkedhash-list (Depends-on): Likewise.
41626         * modules/avltree-list (Depends-on): Likewise.
41627         * modules/rbtree-list (Depends-on): Likewise.
41628         * modules/avltreehash-list (Depends-on): Likewise.
41629         * modules/rbtreehash-list (Depends-on): Likewise.
41630
41631         * modules/xsublist: New file.
41632         * lib/gl_xsublist.h: New file.
41633         * lib/gl_xsublist.c: New file.
41634         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41635         (gl_sublist_nx_create): New declaration.
41636         * lib/gl_sublist.c: Don't include xalloc.h.
41637         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41638         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41639         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41640         Change return type to 'int'. Return -1 upon out-of-memory.
41641         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41642         upon out-of-memory.
41643         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41644         NULL upon out-of-memory.
41645         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41646         upon out-of-memory.
41647         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41648         NULL upon out-of-memory.
41649         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41650         NULL upon out-of-memory.
41651         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41652         upon out-of-memory.
41653         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41654         (gl_sublist_list_implementation): Update.
41655         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41656         upon out-of-memory.
41657         * modules/sublist (Depends-on): Remove xalloc.
41658
41659         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41660         * tests/test-carray_list.c: Likewise.
41661         * tests/test-linked_list.c: Likewise.
41662         * tests/test-linkedhash_list.c: Likewise.
41663         * tests/test-avltree_list.c: Likewise.
41664         * tests/test-rbtree_list.c: Likewise.
41665         * tests/test-avltreehash_list.c: Likewise.
41666         * tests/test-rbtreehash_list.c: Likewise.
41667         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41668         * modules/carray-list-tests (Makefile.am): Likewise.
41669         * modules/linked-list-tests (Makefile.am): Likewise.
41670         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41671         * modules/avltree-list-tests (Makefile.am): Likewise.
41672         * modules/rbtree-list-tests (Makefile.am): Likewise.
41673         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41674         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41675
41676         * NEWS: Mention the changes.
41677
41678         * lib/clean-temp.c: Include gl_xlist.h.
41679         * modules/clean-temp (Depends-on): Add xlist.
41680
41681         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41682         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41683
41684         * tests/test-array_oset.c: Include gl_xlist.h.
41685         * modules/array-oset-tests (Depends-on): Add xlist.
41686
41687         Reported by José E. Marchesi <jemarch@gnu.org>.
41688
41689 2009-12-13  Bruno Haible  <bruno@clisp.org>
41690
41691         Move the malloc checking from module 'oset' to new module 'xoset'.
41692         * modules/xoset: New file.
41693         * lib/gl_xoset.h: New file.
41694         * lib/gl_xoset.c: New file.
41695         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41696         declarations.
41697         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41698         (struct gl_oset_implementation): Rename and change methods accordingly.
41699         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41700         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41701         'int'. Mark as __warn_unused_result__.
41702         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41703         gl_oset_create_empty.
41704         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41705         'int'.
41706         * lib/gl_array_oset.c: Don't include xalloc.h.
41707         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41708         malloc, not xmalloc.
41709         (grow): Change return type to 'int'. Don't call xalloc_die.
41710         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41711         to 'int'.
41712         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41713         'int'.
41714         (gl_array_oset_implementation): Update.
41715         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41716         gl_tree_create_empty.
41717         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41718         'int'.
41719         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41720         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41721         xmalloc.
41722         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41723         not xmalloc.
41724         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41725         xmalloc.
41726         (gl_avltree_oset_implementation): Update.
41727         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41728         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41729         xmalloc.
41730         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41731         not xmalloc.
41732         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41733         xmalloc.
41734         (gl_rbtree_oset_implementation): Update.
41735         * modules/array-oset (Depends-on): Remove xalloc.
41736         * modules/avltree-oset (Depends-on): Likewise.
41737         * modules/rbtree-oset (Depends-on): Likewise.
41738         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41739         * tests/test-avltree_oset.c: Likewise.
41740         * tests/test-rbtree_oset.c: Likewise.
41741         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41742         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41743         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41744         * NEWS: Mention the change.
41745
41746 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41747
41748         maint.mk: allow a project to override release-prep commands
41749         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41750         commands into a new rule.
41751         (release-prep): New rule.
41752         (release-prep-hook): New overridable variable.
41753
41754 2009-12-13  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41757
41758 2009-12-13  Jim Meyering  <meyering@redhat.com>
41759
41760         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41761         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41762
41763 2009-12-12  Bruno Haible  <bruno@clisp.org>
41764
41765         duplocale: Tweak.
41766         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41767
41768 2009-12-12  Karl Berry  <karl@gnu.org>
41769
41770         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41771
41772 2009-12-12  Bruno Haible  <bruno@clisp.org>
41773
41774         * m4/po.m4: Undo incorrect untabification.
41775
41776 2009-12-12  Bruno Haible  <bruno@clisp.org>
41777
41778         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41779         * modules/c-strtod (Depends-on): Add locale.
41780         * modules/c-strtold (Depends-on): Likewise.
41781
41782 2009-12-12  Bruno Haible  <bruno@clisp.org>
41783
41784         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41785
41786 2009-12-11  Eric Blake  <ebb9@byu.net>
41787
41788         setenv: relax requirement in light of POSIX ruling
41789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41790         not NULL.
41791         * tests/test-setenv.c (main): Relax test.
41792         * tests/test-unsetenv.c (main): Likewise.
41793         * doc/posix-functions/setenv.texi (setenv): Document this.
41794         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41795
41796 2009-12-11  Bruno Haible  <bruno@clisp.org>
41797
41798         New module 'fd-safer-flag'.
41799         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41800         * lib/dup-safer.c (dup_safer_flag): Remove function.
41801         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41802         * lib/fd-safer.c (fd_safer_flag): Remove function.
41803         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41804         * modules/cloexec (configure.ac): Drop indicator macro.
41805         * modules/fd-safer-flag: New file.
41806         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41807         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41808         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41809
41810 2009-12-11  Bruno Haible  <bruno@clisp.org>
41811
41812         Tests for module 'nl_langinfo'.
41813         * modules/nl_langinfo-tests: New file.
41814         * tests/test-nl_langinfo.sh: New file.
41815         * tests/test-nl_langinfo.c: New file.
41816
41817         New module 'nl_langinfo'.
41818         * lib/nl_langinfo.c: New file.
41819         * m4/nl_langinfo.m4: New file.
41820         * modules/nl_langinfo: New file.
41821         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41822
41823 2009-12-11  Bruno Haible  <bruno@clisp.org>
41824
41825         Tests for module 'langinfo'.
41826         * modules/langinfo-tests: New file.
41827         * tests/test-langinfo.c: New file.
41828
41829         New module 'langinfo'.
41830         * lib/langinfo.in.h: New file.
41831         * m4/langinfo_h.m4: New file.
41832         * modules/langinfo: New file.
41833         * doc/posix-headers/langinfo.texi: Mention the new module.
41834
41835 2009-12-11  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/config.charset: Untabify.
41838
41839 2009-12-11  Bruno Haible  <bruno@clisp.org>
41840
41841         * modules/unistd-safer (configure.ac): Drop indicator macro.
41842
41843 2009-12-11  Bruno Haible  <bruno@clisp.org>
41844
41845         Move pipe2-safer code to its own file.
41846         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41847         * lib/pipe-safer.c (pipe2_safer): Remove function.
41848         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41849         (Makefile.am): Add it to lib_SOURCES.
41850
41851 2009-12-10  Bruno Haible  <bruno@clisp.org>
41852
41853         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41854
41855 2009-12-10  Bruno Haible  <bruno@clisp.org>
41856
41857         Declare which arguments expect non-NULL values, for GCC and clang.
41858         * build-aux/arg-nonnull.h: New file.
41859         * modules/arg-nonnull: New file.
41860         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41861         (inet_ntop, inet_pton): Use it.
41862         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41863         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41864         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41865         (open, openat): Use it.
41866         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41867         (fnmatch): Use it.
41868         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41869         (getopt, getopt_long, getopt_long_only): Use it.
41870         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41871         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41872         Use it.
41873         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41874         (iconv_open): Use it.
41875         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41876         (strtoimax, strtoumax): Use it.
41877         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41878         (duplocale): Use it.
41879         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41880         (frexp, frexpl): Use it.
41881         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41882         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41883         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41884         (tsearch, tfind, tdelete, twalk): Use it.
41885         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41886         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41887         sigpending): Use it.
41888         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41889         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41890         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41891         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41892         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41893         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41894         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41895         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41896         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41897         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41898         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41899         Use it.
41900         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41901         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41902         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41903         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41904         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41905         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41906         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41907         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41908         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41909         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41910         strtoull, unsetenv): Use it.
41911         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41912         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41913         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41914         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41915         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41916         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41917         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41918         (strcasecmp, strncasecmp): Use it.
41919         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41920         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41921         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41922         rpl_setsockopt): Use it.
41923         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41924         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41925         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41926         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41927         (gettimeofday): Use it.
41928         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41929         (times): Use it.
41930         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41931         (uname): Use it.
41932         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41933         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41934         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41935         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41936         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41937         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41938         unlinkat, write): Use it.
41939         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41940         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41941         * lib/argv-iter.h: Include arg-nonnull.h.
41942         (_ATTRIBUTE_NONNULL_): Remove macro.
41943         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41944         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41945         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41946         optimization.
41947         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41948         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41949         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41950         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41951         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41952         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41953         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41954         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41955         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41956         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41957         * modules/dirent (Depends-on): Add arg-nonnull.
41958         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41959         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41960         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41961         * modules/fnmatch (Depends-on): Add arg-nonnull.
41962         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41963         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41964         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41965         * modules/glob (Depends-on): Add arg-nonnull.
41966         (Makefile.am): Insert arg-nonnull.h into glob.h.
41967         * modules/iconv_open (Depends-on): Add arg-nonnull.
41968         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41969         * modules/inttypes (Depends-on): Add arg-nonnull.
41970         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41971         * modules/locale (Depends-on): Add arg-nonnull.
41972         (Makefile.am): Insert arg-nonnull.h into locale.h.
41973         * modules/math (Depends-on): Add arg-nonnull.
41974         (Makefile.am): Insert arg-nonnull.h into math.h.
41975         * modules/netdb (Depends-on): Add arg-nonnull.
41976         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41977         * modules/search (Depends-on): Add arg-nonnull.
41978         (Makefile.am): Insert arg-nonnull.h into search.h.
41979         * modules/signal (Depends-on): Add arg-nonnull.
41980         (Makefile.am): Insert arg-nonnull.h into signal.h.
41981         * modules/spawn (Depends-on): Add arg-nonnull.
41982         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41983         * modules/stdio (Depends-on): Add arg-nonnull.
41984         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41985         * modules/stdlib (Depends-on): Add arg-nonnull.
41986         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41987         * modules/string (Depends-on): Add arg-nonnull.
41988         (Makefile.am): Insert arg-nonnull.h into string.h.
41989         * modules/strings (Depends-on): Add arg-nonnull.
41990         (Makefile.am): Insert arg-nonnull.h into strings.h.
41991         * modules/sys_socket (Depends-on): Add arg-nonnull.
41992         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41993         * modules/sys_stat (Depends-on): Add arg-nonnull.
41994         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41995         * modules/sys_time (Depends-on): Add arg-nonnull.
41996         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41997         * modules/sys_times (Depends-on): Add arg-nonnull.
41998         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41999         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42000         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42001         * modules/time (Depends-on): Add arg-nonnull.
42002         (Makefile.am): Insert arg-nonnull.h into time.h.
42003         * modules/unistd (Depends-on): Add arg-nonnull.
42004         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42005         * modules/wchar (Depends-on): Add arg-nonnull.
42006         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42007         * modules/argv-iter (Depends-on): Add arg-nonnull.
42008         * tests/test-canonicalize.c (null_ptr): New function.
42009         (main): Use it.
42010         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42011         (main): Use it.
42012         * tests/test-memmem.c (null_ptr): New function.
42013         (main): Use it.
42014         Reported by Jim Meyering.
42015
42016 2009-12-10  Bruno Haible  <bruno@clisp.org>
42017
42018         Use spaces for indentation, not tabs.
42019         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42020         * m4/*.m4: Untabify.
42021         * build-aux/*.h: Untabify.
42022         * tests/**/*.[hc]: Untabify.
42023         * README: New section "Indent with spaces, not TABs", based on
42024         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42025         * NEWS: Mention the change.
42026
42027 2009-12-10  Bruno Haible  <bruno@clisp.org>
42028
42029         pty test: Fix link error.
42030         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42031         test_pty_LDADD.
42032
42033 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42034
42035         * modules/pty: New file.
42036         * modules/pty-tests: New file.
42037         * m4/pty.m4: New file.
42038         * tests/test-pty.c: New file.
42039         * doc/glibc-headers/pty.texi: Modified.
42040         * doc/glibc-functions/forkpty.texi: Modified.
42041         * doc/glibc-functions/openpty.texi: Modified.
42042
42043 2009-12-10  Bruno Haible  <bruno@clisp.org>
42044
42045         Avoid syntax error in C++ mode.
42046         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42047
42048 2009-12-10  Bruno Haible  <bruno@clisp.org>
42049
42050         Use sed with option -e.
42051         * gnulib-tool (func_version, func_emit_copyright_notice,
42052         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42053         option -e to sed.
42054         * modules/link-warning (Makefile.am): Likewise.
42055
42056 2009-12-10  Jim Meyering  <meyering@redhat.com>
42057
42058         mgetgroups: do not write bytes beyond end of malloc'd buffer
42059         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42060         username, we call getgroups with a one-element-shorter buffer,
42061         but still told it the length was original, max_n_groups.
42062
42063 2009-12-09  Eric Blake  <ebb9@byu.net>
42064
42065         cloexec: relax license
42066         * modules/cloexec (Maintainer): Add myself.
42067         (License): Use LGPL, not GPL.
42068
42069         link-warning: optimize generation
42070         * modules/link-warning (Makefile.am): Reduce process usage.
42071
42072 2009-12-09  Bruno Haible  <bruno@clisp.org>
42073
42074         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42075         workaround was added on 2009-11-17.
42076
42077 2009-12-09  Jim Meyering  <meyering@redhat.com>
42078             Bruno Haible  <bruno@clisp.org>
42079
42080         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42081         * modules/link-warning (Makefile.am): Make the comment-removing sed
42082         command more robust in the face of bootstrap-prepended comment lines.
42083
42084 2009-12-09  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42087         most one group.
42088
42089 2009-12-09  Simon Josefsson <simon@josefsson.org>
42090             Bruno Haible  <bruno@clisp.org>
42091
42092         * build-aux/link-warning.h: Add copyright notice.
42093         * modules/link-warning (Makefile.am): Generate link-warning.h from
42094         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42095         * NEWS: Mention change in link-warning module.
42096         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42097         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42098         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42099         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42100         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42101         * modules/math (Makefile.am): Add dependency to math.h.
42102         * modules/search (Makefile.am): Add dependency to search.h.
42103         * modules/signal (Makefile.am): Add dependency to signal.h.
42104         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42105         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42106         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42107         * modules/string (Makefile.am): Add dependency to string.h.
42108         * modules/strings (Makefile.am): Add dependency to strings.h.
42109         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42110         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42111         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42112         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42113         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42114         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42115         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42116         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42117         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42118
42119 2009-12-09  Bruno Haible  <bruno@clisp.org>
42120
42121         fchdir: Optimize away rpl_fstat when possible.
42122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42123         REPLACE_OPEN_DIRECTORY.
42124         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42125
42126 2009-12-09  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/fchdir.c: Update comment.
42129
42130 2009-12-09  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42133
42134 2009-12-08  Eric Blake  <ebb9@byu.net>
42135
42136         fchdir: avoid memory leak on re-registration.
42137         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42138
42139 2009-12-08  Jim Meyering  <meyering@redhat.com>
42140
42141         init.sh: avoid Solaris 10 /bin/sh portability problem
42142         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42143         sourced script:
42144           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42145           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42146           bar
42147         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42148         and two tests used that idiom.
42149         * tests/init.sh: Update suggested usage comments.
42150         (path_prepend_): New function, to be used in place
42151         of the --src-path=DIR option.
42152         (setup_): Move PATH-prepending code into path_prepend_.
42153         * tests/test-pread.sh: Adapt to new usage.
42154         * tests/test-xalloc-die.sh: Likewise.
42155
42156 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42157
42158         * doc/gnulib.texi (Glibc pty.h): Add.
42159         * doc/glibc-functions/forkpty.texi: Add.
42160         * doc/glibc-functions/openpty.texi: Add.
42161         Suggested by Bruno Haible.
42162
42163 2009-12-08  Eric Blake  <ebb9@byu.net>
42164
42165         fchdir: fix logic bugs
42166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42167         * tests/test-fchdir.c (main): Enhance test.
42168         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42169         is in use.
42170
42171         dup2: fix logic bugs
42172         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42173         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42174         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42175         exists.
42176         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42177
42178 2009-12-07  Eric Blake  <ebb9@byu.net>
42179
42180         unlink: fix m4 detection
42181         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42182
42183         unistd-safer: add unit test
42184         * modules/unistd-safer-tests: New file.
42185         * tests/test-dup-safer.c: Likewise.
42186         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42187         * tests/test-dup2.c (setmode): Likewise.
42188         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42189
42190         cloexec: preserve text vs. binary across dup_cloexec
42191         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42192         mode.
42193         * modules/dup2-tests (Depends-on): Add binary-io.
42194         * modules/cloexec-tests (Depends-on): Likewise.
42195         * tests/test-dup2.c (setmode, is_mode): New helpers.
42196         (main): Add tests that translation mode is preserved.
42197         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42198         Reported by Bruno Haible.
42199
42200         mgetgroups: reduce duplicate listings
42201         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42202         resulting array.
42203         * tests/test-chown.h (test_chown): Simplify client.
42204         * tests/test-lchown.h (test_lchown): Likewise.
42205
42206 2009-12-06  Bruno Haible  <bruno@clisp.org>
42207
42208         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42209         value.
42210
42211 2009-12-06  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/progname.c: Include stdio.h, stdlib.h.
42214         (set_program_name): Reject a NULL argument.
42215
42216 2009-12-05  Eric Blake  <ebb9@byu.net>
42217
42218         pipe2-safer: new module
42219         * modules/pipe2-safer: New file.
42220         * lib/unistd-safer.h (pipe2_safer): New prototype.
42221         * lib/unistd--.h (pipe2): New wrapper.
42222         * lib/pipe-safer.c (pipe2_safer): New function.
42223         * modules/pipe (Depends-on): Add pipe2-safer.
42224         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42225
42226         stdlib-safer: preserve cloexec flag for mkostemp[s]
42227         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42228         fd_safer_flag.
42229
42230         unistd-safer: allow preservation of cloexec status via flag
42231         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42232         prototypes.
42233         * lib/dup-safer.c (dup_safer_flag): New function.
42234         * lib/fd-safer.c (fd_safer_flag): Likewise.
42235         * modules/cloexec (configure.ac): Set witness.
42236
42237         test-dup2: enhance test
42238         * modules/dup2-tests (Depends-on): Add cloexec.
42239         * tests/test-dup2.c (main): Enhance test.
42240
42241         cloexec: add dup_cloexec
42242         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42243         header and comments.
42244         * lib/cloexec.c (set_cloexec_flag): Add comments.
42245         (dup_cloexec): New function, with mingw implementation borrowed
42246         from...
42247         * lib/w32spawn.h (dup_noinherit): ...here.
42248         * modules/execute (Depends-on): Add cloexec.
42249         * modules/pipe (Depends-on): Likewise.
42250         * modules/cloexec (Depends-on): Add dup2.
42251         * modules/cloexec-tests (Files): New file.
42252         * tests/test-cloexec.c: Likewise.
42253
42254         test-xalloc-die: fix test for mingw
42255         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42256         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42257         directory and .exe suffix off argv[0] output.
42258
42259         test-fseeko: fix test for mingw
42260         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42261         than undefining fseek, so test will pass on mingw.
42262
42263 2009-12-05  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/progname.h (set_program_name): Clarify specification.
42266         * lib/progname.c (set_program_name): Likewise.
42267         Reported by Jim Meyering.
42268
42269 2009-12-05  Jim Meyering  <meyering@redhat.com>
42270
42271         maint.mk: backslash-escape parens in default regexp
42272         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42273         backslash-escape the literal parentheses.
42274
42275         maint.mk: news-date-check: use grep -E
42276         * top/maint.mk (today): Define a Make variable, not a...
42277         (news-date-check): ...shell variable.
42278         (news-date-regexp): Use the Make variable.
42279         Use grep's -E option.  Change the failing diagnostic to mention
42280         the variable, $(news-date-regexp).
42281
42282 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42283
42284         maintainer-makefile: allow customization of NEWS entry format
42285         * top/maint.mk (news-date-regexp): New overridable variable.
42286         (news-date-check): Use it.
42287
42288 2009-12-04  Eric Blake  <ebb9@byu.net>
42289
42290         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42291         * lib/mgetgroups.h (xgetgroups): New prototype.
42292         * lib/mgetgroups.c (xgetgroups): New wrapper.
42293         (mgetgroups): Handle ENOSYS.
42294         * modules/mgetgroups (Depends-on): Add realloc.
42295         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42296
42297         mgetgroups: avoid argument promotion issues with -1
42298         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42299         for invalid gid_t.
42300         * tests/test-chown.h (getegid, test_chown): Likewise.
42301         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42302
42303 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42304
42305         exclude: Fix header file problems.
42306         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42307
42308 2009-12-01  Jim Meyering  <meyering@redhat.com>
42309
42310         fts: fts_open: do not let an empty string cause immediate failure
42311         This is required in support of GNU rm, for which the command
42312         "rm A '' B" must process and remove both A and B, in spite of
42313         the empty string argument.
42314         * lib/fts.c (fts_open): Do not let the presence of an empty string
42315         cause fts_open to fail immediately.  Most fts-using tools must be
42316         able to process all arguments, in order, and can be expected to
42317         diagnose such arguments themselves.
42318
42319 2009-11-30  Eric Blake  <ebb9@byu.net>
42320
42321         utimens: fix compilation error
42322         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42323         Declare variable at right scope.
42324
42325 2009-11-29  Jim Meyering  <meyering@redhat.com>
42326
42327         bootstrap: handle perl-5.11's changed --version output
42328         * build-aux/bootstrap (get_version): Handle perl separately,
42329         since perl-5.11's --version output is different.
42330
42331 2009-11-28  Jim Meyering  <meyering@redhat.com>
42332
42333         userspec: depend on the inttostr module, too
42334         * modules/userspec (Depends-on): Add inttostr.
42335
42336         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42337         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42338         number of MAXUID when it evaluates to (uid_t) -1.
42339         Likewise for group ID.  Reported by Matt McCutchen in
42340         <http://savannah.gnu.org/bugs/?28113>
42341
42342         userspec: reformat to use spaces, not TABs
42343         * lib/userspec.c: Expand TABs to spaces.
42344         Add Emacs' "indent-tabs-mode: nil" hint.
42345
42346 2009-11-27  Eric Blake  <ebb9@byu.net>
42347
42348         getopt-gnu: flush out another BSD bug
42349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42350         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42351         flush out BSD bug.
42352         * tests/test-getopt.h (test_getopt): End lists with NULL.
42353         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42354         (test_getopt_long_posix): Enhance test.
42355         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42356         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42357         getopt-gnu.
42358         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42359         Likewise.
42360
42361 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42362
42363         * modules/idpriv-droptemp-tests (Notice): Fix text.
42364
42365 2009-11-27  Jim Meyering  <meyering@redhat.com>
42366
42367         test-xalloc-die: avoid spurious failure due to libtool argv difference
42368         In a libtool-enabled project, this test would fail due to a difference
42369         in the emitted program name, e.g.,
42370         -test-xalloc-die: memory exhausted
42371         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42372         Use program to avoid that.
42373         * modules/xalloc-die-tests (Depends-on): Add progname.
42374         * tests/test-xalloc-die.c: Include progname.h".
42375         (program_name): Remove decl.
42376         (main): Call set_program_name.
42377         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42378
42379 2009-11-26  Richard Jones  <rjones@redhat.com>
42380
42381         w32sock: leave win32 error in place.
42382         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42383
42384 2009-11-26  Eric Blake  <ebb9@byu.net>
42385
42386         init.sh: suggest to use skip_ and fail_ functions in comments
42387         * tests/init.sh: Add a sentence.
42388
42389 2009-11-25  Bruno Haible  <bruno@clisp.org>
42390
42391         init.sh: add documentation in comments
42392         * tests/init.sh: Add some developer and user documentation.
42393
42394 2009-11-26  Jim Meyering  <meyering@redhat.com>
42395
42396         init.sh: accommodate even those who specify bogus srcdir manually
42397         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42398         configure-time tests to be sanitized, so that there is no need to
42399         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42400         (with no double quotes) suffices.  However, since tests may be
42401         invoked manually, and since you may explicitly set srcdir to the
42402         name of a directory containing spaces, do quote its uses here.
42403         * tests/test-pread.sh: Likewise.
42404         Suggested by Bruno Haible.
42405
42406         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42407         * tests/test-pread.sh: Write no data into the pipe, because
42408         test-pread actually reads none.  This avoids a diagnostic,
42409         "bash: echo: write error: Broken pipe", that arises in the unusual
42410         event something is ignoring SIGPIPE, and might be interpreted
42411         as some sort of failure.  Reported by Bruno Haible.
42412
42413 2009-11-25  Jim Meyering  <meyering@redhat.com>
42414
42415         test-pread: cover failure with ESPIPE and EINVAL
42416         * tests/test-pread.c (main): Test for failure, too.
42417         * tests/test-pread.sh: Invoke with stdin on a pipe.
42418         Suggested by Eric Blake.
42419
42420         pread: improvement and fix
42421         * modules/pread (Depends-on): Depend on lseek, for portability to
42422         e.g., mingw.  Suggested by Eric Blake.
42423         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42424
42425         unistd.in.h: correct declaration of pread
42426         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42427         Reported by Richard W.M. Jones.
42428
42429         test-pread.sh: distribute the test script
42430         * modules/pread-tests (Files): Include test-pread.sh.
42431
42432         test-pread.sh: clean up
42433         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42434         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42435         That is unnecessary, since it's always ".".
42436         Suggestion from Eric Blake.
42437
42438         test-pread.sh: make executable
42439         * tests/test-pread.sh: Set executable bit.
42440         Reported by Eric Blake.
42441
42442         correct typo in test-pread.sh
42443         * tests/test-pread.sh: Add #! line.
42444
42445         test pread
42446         * tests/test-pread.c: New file.
42447         * tests/test-pread.sh: Likewise.
42448         * modules/pread-tests: Likewise.
42449
42450         pread: new module
42451         * modules/pread: New file.
42452         * lib/unistd.in.h (pread): Define/declare.
42453         * lib/pread.c (pread): New file.
42454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42455         * modules/unistd (Makefile.am): Substitute witnesses.
42456         * doc/posix-functions/pread.texi (pread): Update.
42457         * MODULES.html.sh: Add pread.
42458
42459 2009-11-25  Jim Meyering  <meyering@redhat.com>
42460
42461         tests/init.sh: new file to be used via most *.sh tests
42462         * tests/init.sh: New file.
42463
42464 2009-11-25  Eric Blake  <ebb9@byu.net>
42465
42466         utimens: work around older Linux failure with symlinks
42467         * lib/utimens.c (lutimensat_works_really): New variable.
42468         (fdutimens, lutimens): Use it to manage kernels that support
42469         nanosecond times on files, but not on symlinks.
42470         Reported by OndÅ™ej Vašík.
42471
42472         utimes: fix configure grammar
42473         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42474
42475 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42476
42477         regex: Fix fastmap for multibyte character ranges.
42478         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42479         characters when a multibyte character range is included.
42480
42481 2009-11-22  Andy Wingo  <wingo@pobox.com>
42482
42483         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42484         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42485
42486 2009-11-24  Bruno Haible  <bruno@clisp.org>
42487
42488         doc: Most *_l functions exist in MacOS X 10.5.
42489         * doc/posix-functions/duplocale.texi: Update platforms list.
42490         * doc/posix-functions/freelocale.texi: Likewise.
42491         * doc/posix-functions/newlocale.texi: Likewise.
42492         * doc/posix-functions/uselocale.texi: Likewise.
42493         * doc/posix-functions/isalnum_l.texi: Likewise.
42494         * doc/posix-functions/isalpha_l.texi: Likewise.
42495         * doc/posix-functions/isblank_l.texi: Likewise.
42496         * doc/posix-functions/iscntrl_l.texi: Likewise.
42497         * doc/posix-functions/isdigit_l.texi: Likewise.
42498         * doc/posix-functions/isgraph_l.texi: Likewise.
42499         * doc/posix-functions/islower_l.texi: Likewise.
42500         * doc/posix-functions/isprint_l.texi: Likewise.
42501         * doc/posix-functions/ispunct_l.texi: Likewise.
42502         * doc/posix-functions/isspace_l.texi: Likewise.
42503         * doc/posix-functions/isupper_l.texi: Likewise.
42504         * doc/posix-functions/iswalnum_l.texi: Likewise.
42505         * doc/posix-functions/iswalpha_l.texi: Likewise.
42506         * doc/posix-functions/iswblank_l.texi: Likewise.
42507         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42508         * doc/posix-functions/iswctype_l.texi: Likewise.
42509         * doc/posix-functions/iswdigit_l.texi: Likewise.
42510         * doc/posix-functions/iswgraph_l.texi: Likewise.
42511         * doc/posix-functions/iswlower_l.texi: Likewise.
42512         * doc/posix-functions/iswprint_l.texi: Likewise.
42513         * doc/posix-functions/iswpunct_l.texi: Likewise.
42514         * doc/posix-functions/iswspace_l.texi: Likewise.
42515         * doc/posix-functions/iswupper_l.texi: Likewise.
42516         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42517         * doc/posix-functions/isxdigit_l.texi: Likewise.
42518         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42519         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42520         * doc/posix-functions/strcoll_l.texi: Likewise.
42521         * doc/posix-functions/strfmon_l.texi: Likewise.
42522         * doc/posix-functions/strftime_l.texi: Likewise.
42523         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42524         * doc/posix-functions/strxfrm_l.texi: Likewise.
42525         * doc/posix-functions/tolower_l.texi: Likewise.
42526         * doc/posix-functions/toupper_l.texi: Likewise.
42527         * doc/posix-functions/towctrans_l.texi: Likewise.
42528         * doc/posix-functions/towlower_l.texi: Likewise.
42529         * doc/posix-functions/towupper_l.texi: Likewise.
42530         * doc/posix-functions/wcscoll_l.texi: Likewise.
42531         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42532         * doc/posix-functions/wctrans_l.texi: Likewise.
42533         * doc/posix-functions/wctype_l.texi: Likewise.
42534         * doc/glibc-functions/strptime_l.texi: Likewise.
42535         * doc/glibc-functions/strtod_l.texi: Likewise.
42536         * doc/glibc-functions/strtof_l.texi: Likewise.
42537         * doc/glibc-functions/strtol_l.texi: Likewise.
42538         * doc/glibc-functions/strtold_l.texi: Likewise.
42539         * doc/glibc-functions/strtoll_l.texi: Likewise.
42540         * doc/glibc-functions/strtoul_l.texi: Likewise.
42541         * doc/glibc-functions/strtoull_l.texi: Likewise.
42542         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42543         * doc/glibc-functions/wcstod_l.texi: Likewise.
42544         * doc/glibc-functions/wcstof_l.texi: Likewise.
42545         * doc/glibc-functions/wcstol_l.texi: Likewise.
42546         * doc/glibc-functions/wcstold_l.texi: Likewise.
42547         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42548         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42549         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42550
42551 2009-11-24  Bruno Haible  <bruno@clisp.org>
42552
42553         duplocale: Fix logic bug.
42554         * lib/duplocale.c: Don't include <langinfo.h>.
42555         (_NL_LOCALE_NAME): Remove macro.
42556         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42557         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42558
42559 2009-11-23  Jim Meyering  <meyering@redhat.com>
42560
42561         test-update-copyright: don't hard-code /usr/bin/perl
42562         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42563         perl to print the current year.  Gilles Espinasse reported that
42564         the replaced use of perl was hard-coded as /usr/bin/perl.
42565
42566 2009-11-23  Bruno Haible  <bruno@clisp.org>
42567
42568         duplocale: Add support for glibc 2.3.x.
42569         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42570
42571 2009-11-22  Bruno Haible  <bruno@clisp.org>
42572
42573         vasnprintf: Tiny optimization.
42574         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42575         MacOS X.
42576
42577 2009-11-22  Bruno Haible  <bruno@clisp.org>
42578
42579         Tests for module 'duplocale'.
42580         * modules/duplocale-tests: New file.
42581         * tests/test-duplocale.c: New file.
42582
42583         New module 'duplocale'.
42584         * m4/duplocale.m4: New file.
42585         * lib/locale.in.h (duplocale): New declaration.
42586         * lib/duplocale.c: New file.
42587         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42588         gl_LOCALE_H_DEFAULTS): New macros.
42589         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42590         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42591         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42592         REPLACE_DUPLOCALE.
42593         * modules/duplocale: New file.
42594         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42595
42596 2009-11-22  Bruno Haible  <bruno@clisp.org>
42597
42598         * modules/locale-tests (configure.ac): Test for newlocale function.
42599         * tests/test-locale.c: When the system has extended locale functions,
42600         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42601
42602         locale: Make locale_t available when possible.
42603         * lib/locale.in.h: Include <xlocale.h> when it exists.
42604         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42605         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42606         * modules/locale (Depends-on): Add extensions.
42607         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42608         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42609
42610 2009-11-22  Bruno Haible  <bruno@clisp.org>
42611
42612         Add comments.
42613         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42614         invocation.
42615         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42616         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42617         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42618
42619 2009-11-22  Bruno Haible  <bruno@clisp.org>
42620
42621         error: account for the possibility of freopen (stdout).
42622         * lib/error.c: Include <unistd.h>.
42623         (flush_stdout): New function, extracted from error and error_at_line.
42624         Determine stdout's fd dynamically.
42625         (error, error_at_line): Invoke flush_stdout.
42626         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42627         * modules/error (Depends-on): Add unistd.
42628
42629 2009-11-22  Bruno Haible  <bruno@clisp.org>
42630
42631         diffseq: Add comment.
42632         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42633
42634 2009-11-22  Jim Meyering  <meyering@redhat.com>
42635
42636         c-stack: avoid defining an unused static function
42637         * lib/c-stack.c (find_stack_direction): Do not define this function
42638         when it will not be used.
42639
42640         diffseq: avoid spurious gcc warnings
42641         * lib/diffseq.h (IF_LINT2): Define.
42642         (compareseq): Use it to initialize two members of "part".
42643         This avoids two used-uninitialized warnings.
42644
42645 2009-11-21  Jim Meyering  <meyering@redhat.com>
42646
42647         c-stack: avoid "ignoring return value of `write'" warning
42648         * lib/c-stack.c: Include "ignore-value.h".
42649         (die): Explicitly ignore each write return value.
42650         * modules/c-stack (Depends-on): Add ignore-value.
42651
42652 2009-11-21  Bruno Haible  <bruno@clisp.org>
42653
42654         diffseq: reduce scope of variable 'best'.
42655         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42656         variable, earlier used for two different purposes.
42657
42658 2009-11-21  Jim Meyering  <meyering@redhat.com>
42659
42660         diffseq: remove useless assignment to "best"
42661         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42662         assignment.  At that point "best" is already guaranteed to be zero.
42663
42664 2009-11-20  Eric Blake  <ebb9@byu.net>
42665
42666         build: mention ftp redirector in release announcements
42667         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42668         values that used to come from cfg.mk; mention FTP redirect URL.
42669         * build-aux/announce-gen: Mention the mirror list.
42670         Suggested by Karl Berry.
42671
42672         nanosleep: improve port to mingw
42673         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42675         LIB_NANOSLEEP, but only when needed.
42676         * modules/select (Link): Document LIBSOCKET.
42677         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42678         enough.
42679
42680         nanosleep: work around cygwin bug
42681         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42682         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42683         bug.
42684         (getnow): Delete, not needed.
42685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42686         LIB_CLOCK_GETTIME.
42687         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42688         clock-time, gettime.
42689         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42690         bug.
42691         * modules/nanosleep-tests: New test.
42692         * tests/test-nanosleep.c: New file.
42693
42694         sleep: work around cygwin bug
42695         * lib/sleep.c (rpl_sleep): Work around the bug.
42696         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42697         (gl_PREREQ_SLEEP): Delete unused macro.
42698         * modules/sleep (Depends-on): Add verify.
42699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42700         * modules/unistd (Makefile.am): Substitute witness.
42701         * lib/unistd.in.h (sleep): Update prototype.
42702         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42703         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42704         * modules/sleep-tests (Depends-on): Check for alarm.
42705
42706 2009-11-20  Jim Meyering  <meyering@redhat.com>
42707
42708         maint.mk: improve sc_prohibit_magic_number_exit
42709         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42710         so it does not match uses like System.exit(1).
42711         Add comments showing how to correct all offenders.
42712
42713 2009-11-19  Eric Blake  <ebb9@byu.net>
42714
42715         xalloc-die-tests: add missing library
42716         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42717
42718         test-xvasprintf: silence compiler warnings
42719         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42720         empty string from gcc.
42721
42722 2009-11-19  Jim Meyering  <meyering@redhat.com>
42723
42724         xfreopen: new module, from coreutils
42725         * modules/xfreopen: New module.
42726         * lib/xfreopen.c: New file.
42727         * lib/xfreopen.h: New file.
42728         * MODULES.html.sh (File stream based Input/Output"): Add it.
42729
42730 2009-11-19  Eric Blake  <ebb9@byu.net>
42731
42732         manywarnings: depend on warnings
42733         * modules/manywarnings (Depends-on): Add warnings.
42734
42735         build: avoid compiler warnings
42736         * lib/select.c (rpl_select): Delete unused variable.
42737         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42738
42739 2009-11-18  Eric Blake  <ebb9@byu.net>
42740
42741         tests: avoid false negative with --with-packager
42742         * tests/test-version-etc.sh: Discard packager information.
42743         * tests/test-argp-version-etc-1.sh: Likewise.
42744         Reported by Mike Frysinger.
42745
42746         utimens: fix regression on Solaris
42747         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42748         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42749         can only change fd timestamps via futimesat.  Instead, use an
42750         additional witness macro to avoid BSD bug.
42751         Reported by Jim Meyering.
42752
42753 2009-11-17  Eric Blake  <ebb9@byu.net>
42754
42755         usleep: use it to simplify tests
42756         * modules/stat-time-tests (Depends-on): Add usleep.
42757         (configure.ac): Drop usleep check.
42758         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42759         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42760         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42761         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42762         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42763         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42764         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42765         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42766         Likewise.
42767         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42768         * tests/test-lchown.h (nap): Likewise.
42769         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42770         * tests/test-stat-time.c (nap): Likewise.
42771         * tests/test-utimens-common.h (nap): Update comments.
42772
42773         usleep: new module
42774         * modules/usleep: New file.
42775         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42776         * lib/usleep.c (usleep): Likewise.
42777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42778         * modules/unistd (Makefile.am): Substitute witnesses.
42779         * lib/unistd.in.h (usleep): Add declaration.
42780         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42781         * MODULES.html.sh (Date and time): Likewise.
42782         * modules/usleep-tests (Depends-on): New test.
42783         * tests/test-usleep.c: New file.
42784
42785         chown: work around OpenBSD bug
42786         * lib/chown.c (rpl_chown): Work around the bug.
42787         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42788         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42789         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42790         * modules/chown (Depends-on): Add stdbool.
42791         * modules/lchown (Depends-on): Likewise.
42792         * doc/posix-functions/chown.texi (chown): Document the bug.
42793         * doc/posix-functions/lchown.texi (lchown): Likewise.
42794         * tests/test-lchown.h (test_chown): Relax test.
42795
42796         mkstemp: avoid conflict with C++ keyword template
42797         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42798         * lib/mkostemp.c (mkostemp): Likewise.
42799         * lib/mkostemps.c (mkostemps): Likewise.
42800         * lib/mkstemp.c (mkstemp): Likewise.
42801         * lib/mkstemps.c (mkstemps): Likewise.
42802
42803         xalloc-die-tests: optimize
42804         * tests/test-xalloc-die.sh: Reduce number of processes.
42805
42806 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42807
42808         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42809         patch from ludo@gnu.org (Ludovic Courtès).
42810
42811 2009-11-17  Jim Meyering  <meyering@redhat.com>
42812
42813         version-etc: use proper license string
42814         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42815         * modules/version-etc-fsf: Likewise.
42816
42817 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42818
42819         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42820         printed to stdout.  Deal with EOL differences.
42821
42822 2009-11-17  Eric Blake  <ebb9@byu.net>
42823
42824         unsetenv: work around Solaris bug
42825         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42826         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42827         Reported by Jim Meyering.
42828
42829         vasnprintf: avoid compiler warnings
42830         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42831         variables.
42832         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42833
42834 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42835
42836         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42837         settings since xalloc-die is no longer the self test,
42838         xalloc-die.sh is.
42839
42840 2009-11-17  Jim Meyering  <meyering@redhat.com>
42841
42842         test-xalloc-die.sh: make the code agree with the commit log
42843         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42844         at the end, just in case you happen to have a test-xalloc-die
42845         program in some other PATH directory.
42846
42847         test-xalloc-die.sh: fix a portability bug
42848         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42849         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42850         Otherwise, argv[0] (as often seen in diagnostics) would be too
42851         system-dependent, sometimes with, and sometimes without the leading "./".
42852
42853         version-etc-fsf: relax license to LGPLv3+
42854         * modules/version-etc-fsf (License): Relax license.
42855
42856 2009-11-16  Eric Blake  <ebb9@byu.net>
42857
42858         xalloc-die-tests: avoid printing null pointer
42859         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42860         shell script.
42861         * tests/test-xalloc-die.c (program_name): Declare.
42862         * tests/test-xalloc-die.sh (tmpfiles): New file.
42863
42864         setenv, unsetenv: work around various bugs
42865         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42866         (setenv) [HAVE_SETENV]: Work around bugs.
42867         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42868         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42869         for bugs.
42870         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42871         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42873         * modules/stdlib (Makefile.am): Update substitutions.
42874         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42875         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42876         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42877         * modules/setenv-tests: New test.
42878         * modules/unsetenv-tests: Likewise.
42879         * tests/test-setenv.c: New file.
42880         * tests/test-unsetenv.c: Likewise.
42881
42882 2009-11-16  Jim Meyering  <meyering@redhat.com>
42883
42884         version-etc: relax license to LGPLv3+
42885         * modules/version-etc (License): Relax license.
42886
42887         better AC_REQUIRE expanded-before-required-warning avoidance
42888         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42889         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42890         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42891         which is no longer needed.
42892
42893 2009-11-16  Eric Blake  <ebb9@byu.net>
42894
42895         test-freading: clean up temporary file
42896         * tests/test-freading.c (main): Remove file on success, and use
42897         ASSERT more liberally.
42898         Reported by Jim Meyering.
42899
42900 2009-11-16  Jim Meyering  <meyering@redhat.com>
42901
42902         avoid new AC_REQUIRE expanded-before-required warnings
42903         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42904         merely using it.
42905         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42906         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42907
42908 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42909
42910         * tests/test-xalloc-die.c: New file.
42911         * modules/xalloc-die-tests: New file.
42912         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42913         XFAIL_TESTS so it can be appended by modules.
42914
42915 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42916
42917         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42918         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42919
42920 2009-11-14  Eric Blake  <ebb9@byu.net>
42921
42922         fnmatch: avoid compiler warning
42923         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42924         to silence compiler warning about mismatch signedness in ?:.
42925         Reported by Robert Millan.
42926
42927         intprops: add double-inclusion guard
42928         * lib/intprops.h: Allow idempotent includes.
42929         Suggested by Bruce Korb.
42930
42931         openat: detect Solaris fchownat bug
42932         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42933         penalizing glibc chownat when only lchownat is broken.
42934         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42935         trailing slash bugs.
42936         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42937         * modules/openat-tests (Files): Include more files.
42938         (Depends-on): Add mgetgroups, sleep, stat-time.
42939         (configure.ac): Add additional checks.
42940         (Makefile.am): Build new test.
42941         * tests/test-fchownat.c: New file.
42942
42943         lchown: detect Solaris and FreeBSD bug
42944         * lib/lchown.c (rpl_lchown): Work around bug.
42945         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42947         * modules/unistd (Makefile.am): Populate it.
42948         * lib/unistd.in.h (lchown): Update declaration.
42949         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42950         * modules/lchown-tests: New file.
42951         * tests/test-lchown.h (test_lchown): Likewise.
42952         * tests/test-lchown.c (main): Likewise.
42953
42954         chown: detect Solaris and FreeBSD bug
42955         * lib/chown.c (rpl_chown): Work around bug.
42956         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42957         (gl_PREREQ_CHOWN): Delete.
42958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42959         * modules/unistd (Makefile.am): Populate it.
42960         * lib/unistd.in.h (chown): Update declaration.
42961         * lib/lchown.c (chown): Update client.
42962         * modules/lchown (Depends-on): Add lstat.
42963         * doc/posix-functions/chown.texi (chown): Document the bug.
42964         * doc/posix-functions/getgroups.texi (getgroups): Document
42965         getgroups pitfall.
42966         * modules/chown-tests: New file.
42967         * tests/test-chown.h (test_chown): Likewise.
42968         * tests/test-chown.c (main): Likewise.
42969
42970 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42971
42972         gnulib-tool: correctly detect absence of m4 directories
42973         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42974
42975 2009-11-14  Jim Meyering  <meyering@redhat.com>
42976
42977         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42978         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42979
42980 2009-11-14  John W. Eaton  <jwe@gnu.org>
42981
42982         strftime.h: wrap function declaration in extern "C" block
42983         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42984
42985 2009-11-13  Eric Blake  <ebb9@byu.net>
42986
42987         getgroups: avoid compiler warning
42988         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42989
42990         getgroups: work around FreeBSD bug
42991         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42992         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42993         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42994         * tests/test-getgroups.c (main): Fix buffer overrun.
42995
42996         getgroups: avoid compilation failure
42997         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42998         * modules/getgroups (Depends-on): Add stdint.
42999
43000 2009-11-13  Jim Meyering  <meyering@redhat.com>
43001
43002         test-getgroups: avoid compilation failure
43003         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43004
43005 2009-11-13  Eric Blake  <ebb9@byu.net>
43006
43007         mgetgroups: new module, taken from coreutils
43008         * modules/mgetgroups: New file.
43009         * lib/mgetgroups.h: Likewise.
43010         * lib/mgetgroups.c (mgetgroups): Likewise.
43011         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43012         * MODULES.html.sh (Users and groups): Mention it.
43013
43014         getgroups: don't expose GETGROUPS_T to user
43015         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43016         an element at a time if GETGROUPS_T is wrong size.
43017         * lib/getugroups.h (getugroups): Change signature.
43018         * lib/unistd.in.h (getgroups): Likewise.
43019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43020         signature needs fixing.
43021         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43022         AC_TYPE_GETGROUPS.
43023         * modules/group-member (Depends-on): Add getgroups.
43024         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43025         (group_member): Rely on getgroups replacement.
43026         * lib/getugroups.c (getugroups): Use gid_t.
43027         * tests/test-getgroups.c (main): Likewise.
43028         * NEWS: Mention the signature change.
43029         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43030         problem with signature.
43031         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43032         GETGROUPS_T is still useful for setgroups.
43033
43034         getgroups, getugroups: provide stubs for mingw
43035         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43036         * lib/getugroups.c (getugroups): Likewise.
43037         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43038         function.  Modernize replacement scheme.
43039         (gl_PREREQ_GETGROUPS): Delete.
43040         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43041         * modules/getgroups (configure.ac): Declare witness.
43042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43043         * modules/unistd (Depends-on): Substitute witness.
43044         * lib/unistd.in.h (getgroups): Declare replacement.
43045
43046         getgroups: avoid calling exit
43047         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43048         drop xalloc.
43049         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43050         dependencies.
43051         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43052         exiting, in the rare case of malloc failure.
43053
43054         getgroups: fix logic error
43055         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43056         has more than 20 groups.
43057         * modules/getgroups-tests: New test.
43058         * tests/test-getgroups.c: New file.
43059
43060 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43061
43062         * tests/test-base64.c: Improve.
43063
43064 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43065
43066         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43067         Blake <ebb9@byu.net>.
43068
43069 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43070
43071         * tests/test-xvasprintf.c: Add %s%s related checks.
43072
43073 2009-11-12  Eric Blake  <ebb9@byu.net>
43074
43075         version-etc: match standards.texi style
43076         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43077         and use <> only for URLs.
43078
43079 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43080
43081         fts: do not fail on a submount during traversal
43082         * lib/fts.c (fts_build): Read the stat info again after opening
43083         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43084         Original report at http://bugzilla.redhat.com/501848.
43085
43086 2009-11-12  Jim Meyering  <meyering@redhat.com>
43087
43088         bootstrap: sync from coreutils
43089         * build-aux/bootstrap (bootstrap_epilogue): New function.
43090         Use git_modules_config in one more place.  This make bootstrap's
43091         --gnulib-srcdir option more useful for testing.
43092
43093         bootstrap: generalize autoheader check
43094         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43095         AC_CONFIG_HEADERS.
43096
43097 2009-11-11  Eric Blake  <ebb9@byu.net>
43098
43099         mkfifoat: use new modules for Solaris and BSD bugs
43100         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43101         * lib/mkfifoat.c (mknodat): Split...
43102         * lib/mknodat.c (mknodat): ...into new file.
43103         * modules/mkfifoat (Files): Ship new file.
43104         (Depends-on): Add mkfifo, mknod.
43105         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43106         (Depends-on): Add symlink.
43107         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43108         redundant with test_mkfifo.h.
43109         (do_mkfifoat, do_mknodat): New helpers.
43110
43111         mknod: new module
43112         * modules/mknod: New file.
43113         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43114         * lib/mknod.c (mknod): Likewise.
43115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43116         defaults.
43117         * modules/sys_stat (Makefile.am): Substitute them.
43118         * lib/sys_stat.in.h (mknod): Declare replacement.
43119         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43120         Document it.
43121         * doc/posix-functions/mknod.texi (mknod): Likewise.
43122         * modules/mknod-tests: New test.
43123         * tests/test-mknod.c: Likewise.
43124
43125         mkfifo: new module
43126         * modules/mkfifo: New file.
43127         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43128         * lib/mkfifo.c (mkfifo): Likewise.
43129         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43130         defaults.
43131         * modules/sys_stat (Makefile.am): Substitute them.
43132         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43133         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43134         Document it.
43135         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43136         * modules/mkfifo-tests: New test.
43137         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43138         from test-mkfifoat.c.
43139         * tests/test-mkfifo.c: New file.
43140
43141         readlink: detect FreeBSD bug
43142         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43143         slash on symlink.
43144         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43145         * tests/test-readlink.h (test_readlink): Enhance test.
43146
43147         symlink: detect FreeBSD bug
43148         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43149         slash on symlink.
43150         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43151         * tests/test-symlink.h (test_symlink): Enhance test.
43152
43153 2009-11-10  Eric Blake  <ebb9@byu.net>
43154
43155         link: detect FreeBSD bug
43156         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43157         symlink.
43158         * doc/posix-functions/link.texi (link): Document the bug.
43159         * tests/test-link.h (test_link): Enhance test.
43160         * tests/test-linkat.c (main): Update caller.
43161
43162         unlink, remove: detect FreeBSD bug
43163         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43164         slash on symlink.
43165         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43166         * doc/posix-functions/remove.texi (remove): Likewise.
43167         * tests/test-unlink.h (test_unlink): Enhance test.
43168         * tests/test-remove.c (main): Likewise.
43169
43170 2009-11-09  Eric Blake  <ebb9@byu.net>
43171
43172         rename: detect FreeBSD bug
43173         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43174         slash on symlink.
43175         * modules/renameat-tests (Depends-on): Add filenamecat.
43176         * tests/test-rename.h (test_rename): Allow one more errno.
43177         * tests/test-renameat.c (main): Likewise.
43178         * doc/posix-functions/rename.texi (rename): Document the bug.
43179
43180         open: detect FreeBSD bug
43181         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43182         symlink.
43183         * doc/posix-functions/open.texi (open): Document the bug.
43184         * doc/posix-functions/utimes.texi (utimes): Likewise.
43185         * tests/test-open.h (test_open): Add parameters, and test symlink
43186         handling.
43187         * tests/test-open.c (main): Adjust caller.
43188         * tests/test-fcntl-safer.c (main): Likewise.
43189         * modules/open-tests (Depends-on): Add stdbool, symlink.
43190         * modules/fcntl-safer-tests (Depends-on): Likewise.
43191         * tests/test-openat.c (main): Add test-open tests.
43192
43193         stat: detect FreeBSD bug
43194         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43195         symlink.
43196         * doc/posix-functions/stat.texi (stat): Document the bug.
43197         * tests/test-stat.h (test_stat_func): Add argument.
43198         * tests/test-stat.c (main): Adjust caller.
43199         * tests/test-fstatat.c (main): Likewise.
43200         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43201         Reported by Jim Meyering.
43202
43203 2009-11-09  James Youngman  <jay@gnu.org>
43204
43205         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43206         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43207
43208 2009-11-08  Jim Meyering  <meyering@redhat.com>
43209
43210         utimens: remove invalid futimesat call
43211         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43212         It used the file descriptor of the target file as the DIR_FD
43213         parameter and NULL as the file name.  That caused failure with
43214         errno == EFAULT on FreeBSD-8.0-rc2
43215
43216 2009-11-07  Eric Blake  <ebb9@byu.net>
43217
43218         fflush, freadseek: use fseeko, not fseek
43219         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43220         (clear_ungetc_buffer): Avoid potential problems on large files.
43221         * lib/freadseek.c (freadseek): Likewise.
43222         * modules/freadseek (Depends-on): Add fseeko.
43223         * modules/fseek (configure.ac): Set a witness.
43224         * tests/test-fflush.c (main): Use fseeko.
43225         * tests/test-fpurge.c (fseek): Disable link warning.
43226         * tests/test-freadable.c (fseek): Likewise.
43227         * tests/test-freading.c (fseek): Likewise.
43228         * tests/test-fseeko.c (fseek): Likewise.
43229         * tests/test-ftell.c (fseek): Likewise.
43230         * tests/test-ftello.c (fseek): Likewise.
43231         * tests/test-fwritable.c (fseek): Likewise.
43232         * tests/test-fwriting.c (fseek): Likewise.
43233
43234 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43235
43236         * modules/memchr (Depends-on): Drop getpagesize dependency.
43237
43238 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43239
43240         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43241         Reported by Ludovic Courtès.
43242         * build-aux/pmccabe2html: Improve example usage.
43243         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43244
43245 2009-11-06  Jim Meyering  <meyering@redhat.com>
43246
43247         do-release-commit-and-tag: New module.
43248         Automate the release-commit and tag process.
43249         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43250         * modules/do-release-commit-and-tag: New file.
43251         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43252
43253 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43254
43255         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43256         because test-select.c uses inet_pton.
43257
43258 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43259
43260         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43261         GETADDRINFO_LIB.  Bump serial number.
43262         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43263         Suggested by Eric Blake <ebb9@byu.net>.
43264
43265 2009-11-05  Eric Blake  <ebb9@byu.net>
43266
43267         strtod: detect darwin bug
43268         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43269         Reported by Leo Davis.
43270
43271         freopen-safer: new module
43272         * modules/freopen-safer: New module.
43273         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43274         * lib/freopen-safer.c (freopen_safer): New file.
43275         * lib/stdio-safer.h (freopen_safer): New declaration.
43276         * lib/stdio--.h (freopen): New override.
43277         * MODULES.html.sh (File stream based Input/Output): Mention it.
43278         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43279         freopen-safer module.
43280         * doc/posix-functions/stderr.texi (stderr): Likewise.
43281         * doc/posix-functions/stdin.texi (stdin): Likewise.
43282         * doc/posix-functions/stdout.texi (stdout): Likewise.
43283         * modules/freopen-safer-tests: New test.
43284         * tests/test-reopen-safer.c: New file.
43285
43286 2009-11-05  Jim Meyering  <meyering@redhat.com>
43287
43288         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43289         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43290
43291 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43292
43293         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43294
43295 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43296
43297         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43298
43299 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43300
43301         Fix link error.
43302         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43303         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43304
43305 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43306
43307         * tests/test-func.c: Also test value of __func__.
43308
43309 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43310
43311         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43312         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43313
43314 2009-11-05  Bruno Haible  <bruno@clisp.org>
43315
43316         Fix link error.
43317         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43318         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43319         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43320
43321 2009-11-05  Bruno Haible  <bruno@clisp.org>
43322
43323         Tests for module 'inet_pton'.
43324         * modules/inet_pton-tests: New file.
43325         * tests/test-inet_pton.c: New file.
43326
43327 2009-11-05  Bruno Haible  <bruno@clisp.org>
43328
43329         Tests for module 'inet_ntop'.
43330         * modules/inet_ntop-tests: New file.
43331         * tests/test-inet_ntop.c: New file.
43332
43333 2009-11-04  Eric Blake  <ebb9@byu.net>
43334
43335         stdlib-safer: wrap all mkstemp variants
43336         * modules/mkostemp (configure.ac): Set witness.
43337         * modules/mkostemps (configure.ac): Likewise.
43338         * modules/mkstemps (configure.ac): Likewise.
43339         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43340         (mkstemps_safer): Wrap more functions.
43341         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43342         wrapping.
43343         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43344         (mkstemps_safer): Implement the wrappers.
43345
43346         mkstemps, mkostemps: new modules
43347         * modules/mkostemps: New module.
43348         * modules/mkstemps: Likewise.
43349         * lib/mkostemps.c (mkostemps): New file.
43350         * lib/mkstemps.c (mkstemps): Likewise.
43351         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43352         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43354         * modules/stdlib (Makefile.am): Substitute them.
43355         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43356         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43357         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43358         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43359         * MODULES.html.sh (File system functions): Mention them.
43360
43361         tempname: resync from glibc
43362         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43363         same values for __GT_FILE as glibc.  Abort even when assertions
43364         are disabled.
43365         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43366         match its value otherwise.  Allow idempotent inclusion.
43367         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43368         * lib/mkostemp.c (mkostemp): Likewise.
43369         * lib/mkstemp.c (mkstemp): Likewise.
43370         * lib/tmpfile.c (tmpfile): Likewise.
43371         * NEWS: Document this.
43372
43373         utimens: fix use of futimens on older Linux
43374         * lib/utimens.c (fdutimens): Use updated, rather than original,
43375         timespec to avoid bug in older Linux kernel.
43376         Reported by Simon Josefsson.
43377
43378 2009-11-04  Bruno Haible  <bruno@clisp.org>
43379
43380         Make num_processors more flexible and consistent.
43381         * lib/nproc.h (enum nproc_query): New type.
43382         (num_processors): Add a 'query' argument.
43383         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43384         (num_processors): Add a 'query' argument. Test the value of the
43385         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43386         mingw, count the number of CPUs available for the current process.
43387         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43388         Check for sched_getaffinity and sched_getaffinity_np.
43389         * modules/nproc (Depends-on): Add c-ctype, extensions.
43390         * NEWS: Mention the change.
43391
43392 2009-11-03  Bruno Haible  <bruno@clisp.org>
43393
43394         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43395
43396 2009-11-03  Jim Meyering  <meyering@redhat.com>
43397
43398         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43399         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43400         if it is defined.
43401
43402 2009-11-02  Eric Blake  <ebb9@byu.net>
43403
43404         mktime, timegm: share common declaration
43405         * lib/mktime-internal.h: New file.
43406         * lib/mktime.c: Use it rather than open-coding a declaration.
43407         * lib/timegm.c: Likewise.
43408         * modules/mktime (Files): Ship it.
43409         * modules/timegm (Files): Likewise.
43410         Suggested by Bruno Haible.
43411
43412         test-update-copyright: update test to match script changes
43413         * tests/test-update-copyright.sh: Avoid hard-coding perl
43414         location.  Don't update *.bak created by earlier runs.
43415
43416 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43417             Simon Josefsson  <simon@josefsson.org>
43418             Bruno Haible  <bruno@clisp.org>
43419
43420         Fix link error on Solaris 8.
43421         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43422         also in libnsl. Define also INET_PTON_LIB.
43423         * modules/inet_pton (Link): New section.
43424
43425 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43426             Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43429         * modules/inet_ntop (Link): New section.
43430         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43431
43432 2009-11-02  Eric Blake  <ebb9@byu.net>
43433
43434         maint: avoid compiler warnings in m4 macros
43435         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43437
43438 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43439
43440         * m4/pmccabe2html.m4: Remove file.
43441         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43442         function.  Change maintainer.
43443         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43444         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43445         Courtès).
43446
43447 2009-10-31  Eric Blake  <ebb9@byu.net>
43448
43449         fseeko: fix m4 regression
43450         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43451         regression from 2009-10-27.
43452         Reported by Ralf Wildenhues.
43453
43454 2009-10-31  Jim Meyering  <meyering@redhat.com>
43455
43456         inttostr: aesthetics and improved (compile-time) safety
43457         Define inttype_is_signed rather than inttype_is_unsigned,
43458         since the sole use is via "#if inttype_is_signed".
43459         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43460         inttype_is_unsigned.
43461         * lib/offtostr.c (inttype_is_signed): Likewise.
43462         * lib/uinttostr.c (inttype_is_signed): Likewise.
43463         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43464         * lib/inttostr.c (inttostr): Use verify to cross-check the
43465         inttype_is_signed value and the signedness of the actual type.
43466         * modules/inttostr (Depends-on): Add verify.
43467
43468 2009-10-30  Eric Blake  <ebb9@byu.net>
43469
43470         build: avoid compiler warnings
43471         * lib/fchmodat.c (lchmod): Mark unused variables.
43472         * lib/getopt.c (_getopt_initialize): Likewise.
43473         * lib/mktime.c (__mktime_internal): Provide prototype.
43474         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43475         older gcc that do not understand #pragma GCC diagnostic.
43476         * lib/uinttostr.c (inttype_is_unsigned): Define.
43477         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43478
43479 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43480
43481         stat: fix compilation on AIX
43482         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43483         only see struct stat64.
43484
43485 2009-10-30  Eric Blake  <ebb9@byu.net>
43486
43487         exclude: make more robust
43488         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43489         rather than masking a coding bug.
43490         Suggested by Bruno Haible.
43491
43492 2009-10-30  Jim Meyering  <meyering@redhat.com>
43493
43494         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43495         Rather than putting #!/usr/bin/perl on the first line,
43496         start with a variant of what's recommended by "man perlrun" that
43497         invokes the first "perl" program from your shell's search path.
43498         * build-aux/gitlog-to-changelog: Replace #!... as above.
43499         Add a "Local Variables" perl mode setting.
43500         Prompted by a patch from Ludovic Courtès.
43501         Improved by Eric Blake.
43502         * build-aux/useless-if-before-free: Likewise.
43503         * build-aux/announce-gen: Likewise.
43504         * build-aux/update-copyright: Likewise.
43505
43506 2009-10-29  Eric Blake  <ebb9@byu.net>
43507
43508         filenamecat-lgpl: adjust clients
43509         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43510         filenamecat.
43511         * modules/renameat (Depends-on): Likewise.
43512
43513         filenamecat: split into filenamecat-lgpl
43514         * modules/filenamecat-lgpl: New module.
43515         * modules/filenamecat (Files): Move library-safe files into
43516         filenamecat-lgpl.
43517         (Depends-on): Add filenamecat-lgpl.
43518         (configure.ac): Declare witness.
43519         * lib/filenamecat.h (file_name_concat): Only declare when using
43520         GPL module.
43521         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43522         Move...
43523         * lib/filenamecat-lgpl.c: ...into new file.
43524         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43525         (gl_FILE_NAME_CONCAT): Use it.
43526         * MODULES.html.sh (File system functions): Mention new module.
43527
43528         argp: avoid memory leak
43529         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43530         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43531         base_name, since the latter malloc()s and can call exit().
43532         Leak introduced 2006-07-03.
43533
43534         dirname-lgpl: adjust clients that don't need full dirname
43535         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43536         * modules/filenamecat (Depends-on): Likewise.
43537         * modules/linkat (Depends-on): Likewise.
43538         * modules/mkancesdirs (Depends-on): Likewise.
43539         * modules/mkdir (Depends-on): Likewise.
43540         * modules/openat (Depends-on): Likewise.
43541         * modules/savewd (Depends-on): Likewise.
43542         * modules/rename (Depends-on): Likewise.
43543         (License): Relax license.
43544         * modules/mkdir-tests (Depends-on): Drop progname.
43545         (Makefile.am): Delete unneeded LDADD.
43546         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43547
43548         dirname: split into dirname-lgpl
43549         * modules/dirname-lgpl: New module.
43550         * modules/dirname (Files): Move library-safe files into
43551         dirname-lgpl.
43552         (Depends-on): Add dirname-lgpl.
43553         (configure.ac): Declare witness.
43554         * modules/double-slash-root (License): Relax license.
43555         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43556         module.
43557         * lib/dirname.c (dir_len, mdir_name): Move...
43558         * lib/dirname-lgpl.c: ...into new file.
43559         * lib/basename.c (last_component, base_len): Move...
43560         * lib/basename-lgpl.c: ...into new file.
43561         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43562         (gl_DIRNAME): Use it.
43563         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43564         Mention new module.
43565         * modules/dirname-tests (Depends-on): Add progname.
43566         * tests/test-dirname.c (program_name): Delete.
43567
43568         mkdir: make safe for libraries
43569         * modules/mkdir (Depends-on): Drop xalloc.
43570         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43571         exit.
43572
43573         tests: avoid some compiler warnings
43574         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43575         literals.
43576         * tests/test-memchr.c (main): Avoid type mismatch.
43577         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43578         * tests/test-base64.c (main): Likewise.
43579         * tests/test-getdelim.c (main): Likewise.
43580         * tests/test-gethostname.c (main): Likewise.
43581         * tests/test-getline.c (main): Likewise.
43582         * tests/test-netinet_in.c (main): Likewise.
43583         * tests/test-select.c (open_server_socket, main): Likewise.
43584         * tests/test-select-stdin.c (main): Likewise.
43585         * tests/test-sockets.c (main): Likewise.
43586         * tests/test-strsignal.c (main): Likewise.
43587         * tests/test-sys_select.c (main): Likewise.
43588         * tests/test-sys_socket.c (main): Likewise.
43589         * tests/test-u64.c (main): Likewise.
43590         * tests/test-xfprintf-posix.c (main): Likewise.
43591         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43592
43593         sockets: avoid compiler warning
43594         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43595
43596         maint: detect usage(1) and other suspicious exits
43597         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43598
43599 2009-10-29  Jim Meyering  <meyering@redhat.com>
43600
43601         timespec: long-to-int truncation could make timespec_cmp malfunction
43602         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43603         a multiple of 2^32 nanoseconds as no difference.
43604
43605 2009-10-28  Jim Meyering  <meyering@redhat.com>
43606
43607         fprintftime: wrap macro code argument in "do {...} while(0)"
43608         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43609         cpy macro must be a statement that can be followed by a semicolon.
43610         Now that the else clause contains a comment and is hence longer
43611         than one line, I require curly braces.  That in turn requires
43612         that we wrap this code block in the standard do...while(0).
43613
43614         fprintftime: remove stray semicolon from previous change
43615         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43616
43617         fprintftime: avoid a warning about ignored fwrite return value
43618         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43619         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43620         that is unsafe.
43621         * modules/fprintftime (Depends-on): Add ignore-value.
43622
43623         exclude: avoid an unwarranted warning
43624         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43625
43626 2009-10-27  Eric Blake  <ebb9@byu.net>
43627
43628         fseek: avoid compilation failure when fflush is replaced
43629         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43630         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43631         module is in use.
43632         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43633         module is not in use; since REPLACE_FSEEK worked otherwise.
43634         (GNULIB_FTELLO): Likewise for ftell.
43635         Reported by Ian Beckwith and others.
43636
43637 2009-10-27  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43640         Reported by Jim Meyering.
43641
43642 2009-10-27  Jim Meyering  <jim@meyering.net>
43643             Bruno Haible  <bruno@clisp.org>
43644
43645         Avoid warning despite dropping the return value of fwrite.
43646         * lib/unicodeio.c: Include ignore-value.h.
43647         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43648         * modules/unicodeio (Depends-on): Add ignore-value.
43649
43650 2009-10-26  Eric Blake  <ebb9@byu.net>
43651
43652         areadlinkat: fix fallback path
43653         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43654         pointer and zero.
43655
43656 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43657
43658         Use a better IO block size for modern systems
43659         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43660         * lib/md2.c: Likewise.
43661         * lib/md4.c: Likewise.
43662         * lib/md5.c: Likewise.
43663         * lib/sha1.c: Likewise.
43664         * lib/sha256.c: Likewise.
43665         * lib/sha512.c: Likewise.
43666
43667 2009-10-22  Eric Blake  <ebb9@byu.net>
43668
43669         tests: avoid several compiler warnings
43670         * tests/test-getcwd.c (main): Avoid buffer underflow.
43671         * tests/test-getdate.c (main): String literals are not safe with
43672         putenv, so use setenv.  Declare unused argument.
43673         * modules/getdate-tests (Depends-on): Add setenv.
43674         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43675         problems with string literals in char *.
43676         * tests/test-hash.c (main): Avoid shadowing declaration.
43677         (insert_new): Treat string literals as char const *.
43678         * tests/test-getopt.h (test_getopt): Likewise.
43679         (getopt_loop): Alter types to minimize casting elsewhere.
43680         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43681         (test_getopt_long_posix): Likewise.
43682         (do_getopt_long): Add wrapper to minimize casting.
43683         * tests/test-atexit.c (clear_temp_file): Use void.
43684         * tests/test-areadlink-with-size.c (main): Declare unused
43685         arguments.
43686         * tests/test-areadlink.c (main): Likewise.
43687         * tests/test-areadlinkat-with-size.c (main): Likewise.
43688         * tests/test-areadlinkat.c (main): Likewise.
43689         * tests/test-canonicalize-lgpl.c (main): Likewise.
43690         * tests/test-canonicalize.c (main): Likewise.
43691         * tests/test-dirent-safer.c (main): Likewise.
43692         * tests/test-dirname.c (main): Likewise.
43693         * tests/test-dup2.c (main): Likewise.
43694         * tests/test-fchdir.c (main): Likewise.
43695         * tests/test-fcntl-h.c (main): Likewise.
43696         * tests/test-fcntl-safer.c (main): Likewise.
43697         * tests/test-fdopendir.c (main): Likewise.
43698         * tests/test-fdutimensat.c (main): Likewise.
43699         * tests/test-fflush.c (main): Likewise.
43700         * tests/test-filenamecat.c (main): Likewise.
43701         * tests/test-filevercmp.c (main): Likewise.
43702         * tests/test-fopen-safer.c (main): Likewise.
43703         * tests/test-fopen.c (main): Likewise.
43704         * tests/test-fpending.c (main): Likewise.
43705         * tests/test-fpurge.c (main): Likewise.
43706         * tests/test-freading.c (main): Likewise.
43707         * tests/test-fstatat.c (main): Likewise.
43708         * tests/test-fsync.c (main): Likewise.
43709         * tests/test-futimens.c (main): Likewise.
43710         * tests/test-getndelim2.c (main): Likewise.
43711         * tests/test-gettimeofday.c (main): Likewise.
43712         * tests/test-getopt.c (main): Likewise.
43713         * tests/test-i-ring.c (main): Likewise.
43714         * tests/test-inttypes.c (main): Likewise.
43715         * tests/test-link.c (main): Likewise.
43716         * tests/test-lstat.c (main): Likewise.
43717         * tests/test-math.c (main): Likewise.
43718         * tests/test-md5.c (main): Likewise.
43719         * tests/test-memchr2.c (main): Likewise.
43720         * tests/test-memrchr.c (main): Likewise.
43721         * tests/test-mkdir.c (main): Likewise.
43722         * tests/test-mkdirat.c (main): Likewise.
43723         * tests/test-mkfifoat.c (main): Likewise.
43724         * tests/test-open.c (main): Likewise.
43725         * tests/test-openat-safer.c (main): Likewise.
43726         * tests/test-openat.c (main): Likewise.
43727         * tests/test-quotearg.c (main): Likewise.
43728         * tests/test-rawmemchr.c (main): Likewise.
43729         * tests/test-readlink.c (main): Likewise.
43730         * tests/test-remove.c (main): Likewise.
43731         * tests/test-rename.c (main): Likewise.
43732         * tests/test-renameat.c (main): Likewise.
43733         * tests/test-rmdir.c (main): Likewise.
43734         * tests/test-sha1.c (main): Likewise.
43735         * tests/test-signal.c (main): Likewise.
43736         * tests/test-sigaction.c (main): Likewise.
43737         * tests/test-stat.c (main): Likewise.
43738         * tests/test-stat-time.c (main): Likewise.
43739         * tests/test-stddef.c (main): Likewise.
43740         * tests/test-stdint.c (main): Likewise.
43741         * tests/test-stdio.c (main): Likewise.
43742         * tests/test-stdlib.c (main): Likewise.
43743         * tests/test-strchrnul.c (main): Likewise.
43744         * tests/test-strerror.c (main): Likewise.
43745         * tests/test-string.c (main): Likewise.
43746         * tests/test-strtod.c (main): Likewise.
43747         * tests/test-strverscmp.c (main): Likewise.
43748         * tests/test-symlink.c (main): Likewise.
43749         * tests/test-symlinkat.c (main): Likewise.
43750         * tests/test-sys_stat.c (main): Likewise.
43751         * tests/test-sys_time.c (main): Likewise.
43752         * tests/test-time.c (main): Likewise.
43753         * tests/test-unistd.c (main): Likewise.
43754         * tests/test-unlink.c (main): Likewise.
43755         * tests/test-unlinkat.c (main): Likewise.
43756         * tests/test-utimens.c (main): Likewise.
43757         * tests/test-utimensat.c (main): Likewise.
43758         * tests/test-version-etc.c (main): Likewise.
43759         * tests/test-wchar.c (main): Likewise.
43760         * tests/test-wctype.c (main): Likewise.
43761         * tests/test-xprintf-posix.c (main): Likewise.
43762         * tests/test-posixtm.c (main): Likewise.
43763         (STREQ): Delete unused macro.
43764         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43765         shadowed variables.
43766         * tests/test-memchr.c (main): Likewise.
43767
43768 2009-10-21  Eric Blake  <ebb9@byu.net>
43769
43770         areadlinkat: avoid failure on older glibc
43771         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43772         rather than mis-comparing 0 against FUNC_RESULT of char*.
43773
43774 2009-10-21  Bruno Haible  <bruno@clisp.org>
43775
43776         * modules/stpncpy (License): Relicense under LGPLv2+.
43777         Reported by David Lutterkort <lutter@redhat.com>.
43778
43779 2009-10-20  Eric Blake  <ebb9@byu.net>
43780
43781         utimensat: work around Solaris 9 bug
43782         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43783         has trailing slash bugs.
43784         * tests/test-lutimens.h (test_lutimens): Enhance test.
43785         * tests/test-utimens.h (test_utimens): Likewise.
43786         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43787         * doc/posix-functions/utimes.texi (utimes): Likewise.
43788         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43789         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43790         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43791         * doc/posix-functions/futimens.texi (futimens): Likewise.
43792
43793         fdutimensat: new module
43794         * modules/fdutimensat: New file.
43795         * lib/fdutimensat.c (fdutimensat): Likewise.
43796         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43797         * MODULES.html.sh (File system functions): Mention module.
43798         * modules/fdutimensat-tests: New test.
43799         * tests/test-fdutimensat.c: Likewise.
43800
43801         doc: regenerate INSTALL
43802         * doc/INSTALL: Reflect recent autoconf update.
43803         * doc/INSTALL.ISO: Likewise.
43804         * doc/INSTALL.UTF-8: Likewise.
43805
43806 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43807
43808         acl: warn if ACL support is not detected
43809         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43810
43811 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43812
43813         * lib/nproc.h: Add extern "C" block for C++.
43814
43815 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43816             Bruno Haible  <bruno@clisp.org>
43817
43818         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43819         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43820         * doc/posix-functions/isalpha.texi: Likewise.
43821         * doc/posix-functions/isblank.texi: Likewise.
43822         * doc/posix-functions/iscntrl.texi: Likewise.
43823         * doc/posix-functions/isdigit.texi: Likewise.
43824         * doc/posix-functions/isgraph.texi: Likewise.
43825         * doc/posix-functions/islower.texi: Likewise.
43826         * doc/posix-functions/isprint.texi: Likewise.
43827         * doc/posix-functions/ispunct.texi: Likewise.
43828         * doc/posix-functions/isspace.texi: Likewise.
43829         * doc/posix-functions/isupper.texi: Likewise.
43830         * doc/posix-functions/isxdigit.texi: Likewise.
43831
43832 2009-10-18  Bruno Haible  <bruno@clisp.org>
43833
43834         Tests for module 'isblank'.
43835         * modules/isblank-tests: New file.
43836         * tests/test-isblank.c: New file.
43837
43838         New module 'isblank'.
43839         * lib/isblank.c: New file.
43840         * m4/isblank.m4: New file.
43841         * modules/isblank: New file.
43842         * doc/posix-functions/isblank.texi: Mention the new module.
43843
43844 2009-10-18  Bruno Haible  <bruno@clisp.org>
43845
43846         New module 'ctype'.
43847         * lib/ctype.in.h: New file.
43848         * m4/ctype.m4: New file.
43849         * modules/ctype: New file.
43850         * doc/posix-headers/ctype.texi: Mention the new module.
43851
43852 2009-10-18  Jim Meyering  <meyering@redhat.com>
43853
43854         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43855         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43856         right after its initialization, rather than farther down.
43857         Keeping these in close proximity makes it easier to ensure
43858         that each such variable is initialized.  E.g.,
43859
43860             LIB_CLOCK_GETTIME=
43861             AC_SUBST([LIB_CLOCK_GETTIME])
43862
43863         This change also increments these serial numbers.
43864         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43867
43868 2009-10-18  Bruno Haible  <bruno@clisp.org>
43869
43870         Don't let environment variables perturb build.
43871         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43872         (gl_PREREQ_GETHRXTIME): ... not here.
43873
43874 2009-10-18  Bruno Haible  <bruno@clisp.org>
43875
43876         Avoid symlink attack in localcharset module.
43877         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43878         (O_NOFOLLOW): Define fallback.
43879         (get_charset_aliases): Don't open the file if it is a symbolic link.
43880         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43881         gl_FCNTL_H.
43882         (gl_FCNTL_H): Require it.
43883         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43884         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43885         Reported by Fergal Glynn <fglynn@veracode.com>.
43886
43887 2009-10-18  Bruno Haible  <bruno@clisp.org>
43888
43889         Implement nproc for mingw.
43890         * lib/nproc.c: Include <windows.h>
43891         (num_processors): On native Windows platforms, try GetSystemInfo.
43892
43893 2009-10-18  Bruno Haible  <bruno@clisp.org>
43894
43895         Implement nproc for IRIX.
43896         * lib/nproc.c: Include <sys/sysmp.h>.
43897         (num_processors): On IRIX systems, try sysmp.
43898         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43899
43900 2009-10-18  Bruno Haible  <bruno@clisp.org>
43901
43902         Implement nproc for HP-UX.
43903         * lib/nproc.c: Include <sys/pstat.h>
43904         (num_processors): On HP-UX systems, try pstat_getdynamic.
43905         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43906         pstat_getdynamic.
43907
43908 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43909             Bruno Haible  <bruno@clisp.org>
43910
43911         Implement nproc for NetBSD, OpenBSD.
43912         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43913         (ARRAY_SIZE): New macro.
43914         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43915         * m4/nproc.m4: New file.
43916         * modules/nproc (Files): Add m4/nproc.m4.
43917         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43918         (Makefile.am): Instead, augment lib_SOURCES.
43919
43920 2009-10-18  Bruno Haible  <bruno@clisp.org>
43921
43922         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43923         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43924         sys/param.h.
43925
43926 2009-10-16  Eric Blake  <ebb9@byu.net>
43927
43928         utimensat: new module
43929         * modules/utimensat: New file.
43930         * lib/utimensat.c (utimensat): Likewise.
43931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43932         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43933         so we can work around Linux bugs.
43934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43935         * modules/sys_stat (Makefile.am): Substitute them.
43936         * lib/sys_stat.in.h (utimensat): Declare it.
43937         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43938         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43939         * modules/utimensat-tests: New test.
43940         * tests/test-utimensat.c: Likewise.
43941
43942         utimens: let lutimens work on non-symlinks
43943         * lib/utimens.c (lutimens): Fall back to utimens rather than
43944         failing with ENOSYS, when file is not a symlink.
43945         (utimens): Reduce redirection.
43946         * tests/test-lutimens.h (test_lutimens): Update test to cover
43947         non-symlinks.
43948         * tests/test-utimens.h (test_utimens): Update test to cover
43949         symlinks.
43950         * tests/test-utimens.c (main): Update caller.
43951
43952         utimens: cache whether utimensat syscall works
43953         * lib/utimens.c (utimensat_works_really): New cache variable.
43954         (fdutimens, lutimens): Use it to avoid failing syscall.
43955
43956         test-stat-time, test-utimens: improve portability
43957         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43958         ext4 on alpha, and for cygwin.
43959         * tests/test-utimens-common.h: New file.
43960         (nap): Factor delays into single function.
43961         * tests/test-lutimens.h (test_lutimens): Use new header.
43962         * tests/test-futimens.h (test_futimens): Likewise.
43963         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43964         timestamps to occur from same machine, as was done previously for
43965         test_utimens.
43966         * modules/utimens-tests (Files): Ship new file.
43967         * modules/futimens-tests (Files): Likewise.
43968         Reported in part by Jim Meyering.
43969
43970         sys_stat: sort replacement declarations
43971         * lib/sys_stat.in.h: Sort declarations.
43972         * lib/futimens.c (futimens): Fix typo.
43973
43974 2009-10-15  Jim Meyering  <meyering@redhat.com>
43975
43976         don't let environment settings perturb build
43977         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43978         could cause a configure-time and/or build-time malfunction.
43979         Typically, a configure-time function-in-library test is performed
43980         via code like this:
43981
43982           LIB_VAR=
43983           AC_SUBST([LIB_VAR])
43984           prefix_saved_LIBS=$LIBS
43985             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43986                        [test "$ac_cv_search_FUNC" = "none required" ||
43987                         LIB_VAR=$ac_cv_search_FUNC])
43988           LIBS=$prefix_saved_LIBS
43989
43990         However, in each of the files affected by this change, the LIB_VAR=
43991         initialization was omitted.  Thus, when set in the environment, its
43992         value would propagate into generated Makefiles when FUNC is not found
43993         in LIB_NAME.
43994         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43995         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43997
43998 2009-10-14  Eric Blake  <ebb9@byu.net>
43999
44000         fchdir: avoid infinite recursion in mingw
44001         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44002         recursing.
44003
44004         test-stat-time: port to mingw
44005         * tests/test-stat-time.c (force_unlink): Return a value.
44006         (test_ctime) [W32]: Fix compilation error.
44007         (nap): Don't call usleep with too large an argument.  Use
44008         force_unlink.
44009         * doc/pastposix-functions/usleep.texi (usleep): Document the
44010         portability issue.
44011
44012 2009-10-13  Jim Meyering  <meyering@redhat.com>
44013
44014         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44015         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44016         * modules/pipe-filter-ii: Likewise.
44017         * modules/sys_socket-tests: Likewise.
44018         * modules/tsearch-tests: Likewise.
44019         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44020         (check): Depend on it.
44021
44022 2009-10-12  Eric Blake  <ebb9@byu.net>
44023
44024         utimens-tests: port to NFS file systems
44025         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44026         comparisons to avoid spurious failures from timestamp drift
44027         between NFS machines.
44028
44029 2009-10-12  Eric Blake  <ebb9@byu.net>
44030
44031         stat-time-tests: minor cleanups
44032         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44033         * tests/test-stat-time.c (nap): Separate assignment from call.
44034         Suggested by Paolo Bonzini and Bruno Haible.
44035
44036         sys_stat: guarantee struct timespec
44037         * lib/sys_stat.in.h (includes): Always include <time.h>
44038         * modules/sys_stat (Depends-on): Add time.
44039         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44040         mode_t permission values.
44041         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44042         get at subsecond timestamps.
44043
44044 2009-10-10  Eric Blake  <ebb9@byu.net>
44045
44046         futimens: new module
44047         * modules/futimens: New file.
44048         * lib/futimens.c (futimens): Likewise.
44049         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44050         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44051         we can work around Linux bugs.
44052         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44053         * modules/sys_stat (Makefile.am): Substitute them.
44054         * lib/sys_stat.in.h (futimens): Declare it.
44055         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44056         * doc/posix-functions/futimens.texi (futimens): Likewise.
44057         * modules/futimens-tests: New test.
44058         * tests/test-futimens.c: Likewise.
44059
44060         utimens: introduce fdutimens
44061         * lib/utimens.h (fdutimens): New prototype.
44062         * lib/utimens.c (gl_futimens): Move guts...
44063         (fdutimens): ...to new interface.
44064         * tests/test-utimens.c (do_fdutimens): Use it.
44065
44066         utimens: add UTIME_NOW and UTIME_OMIT support
44067         * lib/utimens.c (validate_timespec, update_timespec): New helper
44068         functions.
44069         (gl_futimens, lutimens): Use them.
44070         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44071         stdbool, sys_stat.
44072         (Link): Mention resulting library dependency.
44073         * modules/utimecmp (Link): Likewise.
44074         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44075         (Makefile.am): Pick up library dependency.
44076         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44077         definition.
44078         * tests/test-sys_stat.c: Test the definitions.
44079         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44080         * NEWS: Document library dependency.
44081
44082         utimecmp: support symlink timestamps
44083         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44084         hashing when possible.  Use pathconf when available.
44085         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44086         * modules/utimecmp (Depends-on): Add lstat.
44087
44088         utimens: add lutimens interface
44089         * lib/utimens.c (lutimens): New function.
44090         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44091         * lib/utimens.h (lutimens): Declare new interface.
44092         * tests/test-utimens.c (main): Enhance test.
44093         * tests/test-lutimens.h (test_lutimens): New file.
44094         * modules/utimens-tests (Files): Distribute it.
44095         (Depends-on): Add symlink.
44096         (configure.ac): Check for usleep.
44097
44098         utimens: validate futimens usage
44099         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44100         fewer syscalls on failure later on.  Avoid compiler warning on
44101         mingw.
44102         * modules/utimens (Depends-on): Add dup2.
44103
44104         utimens: add test
44105         * modules/utimens-tests: New test.
44106         * tests/test-utimens.h: New file.
44107         * tests/test-futimens.h: Likewise.
44108         * tests/test-utimens.c: Likewise.
44109
44110         doc: mention timestamp portability issues
44111         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44112         instead.
44113         * doc/posix-functions/utime.texi (utime): Likewise.
44114         * doc/posix-functions/utimes.texi (utimes): Likewise.
44115         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44116         instead.
44117         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44118         module.
44119         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44120         Mention weakness with symlink timestamps.
44121         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44122         to utimensat/futimens instead.
44123         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44124
44125         test-dup2: enhance test
44126         * tests/test-dup2.c (main): Also check AT_FDCWD.
44127
44128         test-stat-time: avoid more spurious failures
44129         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44130         xfs; and avoid race if the two timestamps cross quantization edge.
44131
44132         relocatable: prefer 'file system' over 'filesystem'
44133         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44134         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44135         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44136         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44137         * lib/relocatable.c (compute_curr_prefix): Likewise.
44138
44139 2009-10-10  Jim Meyering  <meyering@redhat.com>
44140
44141         stat-time-tests: check for the usleep function
44142         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44143
44144 2009-10-10  Bruno Haible  <bruno@clisp.org>
44145
44146         * modules/xnanosleep: Put the Link section after the Include section.
44147
44148 2009-10-09  Eric Blake  <ebb9@byu.net>
44149
44150         dup2: work around FreeBSD 6.1 bug
44151         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44152         * doc/posix-functions/dup2.texi (dup2): Document it.
44153         Reported by Nelson H. F. Beebe and Jim Meyering.
44154
44155         test-stat-time: port to buggy NFS clients
44156         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44157         (test_ctime): Also skip test if mtime and ctime are skewed.
44158
44159         maint: prefer 'file system' over 'filesystem'
44160         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44161         * doc/posix-functions/lstat.texi (lstat): Likewise.
44162         * lib/file-has-acl.c (file_has_acl): Likewise.
44163         * lib/fwriteerror.c [TEST]: Likewise.
44164         * tests/test-areadlink.h (test_areadlink): Likewise.
44165         * tests/test-areadlinkat-with-size.c (main): Likewise.
44166         * tests/test-areadlinkat.c (main): Likewise.
44167         * tests/test-canonicalize-lgpl.c (main): Likewise.
44168         * tests/test-canonicalize.c (main): Likewise.
44169         * tests/test-fstatat.c (main): Likewise.
44170         * tests/test-linkat.c (main): Likewise.
44171         * tests/test-lstat.h (test_lstat_func): Likewise.
44172         * tests/test-mkdir.h (test_mkdir): Likewise.
44173         * tests/test-readlink.h (test_readlink): Likewise.
44174         * tests/test-remove.c (main): Likewise.
44175         * tests/test-rename.h (test_rename): Likewise.
44176         * tests/test-renameat.c (main): Likewise.
44177         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44178         * tests/test-symlink.h (test_symlink): Likewise.
44179         * tests/test-symlinkat.c (main): Likewise.
44180         * tests/test-unlink.h (test_unlink_func): Likewise.
44181         * tests/test-unlinkat.c (main): Likewise.
44182
44183         maint: make realtime library usage explicit
44184         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44185         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44186         * modules/settime (Link): Likewise.
44187         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44188
44189         test-stat-time: speed up execution
44190         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44191         warning on mingw.
44192         (nap): New helper function.
44193         (prepare_test): Use it to reduce sleep time.
44194         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44195         execution.
44196         * modules/stat-time-tests (configure.ac): Check for usleep.
44197
44198 2009-10-09  Jim Meyering  <meyering@redhat.com>
44199
44200         selinux-h: always use getfilecon wrappers
44201         * lib/getfilecon.c: New file.
44202         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44203         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44204         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44205         (fgetfilecon): Provide a stub.
44206         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44207         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44208         file unconditionally.
44209         When <selinux/selinux.h> is found, arrange to use wrappers.
44210         * modules/selinux-h (Files): Add getfilecon.c.
44211         (Makefile.am): Substitute include-next-related bits
44212         into the now-always-generated selinux/selinux.h file.
44213         * doc/glibc-functions/lgetfilecon.texi: New file.
44214         * doc/glibc-functions/fgetfilecon.texi: New file.
44215         * doc/glibc-functions/getfilecon.texi: New file.
44216         * doc/glibc-functions/getfilecon-desc.texi: New file.
44217         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44218         which to pull in the new files.
44219         * MODULES.html.sh (Misc): Add selinux-h.
44220
44221 2009-10-08  Jim Meyering  <meyering@redhat.com>
44222
44223         unistd: fix comment typo
44224         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44225
44226 2009-10-08  Eric Blake  <ebb9@byu.net>
44227
44228         areadlink: use SIZE_MAX consistently
44229         * modules/areadlink (Depends-on): Add stdint.
44230         * modules/areadlink-with-size (Depends-on): Likewise.
44231         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44232         gives NULL; drop sys/types, since unistd gives size_t; and add
44233         stdint for SIZE_MAX.
44234         (SIZE_MAX): Rely on headers.
44235         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44236         and add stdint.
44237         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44238         (SIZE_MAX): Likewise.
44239         (INITIAL_BUF_SIZE): Turn into enum.
44240         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44241
44242 2009-10-08  Jim Meyering  <meyering@redhat.com>
44243
44244         areadlinkat: avoid compilation failure
44245         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44246         Fix typo in comment.
44247
44248 2009-10-07  Eric Blake  <ebb9@byu.net>
44249
44250         areadlinkat-with-size: new module
44251         * modules/areadlinkat-with-size: New module.
44252         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44253         * lib/areadlink.h (areadlinkat): Declare it.
44254         * MODULES.html.sh (File system functions): Mention it.
44255         * modules/areadlinkat-with-size-tests: New test.
44256         * tests/test-areadlinkat-with-size.c: New file.
44257
44258         xreadlinkat: new module
44259         * modules/xreadlinkat: New module.
44260         * lib/xreadlinkat.c (xreadlinkat): New file.
44261         * lib/xreadlink.h (xreadlinkat): Declare it.
44262         * MODULES.html.sh (File system functions): Mention it.
44263
44264         areadlinkat: new module
44265         * lib/at-func.c (FUNC_FAIL): New define.
44266         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44267         * modules/areadlinkat: New module.
44268         * lib/linkat.c (areadlinkat): Move...
44269         * lib/areadlinkat.c (areadlinkat): ...to new file.
44270         * lib/areadlink.h (areadlinkat): Declare it.
44271         * modules/linkat (Depends-on): Add areadlinkat.
44272         * MODULES.html.sh (File system functions): Mention it.
44273         * modules/areadlinkat-tests: New test.
44274         * tests/test-areadlinkat.c: New file.
44275
44276         areadlink, areadlink-with-size: add tests
44277         * modules/areadlink-tests: New test.
44278         * modules/areadlink-with-size-tests: Likewise.
44279         * tests/test-areadlink.h: New file.
44280         * tests/test-areadlink.c: Likewise.
44281         * tests/test-areadlink-with-size.c: Likewise.
44282
44283         maint: minor cleanups
44284         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44285         _UNUSED_PARAMETER_ instead.
44286         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44287         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44288         * modules/linkat-tests (Files): Distribute test-link.h.
44289
44290         openat, utimens: whitespace cleanup
44291         * lib/openat.c: Prefer space throughout, rather than mix of 8
44292         spaces vs. tabs.
44293         * lib/at-func.c: Likewise.
44294         * lib/utimens.c: Likewise.
44295
44296         openat: avoid using wrong fd
44297         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44298         working directory chooses same fd.
44299         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44300
44301         mkdir, mkdirat: fix cygwin 1.5.x bug
44302         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44303         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44304         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44305         bug.
44306         (gl_PREREQ_MKDIR): Delete unused macro.
44307         * modules/mkdir (Files): Track file rename.
44308         (configure.ac): Update macro name.
44309         * modules/openat (Depends-on): Add mkdir.
44310         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44311
44312         mkdir, mkdirat: add tests
44313         * modules/mkdir-tests: New test.
44314         * tests/test-mkdir.h: New file.
44315         * tests/test-mkdir.c: Likewise.
44316         * tests/test-mkdirat.c: Likewise.
44317         * modules/openat-tests (Files): Add new files.
44318         (Makefile.am): Run new test.
44319
44320 2009-10-06  Eric Blake  <ebb9@byu.net>
44321
44322         doc: tweak *at function documentation
44323         * doc/posix-functions/faccessat.texi (faccessat): Mention
44324         known issue with replacement.
44325         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44326         * doc/posix-functions/linkat.texi (linkat): Likewise.
44327         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44328         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44329         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44330         * doc/posix-functions/renameat.texi (renameat): Likewise.
44331         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44332
44333         openat: fix GNU/Hurd bug in unlinkat
44334         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44335         broken.
44336         * doc/posix-functions/unlink.texi (unlink): Document this.
44337         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44338
44339         fdopendir: fix GNU/Hurd bug
44340         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44341         allowing non-directory fds.
44342         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44344         * modules/dirent (Makefile.am): Substitute it.
44345         * lib/dirent.in.h (fdopendir): Declare replacement.
44346         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44347         * tests/test-fdopendir.c (main): Test something other than
44348         /dev/null, since on Hurd that behaves like a directory.
44349
44350         test-symlink: port to GNU/Hurd
44351         * tests/test-symlink.h (test_symlink): Relax expected errno.
44352
44353         doc: tweak more cygwin information
44354         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44355         now compatible with glibc.
44356         * doc/posix-functions/getopt.texi (getopt): Likewise.
44357
44358         getopt-gnu: add another test
44359         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44360         guarantee behavior relied on by m4.
44361         * tests/test-getopt.c (main): Use it.
44362         * modules/getopt-posix-tests (Depends-on): Add setenv.
44363         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44364
44365         getopt: fix compilation on darwin
44366         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44367         include.
44368         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44369         Reported by Ludovic Courtès.
44370
44371 2009-10-06  Bruno Haible  <bruno@clisp.org>
44372
44373         * modules/size_max (Description): Discourage its use.
44374         Reported by Simon Josefsson.
44375
44376 2009-10-06  Jim Meyering  <meyering@redhat.com>
44377
44378         linkat: avoid compilation failure
44379         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44380
44381 2009-10-05  Eric Blake  <ebb9@byu.net>
44382
44383         linkat: support Linux 2.6.17
44384         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44385         linkat on Linux, but allow cache variable override.
44386         * lib/linkat.c (rpl_linkat): Define override.
44387         * modules/linkat (Depends-on): Add symlinkat.
44388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44389         * modules/unistd (Makefile.am): Substitute it.
44390         * lib/unistd.in.h (linkat): Declare replacement.
44391         Reported by Pádraig Brady.
44392
44393         quotearg: port test to systems with C.UTF-8 locale
44394         * tests/test-quotearg.c (struct result_strings): Add another
44395         member, differentiating between C.ASCII and C.UTF-8 handling.
44396         (compare_strings): Add parameter.
44397         (main): Adjust all callers.
44398
44399         getopt: avoid clash with FreeBSD _getopt_internal
44400         * lib/getopt.in.h (_getopt_internal): Override the name.
44401         * lib/getopt_int.h (includes): Pick up any overrides.
44402         Reported by Reuben Thomas.
44403
44404         hash: allow C89 compilation
44405         * lib/hash.c (check_tuning): Move declaration before statement.
44406         Reported by Reuben Thomas.
44407
44408 2009-10-05  Karl Berry  <karl@gnu.org>
44409
44410         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44411
44412 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44413             Bruno Haible  <bruno@clisp.org>
44414
44415         * lib/uname.c (uname): Use a table-driven algorithm to compute
44416         Windows NT versions.
44417
44418 2009-10-04  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44421         program_invocation_short_name.
44422         * modules/progname (configure.ac): Test for presence of
44423         program_invocation_short_name.
44424         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44425
44426 2009-10-04  Bruno Haible  <bruno@clisp.org>
44427
44428         * lib/progname.c (set_program_name): Fix comment.
44429         Reported by Jim Meyering.
44430
44431 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44432             Bruno Haible  <bruno@clisp.org>
44433
44434         * lib/uname.c: Include <string.h>.
44435         (uname): Do only one call to GetVersionEx in the common case.
44436
44437 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44438             Bruno Haible  <bruno@clisp.org>
44439
44440         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44441         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44442         (uname): Add support for Windows CE and various non-x86 CPU types.
44443
44444 2009-10-03  Bruno Haible  <bruno@clisp.org>
44445
44446         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44447         invocation to tests/configure.ac.
44448         Reported by Ian Beckwith <ianb@erislabs.net>.
44449
44450 2009-10-02  Eric Blake  <ebb9@byu.net>
44451
44452         fchdir: avoid compiler warning
44453         * lib/fchdir.c (canonicalize_file_name)
44454         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44455
44456         test-open: support mingw errno values
44457         * tests/test-open.h (test_open): Relax test.
44458         * tests/test-fopen.h (test_fopen): Likewise.
44459         * tests/test-openat-safer.c (main): Likewise.
44460
44461         open: fix opening directory on mingw
44462         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44463
44464         test-open: on GNU/Hurd, /dev/null is a directory
44465         * tests/test-fopen.h (main): Rename...
44466         (test_fopen): ...to this.  Use a guaranteed non-directory when
44467         confirming open behavior on trailing slash.
44468         * tests/test-openat-safer.c (main): Likewise.
44469         * tests/test-open.h (main): Likewise....
44470         (test_open): ...to this.
44471         * tests/test-fopen.c (main): Adjust caller.
44472         * tests/test-fopen-safer.c (main): Likewise.
44473         * tests/test-open.c (main): Likewise.
44474         * tests/test-fcntl-safer.c (main): Likewise.
44475         Reported by Samuel Thibault.
44476
44477         rename, fchdir: don't ignore chdir failure
44478         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44479         * lib/rename.c (rpl_rename) [W32]: Likewise.
44480         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44481         an empty destination directory if source cannot be renamed,
44482         although there is still possibility for failure.
44483         * doc/posix-functions/rename.texi (rename): Document the race.
44484         Reported by Jim Meyering.
44485
44486         maint: cleanup whitespace in recent commits
44487         * lib/rename.c (rpl_rename): Remove tabs.
44488         * tests/test-link.h (test_link): Likewise.
44489         * lib/fchdir.c (get_name): Likewise.
44490         Reported by Jim Meyering.
44491
44492 2009-10-02  Ben Pfaff  <blp@gnu.org>
44493
44494         relocatable-prog-wrapper: Add missing dependency on
44495         double-slash-root.
44496         * modules/relocatable-prog-wrapper: Add dependency.
44497         Reported by Ian Beckwith <ianb@erislabs.net>.
44498
44499 2009-10-02  Eric Blake  <ebb9@byu.net>
44500
44501         renameat: fix Solaris bugs
44502         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44503         needed fixing.
44504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44505         * modules/stdio (Makefile.am): Substitute it.
44506         * lib/stdio.in.h (renameat): Declare replacement.
44507         * lib/renameat.c (rpl_renameat): Implement fix.
44508
44509         renameat: new module
44510         * modules/renameat: New file.
44511         * lib/renameat.c (renameat): Likewise.
44512         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44514         * modules/stdio (Makefile.am): Substitute them.
44515         * lib/stdio.in.h (renameat): Declare it.
44516         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44517         * doc/posix-functions/renameat.texi (renameat): Likewise.
44518         * modules/renameat-tests: New test.
44519         * tests/test-renameat.c: Likewise.
44520
44521         rename: fix mingw bugs
44522         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44523         directory overwrite bugs.
44524
44525         rename: fix another cygwin 1.5 bug
44526         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44527         checks.
44528         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44529         unnecessary cygwin workarounds.  Also work around bug with moving
44530         full directory onto an empty one.
44531         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44532
44533         rename-dest-slash: merge into rename module
44534         * modules/rename-dest-slash (Status): Mark obsolete.
44535         (Depends-on): Add rename.
44536         (Files): Let rename do it all.
44537         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44538         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44539         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44540         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44541         * lib/rename.c (rpl_rename): Update comments.
44542
44543         rename: fix cygwin 1.5.x bugs
44544         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44545         * lib/rename.c (rpl_rename): Work around them.
44546         * modules/rename (Depends-on): Add same-inode.
44547
44548         rename: fix Solaris 10 bug
44549         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44550         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44551         was the only bug.
44552
44553         rename: fix Solaris 9 bug
44554         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44555         on non-directory.  Avoid calling exit.
44556         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44557         strdup.
44558         * modules/rename-tests (Depends-on): Drop lstat.
44559         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44560         (gl_PREREQ_RENAME): Delete unused macro.
44561
44562         rename-dest-slash: fix NetBSD bug
44563         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44564         links.
44565         * modules/rename-dest-slash (Depends-on): Add same-inode.
44566
44567         rename-tests: new test, exposes several platform bugs
44568         * modules/rename-tests: New file.
44569         * tests/test-rename.h: Likewise.
44570         * tests/test-rename.c: Likewise.
44571         * doc/posix-functions/rename.texi (rename): Improve documentation,
44572         including bugs that will eventually be fixed in gnulib.
44573
44574 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44575
44576         * lib/uname.c: Include <stdlib.h>
44577         (uname): Assume version info is available.
44578
44579 2009-10-02  Jim Meyering  <meyering@redhat.com>
44580
44581         gnu-web-doc-update: correct --help output
44582         * build-aux/gnu-web-doc-update: Make --help output relevant.
44583
44584         gnu-web-doc-update: add standard options
44585         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44586
44587         gnu-web-doc-update: New module.
44588         Use this script to automatically update the on-line web documentation
44589         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44590         * modules/gnu-web-doc-update: New file, from coreutils.
44591         * build-aux/gnu-web-doc-update: New script.
44592
44593 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44594
44595         link: LoadLibrary is not needed.
44596         * lib/link.c: Use GetModuleHandle.
44597
44598 2009-10-01  Eric Blake  <ebb9@byu.net>
44599
44600         getopt: bump serial number
44601         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44602         change.
44603
44604         tests: tighten link, rmdir, and remove tests
44605         * tests/test-link.h (includes): No need to use <config.h> here.
44606         Clean up if directory hard link was created, otherwise test for
44607         trailing '.'.
44608         * tests/test-linkat.c (main): Simplify.
44609         * tests/test-remove.c (main): Enhance test for trailing '.'.
44610         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44611
44612 2009-10-01  Jim Meyering  <meyering@redhat.com>
44613
44614         maint.mk: requiring "make major" was annoying, for a "minor" release.
44615         What is intended is "stable", to contrast with alpha and beta,
44616         so require "make stable", not "make major".
44617         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44618         (get_tool_versions): Likewise.
44619         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44620
44621 2009-09-30  Ben Pfaff  <blp@gnu.org>
44622
44623         Fix broken build of replacement for Windows tmpfile().
44624         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44625         flags argument added along with the 'mkostemp' module.
44626
44627 2009-09-28  Bruno Haible  <bruno@clisp.org>
44628
44629         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44630         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44631         to 'remove_elt'.
44632         (gl_list_remove): Update.
44633         * lib/gl_list.c (gl_list_remove): Update.
44634         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44635         to 'remove_elt'.
44636         (gl_oset_remove): Update.
44637         * lib/gl_list.c (gl_oset_remove): Update.
44638         Reported by Eric Blake.
44639
44640 2009-09-28  Eric Blake  <ebb9@byu.net>
44641
44642         doc: mention yet more cygwin 1.7 status
44643         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44644         cygwin.
44645         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44646         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44647
44648         argp: fix test failure
44649         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44650         that are not upper-case.  Pass correct range to tolower.
44651
44652 2009-09-27  Jim Meyering  <meyering@redhat.com>
44653
44654         test-yesno: work around sparc-dash here-document infelicity
44655         Without this change, the literal \177 byte in a here document
44656         would make dash 0.5.5.1-3 access uninitialized memory.
44657         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44658         Instead, use a marker, "@", and filter through tr to create the desired
44659         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44660
44661 2009-09-27  Bruno Haible  <bruno@clisp.org>
44662
44663         Disable untested support for new flavours of ACLs on AIX.
44664         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44665         progress.
44666         * lib/set-mode-acl.c (qset_acl): Likewise.
44667
44668 2008-12-07  Bruno Haible  <bruno@clisp.org>
44669
44670         Add support for new flavours of ACLs on AIX. (Untested.)
44671         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44672         (file_has_acl): Add support for newer AIX.
44673         * lib/set-mode-acl.c (qset_acl): Likewise.
44674         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44675         Rainer Tammer <tammer@tammer.net>.
44676
44677 2009-09-26  Eric Blake  <ebb9@byu.net>
44678
44679         argp: fix compilation of getopt
44680         * lib/getopt.in.h (includes): Use different guard than glibc.
44681         Reported by Sergey Poznyakoff.
44682
44683         doc: mention more cygwin 1.7 status
44684         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44685         bug.
44686         * doc/posix-functions/execl.texi (execl): Likewise.
44687         * doc/posix-functions/execle.texi (execle): Likewise.
44688         * doc/posix-functions/execlp.texi (execlp): Likewise.
44689         * doc/posix-functions/execv.texi (execv): Likewise.
44690         * doc/posix-functions/execve.texi (execve): Likewise.
44691         * doc/posix-functions/execvp.texi (execvp): Likewise.
44692         * doc/glibc-functions/canonicalize_file_name.texi
44693         (canonicalize_file_name): Cygwin 1.7 now provides this.
44694         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44695         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44696         on AT_SYMLINK_NOFOLLOW.
44697
44698 2009-09-24  Eric Blake  <ebb9@byu.net>
44699
44700         test-linkat: make test more robust
44701         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44702
44703         getopt: fix inclusion guards for cygwin
44704         * modules/getopt-posix (Depends-on): Add include-next.
44705         (Makefile.am): Substitute more items in replacement header.
44706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44707         <getopt.h>.
44708         * lib/getopt.in.h (includes): Use split inclusion guard, and
44709         prefer <getopt.h> over include <unistd.h> when one is present.
44710         (option): Also override name of 'struct option'.
44711
44712         same-inode: revert prior change; it is not yet ready
44713         * NEWS: Undo mention of this change.
44714         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44715         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44716         * lib/cycle-check.c (cycle_check): Likewise.
44717         * lib/same.c (same_name): Likewise.
44718         * lib/at-func2.c (at_func2): Likewise.
44719
44720 2009-09-23  Eric Blake  <ebb9@byu.net>
44721
44722         linkat: new module
44723         * modules/linkat: New file.
44724         * lib/at-func2.c (at_func2): Likewise.
44725         * lib/linkat.c (linkat): Likewise.
44726         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44727         * lib/openat-priv.h (at_func2): Add declaration.
44728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44729         * modules/unistd (Makefile.am): Substitute them.
44730         * lib/unistd.in.h (linkat): Declare it.
44731         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44732         * doc/posix-functions/linkat.texi (linkat): Likewise.
44733         * doc/posix-functions/link.texi (link): Tweak wording.
44734         * tests/test-link.c (main): Move guts...
44735         * tests/test-link.h (test_link): ...into new file.
44736         * modules/linkat-tests: New test.
44737         * tests/test-linkat.c: Likewise.
44738         * modules/link-tests (Files): Ship new file.
44739         (Depends-on): Add stdbool.
44740
44741         dirname: add library-safe mdir_name
44742         * lib/dirname.h (mdir_name): New prototype.
44743         * lib/dirname.c (dir_name): Move guts...
44744         (mdir_name): ...to new function that avoids xalloc_die.
44745
44746         fchdir: another mingw fix
44747         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44748         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44749         on mingw (where it has not yet been ported), and make it optional
44750         elsewhere.
44751         (_gl_register_fd): Use it.
44752
44753         same-inode: make SAME_INODE tri-state, to port to mingw
44754         * NEWS: Mention this change.
44755         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44756         st_ino always being 0.
44757         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44758         * lib/cycle-check.c (cycle_check): Likewise.
44759         * lib/same.c (same_name): Likewise.
44760
44761         lstat: avoid mingw compilation error
44762         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44763         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44764         lstat ourselves.
44765         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44766         was adequate.
44767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44768         the checks for lstat.
44769         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44770
44771         link: fix test failure on Solaris 9
44772         * lib/link.c (rpl_link): Don't assume link will catch bogus
44773         trailing slash on source.
44774
44775         test-symlinkat: enhance test
44776         * tests/test-readlink.c (main): Move guts...
44777         * tests/test-readlink.h (test_readlink): ...into new file.
44778         * tests/test-symlink.c (main): Move guts...
44779         * tests/test-symlink.h (test_symlink): ...into new file.
44780         * tests/test-symlinkat.c (main): Use new files for further
44781         coverage.
44782         (do_symlink, do_readlink): New helper functions.
44783         * modules/symlink-tests (Files): Ship new file.
44784         (Depends-on): Add stdbool.
44785         * modules/readlink-tests (Files): Ship new file.
44786         (Depends-on): Add stdbool.
44787         * modules/symlinkat-tests (Files): Use new files.
44788
44789 2009-09-23  Eric Blake  <ebb9@byu.net>
44790
44791         readlink: document portability issue with symlink length
44792         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44793         systems have bogus st_size on symlinks, and mention the
44794         areadlink-with-size module.
44795         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44796         * doc/posix-functions/readlink.texi (readlink): Mention the
44797         areadlink module, and ERANGE failure.
44798         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44799         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44800
44801         readlink: fix Solaris 9 bug with trailing slash
44802         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44803         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44804         * doc/posix-functions/readlink.texi (readlink): Document this.
44805         * modules/readlink-tests: New test.
44806         * tests/test-readlink.c: Likewise.
44807
44808         readlink: fix cygwin 1.5.x bug with return type
44809         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44810         * lib/unistd.in.h (readlink): Use ssize_t.
44811         * lib/readlink.c (readlink): Likewise.
44812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44813         * modules/unistd (Makefile.am): Substitute it.
44814         * lib/unistd.in.h (readlink): Declare replacement.
44815         * doc/posix-functions/readlink.texi (readlink): Document this.
44816
44817         symlink: use throughout gnulib
44818         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44819         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44820         symlink is not used.
44821         * modules/symlinkat (Depends-on): Add symlink.
44822         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44823         * modules/canonicalize-tests (Depends-on): Likewise.
44824         * modules/lstat-tests (Depends-on): Likewise.
44825         * modules/openat-tests (Depends-on): Likewise.
44826         * modules/remove-tests (Depends-on): Likewise.
44827         * modules/rmdir-tests (Depends-on): Likewise.
44828         * modules/unlink-tests (Depends-on): Likewise.
44829         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44830         * tests/test-canonicalize.c (symlink): Likewise.
44831         * tests/test-fstatat.c (symlink): Likewise.
44832         * tests/test-lstat.c (symlink): Likewise.
44833         * tests/test-remove.c (symlink): Likewise.
44834         * tests/test-rmdir.c (symlink): Likewise.
44835         * tests/test-unlink.c (symlink): Likewise.
44836         * tests/test-unlinkat.c (symlink): Likewise.
44837
44838         symlink: new module, for Solaris 9 bug
44839         * modules/symlink: New file.
44840         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44841         * lib/symlink.c: Likewise.
44842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44843         * modules/unistd (Makefile.am): Substitute them.
44844         * lib/unistd.in.h (symlink): Declare replacement.
44845         * MODULES.html.sh (File system functions): Mention it.
44846         * doc/posix-functions/symlink.texi (symlink): Likewise.
44847         * modules/symlink-tests: New test.
44848         * tests/test-symlink.c: Likewise.
44849
44850 2009-09-23  Bruno Haible  <bruno@clisp.org>
44851
44852         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44853         when needed.
44854         Test case: gnulib-tool --import --with-tests atexit inttypes.
44855         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44856
44857 2009-09-23  Bruno Haible  <bruno@clisp.org>
44858
44859         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44860         subcommand, not in a subshell.
44861
44862 2009-09-22  Eric Blake  <ebb9@byu.net>
44863
44864         unistd: sort replacement declarations
44865         * lib/unistd.in.h: Sort declarations.
44866
44867         open, openat: minor optimization
44868         * lib/open.c (open): If open succeeded, len is non-zero.
44869         * lib/openat.c (rpl_openat): Likewise.
44870
44871         link-follow: ensure correct result
44872         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44873         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44874         distinguish between possible failures.
44875
44876 2009-09-21  Eric Blake  <ebb9@byu.net>
44877
44878         fts: avoid compiler warning
44879         * lib/fts.c (dirent_inode_sort_may_be_useful)
44880         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44881
44882 2009-09-19  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/progreloc.c (canonicalize_file_name): New declaration.
44885
44886 2009-09-19  Eric Blake  <ebb9@byu.net>
44887
44888         link: fix quoting
44889         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44890
44891         openat: fix openat bugs on Solaris 9
44892         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44893         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44894         * modules/openat (Depends-on): Add open.
44895         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44896         * modules/fcntl-h (Makefile.am): Substitute it.
44897         * lib/fcntl.in.h (openat): Declare replacement.
44898         * doc/posix-functions/openat.texi (openat): Document this.
44899
44900         openat: move fstatat and unlinkat into correct files
44901         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44902         compiled.
44903         * lib/openat.c (fstatat, unlinkat): Move...
44904         * lib/fstatat.c (fstatat): ...into correct files.
44905         * lib/unlinkat.c (unlinkat): Likewise.
44906
44907         openat: fix unlinkat bugs on Solaris 9
44908         * lib/unlinkat.c (unlinkat): New file.
44909         * modules/openat (Depends-on): Add unlink.
44910         (Files): Distribute it.
44911         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44912         trailing slash behavior is broken.
44913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44914         * modules/unistd (Makefile.am): Substitute it.
44915         * lib/unistd.in.h (unlinkat): Declare replacement.
44916         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44917
44918         openat: fix fstatat bugs on Solaris 9
44919         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44920         stat.
44921         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44922
44923         test-unlinkat: enhance test, to expose Solaris 9 bug
44924         * tests/test-unlink.c (main): Factor guts...
44925         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44926         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44927         * tests/test-rmdir.c (main): Adjust caller.
44928         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44929         (unlinker): New helper function.
44930         (rmdirat): Enhance check.
44931         * modules/rmdir-tests (Depends-on): Add stdbool.
44932         * modules/unlink-tests (Depends-on): Likewise.
44933         (Files): Add test-unlink.h.
44934         * modules/openat-tests (Files): Likewise.
44935         (Depends-on): Add unlinkdir.
44936
44937         test-fstatat: new test, to expose Solaris 9 bugs
44938         * tests/test-stat.c (main): Factor guts...
44939         * tests/test-stat.h (test_stat_func): ...into new file.
44940         * tests/test-lstat.c (main): Factor guts...
44941         * tests/test-lstat.h (test_lstat_func): ...into new file.
44942         * tests/test-fstatat.c: New file.
44943         * modules/stat-tests (Files): Add test-stat.h.
44944         * modules/lstat-tests (Files): Add test-lstat.h.
44945         (Depends-on): Add stdbool.
44946         * modules/openat-tests (Depends-on): Add pathmax.
44947         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44948         (Makefile.am): Run new test.
44949
44950         remove: new module, for mingw and Solaris 9 bugs
44951         * modules/remove: New file.
44952         * lib/remove.c: Likewise.
44953         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44955         * modules/stdio (Makefile.am): Use them.
44956         * lib/stdio.in.h (remove): Declare replacement.
44957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44958         * doc/posix-functions/remove.texi (remove): Likewise.
44959         * modules/remove-tests: New test.
44960         * tests/test-remove.c: Likewise.
44961
44962         unlink: new module, for Solaris 9 bug
44963         * modules/unlink: New file.
44964         * lib/unlink.c: Likewise.
44965         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44967         * modules/unistd (Makefile.am): Use them.
44968         * lib/unistd.in.h (stat): Declare replacement.
44969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44970         * doc/posix-functions/unlink.texi (unlink): Likewise.
44971         * modules/unlink-tests: New test.
44972         * tests/test-unlink.c: Likewise.
44973
44974         lstat: fix Solaris 9 bug
44975         * lib/lstat.c (lstat): Also check for trailing slash on
44976         non-symlink, non-directories.  Use stat module to simplify logic.
44977         * doc/posix-functions/lstat.texi (lstat): Document it.
44978         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44979         (configure.ac): Check for symlink.
44980         * tests/test-lstat.c (main): Add more tests.
44981
44982         stat: add as dependency to other modules
44983         * modules/chown (Depends-on): Add stat.
44984         * modules/euidaccess (Depends-on): Likewise.
44985         * modules/fchdir (Depends-on): Likewise.
44986         * modules/isdir (Depends-on): Likewise.
44987         * modules/link (Depends-on): Likewise.
44988         * modules/lstat (Depends-on): Likewise.
44989         * modules/mkdir-p (Depends-on): Likewise.
44990         * modules/modechange (Depends-on): Likewise.
44991         * modules/open (Depends-on): Likewise.
44992         * modules/readlink (Depends-on): Likewise.
44993         * modules/same (Depends-on): Likewise.
44994
44995         stat: fix Solaris 9 bug
44996         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44997         slash.
44998         * lib/stat.c (rpl_stat): Work around it.
44999         * doc/posix-functions/stat.texi (stat): Update documentation.
45000
45001         stat: new module, for mingw bug
45002         * modules/stat: New file.
45003         * lib/stat.c: Likewise.
45004         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45006         * modules/sys_stat (Makefile.am): Use them.
45007         * lib/sys_stat.in.h (stat): Declare replacement.
45008         * lib/openat.c (fstatat): Deal with lstat and stat being function
45009         macros.
45010         * modules/openat (Depends-on): Add inline.
45011         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45012         * doc/posix-functions/stat.texi (stat): Likewise.
45013         * modules/stat-tests: New test.
45014         * tests/test-stat.c: Likewise.
45015
45016 2009-09-19  Jim Meyering  <meyering@redhat.com>
45017
45018         syntax-check: detect unnecessary inclusion of canonicalize.h
45019         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45020
45021 2009-09-19  Eric Blake  <ebb9@byu.net>
45022
45023         canonicalize-lgpl: adjust clients to use correct header
45024         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45025         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45026         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45027         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45028         * lib/progreloc.c (includes): Likewise.
45029
45030 2009-09-19  Jim Meyering  <meyering@redhat.com>
45031
45032         test-posixtm.c: correct a comment
45033         * tests/test-posixtm.c: Correct first-line comment.
45034         Spotted by Eric Blake.
45035
45036 2009-09-16  Jim Meyering  <meyering@redhat.com>
45037
45038         posixtm-tests: make T const-correct; add a test case
45039         * tests/test-posixtm.c (T): Declare const.
45040         Add a test for -(2^31+1).
45041         Remove useless can-succeed-only-in-2002 test.
45042
45043         posixtm-tests: adjust the sole failing test
45044         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45045         expected output matches what mktime now produces.  Cross-checked via
45046         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45047
45048         posixtm: move #ifdef'd tests into a new module
45049         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45050         * tests/test-posixtm.c: ... this new file.
45051         * modules/posixtm-tests: New module.
45052
45053 2009-09-19  Eric Blake  <ebb9@byu.net>
45054
45055         openat: simplify use of at-func.c
45056         * lib/at-func.c (includes): Include prerequisites here, to
45057         simplify requirements on client files.
45058         * lib/openat-priv.h: Add double-inclusion guard.
45059         * lib/faccessat.c (includes): Simplify.
45060         * lib/fchmodat.c (includes): Likewise.
45061         * lib/fchownat.c (includes): Likewise.
45062         * lib/mkdirat.c (includes): Likewise.
45063         * lib/mkfifoat.c (includes): Likewise.
45064         * lib/symlinkat.c (includes): Likewise.
45065
45066         openat: allow return of fd 0
45067         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45068         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45069         unistd-safer.
45070         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45071         <fcntl.h>; this module does not leak fds.
45072         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45073         must be allowed to return 0, leaving openat_safer to add the
45074         safety.
45075         (openat_permissive): Avoid writing to just-opened fd 2 if
45076         restoring the current directory fails.
45077         * lib/openat-die.c (openat_restore_fail): Add comment.
45078         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45079         (save_cwd): Guarantee safe fd, but without use of open_safer.
45080         * tests/test-openat.c: New test.
45081         * modules/openat-tests (Files, Makefile.am): Distribute and build
45082         new file.
45083
45084         relocatable-prog-wrapper: fix build
45085         * modules/relocatable-prog-wrapper (Files): Update name of
45086         canonicalize m4 file, broken on 2009-09-17.
45087         Reported by emad hajjar <aleppos@hotmail.com>.
45088
45089 2009-09-19  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45092         * lib/safe-alloc.c: Likewise.
45093         Reported by Ian Beckwith <ianb@erislabs.net>.
45094
45095 2009-09-18  Bruno Haible  <bruno@clisp.org>
45096
45097         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45098         Reported by <erobles@sensacd.com.mx>.
45099
45100 2009-09-17  Eric Blake  <ebb9@byu.net>
45101
45102         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45103         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45104         slashes when checking if last component is missing.
45105         * tests/test-canonicalize.c (main): Test this.
45106
45107         canonicalize, canonicalize-lgpl: honor // if distinct from /
45108         * modules/canonicalize (Files): Add double-slash-root.m4.
45109         * modules/canonicalize-lgpl (Files): Likewise.
45110         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45111         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45112         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45113         fallback definition.
45114         (canonicalize_filename_mode): Use it to protect //.
45115         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45116         (__realpath): Likewise.
45117         * tests/test-canonicalize.c (main): Test this.
45118         * tests/test-canonicalize-lgpl.c (main): Likewise.
45119         * modules/canonicalize-tests (Depends-on): Add same-inode.
45120         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45121
45122         canonicalize-lgpl: fix glibc bug with trailing slash
45123         * m4/canonicalize-lgpl.m4: Move contents...
45124         * m4/canonicalize.m4: ...here.
45125         (gl_CANONICALIZE_LGPL): Factor realpath check...
45126         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45127         glibc 2.3.5 bug, fixed 2005-04-27.
45128         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45129         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45130         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45131         * modules/canonicalize-lgpl (Files): Manage file rename.
45132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45133         * modules/stdlib (Makefile.am): Substitute witness.
45134         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45135         is needed.
45136         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45137         replacement is required.
45138         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45139         * doc/glibc-functions/canonicalize_file_name.texi
45140         (canonicalize_file_name): Document this.
45141         * doc/posix-functions/realpath.texi (realpath): Likewise.
45142
45143         canonicalize-lgpl: reject non-directory with trailing slash
45144         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45145         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45146         catches failures in glibc 2.3.5.
45147         * tests/test-canonicalize.c (main): Likewise.
45148
45149         canonicalize-lgpl: use native realpath if it works
45150         * lib/canonicalize-lgpl.c (realpath): Guard with
45151         FUNC_REALPATH_WORKS.
45152         * lib/stdlib.in.h (realpath): Make declaration optional based on
45153         HAVE_REALPATH.
45154         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45155         native realpath works.
45156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45157         * modules/stdlib (Makefile.am): Substitute witness.
45158
45159         canonicalize, canonicalize-lgpl: use <stdlib.h>
45160         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45161         (Include): Mention <stdlib.h>.
45162         (configure.ac): Mention functions we provide.
45163         * modules/canonicalize (configure.ac): Likewise.
45164         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45165         realpath if canonicalize_file_name is missing.
45166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45167         * modules/stdlib (Makefile.am): Substitute witnesses.
45168         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45169         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45170         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45171         * NEWS: Document this.
45172         * doc/glibc-functions/canonicalize_file_name.texi
45173         (canonicalize_file_name): Likewise.
45174         * doc/posix-functions/realpath.texi (realpath): Likewise.
45175         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45176
45177         test-canonicalize: consolidate into single C program
45178         * tests/test-canonicalize.sh: Delete; move setup into...
45179         * tests/test-canonicalize.c (main): ...the program, making it
45180         easier to run in debugger.  Add some tests.
45181         * modules/canonicalize-tests (Files): Remove unused file.
45182         (Depends-on): Add progname.
45183         (configure.ac, Makefile.am): Simplify.
45184
45185         test-canonicalize-lgpl: consolidate into single C program
45186         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45187         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45188         easier to run in debugger.  Add some tests.
45189         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45190         (configure.ac, Makefile.am): Simplify.
45191
45192         canonicalize: avoid resolvepath
45193         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45194         unnecessary checks.
45195         * lib/canonicalize.c (includes): Simplify.
45196         (canonicalize_file_name): Drop resolvepath implementation.
45197         * modules/canonicalize (Depends-on): Drop filenamecat.
45198
45199         canonicalize: don't lose errno
45200         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45201         over calls to free.
45202
45203         canonicalize: simplify errno handling
45204         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45205         assignment.
45206
45207         canonicalize, canonicalize-lgpl: update module dependencies
45208         * modules/canonicalize (Depends-on): Add extensions, lstat,
45209         pathmax, stdlib.
45210         (Files): Drop pathmax.h.
45211         (configure.ac): Adjust macro name.
45212         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45213         lstat, stdlib, sys_stat.
45214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45215         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45216         extensions.
45217         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45218         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45219         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45220         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45221         declaration, if available.
45222         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45223         we can rely on the readlink module.
45224         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45225         (includes): Use <unistd.h> unconditionally.
45226
45227 2009-09-17  Eric Blake  <ebb9@byu.net>
45228
45229         maint: make Include sections of modules consistent
45230         * modules/alloca: Use only header name; no need to list #include.
45231         * modules/alloca-opt: Likewise.
45232         * modules/arpa_inet: Likewise.
45233         * modules/canon-host: Likewise.
45234         * modules/configmake: Likewise.
45235         * modules/dirent: Likewise.
45236         * modules/eealloc: Likewise.
45237         * modules/environ: Likewise.
45238         * modules/fchdir: Likewise.
45239         * modules/fcntl: Likewise.
45240         * modules/fcntl-h: Likewise.
45241         * modules/gethrxtime: Likewise.
45242         * modules/gettime: Likewise.
45243         * modules/ignore-value: Likewise.
45244         * modules/inet_ntop: Likewise.
45245         * modules/inet_pton: Likewise.
45246         * modules/inttypes: Likewise.
45247         * modules/isnand-nolibm: Likewise.
45248         * modules/isnanf-nolibm: Likewise.
45249         * modules/mbchar: Likewise.
45250         * modules/mbfile: Likewise.
45251         * modules/mbiter: Likewise.
45252         * modules/mbuiter: Likewise.
45253         * modules/netdb: Likewise.
45254         * modules/netinet_in: Likewise.
45255         * modules/nproc: Likewise.
45256         * modules/pagealign_alloc: Likewise.
45257         * modules/poll: Likewise.
45258         * modules/printf-frexp: Likewise.
45259         * modules/pthread: Likewise.
45260         * modules/putenv: Likewise.
45261         * modules/random_r: Likewise.
45262         * modules/relocatable-prog: Likewise.
45263         * modules/search: Likewise.
45264         * modules/select: Likewise.
45265         * modules/selinux-h: Likewise.
45266         * modules/settime: Likewise.
45267         * modules/signal: Likewise.
45268         * modules/size_max: Likewise.
45269         * modules/socklen: Likewise.
45270         * modules/ssize_t: Likewise.
45271         * modules/stdarg: Likewise.
45272         * modules/stdbool: Likewise.
45273         * modules/stddef: Likewise.
45274         * modules/stdint: Likewise.
45275         * modules/stdio: Likewise.
45276         * modules/stdlib: Likewise.
45277         * modules/string: Likewise.
45278         * modules/strings: Likewise.
45279         * modules/sys_file: Likewise.
45280         * modules/sys_ioctl: Likewise.
45281         * modules/sys_select: Likewise.
45282         * modules/sys_socket: Likewise.
45283         * modules/sys_stat: Likewise.
45284         * modules/sys_time: Likewise.
45285         * modules/sys_times: Likewise.
45286         * modules/sys_utsname: Likewise.
45287         * modules/sys_wait: Likewise.
45288         * modules/sysexits: Likewise.
45289         * modules/time: Likewise.
45290         * modules/times: Likewise.
45291         * modules/tmpfile: Likewise.
45292         * modules/trim: Likewise.
45293         * modules/unistd: Likewise.
45294         * modules/wchar: Likewise.
45295         * modules/wctype: Likewise.
45296
45297 2009-09-17  Bruno Haible  <bruno@clisp.org>
45298
45299         Make getdate.y compile on QNX and NetBSD 5 / i386.
45300         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45301         TIME_T_FITS_IN_LONG_INT.
45302         * lib/getdate.y (long_time_t): New type.
45303         (relative_time): Change type of 'seconds' field to long_time_t.
45304         (get_date): Update types of local variables. Check against overflow
45305         during conversion from long_time_t to time_t.
45306         Reported by Matt Kraai <kraai@ftbfs.org>
45307         and Hasso Tepper <hasso@netbsd.org>.
45308
45309 2009-09-17  Bruno Haible  <bruno@clisp.org>
45310
45311         * modules/COPYING: Update copyright years.
45312         * modules/README: Likeiwse.
45313         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45314         Reported by Ian Beckwith <ianb@erislabs.net>.
45315
45316 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45317
45318         * users.txt: Update references for gnuit package.
45319
45320 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45321
45322         * m4/getdelim.m4: Fix typo in copyright line.
45323
45324 2009-09-17  Bruno Haible  <bruno@clisp.org>
45325
45326         * lib/atoll.c: Use the standard header with GPL copyright.
45327         * lib/argz.in.h: Likewise.
45328         * lib/glob.c: Likewise.
45329         * lib/glob-libc.h: Likewise.
45330         * lib/random_r.c: Likewise.
45331         * lib/siglist.h: Likewise.
45332         * lib/strsignal.c: Likewise.
45333         Reported by Ian Beckwith <ianb@erislabs.net>.
45334
45335 2009-09-17  Eric Blake  <ebb9@byu.net>
45336
45337         rmdir: ensure correct dependency order
45338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45339
45340 2009-09-17  Bruno Haible  <bruno@clisp.org>
45341
45342         Disable assertion that fails on NetBSD 5 / i386.
45343         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45344         Reported by Sam Steingold <sds@gnu.org>
45345         and Hasso Tepper <hasso@netbsd.org>.
45346
45347 2009-09-16  Eric Blake  <ebb9@byu.net>
45348
45349         unlinkdir: port to mingw
45350         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45351         on which no one can unlink a directory.
45352
45353         stdlib: sort witness names
45354         * modules/stdlib (Makefile.am): Sort replacements.
45355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45356         * lib/stdlib.in.h: Likewise.
45357
45358         parse-duration-tests: avoid link failure
45359         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45360         LIBINTL.
45361         Reported by Tom G. Christensen.
45362
45363         openat-tests: ensure unlinkat behaves like rmdir
45364         * tests/test-rmdir.c (main): Factor guts...
45365         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45366         * modules/rmdir-tests (Files): Ship new file.
45367         * modules/openat-tests: New test.
45368         * tests/test-unlinkat.c: Likewise.
45369
45370         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45371         * modules/rmdir-errno (Status, Notice): Now obsolete.
45372
45373         rmdir: work around cygwin 1.5.x and mingw bugs
45374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45375         * lib/rmdir.c (rmdir): Work around it.
45376         * modules/rmdir (Status, Notice): No longer obsolete.
45377         (Files): Add dos.m4.
45378         (Depends-on): Add unistd.
45379         (configure.ac): Set witnesses.
45380         (License): Relax to LGPLv2+.
45381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45382         * modules/unistd (Makefile.am): Substitute witnesses.
45383         * lib/unistd.in.h (rmdir): Declare replacement.
45384         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45385         * modules/rmdir-tests: New tests.
45386         * tests/test-rmdir.c: Likewise.
45387
45388 2009-09-15  Eric Blake  <ebb9@byu.net>
45389
45390         fchdir: improve use of replacement functions
45391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45394         REPLACE_CLOSEDIR.
45395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45396         * modules/sys_stat (Makefile.am): Substitute correct witness.
45397         * modules/dirent (Makefile.am): Likewise.
45398         * modules/unistd (Makefile.am): Likewise.
45399         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45400         * lib/unistd.in.h (dup): Likewise.
45401         * lib/sys_stat.in.h (fstat): Likewise.
45402
45403         maint: ignore gnulib-tool temp files
45404         * .gitignore: Ignore files created during gnulib-tool --test.
45405
45406 2009-09-13  Jim Meyering  <meyering@redhat.com>
45407
45408         posixtm: don't reject a time that specify "60" as the number of seconds
45409         * lib/posixtm.c (posixtime): The code to reject invalid dates
45410         would also reject a time specified with the .60 suffix.
45411         But POSIX allows that, in order to accommodate leap seconds.
45412         So don't reject it.
45413         (main): Adjust tests accordingly.
45414         * modules/posixtm (Depends-on): Add stpcpy.
45415
45416 2009-09-11  Jim Meyering  <meyering@redhat.com>
45417
45418         announce-gen: include [$release_type] in emitted Subject:
45419         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45420         e.g., [stable] in the emitted Subject: line.
45421
45422 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45423
45424         Remove obsolete macros from several modules.
45425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45426         obsolete Autoconf macros with their modern counterparts.
45427         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45428         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45430         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45431         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45432         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45435         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45436         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45437         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45438         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45439         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45440         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45441         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45442         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45443         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45444         * m4/time_r.m4 (gl_TIME_R): Likewise.
45445         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45446         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45447         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45448
45449         Fix copyright header in build-aux scripts.
45450         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45451         recommendation.
45452         * build-aux/ncftpput-ftp: Likewise.
45453         * build-aux/update-copyright: Likewise.
45454
45455 2009-09-09  Eric Blake  <ebb9@byu.net>
45456
45457         test-link: allow Linux choice of errno
45458         * tests/test-link.c (main): Relax test for alternate error.
45459
45460         strndup: fix improper m4 caching
45461         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45462         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45463         (gl_PREREQ_STRNDUP): Delete.
45464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45465         * modules/string (Makefile.am): Substitute it.
45466         * lib/string.in.h (strndup): Modernize prototype.
45467
45468         getcwd: port to mingw
45469         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45470         different from the POSIX assumptions made throughout the getcwd
45471         module; fortunately, the mingw getcwd does not need replacement.
45472         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45473         * modules/getcwd-tests: New test.
45474         * tests/test-getcwd.c: Likewise.
45475
45476         link: fix platform bugs
45477         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45478         * lib/link.c (link): Work around them.  Fix related mingw bug.
45479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45480         * modules/unistd (Makefile.am): Substitute it.
45481         * lib/unistd.in.h (link): Declare replacement.
45482         * doc/posix-functions/link.texi (link): Document this.
45483         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45484
45485         test-link: consolidate into single C program, test more cases
45486         * tests/test-link.sh: Delete.
45487         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45488         at least Cygwin and Solaris.
45489         * modules/link-tests (Files): Remove unused file.
45490         (Depends-on): Add errno, sys_stat.
45491         (Makefile.am): Simplify.
45492
45493 2009-09-08  Bruno Haible  <bruno@clisp.org>
45494
45495         Work around towlower, towupper bug on mingw.
45496         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45497         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45498         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45499         * doc/posix-functions/towupper.texi: Likewise.
45500         Reported by Eric Blake.
45501
45502 2009-09-08  Jim Meyering  <meyering@redhat.com>
45503
45504         build: don't try to run autoheader if we don't use it
45505         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45506         is not used in configure.ac.
45507
45508 2009-09-08  Eric Blake  <ebb9@byu.net>
45509
45510         euidaccess: fix compilation error
45511         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45512
45513         rawmemchr: relax license
45514         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45515         okay.
45516         Reported by Jim Meyering.
45517
45518         mkfifoat: new module
45519         * modules/mkfifoat: New file.
45520         * lib/mkfifoat.c: Likewise.
45521         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45523         * modules/sys_stat (Makefile.am): Use them.
45524         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45525         * MODULES.html.sh (File system functions): Mention module.
45526         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45527         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45528         * modules/mkfifoat-tests: New test.
45529         * tests/test-mkfifoat.c: Likewise.
45530
45531         strchrnul: relax license
45532         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45533         okay.
45534         Reported by Jim Meyering.
45535
45536 2009-09-08  Eric Blake  <ebb9@byu.net>
45537
45538         fstatat: fix compilation on Solaris
45539         * lib/fstatat.c (includes): Add fcntl.h.
45540         Reported by Pádraig Brady.
45541
45542 2009-09-07  Eric Blake  <ebb9@byu.net>
45543
45544         rename: modernize replacement
45545         * modules/rename (Depends-on): Add stdio.
45546         (configure.ac): Declare witness.
45547         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45548         stdio take care of replacement.
45549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45550         * modules/stdio (Makefile.am): Substitute them.
45551         * lib/stdio.in.h (rename): Declare replacement.
45552         * lib/rename.c (includes): Allow cross-compilation to non-windows
45553         machines.
45554         * doc/posix-functions/rename.texi (rename): Improve
45555         documentation.
45556
45557         stdio: sort witness names
45558         * modules/stdio (Makefile.am): Sort replacements.
45559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45560         * lib/stdio.in.h: Likewise.
45561
45562         getcwd: minor cleanups
45563         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45564         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45565
45566         openat: provide more convenience names
45567         * modules/faccessat (configure.ac): Add C witness.
45568         * lib/unistd.in.h (readlinkat): Fix typo.
45569         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45570         convenience wrappers.
45571         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45572         wrappers in syntax checks.
45573
45574 2009-09-06  Eric Blake  <ebb9@byu.net>
45575
45576         doc: fix comments in recent patches
45577         * lib/faccessat.c: Mention correct function.
45578         * lib/fchmodat.c: Likewise.
45579         * lib/fchownat.c: Likewise.
45580         * lib/symlinkat.c: Likewise.
45581         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45582         constants.
45583
45584         faccessat, symlinkat: continue cleanup of previous patch
45585         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45586         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45587         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45589         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45590         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45591         set.
45592
45593 2009-09-06  Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45596         (fstatat): Declare if GNULIB_FSTATAT is set.
45597         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45598         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45599         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45600         * modules/fcntl-h (Files): Remove m4/openat.m4.
45601         * modules/sys_stat (Files): Remove m4/openat.m4.
45602         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45603         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45604         * modules/unistd (Files): Remove m4/openat.m4.
45605         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45606         GNULIB_OPENAT.
45607         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45608         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45610         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45611         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45612         gl_OPENAT_DEFAULTS.
45613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45614         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45615         Don't require gl_OPENAT_DEFAULTS.
45616         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45617         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45618         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45619         (gl_OPENAT_DEFAULTS): Remove macro.
45620
45621 2009-09-06  Bruno Haible  <bruno@clisp.org>
45622
45623         * modules/openat (configure.ac): Remove unneeded witness.
45624
45625 2009-09-06  Bruno Haible  <bruno@clisp.org>
45626
45627         Set errno to ENOSYS when a function is entirely unsupported.
45628         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45629         EOPNOTSUPP.
45630         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45631         * modules/chown (Depends-on): Remove errno.
45632
45633 2009-09-06  Bruno Haible  <bruno@clisp.org>
45634
45635         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45636
45637 2009-09-06  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45640
45641 2009-09-06  Ben Pfaff  <blp@gnu.org>
45642             Bruno Haible  <bruno@clisp.org>
45643
45644         Work around a glibc bug in strtok_r.
45645         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45646         Undefine if UNDEFINE_STRTOK_R is set.
45647         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45649         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45650         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45651         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45652         UNDEFINE_STRTOK_R.
45653         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45654
45655 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45656
45657         exclude: minor fix
45658         * lib/exclude.c: Include wctype.h
45659
45660 2009-09-06  Akim Demaille  <demaille@gostai.com>
45661
45662         bootstrap: improve error message
45663         * build-aux/bootstrap (find_tool): Upon failure, report the list
45664         of candidates.
45665         Honor the initial value of the envvar.
45666
45667 2009-09-05  Eric Blake  <ebb9@byu.net>
45668
45669         symlinkat: new module
45670         * modules/symlinkat: New file.
45671         * lib/symlinkat.c: Likewise.
45672         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45674         * modules/unistd (Makefile.am): Use them.
45675         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45676         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45677         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45678         * MODULES.html.sh (File system functions): Mention module.
45679         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45680         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45681         * modules/symlinkat-tests: New test.
45682         * tests/test-symlinkat.c: Likewise.
45683
45684         test-openat-safer: add more checks
45685         * tests/test-openat-safer.c (main): Check more code paths.
45686
45687 2009-09-05  Jim Meyering  <meyering@redhat.com>
45688
45689         syntax-check: detect unnecessary inclusion of openat.h
45690         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45691
45692 2009-09-05  Bruno Haible  <bruno@clisp.org>
45693
45694         Support towlower, towupper.
45695         * doc/posix-functions/towlower.texi: Mention module wctype.
45696         * doc/posix-functions/towupper.texi: Likewise.
45697         * lib/wctype.in.h (towlower, towupper): New functions.
45698         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45699         (ASSERT): New macro.
45700         (e): New variable.
45701         (main): Test also towlower, towupper. Test WEOF argument.
45702         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45703
45704 2009-09-05  Bruno Haible  <bruno@clisp.org>
45705
45706         Fix conversion behaviour when the input is invalid.
45707         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45708         mark occurring in first pass of indirect conversion.
45709         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45710         input.
45711         Found by clang's static analyzer.
45712
45713 2009-09-05  Bruno Haible  <bruno@clisp.org>
45714
45715         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45716         where direct conversion is possible.
45717
45718 2009-09-04  Eric Blake  <ebb9@byu.net>
45719
45720         openat: fail with ENOENT on empty name
45721         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45722         buffer.
45723
45724         link-follow: fix logic bug in prior patch
45725         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45726         reversed sense of yes and no in prior patch.  Avoid confusing
45727         compilation failure with desired semantics.
45728
45729         link-follow: accommodate mingw and cross-compilation
45730         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45731         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45732         cross-compilation results to -1, to make linkat easier to
45733         implement when cross-compiling.  Trivially support mingw.
45734         * modules/link-follow (configure.ac): Call new name.
45735         * NEWS: Mention this.
45736
45737 2009-09-03  Eric Blake  <ebb9@byu.net>
45738
45739         faccessat: compile replacement
45740         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45741         needed.
45742
45743         fts: fix compilation error
45744         * lib/fts.c (includes): Re-add "openat.h", for
45745         openat_needs_fchdir.
45746
45747         faccessat: new module
45748         * modules/faccessat: New file.
45749         * lib/faccessat.c: Likewise.
45750         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45752         * modules/unistd (Makefile.am): Use it.
45753         * lib/unistd.in.h (faccessat): Declare it.
45754         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45755         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45756         * MODULES.html.sh (File system functions): Mention it.
45757         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45758         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45759
45760         euidaccess: prefer POSIX over non-standard implementation
45761         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45762         * lib/euidaccess.c (euidaccess): Use it if available.
45763
45764         openat: make template easier to use
45765         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45766         AT_FUNC_F2 to be undefined.
45767         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45768         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45769         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45770         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45771         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45772         Likewise.
45773         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45774         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45775         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45776         Likewise.
45777
45778         openat: declare in POSIX headers
45779         * NEWS: Mention this.
45780         * modules/openat (configure.ac): Declare witnesses.
45781         (Depends-on): Add fcntl-h, sys_stat, unistd.
45782         (Include): Mention correct headers.
45783         * modules/fcntl-h (Depends-on): Add link-warning.
45784         (Files): Add openat.m4.
45785         (Makefile.am): Substitute witnesses.
45786         * modules/sys_stat (Files, Makefile.am): Likewise.
45787         * modules/unistd (Files, Makefile.am): Likewise.
45788         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45789         (gl_OPENAT_DEFAULTS): New macro.
45790         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45792         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45793         (SYS_STAT_H): Remove unused variable.
45794         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45795         * lib/fcntl--.h (includes): Remove unneeded header.
45796         * lib/openat-safer.c (includes): Likewise.
45797         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45798         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45799         appropriate headers.
45800         (__OPENAT_PREFIX): Delete.
45801         * lib/fcntl.in.h (openat): Provide declaration.
45802         (AT_FDCWD): Fix Solaris bug.
45803         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45804         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45805         * lib/fchmodat.c (includes):  Adjust to find declaration.
45806         * lib/fchownat.c (includes): Likewise.
45807         * lib/mkdirat.c (includes): Likewise.
45808         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45809         still visible.
45810
45811 2009-09-02  Eric Blake  <ebb9@byu.net>
45812
45813         errno: use consistently
45814         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45815         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45816         * lib/canonicalize.c (ELOOP): Likewise.
45817         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45818         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45819         * lib/lchown.c (EOPNOTSUPP): Likewise.
45820         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45821         * lib/savewd.c (ESTALE): Likewise.
45822         * lib/settime.c (ENOSYS): Likewise.
45823         * lib/utimens.c (ENOSYS): Likewise.
45824         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45825         * lib/chdir-safer.c (ELOOP): Likewise.
45826         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45827         * modules/c-stack (Depends-on): Add errno.
45828         * modules/canonicalize (Depends-on): Likewise.
45829         * modules/chdir-safer (Depends-on): Likewise.
45830         * modules/fdopendir (Depends-on): Likewise.
45831         * modules/inet_ntop (Depends-on): Likewise.
45832         * modules/inet_pton (Depends-on): Likewise.
45833         * modules/lchown (Depends-on): Likewise.
45834         * modules/openat (Depends-on): Likewise.
45835         * modules/savewd (Depends-on): Likewise.
45836         * modules/settime (Depends-on): Likewise.
45837         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45838
45839         fts: avoid leaking fds
45840         * modules/fts (Depends-on): Add cloexec.
45841         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45842         flag.
45843
45844         fts: make directory fds more robust
45845         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45846         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45847
45848         backupfile, chdir-long, fts, savedir: make safer
45849         * lib/backupfile.c (includes): Use "dirent--.h", since
45850         numbered_backup can write to stderr during readdir.
45851         * lib/savedir.c (includes): Likewise.
45852         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45853         emulation can write to stderr on failure.
45854         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45855         * lib/getcwd.c: Document why opendir_safer is unused.
45856         * lib/glob.c: Likewise.
45857         * lib/scandir.c: Likewise.
45858         * lib/openat-proc.c: Likewise, for open_safer.
45859         * modules/backupfile (Depends-on): Add dirent-safer.
45860         * modules/savedir (Depends-on): Likewise.
45861         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45862         * modules/chdir-long (Depends-on): Add openat-safer.
45863
45864         openat-safer: new module
45865         * modules/openat-safer: New file.
45866         * lib/openat-safer.c: Likewise.
45867         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45868         * lib/fcntl-safer.h (openat_safer): Declare.
45869         * lib/fcntl--.h (openat): Override.
45870         * MODULES.html.sh (File descriptor based I/O): Mention it.
45871         * lib/openat.h: Add double-inclusion guards.
45872         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45873         "fcntl--.h", so we can implement openat.
45874         * modules/openat-safer-tests: New test.
45875         * tests/test-openat-safer.c: New file.
45876
45877         dirent-safer: new module
45878         * modules/dirent-safer: New file.
45879         * lib/dirent--.h: Likewise.
45880         * lib/dirent-safer.h: Likewise.
45881         * lib/opendir-safer.c: Likewise.
45882         * m4/dirent-safer.m4: Likewise.
45883         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45884         * modules/dirent-safer-tests: New test.
45885         * tests/test-dirent-safer.c: New file.
45886         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45887
45888         fdopendir: optimize on mingw
45889         * lib/unistd.in.h (_gl_directory_name): New prototype.
45890         * lib/fchdir.c (_gl_directory_name): Implement it.
45891         (fchdir): Use it to simplify implementation.
45892         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45893         fchdir, when available, to avoid calling [f]chdir().
45894
45895         fdopendir: split into its own module
45896         * lib/openat.c (fdopendir): Move...
45897         * lib/fdopendir.c: ...into new file.
45898         * modules/fdopendir: New module.
45899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45900         * modules/openat (Depends-on): Add fdopendir.
45901         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45902         fdopendir here.
45903         * modules/savedir (Depends-on): Only need fdopendir, not full
45904         openat.
45905         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45906         * lib/openat.h (fdopendir): Drop prototype.
45907         * lib/dirent.in.h (fdopendir): Provide prototype.
45908         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45909         * modules/dirent (Makefile.am): Substitute them.
45910         * MODULES.html.sh (File system functions): Mention it.
45911         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45912         * modules/fdopendir-tests: New file.
45913         * tests/test-fdopendir.c: Likewise.
45914
45915         fchdir: use more consistent macro convention
45916         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45917         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45918         REPLACE_FCHDIR, rather than relying on config.h macros.
45919         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45920         inside a single make-time REPLACE_FCHDIR block, rather than using
45921         the config.h FCHDIR_REPLACEMENT.
45922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45923         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45924         Manage fstat replacement.
45925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45926         REPLACE_FCHDIR.
45927         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45928         (Makefile.am): Substitute REPLACE_FCHDIR.
45929         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45930         FCHDIR_REPLACEMENT.
45931         * lib/dup-safer.c (dup_safer): Likewise.
45932         * lib/dup2.c (rpl_dup2): Likewise.
45933         * lib/dup3.c (rpl_dup3): Likewise.
45934         * lib/open.c (rpl_open): Likewise.
45935
45936         fchdir: simplify error handling, and support dup3
45937         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45938         stdbool, malloc-posix, realloc-posix.
45939         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45940         (ensure_dirs_slot): Return false on allocation failure.
45941         (rpl_dup2): Delete.
45942         (_gl_register_dup): New function.
45943         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45944         (_gl_register_fd): Close fd on allocation failure.
45945         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45946         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45947         prototype.
45948         (rpl_dup2_fchdir): Delete prototype.
45949         * lib/open.c (open): Update caller.
45950         * lib/dup2.c (dup2): Track fchdir metadata.
45951         * lib/dup3.c (dup3): Likewise.
45952         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45954
45955 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45956
45957         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45958         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45959         don't pass arguments to AC_OUTPUT.
45960
45961 2009-09-02  Bruno Haible  <bruno@clisp.org>
45962
45963         * modules/mkdtemp (License): Relicense under LGPLv2+.
45964         Reported by Paolo Bonzini.
45965
45966 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45967
45968         Replace uses of obsolete autoconf macros in Jim's modules.
45969         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45970         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45971         can evoke a warning from autoconf when run with -Wobsolete
45972         enabled.  They were declared obsolete for good reasons (see
45973         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45974         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45975         should not continue using the deprecated macros.
45976         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45977         obsolete Autoconf macros with modern counterparts.
45978         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45979         * m4/dos.m4 (gl_AC_DOS): Likewise.
45980         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45981         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45982         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45983         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45984         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45985         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45986         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45987         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45988         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45989         Likewise.
45990         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45991         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45992         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45993         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45994         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45995         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45996
45997 2009-09-01  Eric Blake  <ebb9@byu.net>
45998
45999         fchdir: fix off-by-one bug in previous patch
46000         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46001         (_gl_unregister_fd): Delete useless if.
46002
46003 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46004
46005         maint.mk: sort the list of syntax-check rules
46006         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46007         easier to get a sense of progress when the rules are run sequentially
46008         and take a long time.
46009
46010 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46011
46012         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46013         * modules/netinet_in: Likewise.
46014         * modules/sys_file: Likewise.
46015         * modules/sys_ioctl: Likewise.
46016         * modules/sys_select: Likewise.
46017         * modules/sys_socket: Likewise.
46018         * modules/sys_stat: Likewise.
46019         * modules/sys_time: Likewise.
46020         * modules/sys_times: Likewise.
46021         * modules/sys_utsname: Likewise.
46022         * modules/sys_wait: Likewise.
46023
46024 2009-09-01  Jim Meyering  <meyering@redhat.com>
46025
46026         fts: help ensure that return values are not ignored
46027         * lib/fts_.h (__GNUC_PREREQ): Define.
46028         (__attribute_warn_unused_result__): Define.
46029         (fts_children, fts_close, fts_open, fts_read): Declare with
46030         __attribute_warn_unused_result__.
46031
46032         fts: fts_close now fails also when closing a dir file descriptor fails
46033         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46034         and propagate to caller, along with errno.
46035
46036         announce-gen: correct formatting in --help output
46037         * build-aux/announce-gen (usage): Move the one-line description in
46038         --help output "up", to where it belongs, just after Usage:.
46039
46040 2009-08-31  Eric Blake  <ebb9@byu.net>
46041
46042         fchdir: port to mingw
46043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46044         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46045         opened, then use a substitute.
46046         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46047         replacement.
46048         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46049         (_gl_register_fd): No need to check stat if open already filters
46050         all directories.
46051         (fchdir): Fix error condition to match POSIX.
46052         * modules/fchdir (Depends-on): Add sys_stat.
46053         * doc/posix-functions/open.texi (open): Document the limitation.
46054         * modules/fchdir-tests: New file.
46055         * tests/test-fchdir.c: Likewise.
46056
46057         canonicalize: allow cross-testing from cygwin to mingw
46058         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46059         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46060         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46061         Likewise.
46062         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46063         target does not support symlinks.
46064         * tests/test-canonicalize-lgpl.sh: Likewise.
46065
46066         chown: avoid compilation warning on mingw
46067         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46068         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46069         mingw.
46070         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46071         * modules/chown (Depends-on): Add errno.
46072
46073 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46074
46075         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46076         command.
46077
46078 2009-08-31  Jim Meyering  <meyering@redhat.com>
46079
46080         canonicalize: remove useless initialization
46081         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46082         initialization of local, "end".
46083
46084 2009-08-30  Bruno Haible  <bruno@clisp.org>
46085
46086         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46087         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46088         ENOSYS.
46089
46090 2009-08-30  Bruno Haible  <bruno@clisp.org>
46091
46092         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46093         /usr/xpg4/bin/tr when it exists.
46094         * tests/test-pipe-filter-gi1.sh: Likewise.
46095
46096 2009-08-30  Bruno Haible  <bruno@clisp.org>
46097
46098         Work around deficient /usr/bin/id program on Solaris.
46099         * tests/test-file-has-acl.sh (ID): New variable.
46100         * tests/test-set-mode-acl.sh (ID): Likewise.
46101         * tests/test-copy-acl.sh (ID): Likewise.
46102         * tests/test-copy-file.sh (ID): Likewise.
46103
46104 2009-08-30  Bruno Haible  <bruno@clisp.org>
46105
46106         New module 'xstriconveh'.
46107         * lib/xstriconveh.h: New file.
46108         * lib/xstriconveh.c: New file.
46109         * modules/xstriconveh: New file.
46110
46111 2009-08-30  Bruno Haible  <bruno@clisp.org>
46112
46113         Make it easier to use mem_cd_iconveh.
46114         * lib/striconveh.h (iconveh_t): New type.
46115         (iconveh_open, iconveh_close): New declarations.
46116         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46117         with a single 'const iconveh_t *' argument.
46118         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46119         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46120         with a single 'const iconveh_t *' argument.
46121         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46122         * tests/test-striconveh.c (main): Update.
46123         * NEWS: Mention the change.
46124
46125 2009-08-30  Bruno Haible  <bruno@clisp.org>
46126
46127         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46128         problem.
46129
46130 2009-08-30  Bruno Haible  <bruno@clisp.org>
46131
46132         Work around iconv_open problem on Solaris.
46133         * lib/iconv_open-solaris.gperf: New file.
46134         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46135         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46136         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46137         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46138         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46139         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46140
46141 2009-08-29  Jim Meyering  <meyering@redhat.com>
46142
46143         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46144         * top/maint.mk (cvs-check): Remove target; it was just an alias
46145         to the better-named vc-diff-check.
46146         (maintainer-distcheck): Remove rule.  It was used only from
46147         the (alpha/beta/major) target, and all of its commands but one
46148         were coreutils-specific.
46149         (vc-dist): Remove rule.
46150         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46151         Run vc-diff-check, not vc-dist.
46152         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46153
46154 2009-08-27  Bruno Haible  <bruno@clisp.org>
46155
46156         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46157         of 0.
46158
46159 2009-08-27  Bruno Haible  <bruno@clisp.org>
46160
46161         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46162         compilers.
46163         * doc/func.texi: Document the SunPRO C bug.
46164
46165 2009-08-27  Bruno Haible  <bruno@clisp.org>
46166
46167         Fix link error on Solaris.
46168         * tests/test-parse-duration.c (xstrdup): Remove function.
46169
46170 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46171
46172         ignore-value: handle pointer types, too
46173         * lib/ignore-value.h (__attribute__): Remove definition.
46174         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46175         of a more concise and more-often effective "(void) i" statement.
46176         (ignore_ptr): New function to suppress warnings from functions that
46177         return pointers, and to make it explicit that one function doesn't
46178         handle all cases.
46179
46180 2009-08-25  Bruno Haible  <bruno@clisp.org>
46181
46182         dup2: work around a Linux bug.
46183         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46184         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46185         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46186         Reported by Simon Josefsson.
46187
46188 2009-08-25  Jim Meyering  <meyering@redhat.com>
46189
46190         libguestfs uses gnulib
46191         * users.txt: Add libguestfs.
46192
46193 2009-08-24  Eric Blake  <ebb9@byu.net>
46194
46195         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46196         * lib/pipe2.c (includes): Add binary-io.h.
46197         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46198
46199 2009-08-24  Bruno Haible  <bruno@clisp.org>
46200
46201         Tolerate declared but missing accept4 syscall.
46202         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46203         available.
46204         * lib/sys_socket.in.h (accept4): If the function is already present,
46205         override it.
46206         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46207         * modules/accept4 (Makefile.am): Compile accept4.c always.
46208         Reported by Paolo Bonzini and Eric Blake.
46209
46210 2009-08-23  Bruno Haible  <bruno@clisp.org>
46211
46212         New module 'accept4'.
46213         * lib/sys_socket.in.h (accept4): New declaration.
46214         * lib/accept4.c: New file.
46215         * m4/accept4.m4: New file.
46216         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46217         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46218         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46219         HAVE_ACCEPT4.
46220         * modules/accept4: New file.
46221         * doc/glibc-functions/accept4.texi: Mention the new module.
46222
46223 2009-08-24  Jim Meyering  <meyering@redhat.com>
46224
46225         progname: also set global program_invocation_name, when possible
46226         Before this change, a libtool-enabled program that calls glibc's
46227         error function would report the program name as
46228         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46229         * modules/progname (configure.ac): Check for a declaration of
46230         program_invocation_name.
46231         * lib/progname.c:  Include <errno.h>.
46232         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46233         Set program_invocation_name.
46234
46235 2009-08-23  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/dup3.c: Include <string.h>.
46238
46239 2009-08-23  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46242         * lib/pipe2.c (pipe2): Likewise.
46243         Suggested by Eric Blake.
46244
46245 2009-08-23  Bruno Haible  <bruno@clisp.org>
46246
46247         Tolerate declared but missing dup3 syscall.
46248         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46249         * lib/unistd.in.h (dup3): If the function is already present,
46250         override it.
46251         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46252         * modules/dup3 (Makefile.am): Compile dup3.c always.
46253         Reported by Paolo Bonzini.
46254
46255 2009-08-23  Bruno Haible  <bruno@clisp.org>
46256
46257         Tolerate declared but missing pipe2 syscall.
46258         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46259         available.
46260         * lib/unistd.in.h (pipe2): If the function is already present,
46261         override it.
46262         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46263         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46264         Reported by Paolo Bonzini.
46265
46266 2009-08-23  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/pipe2.c (pipe2): Move #ifs inside function.
46269
46270 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46271
46272         quotearg: document limitations of quote_these_too
46273         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46274         those limitations are created.
46275         * lib/quotearg.h (set_char_quoting): Document that digits and
46276         letters that are special after backslash are not permitted.
46277         (quotearg_char): Cross-reference set_char_quoting documentation.
46278
46279 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46280
46281         quotearg: implement custom_quoting_style
46282         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46283         right_quote fields.
46284         (set_custom_quoting): New public function.
46285         (quotearg_buffer_restyled): Add left_quote and right_quote
46286         arguments, handle them very much like locale quoting, and update
46287         all uses.
46288         (quotearg_n_custom): New public function.
46289         (quotearg_n_custom_mem): New public function.
46290         (quotearg_custom): New public function.
46291         (quotearg_custom_mem): New public function.
46292         * lib/quotearg.h: Prototype and document new public functions.
46293         (enum quoting_style): For escape_quoting_style and
46294         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46295         ignored even though they're otherwise like c_quoting_style.
46296         Add custom_quoting_style member and document with comparison to
46297         clocale_quoting_style.
46298         * tests/test-quotearg.c (custom_quotes): New array.
46299         (custom_results): New array.
46300         (main): Extend to test custom quoting.
46301
46302 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46303
46304         quotearg: fix right quote escaping when it's in quote_these_too
46305         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46306         quote, be sure to prepend only one backslash.
46307         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46308         (main): Test it.
46309
46310 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46311
46312         quotearg-tests: test escaping of embedded locale quotes
46313         * tests/test-quotearg.c (struct result_strings): Add member for
46314         new input.
46315         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46316         (inputs): Add new input.
46317         (results_g): Add expected results.
46318         (flag_results): Likewise.
46319         (locale_results): Likewise.
46320         (compare_strings): Check those.
46321
46322 2009-08-23  Bruno Haible  <bruno@clisp.org>
46323
46324         Tests for module 'dup3'.
46325         * modules/dup3-tests: New file.
46326         * tests/test-dup3.c: New file.
46327
46328         New module 'dup3'.
46329         * lib/unistd.in.h (dup3): New declaration.
46330         * lib/dup3.c: New file.
46331         * m4/dup3.m4: New file.
46332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46333         HAVE_DUP3.
46334         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46335         * modules/dup3: New file.
46336         * doc/glibc-functions/dup3.texi: Mention the new module.
46337
46338 2009-08-23  Bruno Haible  <bruno@clisp.org>
46339
46340         Tweak the dup2 test.
46341         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46342         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46343         the test file is still empty. Fix argument order of lseek.
46344
46345 2009-08-23  Bruno Haible  <bruno@clisp.org>
46346
46347         Avoid test link errors when the modules getopt-gnu, gettext are used.
46348         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46350
46351 2009-08-23  Bruno Haible  <bruno@clisp.org>
46352
46353         Fix getdtablesize() on mingw.
46354         * lib/getdtablesize.c (getdtablesize): Implement differently.
46355         * lib/unistd.in.h (getdtablesize): Improve comment.
46356
46357 2009-08-23  Bruno Haible  <bruno@clisp.org>
46358
46359         New module 'mkostemp'.
46360         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46361         * lib/stdlib.in.h (mksotemp): New declaration.
46362         * lib/mkostemp.c: New file, from glibc with modifications.
46363         * lib/tempname.h (GT_FILE): Remove outdated comment.
46364         (gen_tempname): Add flags argument.
46365         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46366         (__GT_FILE): Map to 1.
46367         (small_open, large_open): Remove macros.
46368         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46369         * lib/mkstemp.c (mkstemp): Update.
46370         * lib/mkdtemp.c (mkdtemp): Likewise.
46371         * m4/mkostemp.m4: New file.
46372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46373         HAVE_MKOSTEMP.
46374         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46375         HAVE_MKOSTEMP.
46376         * modules/mkostemp: New file, based on modules/mkstemp.
46377         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46378         * NEWS: Mention the change.
46379
46380 2009-08-23  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46383         Reported by Eric Blake.
46384
46385 2009-08-23  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46388         Reported by Eric Blake.
46389
46390 2009-08-23  Bruno Haible  <bruno@clisp.org>
46391
46392         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46393         * modules/pipe2 (Depends-on): Likewise.
46394
46395 2009-08-23  Eric Blake  <ebb9@byu.net>
46396
46397         fcntl-h: add O_TTY_INIT support
46398         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46399         * tests/test-fcntl-h.c (o): Test it.
46400         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46401
46402         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46403         * modules/fcntl: Move <fcntl.h> header replacement...
46404         * modules/fcntl-h: ...to new name, so as not to collide with
46405         like-named function.
46406         * tests/test-fcntl.c: Rename...
46407         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46408         * modules/fcntl-tests: Rename...
46409         * modules/fcntl-h-tests: ...to this.  Update test file name.
46410         * modules/chdir-long (Depends-on): Update clients.
46411         * modules/chdir-safer (Depends-on): Likewise.
46412         * modules/fcntl-safer (Depends-on): Likewise.
46413         * modules/fts (Depends-on): Likewise.
46414         * modules/mkancesdirs (Depends-on): Likewise.
46415         * modules/mkdir-p (Depends-on): Likewise.
46416         * modules/open (Depends-on): Likewise.
46417         * modules/savewd (Depends-on): Likewise.
46418         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46419         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46420
46421 2009-08-22  Bruno Haible  <bruno@clisp.org>
46422
46423         * modules/binary-io (License): Relicense under LGPL.
46424         * modules/pipe2 (License): Likewise.
46425
46426 2009-08-22  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46429         return value.
46430         * lib/pipe-filter-gi.c (filter_init): Likewise.
46431         Reported by Eric Blake.
46432
46433 2009-08-22  Bruno Haible  <bruno@clisp.org>
46434
46435         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46436         * modules/pipe (Depends-on): Add pipe2.
46437
46438 2009-08-22  Bruno Haible  <bruno@clisp.org>
46439
46440         Tests for module 'pipe2'.
46441         * modules/pipe2-tests: New file.
46442         * tests/test-pipe2.c: New file.
46443
46444         New module 'pipe2'.
46445         * lib/unistd.in.h (pipe2): New declaration.
46446         * lib/pipe2.c: New file.
46447         * m4/pipe2.m4: New file.
46448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46449         HAVE_PIPE2.
46450         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46451         * modules/pipe2: New file.
46452         * doc/glibc-functions/pipe2.texi: Mention the new module.
46453
46454 2009-08-22  Bruno Haible  <bruno@clisp.org>
46455
46456         Reference some new glibc functions.
46457         * doc/glibc-functions/accept4.texi: New file.
46458         * doc/glibc-functions/dup3.texi: New file.
46459         * doc/glibc-functions/mkostemp.texi: New file.
46460         * doc/glibc-functions/pipe2.texi: New file.
46461         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46462         (Glibc sys/socket.h): Refer to accept4.
46463         (Glibc unistd.h): Refer to dup3, pipe2.
46464         Reported by Eric Blake.
46465
46466 2009-08-22  Jim Meyering  <meyering@redhat.com>
46467             Bruno Haible  <bruno@clisp.org>
46468
46469         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46470         This makes it so packages using automake-1.11's silent-rules option
46471         can print e.g., a single "GEN    configmake.h" line, rather than
46472         the 30+ statements that perform the job.  If you want to see the
46473         actual commands, you can still run "make V=1".
46474         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46475         so that make output is abbreviated when those variables are defined
46476         appropriately.
46477         * modules/argz: Likewise.
46478         * modules/arpa_inet: Likewise.
46479         * modules/byteswap: Likewise.
46480         * modules/configmake: Likewise.
46481         * modules/dirent: Likewise.
46482         * modules/errno: Likewise.
46483         * modules/fcntl: Likewise.
46484         * modules/float: Likewise.
46485         * modules/fnmatch: Likewise.
46486         * modules/getopt-posix: Likewise.
46487         * modules/glob: Likewise.
46488         * modules/iconv_open: Likewise.
46489         * modules/inttypes: Likewise.
46490         * modules/localcharset: Likewise.
46491         * modules/locale: Likewise.
46492         * modules/math: Likewise.
46493         * modules/netdb: Likewise.
46494         * modules/netinet_in: Likewise.
46495         * modules/poll: Likewise.
46496         * modules/posix_spawnp-tests: Likewise.
46497         * modules/sched: Likewise.
46498         * modules/search: Likewise.
46499         * modules/selinux-h: Likewise.
46500         * modules/signal: Likewise.
46501         * modules/spawn: Likewise.
46502         * modules/stdarg: Likewise.
46503         * modules/stdbool: Likewise.
46504         * modules/stddef: Likewise.
46505         * modules/stdint: Likewise.
46506         * modules/stdio: Likewise.
46507         * modules/stdlib: Likewise.
46508         * modules/string: Likewise.
46509         * modules/strings: Likewise.
46510         * modules/sys_file: Likewise.
46511         * modules/sys_ioctl: Likewise.
46512         * modules/sys_select: Likewise.
46513         * modules/sys_socket: Likewise.
46514         * modules/sys_stat: Likewise.
46515         * modules/sys_time: Likewise.
46516         * modules/sys_times: Likewise.
46517         * modules/sys_utsname: Likewise.
46518         * modules/sys_wait: Likewise.
46519         * modules/sysexits: Likewise.
46520         * modules/time: Likewise.
46521         * modules/unistd: Likewise.
46522         * modules/wchar: Likewise.
46523         * modules/wctype: Likewise.
46524
46525 2009-08-22  Jim Meyering  <meyering@redhat.com>
46526
46527         announce-gen: detect write failure
46528         * build-aux/announce-gen: Add Coda at end.
46529         Remove equivalent-but-more-verbose block at top.
46530
46531 2009-08-19  Akim Demaille  <demaille@gostai.com>
46532
46533         bootstrap: --help to stdout.
46534         * bootstrap (usage): Don't send --help to stderr.
46535         Use a here doc instead of a long string.
46536
46537 2009-08-21  Eric Blake  <ebb9@byu.net>
46538
46539         test-popen-safer: split from test-popen
46540         * tests/test-popen.c (main): Move...
46541         * tests/test-popen.h: ...into new file.
46542         * tests/test-popen-safer2.c: New file.
46543         * modules/popen-tests (Files): Add test-popen.h.
46544         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46545         Suggested by Bruno Haible.
46546
46547         test-fcntl-safer: split from test-open
46548         * tests/test-open.c (main): Move...
46549         * tests/test-open.h: ...into new file.
46550         * tests/test-fcntl-safer.c: New file.
46551         * modules/open-tests (Files): Add test-open.h.
46552         * modules/fcntl-safer-tests: New file.
46553         Suggested by Bruno Haible.
46554
46555         test-fopen-safer: split from test-fopen
46556         * tests/test-fopen.c (main): Move...
46557         * tests/test-fopen.h: ...into new file.
46558         * tests/test-fopen-safer.c: New file.
46559         * modules/fopen-tests (Files): Add test-fopen.h.
46560         * modules/fopen-safer-tests: New file.
46561         Suggested by Bruno Haible.
46562
46563 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46564
46565         popen-safer: test O_CLOEXEC at run-time.
46566         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46567
46568 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46569
46570         fcntl: move more flags to the header
46571         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46572         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46573         * lib/fcntl.in.h: Do both things here.
46574
46575 2009-08-21  Jim Meyering  <meyering@redhat.com>
46576
46577         consistently remove $@-t before redirecting to it
46578         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46579         * modules/alloca-opt: Likewise.
46580         * modules/byteswap: Likewise.
46581         * modules/fnmatch: Likewise.
46582         * modules/getopt-posix: Likewise.
46583         * modules/glob: Likewise.
46584         * modules/poll: Likewise.
46585         * modules/posix_spawnp-tests: Likewise.
46586         * modules/sys_socket: Likewise.
46587         * modules/sysexits: Likewise.
46588
46589 2009-08-21  Eric Blake  <ebb9@byu.net>
46590
46591         popen: simplify access to original popen
46592         * lib/popen.c (rpl_popen): No need to worry about popen being a
46593         macro.
46594         Reported by Bruno Haible.
46595
46596 2009-08-20  Eric Blake  <ebb9@byu.net>
46597
46598         build: avoid some compiler warnings
46599         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46600         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46601         type.
46602         (new_exclude_segment, excluded_file_pattern_p)
46603         (excluded_file_name_p): Reduce scope.
46604         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46605         old-style declaration.
46606
46607 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46608
46609         * tests/test-exclude1.sh: Handle Windows EOL.
46610         * tests/test-exclude2.sh: Likewise.
46611         * tests/test-exclude3.sh: Likewise.
46612         * tests/test-exclude4.sh: Likewise.
46613         * tests/test-exclude5.sh: Likewise.
46614         * tests/test-exclude6.sh: Likewise.
46615         * tests/test-exclude7.sh: Likewise.
46616
46617 2009-08-19  Akim Demaille  <demaille@gostai.com>
46618
46619         bootstrap: find sha1sum when named gsha1sum.
46620         * bootstrap (find_tool): New.
46621         ($SHA1SUM): New.
46622         Use it.
46623
46624 2009-08-20  Jim Meyering  <meyering@redhat.com>
46625
46626         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46627         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46628         expression that converts "." in a file name to "\." in the resulting
46629         regexp.  Start with a dummy statement, so that prior shell variable
46630         definitions are expanded portably.  Reported by Simon Josefsson.
46631
46632 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46633
46634         Fix polling for writeability of a screen buffer.
46635         * lib/poll.c: Distinguish input and screen buffers for the
46636         Win32 implementation.
46637         * lib/select.c: Likewise.
46638
46639 2009-08-19  Eric Blake  <ebb9@byu.net>
46640
46641         popen-safer: prevent popen from clobbering std descriptors
46642         * modules/popen-safer: New file.
46643         * lib/popen-safer.c: Likewise.
46644         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46645         * lib/stdio--.h (popen): Provide override.
46646         * lib/stdio-safer.h (popen_safer): Provide declaration.
46647         * tests/test-popen.c (includes): Partially test this.
46648         * modules/popen-safer-tests: New file, for more tests.
46649         * tests/test-popen-safer.c: Likewise.
46650         * MODULES.html.sh (file stream based Input/Output): Mention it.
46651
46652         tests: test some of the *-safer modules
46653         * modules/fopen-safer (Depends-on): Add fopen.
46654         * modules/fcntl-safer (Depends-on): Add fcntl.
46655         * modules/stdlib-safer (Depends-on): Add stdlib.
46656         (configure.ac): Set indicator.
46657         * modules/unistd-safer (configure.ac): Likewise.
46658         * modules/tmpfile-safer (configure.ac): Likewise.
46659         (Depends-on): Add tmpfile.
46660         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46661         active.
46662         * tests/test-fopen.c (includes): Test safer versions when they are
46663         in use.
46664         * tests/test-open.c (includes): Likewise.
46665
46666         popen: fix cygwin 1.5 bug when stdin closed
46667         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46668         * modules/popen: New file.
46669         * modules/popen-tests: Likewise.
46670         * tests/test-popen.c: Likewise.
46671         * m4/popen.m4: Likewise.
46672         * lib/popen.c: Likewise.
46673         * lib/stdio.in.h (popen): New declaration.
46674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46675         * modules/stdio (Makefile.am): Likewise.
46676         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46677
46678 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46679
46680         maint.mk: give full control over update-copyright exclusions
46681         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46682         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46683         (update-copyright): Don't force inclusion of top-level
46684         ChangeLog.  Don't force exclusion of all COPYING files, but make
46685         them the default exclusion instead.
46686
46687 2009-08-16  Bruno Haible  <bruno@clisp.org>
46688
46689         Fix test failures on Solaris 10.
46690         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46691         tests when Solaris iconv() is used.
46692         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46693         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46694         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46695         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46696         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46697
46698 2009-08-16  Bruno Haible  <bruno@clisp.org>
46699
46700         Fix test failures on Solaris 10.
46701         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46702         'tr' program and pass it as first argument.
46703         * tests/test-pipe-filter-gi1.sh: Likewise.
46704         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46705         program as first argument.
46706         * tests/test-pipe-filter-gi1.c (main): Likewise.
46707
46708 2009-08-16  Eric Blake  <ebb9@byu.net>
46709
46710         fpurge: fix previous commits
46711         * modules/fpurge (Makefile.am): Make replacement conditional,
46712         partially reverting 2007-04-29 change; missed in previous
46713         attempt.
46714         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46715         is missing.
46716
46717 2009-08-16  Bruno Haible  <bruno@clisp.org>
46718
46719         Clarify fpurge's effect on the file position.
46720         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46721         * tests/test-fpurge.c (main): Make a second pass for checking the file
46722         position.
46723
46724 2009-08-16  Bruno Haible  <bruno@clisp.org>
46725
46726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46727         declaration of fpurge is missing.
46728         * tests/test-fpurge.c (main): Check that the file has not more contents
46729         than expected. Close the file before removing it.
46730
46731 2009-08-15  Eric Blake  <ebb9@byu.net>
46732
46733         fpurge: don't wrap working cygwin implementation
46734         * lib/fpurge.c (fpurge): Fix comment typo.
46735         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46736         1.7 to avoid replacement.
46737         * tests/test-fpurge.c (main): Enhance test.
46738
46739 2009-08-15  Eric Blake  <ebb9@byu.net>
46740         and Jim Meyering  <meyering@redhat.com>
46741
46742         test-update-copyright: skip if perl is insufficient
46743         * tests/test-update-copyright.sh: Failure to run maintainer tool
46744         should not cause testsuite failure on cygwin 1.5.
46745
46746 2009-08-14  Eric Blake  <ebb9@byu.net>
46747
46748         doc: mention more functions added in cygwin 1.7.0
46749         * doc/posix-headers/limits.texi (limits.h): Update for recent
46750         cygwin additions.
46751         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46752         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46753         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46754         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46755         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46756
46757 2009-08-14  Eric Blake  <ebb9@byu.net>
46758
46759         maint.mk: simplify update-copyright rule
46760         * top/maint.mk (update-copyright-local): Delete, and document how
46761         to do it in cfg.mk instead.
46762         (update-copyright-exclude-regexp): Delete, and document how to do
46763         it in .x-update-copyright instead.
46764         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46765         exclude ChangeLog.
46766
46767 2009-08-14  Bruno Haible  <bruno@clisp.org>
46768
46769         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46770
46771 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46772
46773         maint.mk: support update-copyright-env
46774         * top/maint.mk (update-copyright-env): Define place-holder.
46775         (update-copyright): Expand $(update-copyright-env) before
46776         invoking update-copyright.
46777
46778 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46779
46780         update-copyright: implement forced reformatting
46781         * build-aux/update-copyright: Implement and document
46782         UPDATE_COPYRIGHT_FORCE.
46783         * tests/test-update-copyright.sh: Test it.
46784
46785 2009-08-14  Eric Blake  <ebb9@byu.net>
46786         and Bruno Haible  <bruno@clisp.org>
46787
46788         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46789         * tests/test-locale.c: Revert previous patch related to NULL.
46790         * tests/test-stdio.c: Likewise.
46791         * tests/test-stdlib.c: Likewise.
46792         * tests/test-string.c: Likewise.
46793         * tests/test-unistd.c: Likewise.
46794         * modules/time-tests (Depends-on): Add verify.
46795         * modules/wchar-tests (Depends-on): Likewise.
46796         * tests/test-time.c: Test for NULL compliance.
46797         * tests/test-wchar.c: Likewise.
46798         * modules/locale (Depends-on): Add stddef.
46799         * modules/stdio (Depends-on): Likewise.
46800         * modules/stdlib (Depends-on): Likewise.
46801         * modules/string (Depends-on): Likewise.
46802         * modules/time (Depends-on): Likewise.
46803         * modules/unistd (Depends-on): Likewise.
46804         * modules/wchar (Depends-on): Likewise.
46805         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46806         * lib/stdlib.in.h (includes): Likewise.
46807         * lib/string.in.h (includes): Likewise.
46808         * lib/time.in.h (includes): Likewise.
46809         * lib/unistd.in.h (includes): Likewise.
46810         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46811         replaced.
46812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46813         * m4/stddef_h.m4: New file.
46814         * modules/stddef: Likewise.
46815         * lib/stddef.in.h: Likewise.
46816         * modules/stddef-tests: Likewise.
46817         * tests/test-stddef.c: Likewise.
46818         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46819         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46820         * doc/posix-headers/locale.texi (locale.h): Likewise.
46821         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46822         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46823         * doc/posix-headers/string.texi (string.h): Likewise.
46824         * doc/posix-headers/time.texi (time.h): Likewise.
46825         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46826         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46827
46828 2009-08-14  Eric Blake  <ebb9@byu.net>
46829
46830         doc: improve git diff of texinfo files
46831         * .gitattributes: Add rule for *.texi files, with hint on how to
46832         use it.
46833         Copied from m4, and based on a report by Bruno Haible.
46834
46835 2009-08-14  Bruno Haible  <bruno@clisp.org>
46836
46837         Disable multithread support by default on Cygwin 1.5.x for real.
46838         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46839
46840 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46841
46842         update-copyright: much ado about intervals
46843         * build-aux/update-copyright: Implement and document
46844         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46845         of copyright year intervals.
46846         Also, document UPDATE_COPYRIGHT_YEAR.
46847         * tests/test-update-copyright.sh: Test it.
46848
46849         update-copyright: convert 2-digit to 4-digit years
46850         * build-aux/update-copyright: Implement and document.
46851         * tests/test-update-copyright.sh: Update.
46852
46853 2009-08-14  Jim Meyering  <meyering@redhat.com>
46854
46855         test-exclude: avoid coreutils "make check" failure
46856         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46857         just as in test-argmatch.c.
46858
46859 2009-08-13  Eric Blake  <ebb9@byu.net>
46860
46861         test-dup2: fix bad assumption
46862         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46863         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46864
46865         test-version-etc: fix CRLF portability issue
46866         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46867         recognize \r.
46868         * tests/test-argp-version-etc-1.sh: Likewise.
46869
46870         getopt: update client modules
46871         * modules/argp (Depends-on): Use getopt-gnu.
46872         * modules/git-merge-changelog (Depends-on): Likewise.
46873         * modules/long-options (Depends-on): Likewise.
46874         * modules/xstrtol (Depends-on): Likewise.
46875
46876 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46877
46878         * tests/test-version-etc.sh: Don't fail on different
46879         project/version.  Don't fail on CRLF differences.  Rewrite to use
46880         multiple -e instead of multiple sed forks, suggested by Eric Blake
46881         <ebb9@byu.net>.
46882         * tests/test-argp-version-etc-1.sh: Likewise.
46883
46884 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46885
46886         * tests/test-version-etc.sh: Don't fail on different
46887         project/version.
46888
46889 2009-08-12  Bruno Haible  <bruno@clisp.org>
46890
46891         Tests for modules 'getopt-posix', 'getopt-gnu'.
46892         * modules/getopt-posix-tests: New file.
46893         * tests/test-getopt.c: New file.
46894         * tests/test-getopt.h: New file.
46895         * tests/test-getopt_long.h: New file.
46896
46897         New modules 'getopt-posix', 'getopt-gnu'.
46898         * modules/getopt-gnu: New file, renamed from modules/getopt.
46899         * modules/getopt-posix: New file.
46900         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46901         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46902         (gl_GETOPT): Remove macro.
46903         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46904         Disable the test against BSD systems that declare optreset. Test
46905         against mingw bug. Test against lack of support of optional arguments
46906         on many platforms.
46907         * doc/glibc-headers/getopt.texi: Update module name and list of
46908         relevant platforms.
46909         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46910         'getopt-gnu' and more portability problems.
46911         * NEWS: Mention the changes.
46912
46913 2009-08-12  Bruno Haible  <bruno@clisp.org>
46914
46915         Ensure that optarg etc. get declared by <unistd.h>.
46916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46917         AC_USE_SYSTEM_EXTENSIONS.
46918         * modules/getopt (Depends-on): Add 'extensions'.
46919
46920 2009-08-12  Bruno Haible  <bruno@clisp.org>
46921
46922         Avoid test link errors.
46923         * modules/pipe-filter-ii-tests (Makefile.am): Define
46924         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46925         * modules/pipe-filter-gi-tests (Makefile.am): Define
46926         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46928
46929 2009-08-12  Bruno Haible  <bruno@clisp.org>
46930
46931         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46932         gl_GETOPT_SUBSTITUTE before.
46933         (gl_GETOPT): Use it.
46934         * m4/argp.m4 (gl_ARGP): Update.
46935         Reported by Sergey Poznyakoff.
46936
46937         * m4/getopt.m4: Reorder macros.
46938         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46939         (gl_GETOPT_SUBSTITUTE): Remove macro.
46940
46941 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46942
46943         Minor improvement in gitlog-to-changelog
46944
46945         * build-aux/gitlog-to-changelog: New option `--format' makes
46946         output format string configurable.
46947
46948 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46949
46950         Optimize exclude: use hash tables for non-wildcard patterns.
46951
46952         * lib/exclude.c: Include hash.h and mbuiter.h
46953         (struct exclude_pattern, exclude_segment): New data types.
46954         (struct exclude): Rewrite.
46955         (fnmatch_pattern_has_wildcards): New function.
46956         (new_exclude_segment, free_exclude_segment): New functions.
46957         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46958         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46959         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46960         * modules/exclude: Depend on hash and mbuiter.
46961
46962         * modules/exclude-tests: New file.
46963         * tests/test-exclude.c: New file.
46964         * tests/test-exclude1.sh: New file.
46965         * tests/test-exclude2.sh: New file.
46966         * tests/test-exclude3.sh: New file.
46967         * tests/test-exclude4.sh: New file.
46968         * tests/test-exclude5.sh: New file.
46969         * tests/test-exclude6.sh: New file.
46970         * tests/test-exclude7.sh: New file.
46971
46972 2009-08-12  Bruno Haible  <bruno@clisp.org>
46973
46974         Ensure that getopt() gets declared by <unistd.h>.
46975         * lib/unistd.in.h: Conditionally include getopt.h.
46976         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46977         Set GNULIB_UNISTD_H_GETOPT.
46978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46979         GNULIB_UNISTD_H_GETOPT.
46980         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46981
46982 2009-08-12  Bruno Haible  <bruno@clisp.org>
46983
46984         Clarify logic.
46985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46986         gl_replace_getopt instead of GETOPT_H.
46987
46988 2009-08-12  Bruno Haible  <bruno@clisp.org>
46989
46990         * m4/getopt.m4: Add comments.
46991
46992 2009-08-12  Bruno Haible  <bruno@clisp.org>
46993
46994         Disable multithread support by default on Cygwin 1.5.x.
46995         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46996         set gl_use_threads=no if not specified otherwise.
46997
46998 2009-08-11  Bruno Haible  <bruno@clisp.org>
46999
47000         Avoid compilation error on NetBSD 5.0.
47001         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47002         * tests/test-stdio.c: Likewise.
47003         * tests/test-stdlib.c: Likewise.
47004         * tests/test-string.c: Likewise.
47005         * tests/test-unistd.c: Likewise.
47006         Reported by Greg Troxel <gdt@ir.bbn.com>
47007         at <https://savannah.gnu.org/support/?106973>.
47008
47009 2009-08-11  Bruno Haible  <bruno@clisp.org>
47010
47011         * modules/dup2-tests (Depends-on): Remove close.
47012
47013         Undo 2009-07-19 commit.
47014         * modules/acl-tests (Depends-on): Remove close.
47015         * modules/binary-io-tests (Depends-on): Likewise.
47016         * modules/closein-tests (Depends-on): Likewise.
47017         * modules/flock-tests (Depends-on): Likewise.
47018         * modules/fsync-tests (Depends-on): Likewise.
47019         * modules/lseek-tests (Depends-on): Likewise.
47020         * modules/pipe-tests (Depends-on): Likewise.
47021         * modules/posix_spawn-tests (Depends-on): Likewise.
47022         * modules/posix_spawnp-tests (Depends-on): Likewise.
47023         * modules/stat-time-tests (Depends-on): Likewise.
47024         * modules/yesno-tests (Depends-on): Likewise.
47025
47026 2009-08-10  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47029
47030 2009-08-10  Bruno Haible  <bruno@clisp.org>
47031
47032         Fix a gcc warning.
47033         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47034
47035 2009-08-10  Bruno Haible  <bruno@clisp.org>
47036
47037         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47038         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47039         not only the first time.
47040         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47041         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47042         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47043         is 1, not only the the first time.
47044
47045 2009-08-10  Bruno Haible  <bruno@clisp.org>
47046
47047         Make it possible to use module 'gethostname' without module 'close'.
47048         * lib/unistd.in.h (close): Evoke a link error only if
47049         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47051         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47052         * modules/unistd (Makefile.am): Substitute
47053         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47054         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47055         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47057         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47058         * modules/sys_ioctl (Makefile.am): Substitute
47059         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47060         * modules/socket (configure.ac): On native Windows, set
47061         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47062         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47063         Reported by Sam Steingold <sds@gnu.org>.
47064
47065 2009-08-10  Bruno Haible  <bruno@clisp.org>
47066
47067         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47068         * modules/ioctl (configure.ac): Likewise.
47069
47070 2009-08-10  Bruno Haible  <bruno@clisp.org>
47071
47072         Avoid collision between gnulib wrapper and libintl wrapper.
47073         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47074         already defined in intl/printf.c.
47075         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47076         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47077
47078 2009-08-09  Bruno Haible  <bruno@clisp.org>
47079
47080         Make <sys/select.h> really self-contained, also on Solaris 10.
47081         * lib/sys_select.in.h: Include <string.h>.
47082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47083         Solaris 10 problem.
47084         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47085         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47086         Reported by Jim Meyering.
47087
47088 2009-08-09  Bruno Haible  <bruno@clisp.org>
47089
47090         Avoid warnings from 'aclocal' that are due to a use of macro name
47091         AM_XGETTEXT_OPTION that is not defined in automake.
47092         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47093         automake.
47094         * modules/error (configure.ac): Likewise.
47095         * modules/propername (configure.ac): Likewise.
47096         * modules/vasprintf (configure.ac): Likewise.
47097         * modules/verror (configure.ac): Likewise.
47098         * modules/xprintf (configure.ac): Likewise.
47099         * modules/xvasprintf (configure.ac): Likewise.
47100
47101 2009-08-08  Bruno Haible  <bruno@clisp.org>
47102
47103         Avoid compilation error in C++ mode.
47104         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47105         Reported by Sam Steingold <sds@gnu.org>.
47106
47107 2009-08-08  Bruno Haible  <bruno@clisp.org>
47108
47109         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47110         for the various Unix platforms.
47111         * doc/posix-headers/limits.texi: Update platforms list regarding
47112         HOST_NAME_MAX.
47113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47114
47115 2009-08-07  Jim Meyering  <meyering@redhat.com>
47116
47117         selinux-at: fix typo in a comment
47118         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47119         Spotted by Paolo Bonzini.
47120
47121         selinux-at: remove redundant m4 code, add documentation
47122         * modules/selinux-at (configure.ac): Remove redundant code.
47123         LIB_SELINUX is already set via the dependent module, selinux-h.
47124         (Include): Add quotes around selinux-at.h.
47125         * lib/selinux-at.h: Add documentation.
47126         Reported by Bruno Haible in
47127         http://marc.info/?l=gnulib-bug&m=124958988300749
47128
47129 2009-08-07  Bruno Haible  <bruno@clisp.org>
47130
47131         Avoid link error on MacOS X 10.3 and 10.4.
47132         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47133         on non-ELF systems.
47134         * lib/argp-pv.c (argp_program_version): Likewise.
47135         Reported by Simon Josefsson.
47136
47137 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47138
47139         * tests/test-version-etc.sh: Use $EXEEXT.
47140
47141 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47142
47143         update-copyright: update documentation to point to maint.mk
47144         * build-aux/update-copyright: Here.
47145
47146 2009-08-06  Jim Meyering  <meyering@redhat.com>
47147
47148         maint.mk: support update-copyright-local
47149         * top/maint.mk (update-copyright-local): Define place-holder.
47150         (update-copyright): Depend on $(update-copyright-local).
47151
47152 2009-08-06  Jim Meyering  <meyering@redhat.com>
47153
47154         selinux-at: new module
47155         Initially written for coreutils, this module will soon be
47156         used by findutils, too.
47157         * MODULES.html.sh [Misc]: Add selinux-at.
47158         * lib/selinux-at.h: New file, from coreutils.
47159         * lib/selinux-at.c: Likewise.
47160         * modules/selinux-at: Likewise.
47161         (License): Change from LGPL to GPL, since it depends
47162         on the GPL'd openat module.
47163
47164         doc: update README
47165         * README: Remove references to cogito.
47166         Remove cvs-repo-updating instructions from 2007.
47167         Don't imply that CVS is better if you have limited disk space.
47168
47169 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47170
47171         update-copyright: support C-style comments
47172         * build-aux/update-copyright: Implement and document.
47173         * tests/test-update-copyright.sh: Test.
47174
47175 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47176
47177         update-copyright: support omitted "(C)"
47178         * build-aux/update-copyright: Implement and document.  Also,
47179         allow variable whitespace before "(C)".
47180         * tests/test-update-copyright.sh: Test.
47181
47182 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47183
47184         update-copyright: don't trip on non-FSF copyright statements
47185         * build-aux/update-copyright: Fix so that the first correctly
47186         formatted FSF copyright statement is recognized no matter what
47187         appears before it.  Update documentation.
47188         * tests/test-update-copyright.sh: Test that.
47189
47190 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47191
47192         update-copyright: clean up code a little
47193         * build-aux/update-copyright: Append "_re" to the name of any
47194         variable holding a regular expression.
47195         Replace "old" and "new" with "stmt" in variable names.
47196         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47197         handled correctly.
47198         Format code more consistently.
47199
47200 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47201
47202         update-copyright-tests: improve portability
47203         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47204         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47205
47206 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47207
47208         update-copyright: support @copyright{} and &copy;
47209         * build-aux/update-copyright: Implement and document.
47210         * tests/test-update-copyright.sh: Test.
47211
47212 2009-08-04  Jim Meyering  <meyering@redhat.com>
47213
47214         update-copyright-tests: correctly test EOL=\r\n handling
47215         * tests/test-update-copyright.sh: Put \r at the end of some lines
47216         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47217
47218         maint.mk: make update-copyright exclusion list more configurable
47219         * top/maint.mk (update-copyright): Default to excluding COPYING,
47220         but allow an override, in case someone does want to update that file.
47221
47222         maint.mk: don't update copyright date in COPYING
47223         * top/maint.mk (update-copyright): Exclude COPYING.
47224
47225         maint.mk: add a copyright-updating rule
47226         * top/maint.mk (update-copyright): New rule.
47227         Derived from coreutils/Makefile.am.
47228
47229         update-copyright: rename some variables
47230         * build-aux/update-copyright: Rename a few variables for clarity.
47231         Tweak syntax.  List Joel E. Denny as coauthor.
47232
47233 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47234
47235         update-copyright: fix bug for 2-digit last year and add tests
47236         * build-aux/update-copyright: Fix bug.
47237         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47238         specified.
47239         * modules/update-copyright-tests: New
47240         * tests/test-update-copyright.sh: New.
47241
47242 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47243
47244         update-copyright: handle leading tabs in line prefix
47245         * build-aux/update-copyright: Count leading tabs as 8 spaces
47246         when computing margin.  This helps with the formatting of
47247         ChangeLogs, for example.
47248         Fix documentation a little.
47249
47250 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47251
47252         update-copyright: support EOL=\r\n
47253         * build-aux/update-copyright: Implement that.
47254
47255 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47256
47257         update-copyright: automatically format copyright statements
47258         * build-aux/update-copyright: Implement that.
47259         Also, be a little more predictable and safer by always failing
47260         when the full copyright format is not perfectly recognized as an
47261         unbroken whole.  Discussed at
47262         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47263         Rewrite documentation.
47264
47265 2009-08-03  Bruno Haible  <bruno@clisp.org>
47266
47267         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47268
47269 2009-08-02  Bruno Haible  <bruno@clisp.org>
47270
47271         Tests for module 'uname'.
47272         * modules/uname-tests: New file.
47273         * tests/test-uname.c: New file.
47274
47275         New module 'uname'.
47276         * lib/uname.c: New file.
47277         * m4/uname.m4: New file.
47278         * modules/uname: New file.
47279         * doc/posix-functions/uname.texi: Mention the new module.
47280
47281 2009-08-02  Bruno Haible  <bruno@clisp.org>
47282
47283         Tests for module 'sys_utsname'.
47284         * modules/sys_utsname-tests: New file.
47285         * tests/test-sys_utsname.c: New file.
47286
47287         New module 'sys_utsname'.
47288         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47289         * m4/sys_utsname_h.m4: New file.
47290         * modules/sys_utsname: New file.
47291         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47292
47293 2009-08-02  Bruno Haible  <bruno@clisp.org>
47294
47295         Implicitly initialize the sockets library.
47296         * lib/gethostname.c: Include sockets.h.
47297         (rpl_gethostname): Invoke gl_sockets_startup.
47298         * lib/socket.c: Include sockets.h.
47299         (rpl_socket): Invoke gl_sockets_startup.
47300         * modules/gethostname (Depends-on): Add sockets.
47301         * modules/socket (Depends-on): Likewise.
47302         * tests/test-poll.c: Don't include sockets.h.
47303         (main): Don't invoke gl_sockets_startup.
47304         * tests/test-select.c: Don't include sockets.h.
47305         (main): Don't invoke gl_sockets_startup.
47306
47307 2009-08-02  Bruno Haible  <bruno@clisp.org>
47308
47309         Allow multiple calls to gl_sockets_startup.
47310         * lib/sockets.c (initialized_sockets_version): New variable.
47311         (gl_sockets_startup): Do nothing if already called for this or a higher
47312         version.
47313         (gl_sockets_cleanup): Reset initialized_sockets_version.
47314
47315 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47316
47317         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47318         different project/version.
47319
47320 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47321             Bruno Haible  <bruno@clisp.org>
47322
47323         Tests for module 'pipe-filter-gi'.
47324         * modules/pipe-filter-gi-tests: New file.
47325         * tests/test-pipe-filter-gi1.sh: New file.
47326         * tests/test-pipe-filter-gi1.c: New file.
47327         * tests/test-pipe-filter-gi2.sh: New file.
47328         * tests/test-pipe-filter-gi2-main.c: New file.
47329         * tests/test-pipe-filter-gi2-child.c: New file.
47330
47331         New module 'pipe-filter-gi'.
47332         * lib/pipe-filter-gi.c: New file.
47333         * modules/pipe-filter-gi: New file.
47334
47335 2009-08-02  Bruno Haible  <bruno@clisp.org>
47336             Paolo Bonzini  <bonzini@gnu.org>
47337
47338         Tests for module 'pipe-filter-ii'.
47339         * modules/pipe-filter-ii-tests: New file.
47340         * tests/test-pipe-filter-ii1.sh: New file.
47341         * tests/test-pipe-filter-ii1.c: New file.
47342         * tests/test-pipe-filter-ii2.sh: New file.
47343         * tests/test-pipe-filter-ii2-main.c: New file.
47344         * tests/test-pipe-filter-ii2-child.c: New file.
47345
47346         New module 'pipe-filter-ii'.
47347         * lib/pipe-filter.h: New file.
47348         * lib/pipe-filter-ii.c: New file.
47349         * lib/pipe-filter-aux.h: New file.
47350         * modules/pipe-filter-ii: New file.
47351
47352 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47353
47354         * lib/gc-libgcrypt.c: Change copyright to FSF.
47355         * lib/gc-gnulib.c: Likewise.
47356
47357 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47358
47359         * lib/gethostname.c: Include limits.h.
47360
47361 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47362             Bruno Haible  <bruno@clisp.org>
47363
47364         Ensure HOST_NAME_MAX as part of the gethostname module.
47365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47366         define also HOST_NAME_MAX.
47367         * tests/test-gethostname.c: Include <limits.h>.
47368         (main): Check also HOST_NAME_MAX.
47369         * doc/posix-headers/limits.texi: Document the mingw problem.
47370
47371 2009-08-02  Bruno Haible  <bruno@clisp.org>
47372
47373         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47374         Add comments.
47375
47376 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47377
47378         * lib/gethostname.c: Add Windows wrapper.
47379         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47380         * modules/gethostname: Depend on sys_socket & errno, for also
47381         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47382         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47383
47384 2009-07-31  Jim Meyering  <meyering@redhat.com>
47385
47386         getloadavg: fix symbol name in comment
47387         * lib/getloadavg.c: Correct a typo I introduced when adding
47388         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47389         Matt Kraai spotted the problem.
47390
47391 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47392
47393         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47394         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47395         code also if ! defined N_NAME_POINTER.
47396         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47397         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47398         but the n_name member is a 12-byte array.
47399
47400 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47401
47402         update-copyright: generalize comment handling
47403         * build-aux/update-copyright: Handle copyright statements
47404         within more comment styles.
47405         Document usage.
47406         Report any file with an external copyright holder or parse failure.
47407
47408 2009-07-29  Jim Meyering  <meyering@redhat.com>
47409
47410         mktime: correct setting of REPLACE_MKTIME
47411         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47412
47413         update-copyright: new module
47414         * modules/update-copyright: New file.
47415         * build-aux/update-copyright: New file.
47416         * MODULES.html.sh (maint+release support): Add update-copyright.
47417
47418 2009-07-27  Bruno Haible  <bruno@clisp.org>
47419
47420         Fix compilation error when <ctime> is used and mktime is replaced.
47421         * lib/time.in.h (mktime): New declaration.
47422         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47423         REPLACE_MKTIME instead of defining mktime in config.h.
47424         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47425         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47426         Reported by Ross McFarland <rwmcfa1@neces.com>.
47427
47428 2009-07-27  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47431         Reported by Matt Kraai <mkraai@beckman.com>.
47432
47433 2009-07-25  Jim Meyering  <meyering@redhat.com>
47434
47435         maint.mk: avoid warnings about missing files
47436         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47437         diagnostic when .prev-version does not exist.
47438         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47439         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47440         nonexistent cfg.mk.
47441         Suggestions from Simon Josefsson.
47442
47443 2009-07-25  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47446         defined as macros. Needed on QNX 6.4.1.
47447         Reported by Matt Kraai <mkraai@beckman.com>.
47448
47449 2009-07-23  Jim Meyering  <meyering@redhat.com>
47450
47451         maint.mk: invoke "make dist" with a working value of XZ_OPT
47452         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47453
47454 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47455
47456         Make fseeko.c compile on QNX.
47457         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47458
47459 2009-07-22  Peter Simons  <simons@cryp.to>
47460
47461         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47462         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47463         * lib/md4.h: Likewise.
47464         * lib/md5.h: Likewise.
47465         * lib/sha1.h: Likewise.
47466         * lib/sha256.h: Likewise.
47467         * lib/sha512.h: Likewise.
47468
47469         tests-sha1: don't assign literal string to 'char *' variable
47470         * tests/test-sha1.c (main): Declare locals with "const" to match
47471         attributes of the right hand side.
47472
47473 2009-07-21  Eric Blake  <ebb9@byu.net>
47474
47475         dup2: fix more mingw problems
47476         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47477         fd to itself.
47478         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47479         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47480         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47481         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47482         care of mingw bugs.
47483
47484 2009-07-21  Jim Meyering  <meyering@redhat.com>
47485
47486         vc-list-files: avoid failure when /bin/sh is dash
47487         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47488         On some Debian based systems, /bin/sh is a symlink to dash, and running
47489         this command would omit the "/" following each 'tests' prefix:
47490           dash -x build-aux/vc-list-files -C . tests
47491         That is because bash and dash work differently:
47492           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47493           bash ok
47494           dash odd
47495
47496 2009-07-21  Eric Blake  <ebb9@byu.net>
47497
47498         dup2-tests: test previous patch
47499         * modules/dup2-tests: New file.
47500         * tests/test-dup2.c: Likewise.
47501         * tests/test-open.c (main): Avoid unspecified behavior.
47502         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47503         test.
47504
47505         dup2: work around mingw and cygwin 1.5 bug
47506         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47508         * modules/unistd (Makefile.am): Substitute it.
47509         * lib/unistd.in.h (dup2): Declare the replacement.
47510         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47511         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47512         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47513         * modules/execute (Depends-on): Add dup2.
47514         * modules/fseterr (Depends-on): Likewise.
47515         * modules/pipe (Depends-on): Likewise.
47516         * modules/posix_spawn-internal (Depends-on): Likewise.
47517
47518 2009-07-21  Bruno Haible  <bruno@clisp.org>
47519
47520         * modules/.gitattributes: New file.
47521
47522 2009-07-20  Bruno Haible  <bruno@clisp.org>
47523
47524         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47525         (main): Use it.
47526
47527 2009-07-20  Eric Blake  <ebb9@byu.net>
47528
47529         test-pipe: make a bit more robust.
47530         * tests/test-pipe.c (myerr): Allow error messages regardless of
47531         what we do to stderr.
47532         (test_pipe): Rearrange to avoid deadlock.
47533         (child_main): Try a larger read, to ensure we avoided deadlock.
47534         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47535         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47536         if misused.
47537
47538 2009-07-19  Jim Meyering  <meyering@redhat.com>
47539
47540         fts: avoid false-positive cycle-detection
47541         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47542         for each new command line argument.
47543
47544 2009-07-19  Bruno Haible  <bruno@clisp.org>
47545
47546         Fix build error on mingw with the modules sys_select and unistd.
47547         * modules/acl-tests (Depends-on): Add close.
47548         * modules/binary-io-tests (Depends-on): Likewise.
47549         * modules/closein-tests (Depends-on): Likewise.
47550         * modules/flock-tests (Depends-on): Likewise.
47551         * modules/fsync-tests (Depends-on): Likewise.
47552         * modules/lseek-tests (Depends-on): Likewise.
47553         * modules/pipe-tests (Depends-on): Likewise.
47554         * modules/posix_spawn-tests (Depends-on): Likewise.
47555         * modules/posix_spawnp-tests (Depends-on): Likewise.
47556         * modules/stat-time-tests (Depends-on): Likewise.
47557         * modules/yesno-tests (Depends-on): Likewise.
47558
47559 2009-07-19  Bruno Haible  <bruno@clisp.org>
47560
47561         Unify conditionals.
47562         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47563         macros, not at the compiler macros.
47564         * lib/pipe.c: Likewise.
47565         * lib/execute.c: Likewise.
47566         * lib/spawni.c: Likewise.
47567
47568 2009-07-19  Bruno Haible  <bruno@clisp.org>
47569
47570         Fix handling of closed stdin/stdout/stderr on mingw.
47571         * lib/w32spawn.h: Include unistd.h.
47572         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47573         file descriptor with O_NOINHERIT flag.
47574         (fd_safer_noinherit): New function, based on fd-safer.c.
47575         (dup_safer_noinherit): New function, based on dup-safer.c.
47576         (undup_safer_noinherit): New function.
47577         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47578         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47579         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47580         instead of fd_safer.
47581         * tests/test-pipe.c: Include <windows.h>.
47582         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47583         result.
47584
47585         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47586         from main.
47587         (test_pipe): Pass an extra argument for disambiguation.
47588         (main): Invoke parent_main or child_main.
47589
47590         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47591         consistently.
47592
47593 2009-07-18  Eric Blake  <ebb9@byu.net>
47594
47595         test-pipe: fix mingw build
47596         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47597
47598 2009-07-18  Bruno Haible  <bruno@clisp.org>
47599
47600         * modules/pipe-tests (Makefile.am): Fix typo.
47601
47602 2009-07-18  Eric Blake  <ebb9@byu.net>
47603
47604         error: fix mingw build
47605         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47606         Reported by Bruno Haible.
47607
47608         error: avoid undefined use of stdout
47609         * lib/error.c (error, error_at_line): Check that fd 1 is open
47610         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47611         is handling faults and the close_stdout module wants to report the
47612         detection of closed stdout as an error.
47613
47614 2009-07-17  Eric Blake  <ebb9@byu.net>
47615
47616         pipe: be robust in face of closed fds
47617         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47618         should cause child to misbehave.
47619         * modules/pipe-tests: New module.
47620         * tests/test-pipe.c: New file.
47621         * tests/test-pipe.sh: New file.
47622         Reported by Akim Demaille.
47623
47624 2009-07-14  Bruno Haible  <bruno@clisp.org>
47625
47626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47627         Reported by anonymous kc.
47628
47629 2009-07-07  Jim Meyering  <meyering@redhat.com>
47630
47631         maint.mk: don't look for translatable strings in *.m4 or *.mk
47632         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47633         when searching for translatable strings.
47634
47635 2009-07-05  Jim Meyering  <meyering@redhat.com>
47636
47637         remove superfluous parentheses in STREQ definition
47638         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47639         * lib/getugroups.c (STREQ): Likewise.
47640         * lib/fnmatch.c (STREQ): Likewise.
47641         Spotted by Bruno Haible.
47642
47643 2009-07-04  Jim Meyering  <meyering@redhat.com>
47644
47645         argv-iter: new module
47646         * MODULES.html.sh: Add argv-iter.
47647         * lib/argv-iter.c, lib/argv-iter.h: New files.
47648         * modules/argv-iter: New file.
47649         * modules/argv-iter-tests: New file.
47650         * tests/test-argv-iter.c: Test it.
47651
47652 2009-07-04  Bruno Haible  <bruno@clisp.org>
47653
47654         Fix assertion.
47655         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47656         contains more exact copies of a given entry than file2, leave the extra
47657         copies unpaired rather than aborting.
47658         Reported by Eric Blake.
47659
47660 2009-07-02  Bruno Haible  <bruno@clisp.org>
47661
47662         Speedup git-merge-changelog for git cherry-pick.
47663         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47664         (entries_mapping_get): New function, extracted from compute_mapping.
47665         (entries_mapping_reverse_get): New function.
47666         (compute_mapping): Add a 'full' argument. Return the result in a
47667         'struct entries_mapping'.
47668         (main): Update. Access the mappings through entries_mapping_get.
47669         Reported by Eric Blake.
47670
47671 2009-07-02  Bruno Haible  <bruno@clisp.org>
47672
47673         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47674         best_i.
47675
47676 2009-07-02  Bruno Haible  <bruno@clisp.org>
47677
47678         Speed up approximate search for matching ChangeLog entries.
47679         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47680         argument. Call fstrcmp_bounded instead of fstrcmp.
47681         (compute_mapping, try_split_merged_entry, main): Update callers.
47682
47683 2009-07-02  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47686
47687 2009-06-30  Bruno Haible  <bruno@clisp.org>
47688
47689         Reduce the number of uc_is_cased calls.
47690         * lib/unicase.h (casing_suffix_context_t): Add
47691         'first_char_except_ignorable' field.
47692         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47693         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47694         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47695         Update initializer.
47696         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47697         case-ignorable characters.
47698         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47699         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47700         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47701         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47702         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47703
47704 2009-06-30  Bruno Haible  <bruno@clisp.org>
47705
47706         Tests for module 'unicase/ignorable'.
47707         * modules/unicase/ignorable-tests: New file.
47708         * tests/unicase/test-ignorable.c: New file, generated by
47709         gen-uni-tables.
47710
47711         Tests for module 'unicase/cased'.
47712         * modules/unicase/cased-tests: New file.
47713         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47714         * tests/unicase/test-predicate-part1.h: New file, derived from
47715         tests/unictype/test-predicate-part1.h.
47716         * tests/unicase/test-predicate-part2.h: New file, same as
47717         tests/unictype/test-predicate-part2.h.
47718
47719         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47720         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47721         (output_casing_properties): New function.
47722         (main): Call it.
47723         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47724         * lib/unicase/cased.c: Include unictype/bitmap.h.
47725         (uc_is_cased): Define through a bitmap lookup.
47726         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47727         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47728         (uc_is_case_ignorable): Define through a bitmap lookup.
47729         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47730         lib/unictype/bitmap.h.
47731         (Depends-on): Add inline. Clean up.
47732         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47733         lib/unictype/bitmap.h.
47734         (Depends-on): Add inline. Clean up.
47735         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47736         recognition.
47737         * tests/unicase/test-u16-tolower.c (main): Likewise.
47738         * tests/unicase/test-u32-tolower.c (main): Likewise.
47739
47740 2009-06-30  Bruno Haible  <bruno@clisp.org>
47741
47742         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47743         * lib/unicase/u16-casemap.c: Likewise.
47744         * lib/unicase/u32-casemap.c: Likewise.
47745
47746 2009-06-29  Bruno Haible  <bruno@clisp.org>
47747
47748         Define u32_casefold as a wrapper around u32_ct_casefold.
47749         * lib/unicase/u32-casefold.c: Update.
47750         * modules/unicase/u32-casefold (Depends-on): Add
47751         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47752         unicase/empty-suffix-context. Clean up.
47753
47754         Define u16_casefold as a wrapper around u16_ct_casefold.
47755         * lib/unicase/u16-casefold.c: Update.
47756         * modules/unicase/u16-casefold (Depends-on): Add
47757         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47758         unicase/empty-suffix-context. Clean up.
47759
47760         Define u8_casefold as a wrapper around u8_ct_casefold.
47761         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47762         * lib/unicase/u8-casefold.c: Update.
47763         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47764         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47765
47766         Define u32_totitle as a wrapper around u32_ct_totitle.
47767         * lib/unicase/u32-totitle.c: Update.
47768         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47769         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47770
47771         Define u16_totitle as a wrapper around u16_ct_totitle.
47772         * lib/unicase/u16-totitle.c: Update.
47773         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47774         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47775
47776         Define u8_totitle as a wrapper around u8_ct_totitle.
47777         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47778         functions.
47779         (FUNC): Delegate to U_CT_TOTITLE.
47780         * lib/unicase/u8-totitle.c: Update.
47781         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47782         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47783
47784         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47785         invocation.
47786         * modules/unicase/u32-tolower (Depends-on): Add
47787         unicase/empty-prefix-context, unicase/empty-suffix-context.
47788
47789         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47790         invocation.
47791         * modules/unicase/u16-tolower (Depends-on): Add
47792         unicase/empty-prefix-context, unicase/empty-suffix-context.
47793
47794         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47795         * modules/unicase/u8-tolower (Depends-on): Add
47796         unicase/empty-prefix-context, unicase/empty-suffix-context.
47797
47798         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47799         invocation.
47800         * modules/unicase/u32-toupper (Depends-on): Add
47801         unicase/empty-prefix-context, unicase/empty-suffix-context.
47802
47803         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47804         invocation.
47805         * modules/unicase/u16-toupper (Depends-on): Add
47806         unicase/empty-prefix-context, unicase/empty-suffix-context.
47807
47808         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47809         * modules/unicase/u8-toupper (Depends-on): Add
47810         unicase/empty-prefix-context, unicase/empty-suffix-context.
47811
47812         New module 'unicase/u32-ct-casefold'.
47813         * lib/unicase/u32-ct-casefold.c: New file.
47814         * modules/unicase/u32-ct-casefold: New file.
47815
47816         New module 'unicase/u16-ct-casefold'.
47817         * lib/unicase/u16-ct-casefold.c: New file.
47818         * modules/unicase/u16-ct-casefold: New file.
47819
47820         New module 'unicase/u8-ct-casefold'.
47821         * lib/unicase/u8-ct-casefold.c: New file.
47822         * lib/unicase/u-ct-casefold.h: New file, derived from
47823         lib/unicase/u-casefold.h.
47824         * modules/unicase/u8-ct-casefold: New file.
47825
47826         New module 'unicase/u32-ct-totitle'.
47827         * lib/unicase/u32-ct-totitle.c: New file.
47828         * modules/unicase/u32-ct-totitle: New file.
47829
47830         New module 'unicase/u16-ct-totitle'.
47831         * lib/unicase/u16-ct-totitle.c: New file.
47832         * modules/unicase/u16-ct-totitle: New file.
47833
47834         New module 'unicase/u8-ct-totitle'.
47835         * lib/unicase/u8-ct-totitle.c: New file.
47836         * lib/unicase/u-ct-totitle.h: New file, derived from
47837         lib/unicase/u-totitle.h.
47838         * modules/unicase/u8-ct-totitle: New file.
47839
47840         New module 'unicase/u32-ct-tolower'.
47841         * lib/unicase/u32-ct-tolower.c: New file.
47842         * modules/unicase/u32-ct-tolower: New file.
47843
47844         New module 'unicase/u16-ct-tolower'.
47845         * lib/unicase/u16-ct-tolower.c: New file.
47846         * modules/unicase/u16-ct-tolower: New file.
47847
47848         New module 'unicase/u8-ct-tolower'.
47849         * lib/unicase/u8-ct-tolower.c: New file.
47850         * modules/unicase/u8-ct-tolower: New file.
47851
47852         New module 'unicase/u32-ct-toupper'.
47853         * lib/unicase/u32-ct-toupper.c: New file.
47854         * modules/unicase/u32-ct-toupper: New file.
47855
47856         New module 'unicase/u16-ct-toupper'.
47857         * lib/unicase/u16-ct-toupper.c: New file.
47858         * modules/unicase/u16-ct-toupper: New file.
47859
47860         New module 'unicase/u8-ct-toupper'.
47861         * lib/unicase/u8-ct-toupper.c: New file.
47862         * modules/unicase/u8-ct-toupper: New file.
47863
47864         Add context arguments to u*_casemap functions.
47865         * lib/unicase/unicasemap.h: Include unicase.h.
47866         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47867         suffix_context arguments.
47868         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47869         functions.
47870         (FUNC): Add prefix_context and suffix_context arguments. Use
47871         uc_is_cased and uc_is_case_ignorable.
47872         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47873         * lib/unicase/u16-casemap.c: Likewise.
47874         * lib/unicase/u32-casemap.c: Likewise.
47875         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47876         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47877         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47878         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47879         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47880         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47881
47882         New module 'unicase/u32-suffix-context'.
47883         * lib/unicase/u32-suffix-context.c: New file.
47884         * modules/unicase/u32-suffix-context: New file.
47885
47886         New module 'unicase/u16-suffix-context'.
47887         * lib/unicase/u16-suffix-context.c: New file.
47888         * modules/unicase/u16-suffix-context: New file.
47889
47890         New module 'unicase/u8-suffix-context'.
47891         * lib/unicase/u8-suffix-context.c: New file.
47892         * lib/unicase/u-suffix-context.h: New file.
47893         * modules/unicase/u8-suffix-context: New file.
47894
47895         New module 'unicase/empty-suffix-context'.
47896         * lib/unicase/empty-suffix-context.c: New file.
47897         * modules/unicase/empty-suffix-context: New file.
47898
47899         New module 'unicase/u32-prefix-context'.
47900         * lib/unicase/u32-prefix-context.c: New file.
47901         * modules/unicase/u32-prefix-context: New file.
47902
47903         New module 'unicase/u16-prefix-context'.
47904         * lib/unicase/u16-prefix-context.c: New file.
47905         * modules/unicase/u16-prefix-context: New file.
47906
47907         New module 'unicase/u8-prefix-context'.
47908         * lib/unicase/u8-prefix-context.c: New file.
47909         * lib/unicase/u-prefix-context.h: New file.
47910         * lib/unicase/context.h: New file.
47911         * modules/unicase/u8-prefix-context: New file.
47912
47913         New module 'unicase/empty-prefix-context'.
47914         * lib/unicase/empty-prefix-context.c: New file.
47915         * modules/unicase/empty-prefix-context: New file.
47916
47917         New module 'unicase/ignorable'.
47918         * lib/unicase/ignorable.c: New file.
47919         * modules/unicase/ignorable: New file.
47920
47921         New module 'unicase/cased'.
47922         * lib/unicase/caseprop.h: New file.
47923         * lib/unicase/cased.c: New file.
47924         * modules/unicase/cased: New file.
47925
47926         New functions for case mapping of substrings.
47927         * lib/unicase.h (casing_prefix_context_t): New type.
47928         (unicase_empty_prefix_context): New variable.
47929         (u8_casing_prefix_context, u16_casing_prefix_context,
47930         u32_casing_prefix_context, u8_casing_prefixes_context,
47931         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47932         declarations.
47933         (casing_suffix_context_t): New type.
47934         (unicase_empty_suffix_context): New variable.
47935         (u8_casing_suffix_context, u16_casing_suffix_context,
47936         u32_casing_suffix_context, u8_casing_suffixes_context,
47937         u16_casing_suffixes_context, u32_casing_suffixes_context,
47938         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47939         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47940         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47941         declarations.
47942
47943 2009-06-28  Jim Meyering  <meyering@redhat.com>
47944
47945         boostrap: indent only with spaces
47946         * build-aux/bootstrap: Indent only with spaces, never TABs.
47947
47948         bootstrap: split long lines
47949         * build-aux/bootstrap: Keep line length < 80.
47950
47951         bootstrap: sync from coreutils
47952         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47953         just as autoreconf does.  Verify a list of prerequisite
47954         package-name,version-number pairs if defined in bootstrap.conf.
47955         Refer to README-prereq, if prerequisites are not satisfied.
47956
47957 2009-06-27  Eric Blake  <ebb9@byu.net>
47958
47959         tests: add test for bogus NULL definition
47960         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47961         * tests/test-stdlib.c: Likewise.
47962         * tests/test-string.c: Likewise.
47963         * tests/test-locale.c: Likewise.
47964         * tests/test-unistd.c: Likewise.
47965         * modules/stdio-tests (Depends-on): Add verify.
47966         * modules/stdlib-tests (Depends-on): Likewise.
47967         * modules/string-tests (Depends-on): Likewise.
47968         * modules/locale-tests (Depends-on): Likewise.
47969         * modules/unistd-tests (Depends-on): Likewise.
47970
47971 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47972
47973         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47974         self-explaining comment.
47975         * m4/selinux-selinux-h: Update serial.
47976         (gl_LIBSELINUX): New macro, adding a warning for missing development
47977         packages to code extracted from...
47978         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47979         Add warning for missing development packages here, too.
47980
47981 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47982
47983         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47984
47985 2009-06-25  Eric Blake  <ebb9@byu.net>
47986
47987         version-etc: fix regression
47988         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47989         gcc.
47990         (version_etc): Use it, to catch bugs with trailing NULL.
47991         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47992         (version_etc_va): Fix logic bug.
47993         * modules/version-etc-tests: Add test.
47994         * tests/test-version-etc.c: New file.
47995         * tests/test-version-etc.sh: Likewise.
47996
47997 2009-06-25  Sam Steingold  <sds@gnu.org>
47998
47999         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48000         mbtowc declaration.
48001
48002 2009-06-25  Eric Blake  <ebb9@byu.net>
48003
48004         fpurge: migrate into <stdio.h>
48005         * lib/fpurge.h: Delete...
48006         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48007         * lib/fpurge.c (fpurge): Change declaring header.
48008         * modules/fpurge (Files): Drop deleted file.
48009         (Depends-on): Add stdio.
48010         (configure.ac): Set witness.
48011         * modules/stdio (Makefile.am): Support fpurge macros.
48012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48013         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48014         * lib/fflush.c: Update client.
48015         * tests/test-fpurge.c: Likewise.
48016         * NEWS: Mention the change.
48017
48018 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48019
48020         * lib/argp-version-etc.c (program_authors): Add const
48021         qualifier.
48022         * lib/version-etc.c: Fix typos in the comments.
48023         * modules/argp-version-etc: Depends on version-etc.
48024
48025 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48026
48027         argp-version-etc: new module.
48028
48029         * lib/argp-version-etc.c: New file.
48030         * lib/argp-version-etc.h: New file.
48031         * modules/argp-version-etc: New file.
48032         * modules/argp-version-etc-tests: New file.
48033         * tests/test-argp-version-etc.c: New test.
48034         * tests/test-argp-version-etc-1.sh: New test.
48035
48036 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48037
48038         Provide additional interfaces and documentation for version-etc
48039         module.
48040
48041         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48042         interfaces.
48043         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48044         prototypes.
48045
48046 2009-06-24  Bruno Haible  <bruno@clisp.org>
48047
48048         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48049         HAVE_LIB${NAME} macro.
48050         Reported by Sam Steingold <sds@gnu.org>.
48051
48052 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48053
48054         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48055         needed.
48056
48057 2009-06-21  Bruno Haible  <bruno@clisp.org>
48058
48059         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48060         work.
48061         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48062         together with LIB${NAME}, LTLIB${NAME}.
48063         Reported by Sam Steingold <sds@gnu.org>.
48064
48065 2009-06-20  Jim Meyering  <meyering@redhat.com>
48066
48067         tests: make sc_require_test_exit_idiom more generic
48068         * top/maint.mk (Exit_witness_file): New overridable variable.
48069         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48070         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48071
48072 2009-06-19  Jim Meyering  <meyering@redhat.com>
48073
48074         hash: reverse order of src/dst parameters in an internal interface
48075         * lib/hash.c (transfer_entries): Reverse order of parameters to
48076         put DST before SRC.  Adjust callers.
48077
48078         tests: test-hash: avoid wholesale duplication
48079         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48080         Instead, use a loop and add a single conditional.
48081
48082         tests: test-hash: allow seed selection via a command line argument
48083         * tests/test-hash.c (get_seed): New function.
48084         (main): Use it.
48085
48086 2009-06-19  Eric Blake  <ebb9@byu.net>
48087
48088         hash: avoid memory leak on allocation failure
48089         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48090         failure.  Factor repeated algorithm...
48091         (transfer_entries): ...into new helper routine.
48092         (hash_delete): React to hash_rehash return value.
48093
48094         hash: reduce memory pressure in hash_rehash no-op case
48095         * lib/hash.c (next_prime): Avoid overflow.
48096         (hash_initialize): Factor bucket size computation...
48097         (compute_bucket_size): ...into new helper function.
48098         (hash_rehash): Use new function and open coding to reduce memory
48099         pressure, and avoid a memory leak in USE_OBSTACK code.
48100         Reported by Jim Meyering.
48101
48102 2009-06-18  Eric Blake  <ebb9@byu.net>
48103
48104         hash: make rotation more obvious
48105         * modules/hash (Depends-on): Add bitrotate and stdint.
48106         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48107         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48108         (SIZE_MAX): Rely on headers for definition.
48109         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48110         (raw_hasher): Use rotr_sz.
48111         Suggested by Jim Meyering.
48112
48113         hash: fix memory leak in last patch
48114         * lib/hash.c (hash_rehash): Avoid memory leak.
48115
48116         hash: avoid no-op rehashing
48117         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48118
48119         hash: provide default callback functions
48120         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48121         (hash_initialize): Use them as defaults.
48122         * tests/test-hash.c (main): Test this.
48123
48124         hash: minor optimization
48125         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48126         when possible.
48127         (hash_initialize): Document this promise.
48128         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48129         * tests/test-hash.c (hash_compare_strings): Test this.
48130
48131 2009-06-18  Bruno Haible  <bruno@clisp.org>
48132
48133         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48134         going to be replaced anyway.
48135
48136 2009-06-18  Bruno Haible  <bruno@clisp.org>
48137
48138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48139         in one place.
48140         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48141         be replaced anyway.
48142
48143 2009-06-18  Eric Blake  <ebb9@byu.net>
48144
48145         hash: check for resize before insertion
48146         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48147         threshold before insertion, so that a pathological hash_rehash
48148         that fills every bucket can still trigger another rehash.
48149
48150 2009-06-18  Jim Meyering  <meyering@redhat.com>
48151
48152         hash-tests: add a loop around the small tests
48153         * tests/test-hash.c (main): Repeat small tests with selected
48154         small initial table sizes.
48155
48156 2009-06-17  Eric Blake  <ebb9@byu.net>
48157
48158         hash: minor cleanups
48159         * lib/hash.h (hash_entry): Make opaque, by moving...
48160         * lib/hash.c (hash_entry): ...here.
48161         (hash_insert): Clarify restrictions on what can be inserted.
48162         (hash_get_next): Clarify when it is safe to remove an element
48163         during traversal.
48164         (check_tuning): Skip verification when tuning is known safe.
48165         (hash_initialize): Clarify restrictions on tuning.
48166
48167 2009-06-17  Jim Meyering  <jim@meyering.net>
48168         and Eric Blake  <ebb9@byu.net>
48169
48170         hash-tests: new module
48171         * modules/hash-tests: New file.
48172         * tests/test-hash.c: New file.
48173
48174 2009-06-17  Eric Blake  <ebb9@byu.net>
48175
48176         strstr-simple: document new module
48177         * MODULES.html.sh: Document new module.
48178
48179         strstr, strcasestr: replace on platforms with broken memchr
48180         * modules/strstr: Split into...
48181         * modules/strstr-simple: ...new module that does not care about
48182         performance, but does care about glibc bug.
48183         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48184         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48185         if platform memchr is broken, per Debian bug 521737.
48186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48187         memchr.
48188         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48189         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48190         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48191         * modules/mountlist (Depends-on): Add strstr-simple.
48192         * modules/gen-uni-tables (Depends-on): Likewise.
48193         * modules/argz (Depends-on): Add strstr.
48194
48195 2009-06-17  Bruno Haible  <bruno@clisp.org>
48196
48197         * modules/posix_spawn-internal (Depends-on): Add errno.
48198
48199 2009-06-17  Bruno Haible  <bruno@clisp.org>
48200
48201         Define missing ESTALE on Interix 3.5.
48202         * lib/errno.in.h (ESTALE): Assign a value if missing.
48203         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48205         missing.
48206         * doc/posix-headers/errno.texi: Mention the Interix bug.
48207         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48208
48209 2009-06-15  Eric Blake  <ebb9@byu.net>
48210
48211         memchr, memchr2: add valgrind exception
48212         * lib/memchr.valgrind: New file.
48213         * lib/memchr2.valgrind: New file.
48214         * modules/memchr (Files): Distribute valgrind file.
48215         * modules/memchr2 (Files): Likewise.
48216
48217         docs: memchr is no longer obsolete
48218         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48219         * lib/string.in.h (memchr): Simplify logic.
48220
48221 2009-06-14  Jim Meyering  <meyering@redhat.com>
48222
48223         link-follow: fix the "checking..." message to not mention trailing slash
48224         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48225         never considered trailing slashes.
48226
48227 2009-06-14  Bruno Haible  <bruno@clisp.org>
48228
48229         * m4/memchr.m4: Mention also the bug on IA-64.
48230         * doc/posix-functions/memchr.texi: Likewise.
48231
48232 2009-06-12  Eric Blake  <ebb9@byu.net>
48233
48234         memchr: detect broken x86_64 and alpha implementations
48235         * modules/memchr-tests (Depends-on): Move mmap detection...
48236         * modules/memchr (Depends-on): ...here.
48237         (configure.ac): Set indicator.
48238         * lib/string.in.h (memchr): Declare replacement.
48239         * modules/string (Makefile.am): Trigger replacement.
48240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48241         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48242         bugs.
48243         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48244         * modules/getpagesize (License): Relax license.
48245
48246 2009-06-11  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/idpriv.h: Add more references.
48249
48250 2009-06-08  Bruno Haible  <bruno@clisp.org>
48251
48252         Tests for module 'idpriv-droptemp'.
48253         * modules/idpriv-droptemp-tests: New file.
48254         * tests/test-idpriv-droptemp.sh: New file.
48255         * tests/test-idpriv-droptemp.su.sh: New file.
48256         * tests/test-idpriv-droptemp.c: New file.
48257
48258         New module 'idpriv-droptemp'.
48259         * lib/idpriv-droptemp.c: New file.
48260         * modules/idpriv-droptemp: New file.
48261
48262 2009-06-08  Bruno Haible  <bruno@clisp.org>
48263
48264         Tests for module 'idpriv-drop'.
48265         * modules/idpriv-drop-tests: New file.
48266         * tests/test-idpriv-drop.sh: New file.
48267         * tests/test-idpriv-drop.su.sh: New file.
48268         * tests/test-idpriv-drop.c: New file.
48269
48270         New module 'idpriv-drop'.
48271         * lib/idpriv.h: New file.
48272         * lib-idpriv-drop.c: New file.
48273         * m4/idpriv.m4: New file.
48274         * modules/idpriv-drop: New file.
48275
48276 2009-06-08  Bruno Haible  <bruno@clisp.org>
48277
48278         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48279         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48280         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48281         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48282         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48283         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48284         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48285
48286 2009-06-08  Eric Blake  <ebb9@byu.net>
48287
48288         test-strstr: use memory fence, when possible
48289         * tests/test-strstr.c (main): Use memory fence, in order to be
48290         more likely to trigger Debian bug 521737.
48291         * modules/strstr-tests (Files): Pull in additional files.
48292
48293         memchr: no longer obsolete, for wider field testing
48294         * modules/memchr (Status, Notice): Delete, this module is no
48295         longer obsolete.
48296         * modules/vasnprintf (Depends-on): Add memchr.
48297
48298 2009-06-07  Jim Meyering  <meyering@redhat.com>
48299
48300         hash: declare some functions with the warn_unused_result attribute
48301         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48302
48303 2009-06-07  Bruno Haible  <bruno@clisp.org>
48304
48305         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48306         Reported by Eric Blake.
48307
48308 2009-06-06  Eric Blake  <ebb9@byu.net>
48309
48310         test-alignof: fix typo with long double
48311         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48312         compiler error.
48313
48314 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48315
48316         Escape non-texinfo { and }s.
48317         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48318         markup error.
48319
48320 2009-06-04  Jim Meyering  <meyering@redhat.com>
48321
48322         gitlog-to-changelog: don't infloop on an empty commit log
48323         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48324         Reported by Boris Petersen <transacid@centerim.org>.
48325
48326 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48327
48328         version-etc: extend for packagers
48329         Add three new configure options, intended for packagers:
48330           --with-packager="packager name"
48331           --with-packager-version="packager-specific version"
48332           --with-packager-bug-reports="packager bug reporting"
48333         An example with coreutils:
48334           $ ./configure \
48335             --with-packager=Gentoo \
48336             --with-packager-bug-report=http://bugs.gentoo.org/ \
48337             --with-packager-version="patchset 1.6"
48338           $ ./src/ls --version | head -n2
48339           ls (GNU coreutils) 7.1-dirty
48340           Packaged by Gentoo (patchset 1.6)
48341         Note that the bug reporting info via --help doesn't show up because
48342         coreutils uses its own custom emit_bug_reporting_address() implementation
48343         in src/system.h.  If it didn't, it'd look like:
48344           $ ./src/ls --help | tail -n4
48345           Report bugs to <bug-coreutils@gnu.org>.
48346           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48347           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48348           General help using GNU software: <http://www.gnu.org/gethelp/>.
48349         * lib/version-etc.c: Print new information, if provided.
48350         * m4/version-etc.m4: New file.
48351         * modules/version-etc (Files): Add m4/version-etc.m4.
48352         (configure.ac): Add gl_VERSION_ETC.
48353
48354 2009-05-31  Bruno Haible  <bruno@clisp.org>
48355
48356         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48357         and 'int64_t'.
48358         * modules/alignof-tests (Dependencies): Add stdint.
48359         Reported by Eric Blake.
48360
48361 2009-05-31  Bruno Haible  <bruno@clisp.org>
48362
48363         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48364         restriction due to compiler bugs.
48365         Reported by Eric Blake.
48366
48367 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48368             Bruno Haible  <bruno@clisp.org>
48369
48370         Fix test-alignof failure.
48371         * lib/alignof.h (alignof_slot): New macro.
48372         (alignof_type): New macro, with the same semantics as the previous
48373         'alignof'.
48374         (alignof): Alias to alignof_slot.
48375         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48376         check that the results are usable as constant expressions.
48377
48378 2009-05-31  Bruno Haible  <bruno@clisp.org>
48379
48380         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48381         * tests/test-memchr.c (main): Check that memchr does not read past the
48382         first occurrence of the byte.
48383         * tests/test-strstr.c (main): Update comment.
48384         Suggested by Eric Blake.
48385
48386 2009-05-30  Bruno Haible  <bruno@clisp.org>
48387
48388         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48389         detail how to use dumpbin.
48390         Reported by David Byron <dbyron@dbyron.com>.
48391
48392 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48393
48394         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48395
48396 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48397
48398         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48399
48400 2009-05-28  Bruno Haible  <bruno@clisp.org>
48401
48402         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48403         build-aux/ files.
48404
48405 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48406
48407         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48408
48409 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48410
48411         * gnulib-tool (sed_transform_main_lib_file)
48412         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48413         regexps.
48414
48415 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48416
48417         * tests/test-strstr.c: Add another self-test.
48418         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48419         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48420
48421 2009-05-23  Bruno Haible  <bruno@clisp.org>
48422
48423         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48424         change.
48425
48426 2009-05-21  Bruno Haible  <bruno@clisp.org>
48427
48428         Simplify use of mode_t varargs.
48429         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48430         uses 'mode_t' or 'int'.
48431         * lib/openat.c (openat): Likewise.
48432         * lib/open-safer.c (open_safer): Likewise.
48433         * m4/mode_t.m4: New file.
48434         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48435         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48436         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48437         * modules/open (Files): Add m4/mode_t.m4.
48438         * modules/openat (Files): Likewise.
48439         * modules/fcntl-safer (Files): Likewise.
48440         Suggested by Eric Blake.
48441
48442 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48443
48444         * doc/glibc-functions/fallocate.texi: New file.
48445         * doc/gnulib.texi: Include it.
48446
48447 2009-05-21  Eric Blake  <ebb9@byu.net>
48448             Bruno Haible  <bruno@clisp.org>
48449
48450         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48451         invocations.
48452         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48453
48454 2009-05-21  Eric Blake  <ebb9@byu.net>
48455             Bruno Haible  <bruno@clisp.org>
48456
48457         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48458         include_next. Fix of 2008-11-20 commit.
48459         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48460         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48461         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48462         NEXT_MATH_H.
48463         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48464         instead of NEXT_MATH_H.
48465
48466 2009-05-21  Bruno Haible  <bruno@clisp.org>
48467
48468         Avoid redefinition warnings for SIZE_MAX.
48469         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48470         Reported by Simon Josefsson.
48471
48472 2009-05-21  Bruno Haible  <bruno@clisp.org>
48473
48474         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48475         AC_CACHE_VAL.
48476
48477 2009-05-20  Bruno Haible  <bruno@clisp.org>
48478
48479         Make zeroptr.h work on mingw.
48480         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48481         mprotect.
48482         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48483         * modules/memchr2-tests (configure.ac): Likewise.
48484         * modules/memcmp-tests (configure.ac): Likewise.
48485         * modules/memmem-tests (configure.ac): Likewise.
48486         * modules/memrchr-tests (configure.ac): Likewise.
48487         Reported by Simon Josefsson.
48488
48489 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48490
48491         * tests/test-glob.c: Include string.h for strcmp prototype.
48492
48493 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48494
48495         * modules/getdelim (Depends-on): Add explicit stdint, although it
48496         was implicitly already pulled in via realloc-posix.
48497         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48498
48499 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48500
48501         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48502         G. Christensen" <tgc@jupiterrise.com>.
48503         * m4/sys_socket_h.m4: Check for sa_family_t.
48504         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48505         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48506         * tests/test-sys_socket.c: Check that sa_family_t works.
48507
48508 2009-05-18  Eric Blake  <ebb9@byu.net>
48509
48510         maint.mk: allow gnulib_dir in VPATH build
48511         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48512
48513 2009-05-15  Jim Meyering  <meyering@redhat.com>
48514
48515         maint.mk: Give gnulib_dir a default definition.
48516         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48517         Thus, most packages no longer need to specify this variable in cfg.mk
48518
48519 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48520
48521         rename.m4: fix typos that would make non-mingw cross-configure fail
48522         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48523
48524 2009-05-13  Eric Blake  <ebb9@byu.net>
48525
48526         mmap-anon: avoid out-of-order autoconf expansion
48527         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48528         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48529         * modules/memchr-tests (Depends-on): Add extensions.
48530         * modules/memchr2-tests (Depends-on): Add extensions.
48531         * modules/memcmp-tests (Depends-on): Add extensions.
48532         * modules/memmem-tests (Depends-on): Add extensions.
48533         * modules/memrchr-tests (Depends-on): Add extensions.
48534
48535 2009-05-13  Bruno Haible  <bruno@clisp.org>
48536
48537         Make some tests ISO C 99 compliant.
48538         * tests/zerosize-ptr.h: New file.
48539         * tests/test-memchr.c: Include zerosize-ptr.h.
48540         (main): Use a zero-size object pointer instead of NULL.
48541         * tests/test-memchr2.c: Include zerosize-ptr.h.
48542         (main): Use a zero-size object pointer instead of NULL.
48543         * tests/test-memcmp.c: Include zerosize-ptr.h.
48544         (main): Use a zero-size object pointer instead of NULL.
48545         * tests/test-memmem.c: Include zerosize-ptr.h.
48546         (main): Use a zero-size object pointer instead of NULL.
48547         * tests/test-memrchr.c: Include zerosize-ptr.h.
48548         (main): Use a zero-size object pointer instead of NULL.
48549         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48550         m4/mmap-anon.m4.
48551         (Depends-on): Add getpagesize.
48552         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48553         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48554         m4/mmap-anon.m4.
48555         (Depends-on): Add getpagesize.
48556         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48557         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48558         m4/mmap-anon.m4.
48559         (Depends-on): Add getpagesize.
48560         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48561         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48562         m4/mmap-anon.m4.
48563         (Depends-on): Add getpagesize.
48564         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48565         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48566         m4/mmap-anon.m4.
48567         (Depends-on): Add getpagesize.
48568         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48569
48570 2009-05-12  Bruno Haible  <bruno@clisp.org>
48571
48572         Tests for module 'alignof'.
48573         * modules/alignof-tests: New file.
48574         * tests/test-alignof.c: New file.
48575
48576 2009-05-12  Bruno Haible  <bruno@clisp.org>
48577
48578         Fix alignof macro.
48579         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48580         vendor compilers that are always correct.
48581
48582 2009-05-12  Bruno Haible  <bruno@clisp.org>
48583
48584         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48585         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48586         not whether its fully works.
48587
48588 2009-05-12  Bruno Haible  <bruno@clisp.org>
48589
48590         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48591
48592 2009-05-12  Jim Meyering  <meyering@redhat.com>
48593
48594         * top/maint.mk: Adjust backslash alignment.
48595
48596 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48597
48598         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48599
48600 2009-05-11  Eric Blake  <ebb9@byu.net>
48601
48602         argp: avoid undefined behavior
48603         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48604         macros.
48605
48606 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48607
48608         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48609         user.name to prevent git commit from complaining.
48610
48611 2009-05-10  Bruno Haible  <bruno@clisp.org>
48612
48613         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48614         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48615         it rewrites every file name only once.
48616         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48617
48618 2009-05-08  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48621         instead of 'max'.
48622
48623 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48624
48625         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48626         sockaddr_storage test.
48627
48628 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48629
48630         * modules/sys_socket (Makefile.am): Substitute
48631         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48632         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48633         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48634         * tests/test-sys_socket.c: Check sockaddr_storage.
48635
48636 2009-05-08  Bruno Haible  <bruno@clisp.org>
48637
48638         New module 'alignof'.
48639         * lib/alignof.h: New file.
48640         * modules/alignof: New file.
48641
48642 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48643             Bruno Haible  <bruno@clisp.org>
48644
48645         Fix test-file-has-acl on FreeBSD.
48646         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48647         mask is implicitly added.
48648         * tests/test-file-has-acl.c: Include <signal.h>.
48649         (main): Terminate the test after 5 seconds.
48650         * modules/acl-tests (configure.ac): Check for alarm function.
48651
48652 2009-05-04  Bruno Haible  <bruno@clisp.org>
48653
48654         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48656         * modules/errno (configure.ac): Drop AC_REQUIRE.
48657         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48658         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48659
48660 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48661
48662         * modules/glob-tests: New module.
48663         * tests/test-glob.c: Add.
48664
48665 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48666
48667         * modules/fnmatch-tests: New module.
48668         * tests/test-fnmatch.c: Add.
48669
48670 2009-05-04  Eric Blake  <ebb9@byu.net>
48671
48672         maint: make the new no-submodule-changes rule VPATH-safe
48673         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48674
48675 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48676             Bruno Haible  <bruno@clisp.org>
48677
48678         acl: Fix infinite loop on FreeBSD.
48679         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48680         of return value from acl_get_entry.
48681         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48682         Likewise.
48683
48684 2009-05-03  Bruno Haible  <bruno@clisp.org>
48685
48686         * lib/acl-internal.h (acl_entries): Clarify return value.
48687         * lib/acl_entries.c (acl_entries): Likewise.
48688
48689 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48690
48691         Bug fix in acl module.
48692         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48693
48694 2009-05-03  Bruno Haible  <bruno@clisp.org>
48695
48696         Create gperf-generated file in the source dir, not in the build dir.
48697         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48698         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48699         * modules/unicase/locale-language (unicase/locale-languages.h):
48700         Likewise.
48701         * modules/unicase/special-casing (unicase/special-casing-table.h):
48702         Likewise.
48703         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48704         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48705         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48706         Reported by Ralf Wildenhues.
48707
48708 2009-05-03  Bruno Haible  <bruno@clisp.org>
48709
48710         * modules/fnmatch (Description, configure.ac): Taken from
48711         fnmatch-posix.
48712         * modules/fnmatch-posix: Turn into a symbolic reference to the
48713         'fnmatch' module, and deprecate.
48714         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48715
48716 2009-05-03  Bruno Haible  <bruno@clisp.org>
48717
48718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48719         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48720         Reported by Ralf Wildenhues.
48721
48722 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48723
48724         * m4/fnmatch.m4: Fix fnmatch re-define.
48725
48726 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48727
48728         priv-set: new module and tests; adapt write-any-file
48729         * lib/priv-set.c: New file.
48730         * lib/priv-set.h: New file.
48731         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48732         * lib/write-any-file.c: Simplify by using priv-set module.
48733         * m4/priv-set.m4: New file.
48734         * modules/priv-set: New file.
48735         * modules/unlinkdir: Add dependency on priv-set module.
48736         * modules/write-any-file: Likewise.
48737
48738         Tests for module 'priv-set'.
48739         * modules/priv-set-tests: New file.
48740         * tests/test-priv-set.c: New file.
48741
48742 2009-05-03  Jim Meyering  <meyering@redhat.com>
48743             Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48746         use the converted UTF-8 variant of the name instead.
48747
48748 2009-05-03  Jim Meyering  <meyering@redhat.com>
48749
48750         tests: tighten some getdate tests
48751         * tests/test-getdate.c (main): Tighten tests: require equality,
48752         not just greater than.  Set TZ envvar to UTC0.
48753
48754 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48755
48756         getdate: correctly interpret "next monday" when run on a Monday
48757         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48758         that e.g., "next tues" (when run on a tuesday) results in a date
48759         that is one week in the future, and not today's date.
48760         I.e., add a week when the wday is the same as the current one.
48761         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48762         and earlier by Martin Bernreuther and Jan Minář.
48763         * tests/test-getdate.c (main): Check that "next DAY" is always in
48764         the future and that "last DAY" is always in the past.
48765
48766 2009-05-02  Jim Meyering  <meyering@redhat.com>
48767
48768         build: ensure that a release build fails when a submodule is unclean
48769         * top/maint.mk (no-submodule-changes): New rule.
48770         (alpha beta major): Depend on it.
48771
48772 2009-05-02  Bruno Haible  <bruno@clisp.org>
48773
48774         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48775         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48776         shell variable gl_fnmatch_required to detect which variant is
48777         requested.
48778         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48779         gl_FUNC_FNMATCH_POSIX.
48780         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48781         exclude fnmatch-posix.
48782
48783 2009-05-02  Bruno Haible  <bruno@clisp.org>
48784
48785         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48786         * modules/mbsrtowcs (License): Change to LGPLv2+.
48787         * modules/strnlen1 (License): Likewise.
48788         Reported by Simon Josefsson.
48789
48790 2009-05-02  Bruno Haible  <bruno@clisp.org>
48791
48792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48793         "cross".
48794         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48795         gnulib-tool was called with option --source-base=lib.
48796
48797 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48798
48799         Use automake *-local hooks without commands, for extensibility.
48800         * modules/localcharset (Makefile.am): Rename install-exec-local
48801         rule to install-exec-localcharset, and make it a prerequisite of
48802         install-exec-local.  Likewise, rename the uninstall-local rule to
48803         uninstall-localcharset, and make it a prerequisite of the former.
48804
48805 2009-05-01  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48808         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48809         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48811         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48812         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48813         m4/locale-zh.m4, m4/codeset.m4.
48814
48815         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48816         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48817         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48818         m4/locale-zh.m4.
48819
48820         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48821         REPLACE_WCRTOMB if mbstate_t must be replaced.
48822         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48823         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48824
48825 2009-05-01  Bruno Haible  <bruno@clisp.org>
48826
48827         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48828         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48829         dngettext, dcngettext, textdomain, bindtextdomain,
48830         bind_textdomain_codeset): Undefine before redefining.
48831
48832 2009-04-30  Bruno Haible  <bruno@clisp.org>
48833
48834         Fix bug introduced on 2009-04-25.
48835         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48836         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48837         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48838         is defined.
48839         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48840         is defined.
48841         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48842         is defined.
48843         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48844
48845 2009-04-28  Bruno Haible  <bruno@clisp.org>
48846
48847         Comment tweaks.
48848         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48849         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48850         * lib/unicase.h (u*_casexfrm): Likewise.
48851         Reported by Paolo Bonzini.
48852
48853 2009-04-28  Bruno Haible  <bruno@clisp.org>
48854
48855         Fix a compilation error.
48856         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48857         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48858         Reported by Jim Meyering.
48859
48860 2009-04-27  Bruno Haible  <bruno@clisp.org>
48861
48862         New module 'libunistring'.
48863         * modules/libunistring: New file.
48864         * m4/libunistring.m4: New file.
48865         * MODULES.html.sh (Unicode string functions): Add it.
48866
48867 2009-04-27  Eric Blake  <ebb9@byu.net>
48868
48869         maint.mk: allow package-specific header to provide <config.h>
48870         * top/maint.mk (sc_require_config_h): New variable.
48871         (sc_require_config_h, sc_require_config_h_first): Use it.
48872
48873 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48874
48875         * top/maint.mk (sc_avoid_if_before_free): Except
48876         useless-if-before-free script.
48877
48878 2009-04-27  Eric Blake  <ebb9@byu.net>
48879
48880         maintainer-makefile: depend on all required helper scripts
48881         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48882         useless-if-before-free.
48883         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48884         version, rather than assuming gnulib checkout is available.
48885         Reported by Simen Josefsson.
48886
48887 2009-04-26  Bruno Haible  <bruno@clisp.org>
48888
48889         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48890         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48891         "../" or "..".
48892
48893 2009-04-26  Bruno Haible  <bruno@clisp.org>
48894
48895         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48896         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48897         AC_LIB_HAVE_LINKFLAGS.
48898
48899 2009-04-26  Bruno Haible  <bruno@clisp.org>
48900
48901         Simplify calling convention of u*_conv_from_encoding.
48902         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48903         u32_conv_from_encoding): Expect a resultbuf argument and return the
48904         result directly as a pointer.
48905         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48906         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48907         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48908         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48909         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48910         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48911         Update.
48912         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48913         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48914         * lib/vasnprintf.c (VASNPRINTF): Update.
48915         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48916         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48917         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48918         * NEWS: Mention the change.
48919
48920 2009-04-26  Bruno Haible  <bruno@clisp.org>
48921
48922         Simplify calling convention of u*_conv_to_encoding.
48923         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48924         u32_conv_to_encoding): Expect a resultbuf argument and return the
48925         result directly as a pointer.
48926         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48927         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48928         freeing scaled_offsets if mem_iconveha failed.
48929         * lib/unicase/u-casexfrm.h (FUNC): Update.
48930         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48931         * lib/vasnprintf.c (VASNPRINTF): Update.
48932         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48933         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48934         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48935         * NEWS: Mention the change.
48936
48937 2009-04-26  Bruno Haible  <bruno@clisp.org>
48938
48939         Avoid test failures on AIX and OSF/1.
48940         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48941         malloc(0).
48942         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48943         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48944         Likewise.
48945         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48946         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48947         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48948         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48949         * doc/posix-functions/malloc.texi: Document the portability problem
48950         related to malloc(0).
48951
48952 2009-04-26  Bruno Haible  <bruno@clisp.org>
48953
48954         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48955         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48956         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48957
48958 2009-04-25  Bruno Haible  <bruno@clisp.org>
48959
48960         Avoid link error when creating a namespace clean library.
48961         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48962         as macro with arguments if already defined as an alias.
48963         * lib/signbitf.c (gl_signbitf): Don't undefine.
48964         * lib/signbitd.c (gl_signbitd): Don't undefine.
48965         * lib/signbitl.c (gl_signbitl): Don't undefine.
48966
48967 2009-04-25  Jim Meyering  <meyering@redhat.com>
48968
48969         vc-list-files: fix another quoting bug
48970         * build-aux/vc-list-files: Avoid sed backslash expansion
48971         of pathological directory names.
48972
48973 2009-04-25  Eric Blake  <ebb9@byu.net>
48974
48975         vc-list-files: fix shell quoting error
48976         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48977         timestamp.
48978
48979 2009-04-25  Jim Meyering  <meyering@redhat.com>
48980
48981         vc-list-files: restore lost functionality with subdir argument
48982         * build-aux/vc-list-files: When given a non-"." sub-directory
48983         argument, substitute the $dir/ prefix back onto each resulting name.
48984         Otherwise, coreutils' root_tests check would fail.
48985
48986 2009-04-24  Eric Blake  <ebb9@byu.net>
48987
48988         vc-list-files: ignore git symlinks
48989         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48990         than ls-files, to ignore git symlinks.
48991
48992         maint.mk: import improvements from m4
48993         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48994         (move_if_change): Delete unused macro.
48995         (news-date-check, vc-diff-check): Support VPATH builds.
48996         (announcement): Likewise.  Split --bootstrap-tools list...
48997         (boostrap-tools): ...into separate list, which can be overridden
48998         in cfg.mk.
48999         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49000         requiring dependency on useless-if-before-free module.
49001         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49002         Support VPATH builds.
49003
49004 2009-04-24  Jim Meyering  <meyering@redhat.com>
49005
49006         maint.mk: remove coreutils-specific rules and variables
49007         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49008         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49009         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49010
49011         maint.mk: remove obsolete rule
49012         * top/maint.mk (rel-check): Remove rule.
49013         (WGET, WGETFLAGS): Remove now-unused variables.
49014
49015 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49016
49017         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49018         consistency.
49019
49020         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49021         '$(PATH_SEPARATOR)' instead of ':'.
49022
49023 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49024
49025         * lib/getopt1.c (main): Use 'const' for static array.
49026
49027 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49028
49029         * top/maint.mk: Sync with coreutils.
49030         * NEWS: Explain incompatibilities.
49031
49032 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49033             Bruno Haible  <bruno@clisp.org>
49034
49035         Fix cross-compilation results.
49036         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49037         statement, as third argument of AC_TRY_RUN.
49038         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49039         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49040         Likewise.
49041         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49042         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49043         Likewise.
49044         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49046         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49047
49048 2009-04-20  Bruno Haible  <bruno@clisp.org>
49049
49050         Avoid test failure on mingw.
49051         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49052
49053 2009-04-20  Bruno Haible  <bruno@clisp.org>
49054
49055         Avoid compilation error on mingw.
49056         * modules/localename-tests (Depends-on): Add locale.
49057
49058 2009-04-19  Bruno Haible  <bruno@clisp.org>
49059
49060         Support for building a shared library on Windows platforms.
49061         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49062         (main): Test the presence of UNINORM_NFC here.
49063         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49064         (main): Test the presence of UNINORM_NFD here.
49065         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49066         (main): Test the presence of UNINORM_NFKC here.
49067         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49068         (main): Test the presence of UNINORM_NFKD here.
49069
49070 2009-04-19  Bruno Haible  <bruno@clisp.org>
49071
49072         Avoid a compiler warning.
49073         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49074         Change type of variable 'sequence'.
49075
49076 2009-04-19  Bruno Haible  <bruno@clisp.org>
49077
49078         * modules/configmake (Makefile.am): When the contents of configmake.h
49079         does not change, arrange to preserve its modification time.
49080
49081 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49082
49083         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49084         gettext domain.
49085
49086 2009-04-16  Jim Meyering  <meyering@redhat.com>
49087
49088         useless-if-before-free: improve conversion code
49089         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49090         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49091
49092 2009-04-14  Bruno Haible  <bruno@clisp.org>
49093
49094         * modules/fcntl (Depends-on): Add extensions.
49095         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49096
49097 2009-04-12  Ben Pfaff  <blp@gnu.org>
49098
49099         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49100         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49101
49102 2009-03-20  Ben Pfaff  <blp@gnu.org>
49103
49104         Make rename replace existing destinations on Windows.
49105         * m4/rename.m4: Add test for Mingw.
49106         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49107         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49108         * doc/posix-functions/rename.texi: Document.
49109
49110 2009-04-10  Bruno Haible  <bruno@clisp.org>
49111
49112         New include file "iconveh.h".
49113         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49114         * lib/striconveh.h: Include it.
49115         (enum iconv_ilseq_handler): Remove definition.
49116         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49117         striconveh.h.
49118         * lib/striconveha.c: Include striconveh.h.
49119         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49120         * modules/striconveh (Files): Add lib/iconveh.h.
49121         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49122         lib/striconveh.h.
49123
49124 2009-04-10  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/uniconv.h: Update comment.
49127
49128 2009-04-10  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49131         always.
49132         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49133         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49134         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49135         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49136         "unistring-notinline.h", so that the function gets defined always.
49137         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49138         * lib/unistr/u8-uctomb.c: Likewise.
49139         * lib/unistr/u16-mbtouc.c: Likewise.
49140         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49141         * lib/unistr/u16-uctomb.c: Likewise.
49142         * lib/unistr/u32-mbtouc.c: Likewise.
49143         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49144         * lib/unistr/u32-uctomb.c: Likewise.
49145
49146 2009-04-10  Bruno Haible  <bruno@clisp.org>
49147
49148         Mark 'utime' obsolete.
49149         * modules/utime (Status, Notice): New sections.
49150         Suggested by Jim Meyering.
49151
49152         Fix cross-compile guess for utime test.
49153         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49154         autoconf.
49155         * doc/posix-functions/utime.texi: Give more precisions.
49156         Reported by Jan <ipif@ymail.com>.
49157
49158 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49159
49160         filevercmp: correct today's change
49161         * lib/filevercmp.c: Also handle coreutils' test inputs.
49162         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49163
49164         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49165         for reporting it.
49166         * lib/filevercmp.c: Special handle for "", "." and "..".
49167         * tests/test-filevercmp.c: Enlarge the set suite.
49168
49169 2009-04-07  Jim Meyering  <meyering@redhat.com>
49170
49171         useless-if-before-free: show how to remove braced useless free, too
49172         * build-aux/useless-if-before-free: still only in a comment, though.
49173
49174 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49175
49176         maint.mk: import changes to syntax-check macros from coreutils
49177         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49178         Use them in the relevant macros.
49179
49180 2009-04-06  Bruno Haible  <bruno@clisp.org>
49181
49182         Fix unportable use of bit-fields.
49183         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49184         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49185         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49186
49187 2009-04-06  Bruno Haible  <bruno@clisp.org>
49188
49189         Avoid test failures on AIX and OSF/1.
49190         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49191         that malloc(0) = NULL.
49192         * tests/unicase/test-u8-tolower.c (check): Likewise.
49193         * tests/unicase/test-u8-totitle.c (check): Likewise.
49194         * tests/unicase/test-u8-toupper.c (check): Likewise.
49195         * tests/unicase/test-u16-casefold.c (check): Likewise.
49196         * tests/unicase/test-u16-tolower.c (check): Likewise.
49197         * tests/unicase/test-u16-totitle.c (check): Likewise.
49198         * tests/unicase/test-u16-toupper.c (check): Likewise.
49199         * tests/unicase/test-u32-casefold.c (check): Likewise.
49200         * tests/unicase/test-u32-tolower.c (check): Likewise.
49201         * tests/unicase/test-u32-totitle.c (check): Likewise.
49202         * tests/unicase/test-u32-toupper.c (check): Likewise.
49203         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49204         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49205         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49206         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49207         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49208         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49209         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49210         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49211         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49212         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49213         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49214         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49215
49216 2009-04-05  Bruno Haible  <bruno@clisp.org>
49217
49218         Work around an autoconf limitation.
49219         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49220         comment line if it would be longer than 3 KB.
49221
49222 2009-04-05  Bruno Haible  <bruno@clisp.org>
49223
49224         Avoid test failure with libiconv-1.13.
49225         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49226         of the expected test results.
49227
49228 2009-04-05  Bruno Haible  <bruno@clisp.org>
49229
49230         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49231         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49232         that it should be installed.
49233
49234 2009-04-05  Bruno Haible  <bruno@clisp.org>
49235
49236         * gnulib-tool: New option --copy-file.
49237         (func_usage): Document it.
49238         (func_dest_tmpfilename): Moved out of func_import.
49239         (func_add_file, func_update_file): New functions, extracted from
49240         func_import.
49241         (func_import): Update.
49242
49243 2009-04-05  Karl Berry  <karl@gnu.org>
49244
49245         * README: prominently mention gnulib-tool.
49246         Rearrange sections so getting the code is near the top.
49247
49248 2009-04-05  Bruno Haible  <bruno@clisp.org>
49249
49250         * lib/unicase.h: Mention u*_cmp2.
49251         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49252         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49253         * lib/unicase/ulc-casecmp.c: Likewise.
49254         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49255         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49256         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49257         unistr/u8-cmp.
49258         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49259         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49260         unistr/u16-cmp.
49261         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49262         unistr/u32-cmp.
49263
49264         * lib/uninorm.h: Mention u*_cmp2.
49265         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49266         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49267         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49268         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49269         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49270         unistr/u8-cmp.
49271         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49272         unistr/u16-cmp.
49273         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49274         unistr/u32-cmp.
49275
49276         New module 'unistr/u32-cmp2'.
49277         * lib/unistr/u32-cmp2.c: New file.
49278         * modules/unistr/u32-cmp2: New file.
49279
49280         New module 'unistr/u16-cmp2'.
49281         * lib/unistr/u16-cmp2.c: New file.
49282         * modules/unistr/u16-cmp2: New file.
49283
49284         New module 'unistr/u8-cmp2'.
49285         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49286         * lib/unistr/u8-cmp2.c: New file.
49287         * lib/unistr/u-cmp2.h: New file.
49288         * modules/unistr/u8-cmp2: New file.
49289
49290 2009-04-05  Bruno Haible  <bruno@clisp.org>
49291
49292         * lib/unictype.h (uc_property_is_valid): New macro.
49293         * tests/unictype/test-pr_byname.c (main): Use it.
49294
49295         * lib/unistr.h: Doc fixes.
49296         * lib/uniconv.h: Doc fixes.
49297         * lib/unictype.h: Doc fixes.
49298
49299 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         Port coreutils 7.2 to Solaris 8.
49302
49303         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49304         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49305         for Solaris 8.  This is a bit of a hack, as it means it's the
49306         caller's responsibility to add -lnsl if needed, but most likely it
49307         won't be needed since only getaddrinfo uses this and getaddrinfo
49308         isn't needed on Solaris 8.
49309
49310         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49311         problem to Solaris 8 encountered with coreutils 7.2, which
49312         resulted in a message "fnmatch.c:292: warning: passing argument 4
49313         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49314         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49315
49316 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49317
49318         * m4/ld-version-script.m4: Add FIXME comment.
49319
49320 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49321
49322         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49323         SOVERSION variable.
49324
49325 2009-04-02  Bruno Haible  <bruno@clisp.org>
49326
49327         * Makefile (info, html, dvi, pdf): Combine the rules.
49328         Suggested by Jim Meyering.
49329
49330 2009-04-01  Bruno Haible  <bruno@clisp.org>
49331
49332         * Makefile (info, html, dvi, pdf): New targets.
49333         Reported by Reuben Thomas <rrt@sc3d.org>.
49334
49335 2009-04-01  Bruno Haible  <bruno@clisp.org>
49336
49337         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49338         can be put into PATH.
49339         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49340
49341 2009-04-01  Bruno Haible  <bruno@clisp.org>
49342
49343         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49344
49345 2009-04-01  Bruno Haible  <bruno@clisp.org>
49346
49347         Rename module 'visibility'.
49348         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49349         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49350         * doc/gnulib.texi: Update.
49351         * MODULES.html.sh (Misc): Update.
49352         * NEWS: Mention the change.
49353
49354 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49355
49356         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49357         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49358         Eric Blake <ebb9@byu.net> for review.
49359         * MODULES.html.sh: Add lib-msvc-compat.
49360         * doc/gnulib.texi: Link to new section.
49361         * m4/ld-output-def.m4: New file.
49362         * doc/ld-output-def.texi: New file.
49363
49364 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49365
49366         Rename ld-version-script to lib-symbol-versions.  Suggested by
49367         Bruno Haible <bruno@clisp.org>.
49368         * modules/ld-version-script: Renamed to lib-symbol-versions.
49369         * doc/ld-version-script.texi: Fix module name.
49370         * MODULES.html.sh: Add lib-symbol-versions.
49371
49372 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49373
49374         * modules/u64-tests: New file.
49375         * tests/test-u64.c: New file.
49376
49377 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49378
49379         * MODULES.html.sh: Mention u64.
49380         * modules/u64: New module.
49381         * modules/crypto/sha512: Depend on u64 module instead of providing
49382         u64.h.
49383
49384 2009-03-27  Eric Blake  <ebb9@byu.net>
49385
49386         test-strerror: make debugging EAI_SYSTEM easier
49387         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49388         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49389         failure was EAI_SYSTEM.
49390
49391 2009-03-25  Bruno Haible  <bruno@clisp.org>
49392
49393         Fix a problem with --enable-relocatable on Solaris 7.
49394         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49395         since 2008-02-24.
49396
49397 2009-03-25  Eric Blake  <ebb9@byu.net>
49398
49399         test-sockets: avoid gcc warning
49400         * tests/test-sockets.c (main): Silence compiler warning.
49401
49402 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49403
49404         New modules nproc, pthread, contributed by Glen Lenker.
49405
49406         * MODULES.html.sh: Add pthread, nproc.
49407         * lib/nproc.c: New file.
49408         * lib/nproc.h: New file.
49409         * lib/pthread.in.h: New file.
49410         * m4/pthread.m4: New file.
49411         * modules/nproc: New file.
49412         * modules/pthread: New file.
49413
49414 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49415
49416         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49417         New variable.
49418
49419 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49420
49421         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49422         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49423         * tests/test-filevercmp.c: Add tests for backup suffixes.
49424
49425 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49426
49427         * modules/stdlib (Depends-on): Add stdint, needed when defining
49428         struct random_data on, for example, HP-UX 10.20.  Reported by
49429         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49430
49431 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49432
49433         * lib/readline.c (readline): Call fflush on stdout after printing
49434         prompt.
49435
49436 2009-03-20  Bruno Haible  <bruno@clisp.org>
49437
49438         Remove dependency from 'close' module to -lws2_32 on native Windows.
49439         * lib/close-hook.h: New file.
49440         * lib/close-hook.c: New file.
49441         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49442         w32sock.h.
49443         (_gl_close_fd_maybe_socket): Remove function.
49444         (rpl_close): Invoke execute_all_close_hooks instead of
49445         _gl_close_fd_maybe_socket.
49446         * lib/sockets.c: Include close-hook.h, w32sock.h.
49447         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49448         (close_sockets_hook): New variable.
49449         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49450         (gl_sockets_cleanup): Unregister it.
49451         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49452         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49453         * modules/close-hook: New file.
49454         * modules/close (Files): Remove lib/w32sock.h.
49455         (Depends-on): Add close-hook.
49456         (Link): Remove section.
49457         * modules/sockets (Files): Add lib/w32sock.h.
49458         (Depends-on): Add close-hook.
49459         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49460         invocation.
49461         * NEWS: Mention that LIB_CLOSE is gone.
49462
49463 2009-03-23  Eric Blake  <ebb9@byu.net>
49464
49465         signal-tests: test previous patch
49466         * tests/test-signal.c: New file.
49467         * modules/signal-tests: Likewise.
49468
49469         signal.h: always support 'volatile sig_atomic_t'
49470         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49471         (gl_SIGNAL_H_DEFAULTS): Add a default.
49472         * modules/signal (Makefile.am): Substitute if needed.
49473         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49474         users can blindly add volatile.
49475         * doc/posix-headers/signal.texi (signal.h): Document it.
49476         Reported by Matthew Woehlke.
49477
49478 2009-03-23  Jim Meyering  <meyering@redhat.com>
49479
49480         pathmax: PATH_MAX: use pathconf only when available
49481         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49482         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49483         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49484         This avoids a link failure in a PSP cross-compilation environment
49485         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49486
49487         * lib/vasnprintf.c (divide): Fix typo in comment.
49488
49489 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49490
49491         * gnulib-tool (func_filter_filelist): Fix comment.
49492
49493 2009-03-20  Bruno Haible  <bruno@clisp.org>
49494
49495         Make sockets.h self-contained.
49496         * lib/sockets.c: Include sockets.h first.
49497         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49498
49499 2009-03-19  Eric Blake  <ebb9@byu.net>
49500
49501         doc: mention more functions added in cygwin 1.7.0
49502         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49503         addition.
49504         * doc/posix-functions/log2f.texi: Likewise.
49505
49506 2009-03-19  Jim Meyering  <meyering@redhat.com>
49507
49508         fsusage: avoid syntax error due to statement-before-declaration
49509         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49510         after all declarations.  Reported by Matthew Woehlke in
49511         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49512
49513 2009-03-18  Eric Blake  <ebb9@byu.net>
49514
49515         build-aux/compile: sync from automake
49516         * build-aux/compile: New file, from automake.
49517         * config/srclist.txt: Mention build-aux/compile.
49518
49519 2009-03-17  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/git-merge-changelog.c: Fix typo in comment.
49522         Reported by Reuben Thomas <rrt@sc3d.org>.
49523
49524 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49525
49526         * m4/regex.m4: update and improve help for
49527         --without-included-regex.
49528
49529 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49530
49531         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49532         failure on missing include files.
49533
49534 2009-03-17  Eric Blake  <ebb9@byu.net>
49535
49536         doc: mention more functions added in cygwin 1.7.0
49537         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49538         addition.
49539         * doc/posix-functions/fwscanf.texi: Likewise.
49540         * doc/posix-functions/swprintf.texi: Likewise.
49541         * doc/posix-functions/swscanf.texi: Likewise.
49542         * doc/posix-functions/vfwprintf.texi: Likewise.
49543         * doc/posix-functions/vfwscanf.texi: Likewise.
49544         * doc/posix-functions/vswprintf.texi: Likewise.
49545         * doc/posix-functions/vswscanf.texi: Likewise.
49546         * doc/posix-functions/vwprintf.texi: Likewise.
49547         * doc/posix-functions/vwscanf.texi: Likewise.
49548         * doc/posix-functions/wcscasecmp.texi: Likewise.
49549         * doc/posix-functions/wcsdup.texi: Likewise.
49550         * doc/posix-functions/wcsftime.texi: Likewise.
49551         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49552         * doc/posix-functions/wprintf.texi: Likewise.
49553         * doc/posix-functions/wscanf.texi: Likewise.
49554         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49555
49556 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49557
49558         maint.mk: really add $(AM_MAKEFLAGS)
49559         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49560         was inadvertently omitted in the last commit.
49561         Spotted by Bruno Haible.
49562
49563         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49564         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49565         $(AM_MAKEFLAGS)' rather than plain `make'.
49566
49567         gnulib-tool: execute $MAKE not make
49568         * gnulib-tool: Default $MAKE to 'make'.
49569         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49570         than make.  Initialize $MAKE in the do-autobuild script.
49571
49572         gnulib-tool: use $MAKE not make in generated files
49573         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49574         make, in generated files.  Initialize $MAKE in the do-autobuild
49575         script.
49576
49577         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49578
49579         GNUmakefile: disable parallelism only for multiple, recursive targets
49580         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49581         additions in the Makefile.
49582         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49583         by Automake.
49584         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49585         are listed on the command line and at least one of them is
49586         listed in $(ALL_RECURSIVE_TARGETS).
49587
49588 2009-03-14  Bruno Haible  <bruno@clisp.org>
49589
49590         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49591         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49592         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49593         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49594         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49595         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49596         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49597         unistr/u8-uctomb.
49598         * modules/unistr/u8-strchr (Depends-on): Likewise.
49599         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49600         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49601         unistr/u16-uctomb.
49602         * modules/unistr/u16-strchr (Depends-on): Likewise.
49603         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49604
49605 2009-03-12  Bruno Haible  <bruno@clisp.org>
49606
49607         Work around select() bug on Interix 3.5.
49608         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49609         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49610         * m4/select.m4: New file.
49611         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49612         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49613         * modules/select (Files): Add m4/select.m4.
49614         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49615         * modules/nanosleep (Depends-on): Add select.
49616         * modules/poll (Depends-on): Likewise.
49617         * doc/posix-functions/select.texi: Mention the Interix bug.
49618         Reported by Markus Duft <mduft@gentoo.org>.
49619
49620         * lib/select.c: Renamed from lib/winsock-select.c.
49621         * modules/select (Files): Add lib/select.c, remove
49622         lib/winsock-select.c.
49623         (configure.ac): Update.
49624
49625 2009-03-12  Jim Meyering  <meyering@redhat.com>
49626
49627         avoid gcc warnings about unused macro definitions
49628         * lib/readtokens.c (STREQ): Remove unused definition.
49629         * lib/xmalloc.c (SIZE_MAX): Likewise.
49630         * lib/openat-die.c (N_): Likewise.
49631         * lib/mountlist.c (SIZE_MAX): Remove definition.
49632         Instead, include <stdint.h>.
49633         * lib/readutmp.c: Likewise.
49634         * modules/readutmp (Depends-on): Add stdint.
49635         * modules/mountlist (Depends-on): Add stdint.
49636         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49637
49638 2009-03-10  Bruno Haible  <bruno@clisp.org>
49639
49640         Tests for module 'mbmemcasecoll'.
49641         * modules/mbmemcasecoll-tests: New file.
49642         * tests/test-mbmemcasecoll1.sh: New file.
49643         * tests/test-mbmemcasecoll2.sh: New file.
49644         * tests/test-mbmemcasecoll3.sh: New file.
49645         * tests/test-mbmemcasecoll.c: New file.
49646
49647         New module 'mbmemcasecoll'.
49648         * lib/mbmemcasecoll.h: New file.
49649         * lib/mbmemcasecoll.c: New file.
49650         * modules/mbmemcasecoll: New file.
49651
49652         * tests/test-mbmemcasecmp.h: New file, extracted from
49653         tests/test-mbmemcasecmp.c.
49654         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49655         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49656         (main): Update.
49657         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49658
49659 2009-03-09  Bruno Haible  <bruno@clisp.org>
49660
49661         Tests for module 'mbmemcasecmp'.
49662         * modules/mbmemcasecmp-tests: New file.
49663         * tests/test-mbmemcasecmp1.sh: New file.
49664         * tests/test-mbmemcasecmp2.sh: New file.
49665         * tests/test-mbmemcasecmp3.sh: New file.
49666         * tests/test-mbmemcasecmp.c: New file.
49667
49668         New module 'mbmemcasecmp'.
49669         * lib/mbmemcasecmp.h: New file.
49670         * lib/mbmemcasecmp.c: New file.
49671         * modules/mbmemcasecmp: New file.
49672
49673 2009-03-09  Bruno Haible  <bruno@clisp.org>
49674
49675         Tests for module 'unicase/ulc-casecoll'.
49676         * modules/unicase/ulc-casecoll-tests: New file.
49677         * tests/unicase/test-ulc-casecoll1.sh: New file.
49678         * tests/unicase/test-ulc-casecoll2.sh: New file.
49679         * tests/unicase/test-ulc-casecoll.c: New file.
49680
49681         New module 'unicase/ulc-casecoll'.
49682         * lib/unicase.h (ulc_casecoll): New declaration.
49683         * lib/unicase/ulc-casecoll.c: New file.
49684         * modules/unicase/ulc-casecoll: New file.
49685
49686         New module 'unicase/ulc-casexfrm'.
49687         * lib/unicase.h (ulc_casexfrm): New declaration.
49688         * lib/unicase/ulc-casexfrm.c: New file.
49689         * modules/unicase/ulc-casexfrm: New file.
49690
49691 2009-03-09  Bruno Haible  <bruno@clisp.org>
49692
49693         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49694         invocations.
49695
49696         * m4/mbscasecmp.m4: Remove file.
49697         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49698         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49699
49700         * m4/mbscasestr.m4: Remove file.
49701         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49702         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49703
49704         * m4/mbschr.m4: Remove file.
49705         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49706         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49707
49708         * m4/mbscspn.m4: Remove file.
49709         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49710         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49711
49712         * m4/mbslen.m4: Remove file.
49713         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49714         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49715
49716         * m4/mbsncasecmp.m4: Remove file.
49717         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49718         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49719
49720         * m4/mbsnlen.m4: Remove file.
49721         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49722         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49723
49724         * m4/mbspbrk.m4: Remove file.
49725         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49726         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49727
49728         * m4/mbspcasecmp.m4: Remove file.
49729         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49730         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49731
49732         * m4/mbsrchr.m4: Remove file.
49733         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49734         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49735
49736         * m4/mbssep.m4: Remove file.
49737         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49738         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49739
49740         * m4/mbsspn.m4: Remove file.
49741         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49742         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49743
49744         * m4/mbsstr.m4: Remove file.
49745         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49746         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49747
49748         * m4/mbstok_r.m4: Remove file.
49749         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49750         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49751
49752         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49753
49754         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49755         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49756
49757         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49758
49759 2009-03-08  Bruno Haible  <bruno@clisp.org>
49760
49761         Tests for module 'unicase/ulc-casecmp'.
49762         * modules/unicase/ulc-casecmp-tests: New file.
49763         * tests/unicase/test-ulc-casecmp1.sh: New file.
49764         * tests/unicase/test-ulc-casecmp2.sh: New file.
49765         * tests/unicase/test-ulc-casecmp.c: New file.
49766
49767         New module 'unicase/ulc-casecmp'.
49768         * lib/unicase.h (ulc_casecmp): New declaration.
49769         * lib/unicase/ulc-casecmp.c: New file.
49770         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49771         'const SRC_UNIT *'.
49772         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49773         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49774         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49775         * modules/unicase/ulc-casecmp: New file.
49776
49777         Tests for module 'unicase/u32-is-cased'.
49778         * modules/unicase/u32-is-cased-tests: New file.
49779         * tests/unicase/test-u32-is-cased.c: New file.
49780
49781         Tests for module 'unicase/u16-is-cased'.
49782         * modules/unicase/u16-is-cased-tests: New file.
49783         * tests/unicase/test-u16-is-cased.c: New file.
49784
49785         Tests for module 'unicase/u8-is-cased'.
49786         * modules/unicase/u8-is-cased-tests: New file.
49787         * tests/unicase/test-u8-is-cased.c: New file.
49788         * tests/unicase/test-is-cased.h: New file.
49789
49790         New module 'unicase/u32-is-cased'.
49791         * lib/unicase/u32-is-cased.c: New file.
49792         * modules/unicase/u32-is-cased: New file.
49793
49794         New module 'unicase/u16-is-cased'.
49795         * lib/unicase/u16-is-cased.c: New file.
49796         * modules/unicase/u16-is-cased: New file.
49797
49798         New module 'unicase/u8-is-cased'.
49799         * lib/unicase/u8-is-cased.c: New file.
49800         * lib/unicase/u-is-cased.h: New file.
49801         * modules/unicase/u8-is-cased: New file.
49802
49803         Tests for module 'unicase/u32-is-casefolded'.
49804         * modules/unicase/u32-is-casefolded-tests: New file.
49805         * tests/unicase/test-u32-is-casefolded.c: New file.
49806
49807         Tests for module 'unicase/u16-is-casefolded'.
49808         * modules/unicase/u16-is-casefolded-tests: New file.
49809         * tests/unicase/test-u16-is-casefolded.c: New file.
49810
49811         Tests for module 'unicase/u8-is-casefolded'.
49812         * modules/unicase/u8-is-casefolded-tests: New file.
49813         * tests/unicase/test-u8-is-casefolded.c: New file.
49814         * tests/unicase/test-is-casefolded.h: New file.
49815
49816         New module 'unicase/u32-is-casefolded'.
49817         * lib/unicase/u32-is-casefolded.c: New file.
49818         * modules/unicase/u32-is-casefolded: New file.
49819
49820         New module 'unicase/u16-is-casefolded'.
49821         * lib/unicase/u16-is-casefolded.c: New file.
49822         * modules/unicase/u16-is-casefolded: New file.
49823
49824         New module 'unicase/u8-is-casefolded'.
49825         * lib/unicase/u8-is-casefolded.c: New file.
49826         * modules/unicase/u8-is-casefolded: New file.
49827
49828         Tests for module 'unicase/u32-is-titlecase'.
49829         * modules/unicase/u32-is-titlecase-tests: New file.
49830         * tests/unicase/test-u32-is-titlecase.c: New file.
49831
49832         Tests for module 'unicase/u16-is-titlecase'.
49833         * modules/unicase/u16-is-titlecase-tests: New file.
49834         * tests/unicase/test-u16-is-titlecase.c: New file.
49835
49836         Tests for module 'unicase/u8-is-titlecase'.
49837         * modules/unicase/u8-is-titlecase-tests: New file.
49838         * tests/unicase/test-u8-is-titlecase.c: New file.
49839         * tests/unicase/test-is-titlecase.h: New file.
49840
49841         New module 'unicase/u32-is-titlecase'.
49842         * lib/unicase/u32-is-titlecase.c: New file.
49843         * modules/unicase/u32-is-titlecase: New file.
49844
49845         New module 'unicase/u16-is-titlecase'.
49846         * lib/unicase/u16-is-titlecase.c: New file.
49847         * modules/unicase/u16-is-titlecase: New file.
49848
49849         New module 'unicase/u8-is-titlecase'.
49850         * lib/unicase/u8-is-titlecase.c: New file.
49851         * modules/unicase/u8-is-titlecase: New file.
49852
49853         Tests for module 'unicase/u32-is-lowercase'.
49854         * modules/unicase/u32-is-lowercase-tests: New file.
49855         * tests/unicase/test-u32-is-lowercase.c: New file.
49856
49857         Tests for module 'unicase/u16-is-lowercase'.
49858         * modules/unicase/u16-is-lowercase-tests: New file.
49859         * tests/unicase/test-u16-is-lowercase.c: New file.
49860
49861         Tests for module 'unicase/u8-is-lowercase'.
49862         * modules/unicase/u8-is-lowercase-tests: New file.
49863         * tests/unicase/test-u8-is-lowercase.c: New file.
49864         * tests/unicase/test-is-lowercase.h: New file.
49865
49866         New module 'unicase/u32-is-lowercase'.
49867         * lib/unicase/u32-is-lowercase.c: New file.
49868         * modules/unicase/u32-is-lowercase: New file.
49869
49870         New module 'unicase/u16-is-lowercase'.
49871         * lib/unicase/u16-is-lowercase.c: New file.
49872         * modules/unicase/u16-is-lowercase: New file.
49873
49874         New module 'unicase/u8-is-lowercase'.
49875         * lib/unicase/u8-is-lowercase.c: New file.
49876         * modules/unicase/u8-is-lowercase: New file.
49877
49878         Tests for module 'unicase/u32-is-uppercase'.
49879         * modules/unicase/u32-is-uppercase-tests: New file.
49880         * tests/unicase/test-u32-is-uppercase.c: New file.
49881
49882         Tests for module 'unicase/u16-is-uppercase'.
49883         * modules/unicase/u16-is-uppercase-tests: New file.
49884         * tests/unicase/test-u16-is-uppercase.c: New file.
49885
49886         Tests for module 'unicase/u8-is-uppercase'.
49887         * modules/unicase/u8-is-uppercase-tests: New file.
49888         * tests/unicase/test-u8-is-uppercase.c: New file.
49889         * tests/unicase/test-is-uppercase.h: New file.
49890
49891         New module 'unicase/u32-is-uppercase'.
49892         * lib/unicase/u32-is-uppercase.c: New file.
49893         * modules/unicase/u32-is-uppercase: New file.
49894
49895         New module 'unicase/u16-is-uppercase'.
49896         * lib/unicase/u16-is-uppercase.c: New file.
49897         * modules/unicase/u16-is-uppercase: New file.
49898
49899         New module 'unicase/u8-is-uppercase'.
49900         * lib/unicase/u8-is-uppercase.c: New file.
49901         * modules/unicase/u8-is-uppercase: New file.
49902
49903         New module 'unicase/u32-is-invariant'.
49904         * lib/unicase/u32-is-invariant.c: New file.
49905         * modules/unicase/u32-is-invariant: New file.
49906
49907         New module 'unicase/u16-is-invariant'.
49908         * lib/unicase/u16-is-invariant.c: New file.
49909         * modules/unicase/u16-is-invariant: New file.
49910
49911         New module 'unicase/u8-is-invariant'.
49912         * lib/unicase/u8-is-invariant.c: New file.
49913         * lib/unicase/invariant.h: New file.
49914         * lib/unicase/u-is-invariant.h: New file.
49915         * modules/unicase/u8-is-invariant: New file.
49916
49917         Tests for module 'unicase/u32-casecoll'.
49918         * modules/unicase/u32-casecoll-tests: New file.
49919         * tests/unicase/test-u32-casecoll.c: New file.
49920
49921         Tests for module 'unicase/u16-casecoll'.
49922         * modules/unicase/u16-casecoll-tests: New file.
49923         * tests/unicase/test-u16-casecoll.c: New file.
49924
49925         Tests for module 'unicase/u8-casecoll'.
49926         * modules/unicase/u8-casecoll-tests: New file.
49927         * tests/unicase/test-u8-casecoll.c: New file.
49928
49929         New module 'unicase/u32-casecoll'.
49930         * lib/unicase/u32-casecoll.c: New file.
49931         * modules/unicase/u32-casecoll: New file.
49932
49933         New module 'unicase/u16-casecoll'.
49934         * lib/unicase/u16-casecoll.c: New file.
49935         * modules/unicase/u16-casecoll: New file.
49936
49937         New module 'unicase/u8-casecoll'.
49938         * lib/unicase/u8-casecoll.c: New file.
49939         * lib/unicase/u-casecoll.h: New file.
49940         * modules/unicase/u8-casecoll: New file.
49941
49942         New module 'unicase/u32-casexfrm'.
49943         * lib/unicase/u32-casexfrm.c: New file.
49944         * modules/unicase/u32-casexfrm: New file.
49945
49946         New module 'unicase/u16-casexfrm'.
49947         * lib/unicase/u16-casexfrm.c: New file.
49948         * modules/unicase/u16-casexfrm: New file.
49949
49950         New module 'unicase/u8-casexfrm'.
49951         * lib/unicase/u8-casexfrm.c: New file.
49952         * lib/unicase/u-casexfrm.h: New file.
49953         * modules/unicase/u8-casexfrm: New file.
49954
49955         Tests for module 'unicase/u32-casecmp'.
49956         * modules/unicase/u32-casecmp-tests: New file.
49957         * tests/unicase/test-u32-casecmp.c: New file.
49958
49959         Tests for module 'unicase/u16-casecmp'.
49960         * modules/unicase/u16-casecmp-tests: New file.
49961         * tests/unicase/test-u16-casecmp.c: New file.
49962
49963         Tests for module 'unicase/u8-casecmp'.
49964         * modules/unicase/u8-casecmp-tests: New file.
49965         * tests/unicase/test-u8-casecmp.c: New file.
49966         * tests/unicase/test-casecmp.h: New file.
49967
49968         New module 'unicase/u32-casecmp'.
49969         * lib/unicase/u32-casecmp.c: New file.
49970         * modules/unicase/u32-casecmp: New file.
49971
49972         New module 'unicase/u16-casecmp'.
49973         * lib/unicase/u16-casecmp.c: New file.
49974         * modules/unicase/u16-casecmp: New file.
49975
49976         New module 'unicase/u8-casecmp'.
49977         * lib/unicase/u8-casecmp.c: New file.
49978         * lib/unicase/u-casecmp.h: New file.
49979         * modules/unicase/u8-casecmp: New file.
49980
49981         Tests for module 'unicase/u32-casefold'.
49982         * modules/unicase/u32-casefold-tests: New file.
49983         * tests/unicase/test-u32-casefold.c: New file.
49984
49985         Tests for module 'unicase/u16-casefold'.
49986         * modules/unicase/u16-casefold-tests: New file.
49987         * tests/unicase/test-u16-casefold.c: New file.
49988
49989         Tests for module 'unicase/u8-casefold'.
49990         * modules/unicase/u8-casefold-tests: New file.
49991         * tests/unicase/test-u8-casefold.c: New file.
49992
49993         New module 'unicase/u32-casefold'.
49994         * lib/unicase/u32-casefold.c: New file.
49995         * modules/unicase/u32-casefold: New file.
49996
49997         New module 'unicase/u16-casefold'.
49998         * lib/unicase/u16-casefold.c: New file.
49999         * modules/unicase/u16-casefold: New file.
50000
50001         New module 'unicase/u8-casefold'.
50002         * lib/unicase/u8-casefold.c: New file.
50003         * lib/unicase/u-casefold.h: New file.
50004         * modules/unicase/u8-casefold: New file.
50005
50006         New module 'unicase/tocasefold'.
50007         * lib/unicase/casefold.h: New file.
50008         * lib/unicase/tocasefold.c: New file.
50009         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50010         * modules/unicase/tocasefold: New file.
50011
50012         Tests for module 'unicase/u32-totitle'.
50013         * modules/unicase/u32-totitle-tests: New file.
50014         * tests/unicase/test-u32-totitle.c: New file.
50015
50016         Tests for module 'unicase/u16-totitle'.
50017         * modules/unicase/u16-totitle-tests: New file.
50018         * tests/unicase/test-u16-totitle.c: New file.
50019
50020         Tests for module 'unicase/u8-totitle'.
50021         * modules/unicase/u8-totitle-tests: New file.
50022         * tests/unicase/test-u8-totitle.c: New file.
50023
50024         New module 'unicase/u32-totitle'.
50025         * lib/unicase/u32-totitle.c: New file.
50026         * modules/unicase/u32-totitle: New file.
50027
50028         New module 'unicase/u16-totitle'.
50029         * lib/unicase/u16-totitle.c: New file.
50030         * modules/unicase/u16-totitle: New file.
50031
50032         New module 'unicase/u8-totitle'.
50033         * lib/unicase/u8-totitle.c: New file.
50034         * lib/unicase/u-totitle.h: New file.
50035         * modules/unicase/u8-totitle: New file.
50036
50037         Tests for module 'unicase/u32-tolower'.
50038         * modules/unicase/u32-tolower-tests: New file.
50039         * tests/unicase/test-u32-tolower.c: New file.
50040
50041         Tests for module 'unicase/u16-tolower'.
50042         * modules/unicase/u16-tolower-tests: New file.
50043         * tests/unicase/test-u16-tolower.c: New file.
50044
50045         Tests for module 'unicase/u8-tolower'.
50046         * modules/unicase/u8-tolower-tests: New file.
50047         * tests/unicase/test-u8-tolower.c: New file.
50048
50049         New module 'unicase/u32-tolower'.
50050         * lib/unicase/u32-tolower.c: New file.
50051         * modules/unicase/u32-tolower: New file.
50052
50053         New module 'unicase/u16-tolower'.
50054         * lib/unicase/u16-tolower.c: New file.
50055         * modules/unicase/u16-tolower: New file.
50056
50057         New module 'unicase/u8-tolower'.
50058         * lib/unicase/u8-tolower.c: New file.
50059         * modules/unicase/u8-tolower: New file.
50060
50061         Tests for module 'unicase/u32-toupper'.
50062         * modules/unicase/u32-toupper-tests: New file.
50063         * tests/unicase/test-u32-toupper.c: New file.
50064
50065         Tests for module 'unicase/u16-toupper'.
50066         * modules/unicase/u16-toupper-tests: New file.
50067         * tests/unicase/test-u16-toupper.c: New file.
50068
50069         Tests for module 'unicase/u8-toupper'.
50070         * modules/unicase/u8-toupper-tests: New file.
50071         * tests/unicase/test-u8-toupper.c: New file.
50072
50073         New module 'unicase/u32-toupper'.
50074         * lib/unicase/u32-toupper.c: New file.
50075         * modules/unicase/u32-toupper: New file.
50076
50077         New module 'unicase/u16-toupper'.
50078         * lib/unicase/u16-toupper.c: New file.
50079         * modules/unicase/u16-toupper: New file.
50080
50081         New module 'unicase/u8-toupper'.
50082         * lib/unicase/u8-toupper.c: New file.
50083         * modules/unicase/u8-toupper: New file.
50084
50085         New module 'unicase/u32-casemap'.
50086         * lib/unicase/u32-casemap.c: New file.
50087         * modules/unicase/u32-casemap: New file.
50088
50089         New module 'unicase/u16-casemap'.
50090         * lib/unicase/u16-casemap.c: New file.
50091         * modules/unicase/u16-casemap: New file.
50092
50093         New module 'unicase/u8-casemap'.
50094         * lib/unicase/unicasemap.h: New file.
50095         * lib/unicase/u8-casemap.c: New file.
50096         * lib/unicase/u-casemap.h: New file.
50097         * modules/unicase/u8-casemap: New file.
50098
50099         New module 'unicase/special-casing'.
50100         * lib/unicase/special-casing.h: New file.
50101         * lib/unicase/special-casing.c: New file.
50102         * lib/unicase/special-casing-table.gperf: New file, generated by
50103         gen-uni-tables.c.
50104         * modules/unicase/special-casing: New file.
50105
50106         Tests for module 'unicase/locale-language'.
50107         * modules/unicase/locale-language-tests: New file.
50108         * tests/unicase/test-locale-language.sh: New file.
50109         * tests/unicase/test-locale-language.c: New file.
50110
50111         New module 'unicase/locale-language'.
50112         * lib/unicase/locale-language.c: New file.
50113         * lib/unicase/locale-languages.gperf: New file.
50114         * modules/unicase/locale-language: New file.
50115
50116         Generate more tables for case conversion and case folding.
50117         * lib/gen-uni-tables.c (SCC_*): New enum items.
50118         (struct special_casing_rule): New type.
50119         (casing_rules, num_casing_rules, allocated_casing_rules): New
50120         variables.
50121         (add_casing_rule, fill_casing_rules): New functions.
50122         (struct casefold_rule): New type.
50123         (casefolding_rules, num_casefolding_rules,
50124         allocated_casefolding_rules): New variables.
50125         (fill_casefolding_rules): New function.
50126         (unicode_casefold): New variable.
50127         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50128         sort_casing_rules, output_casing_rules): New functions.
50129         (main): Accept to more arguments: SpecialCasing.txt and
50130         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50131         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50132         Output mapping for casefolding.
50133
50134         * lib/unicase.h: Include stdbool.h, uninorm.h.
50135         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50136         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50137         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50138         arguments.
50139         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50140         resultp arguments.
50141         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50142         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50143         resultp arguments.
50144         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50145         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50146         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50147         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50148         declarations.
50149         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50150
50151 2009-03-08  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50154         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50155         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50156         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50157
50158 2009-03-07  Bruno Haible  <bruno@clisp.org>
50159
50160         Adjust u*_normcmp, u*_normcoll API.
50161         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50162         u16_normcoll, u32_normcoll): Change failure conventions.
50163         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50164         errno and return -1.
50165         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50166
50167 2009-03-07  Bruno Haible  <bruno@clisp.org>
50168
50169         Tests for module 'uninorm/u32-normcoll'.
50170         * modules/uninorm/u32-normcoll-tests: New file.
50171         * tests/uninorm/test-u32-normcoll.c: New file.
50172
50173         Tests for module 'uninorm/u16-normcoll'.
50174         * modules/uninorm/u16-normcoll-tests: New file.
50175         * tests/uninorm/test-u16-normcoll.c: New file.
50176
50177         Tests for module 'uninorm/u8-normcoll'.
50178         * modules/uninorm/u8-normcoll-tests: New file.
50179         * tests/uninorm/test-u8-normcoll.c: New file.
50180
50181 2009-03-07  Bruno Haible  <bruno@clisp.org>
50182
50183         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50184         tests/uninorm/test-u32-normcmp.c.
50185         * tests/uninorm/test-u32-normcmp.c: Include it.
50186         (test_nonascii): New function, extracted from main. Add some more
50187         tests.
50188         (main): Invoke test_ascii and test_nonascii.
50189         * modules/uninorm/u32-normcmp-tests (Files): Add
50190         tests/uninorm/test-u32-normcmp.h.
50191         (Depends-on): Remove uninorm/u32-normcmp.
50192
50193         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50194         tests/uninorm/test-u16-normcmp.c.
50195         * tests/uninorm/test-u16-normcmp.c: Include it.
50196         (test_nonascii): New function, extracted from main. Add some more
50197         tests.
50198         (main): Invoke test_ascii and test_nonascii.
50199         * modules/uninorm/u16-normcmp-tests (Files): Add
50200         tests/uninorm/test-u16-normcmp.h.
50201         (Depends-on): Remove uninorm/u16-normcmp.
50202
50203         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50204         tests/uninorm/test-u8-normcmp.c.
50205         * tests/uninorm/test-u8-normcmp.c: Include it.
50206         (test_nonascii): New function, extracted from main. Add some more
50207         tests.
50208         (main): Invoke test_ascii and test_nonascii.
50209         * modules/uninorm/u8-normcmp-tests (Files): Add
50210         tests/uninorm/test-u8-normcmp.h.
50211         (Depends-on): Remove uninorm/u8-normcmp.
50212
50213 2009-03-07  Bruno Haible  <bruno@clisp.org>
50214
50215         New module 'uninorm/u32-normcoll'.
50216         * lib/uninorm/u32-normcoll.c: New file.
50217         * modules/uninorm/u32-normcoll: New file.
50218
50219         New module 'uninorm/u16-normcoll'.
50220         * lib/uninorm/u16-normcoll.c: New file.
50221         * modules/uninorm/u16-normcoll: New file.
50222
50223         New module 'uninorm/u8-normcoll'.
50224         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50225         declarations.
50226         * lib/uninorm/u8-normcoll.c: New file.
50227         * lib/uninorm/u-normcoll.h: New file.
50228         * modules/uninorm/u8-normcoll: New file.
50229
50230         New module 'uninorm/u32-normxfrm'.
50231         * lib/uninorm/u32-normxfrm.c: New file.
50232         * modules/uninorm/u32-normxfrm: New file.
50233
50234         New module 'uninorm/u16-normxfrm'.
50235         * lib/uninorm/u16-normxfrm.c: New file.
50236         * modules/uninorm/u16-normxfrm: New file.
50237
50238         New module 'uninorm/u8-normxfrm'.
50239         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50240         declarations.
50241         * lib/uninorm/u8-normxfrm.c: New file.
50242         * lib/uninorm/u-normxfrm.h: New file.
50243         * modules/uninorm/u8-normxfrm: New file.
50244
50245 2009-03-07  Bruno Haible  <bruno@clisp.org>
50246
50247         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50248         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50249         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50250
50251 2009-03-07  Bruno Haible  <bruno@clisp.org>
50252
50253         New module 'memxfrm'.
50254         * lib/memxfrm.h: New file.
50255         * lib/memxfrm.c: New file.
50256         * modules/memxfrm: New file.
50257
50258 2009-03-07  Bruno Haible  <bruno@clisp.org>
50259
50260         New module 'memcmp2'.
50261         * lib/memcmp2.h: New file.
50262         * lib/memcmp2.c: New file.
50263         * modules/memcmp2: New file.
50264
50265 2009-03-07  Bruno Haible  <bruno@clisp.org>
50266
50267         Tests for module 'uninorm/decomposing-form'.
50268         * modules/uninorm/decomposing-form-tests: New file.
50269         * tests/uninorm/test-decomposing-form.c: New file.
50270
50271         New module 'uninorm/decomposing-form'.
50272         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50273         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50274         Add 'decomposing_variant' field.
50275         * lib/uninorm/decomposing-form.c: New file.
50276         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50277         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50278         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50279         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50280         * modules/uninorm/decomposing-form: New file.
50281         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50282         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50283
50284 2009-03-07  Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50287         strings.
50288
50289 2009-03-06  Bruno Haible  <bruno@clisp.org>
50290
50291         Tests for module 'uninorm/u32-normcmp'.
50292         * tests/uninorm/test-u32-normcmp.c: New file.
50293         * modules/uninorm/u32-normcmp-tests: New file.
50294
50295         Tests for module 'uninorm/u16-normcmp'.
50296         * tests/uninorm/test-u16-normcmp.c: New file.
50297         * modules/uninorm/u16-normcmp-tests: New file.
50298
50299         Tests for module 'uninorm/u8-normcmp'.
50300         * tests/uninorm/test-u8-normcmp.c: New file.
50301         * modules/uninorm/u8-normcmp-tests: New file.
50302
50303         New module 'uninorm/u32-normcmp'.
50304         * lib/uninorm/u32-normcmp.c: New file.
50305         * modules/uninorm/u32-normcmp: New file.
50306
50307         New module 'uninorm/u16-normcmp'.
50308         * lib/uninorm/u16-normcmp.c: New file.
50309         * modules/uninorm/u16-normcmp: New file.
50310
50311         New module 'uninorm/u8-normcmp'.
50312         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50313         declarations.
50314         * lib/uninorm/u8-normcmp.c: New file.
50315         * lib/uninorm/u-normcmp.h: New file.
50316         * modules/uninorm/u8-normcmp: New file.
50317
50318 2009-03-06  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50321         Reported by Eric Blake.
50322
50323 2009-03-06  Eric Blake  <ebb9@byu.net>
50324             Bruno Haible  <bruno@clisp.org>
50325
50326         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50327         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50328         condition.
50329         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50330         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50331         condition.
50332         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50333
50334 2009-03-06  Eric Blake  <ebb9@byu.net>
50335
50336         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50337         to avoid compiler warnings.
50338         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50339
50340 2009-03-05  Bruno Haible  <bruno@clisp.org>
50341
50342         * tests/test-ftell.c (main): Disable test beyond end of file on
50343         FreeMiNT.
50344         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50345
50346 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50347
50348         * lib/filevercmp.c: Move hidden files up in ordering.
50349         * tests/test-filevercmp.c: Add tests for hidden files.
50350
50351 2009-03-04  Bruno Haible  <bruno@clisp.org>
50352
50353         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50354         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50355         AM_CFLAGS.
50356         Reported by Simon Josefsson.
50357
50358 2009-03-03  Bruno Haible  <bruno@clisp.org>
50359
50360         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50361         Reported by Simon Josefsson.
50362
50363         * doc/ld-version-script.texi: Update node reference.
50364
50365 2009-03-03  Bruno Haible  <bruno@clisp.org>
50366
50367         * modules/visibility (License): Change to 'unlimited'.
50368         Suggested by Simon Josefsson.
50369
50370 2009-03-03  Jim Meyering  <meyering@redhat.com>
50371
50372         unlinkdir: cannot_unlink_dir may modify process state
50373         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50374         it's neither thread-safe nor appropriate for use in a library.
50375
50376 2009-03-03  Eric Blake  <ebb9@byu.net>
50377
50378         test-closein: silence test under Darwin
50379         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50380         care if it dies from EPIPE or EBADF.
50381
50382 2009-03-03  Bruno Haible  <bruno@clisp.org>
50383
50384         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50385         earlier.
50386         * doc/visibility.texi: Fix @node and @section.
50387
50388 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50389
50390         * doc/gnulib.texi: Link to sections for ld version script and
50391         visibility.
50392         * doc/visibility.texi: Add @node and @section.
50393         * modules/ld-version-script: New module.
50394         * m4/ld-version-script.m4: New file.
50395         * doc/ld-version-script.texi: New file.
50396
50397 2009-03-02  David Lutterkort  <lutter@redhat.com>
50398
50399         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50401
50402 2009-03-02  Bruno Haible  <bruno@clisp.org>
50403
50404         * doc/visibility.texi: Mention libtool's -export-symbols option.
50405
50406 2009-03-02  Jim Meyering  <meyering@redhat.com>
50407
50408         announce-gen: new option: --no-print-checksums
50409         * build-aux/announce-gen (usage): Describe it.
50410         (print_checksums): Print a newline here, not in the [*] footnote.
50411         (main): Honor it.
50412
50413 2009-03-01  Bruno Haible  <bruno@clisp.org>
50414
50415         Use socklen_t in the native Windows replacements prototypes.
50416         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50417         instead of 'int'.
50418         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50419         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50420         * modules/getsockopt (Depends-on): Add socklen.
50421         * modules/setsockopt (Depends-on): Add socklen.
50422
50423 2009-03-01  Bruno Haible  <bruno@clisp.org>
50424
50425         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50426         least 4.2.
50427
50428 2009-03-01  Eric Blake  <ebb9@byu.net>
50429             Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50432         error messages.
50433         * lib/wait-process.c (wait_subprocess): Omit error message about
50434         deadly signal sent to the child of termsigp != NULL.
50435
50436 2009-03-01  Eric Blake  <ebb9@byu.net>
50437
50438         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50439
50440 2009-03-01  Bruno Haible  <bruno@clisp.org>
50441
50442         Avoid a gcc warning.
50443         * tests/test-sched.c (b): Make global.
50444         Reported by Eric Blake.
50445
50446 2009-01-19  Martin Lambers  <marlam@marlam.de>
50447
50448         Provide POSIX semantics for socket timeout options on W32.
50449         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50450         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50451         * modules/setsockopt: Depend on sys_time module for struct timeval.
50452         * modules/getsockopt: Depend on sys_time module for struct timeval.
50453
50454 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50455
50456         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50457         __USE_GNU, for consistency with netdb.in.h.
50458         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50459
50460 2009-03-01  Bruno Haible  <bruno@clisp.org>
50461
50462         More support for FreeMiNT.
50463         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50464         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50465
50466 2009-03-01  Bruno Haible  <bruno@clisp.org>
50467
50468         More support for FreeMiNT.
50469         * lib/fpurge.c (fpurge): Correct last commit.
50470         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50471
50472 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50473
50474         Fix unportable awk script in vc-list-files.
50475         * build-aux/vc-list-files: In the replacement awk script, use
50476         substr with a second argument of 1, not zero.
50477         Report by Simon Josefsson.
50478
50479 2009-02-28  Bruno Haible  <bruno@clisp.org>
50480
50481         More support for FreeMiNT.
50482         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50483         to FreeMiNT today.
50484         * lib/fwriting.c (fwriting): Likewise.
50485         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50486
50487 2009-02-28  Bruno Haible  <bruno@clisp.org>
50488
50489         * tests/test-freadseek.c (main): Disable test beyond end of file on
50490         FreeMiNT.
50491         * tests/test-ftello.c (main): Likewise.
50492         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50493
50494 2009-02-28  Bruno Haible  <bruno@clisp.org>
50495
50496         Add tentative support for FreeMiNT.
50497         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50498         * lib/fpurge.c (fpurge): Likewise.
50499         * lib/freadable.c (freadable): Likewise.
50500         * lib/freading.c (freading): Likewise.
50501         * lib/freadptr.c (freadptr): Likewise.
50502         * lib/freadseek.c (freadptrinc): Likewise.
50503         * lib/fseeko.c (rpl_fseeko): Likewise.
50504         * lib/fseterr.c (fseterr): Likewise.
50505         * lib/fwritable.c (fwritable): Likewise.
50506         * lib/fwriting.c (fwriting): Likewise.
50507         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50508         Hourihane.
50509         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50510
50511 2009-02-28  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50514         SIGCHLD.
50515         Reported by Jim Meyering.
50516
50517 2009-02-28  Bruno Haible  <bruno@clisp.org>
50518
50519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50520         Mention the results of these tests on various platforms.
50521         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50522         order.
50523         * doc/posix-functions/printf.texi: Likewise.
50524         * doc/posix-functions/snprintf.texi: Likewise.
50525         * doc/posix-functions/sprintf.texi: Likewise.
50526         * doc/posix-functions/vfprintf.texi: Likewise.
50527         * doc/posix-functions/vprintf.texi: Likewise.
50528         * doc/posix-functions/vsnprintf.texi: Likewise.
50529         * doc/posix-functions/vsprintf.texi: Likewise.
50530         * doc/glibc-functions/obstack_printf.texi: Likewise.
50531         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50532
50533 2009-02-28  Bruno Haible  <bruno@clisp.org>
50534
50535         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50536         Reported by Loïc Minier <lool@dooz.org>.
50537
50538 2009-02-27  Bruno Haible  <bruno@clisp.org>
50539
50540         * gnulib-tool (func_import): Make the sed expression used to create the
50541         sed script for updating the .gitignore file POSIX compliant.
50542         Reported by Eric Blake.
50543
50544 2009-02-27  Bruno Haible  <bruno@clisp.org>
50545
50546         * gnulib-tool (sed): Don't alias as "sed --posix".
50547         Reported by Eric Blake.
50548
50549 2009-02-27  Bruno Haible  <bruno@clisp.org>
50550
50551         Avoid test link errors.
50552         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50553         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50554         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50555         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50557
50558 2009-02-27  Bruno Haible  <bruno@clisp.org>
50559
50560         Avoid spurious "(cached)" in configure output.
50561         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50562         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50563         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50564         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50565         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50566         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50567         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50568         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50569         Reported by Eric Blake.
50570
50571 2009-02-27  Eric Blake  <ebb9@byu.net>
50572
50573         printf: fix regression in previous patch
50574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50575
50576 2009-02-27  Bruno Haible  <bruno@clisp.org>
50577
50578         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50579         value.
50580         * lib/stdint.in.h: Likewise.
50581         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50582
50583 2009-02-27  Eric Blake  <ebb9@byu.net>
50584
50585         doc: mention more functions added in cygwin 1.7.0
50586         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50587         addition.
50588         * doc/posix-functions/open_wmemstream.texi: Likewise.
50589         * doc/posix-functions/wcsnlen.texi: Likewise.
50590         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50591         * doc/posix-functions/wcstod.texi: Likewise.
50592         * doc/posix-functions/wcstof.texi: Likewise.
50593         * doc/posix-functions/wcstoimax.texi: Likewise.
50594         * doc/posix-functions/wcstok.texi: Likewise.
50595         * doc/posix-functions/wcstoumax.texi: Likewise.
50596
50597         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50599         * doc/posix-functions/fprintf.texi: Update.
50600         * doc/posix-functions/printf.texi: Update.
50601         * doc/posix-functions/snprintf.texi: Update.
50602         * doc/posix-functions/sprintf.texi: Update.
50603         * doc/posix-functions/vfprintf.texi: Update.
50604         * doc/posix-functions/vprintf.texi: Update.
50605         * doc/posix-functions/vsnprintf.texi: Update.
50606         * doc/posix-functions/vsprintf.texi: Update.
50607         * doc/glibc-functions/obstack_printf.texi: Update.
50608         * doc/glibc-functions/obstack_vprintf.texi: Update.
50609
50610 2009-02-26  Eric Blake  <ebb9@byu.net>
50611
50612         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50613         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50614         compilation bug by using runtime conversion.
50615         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50616         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50617         * modules/ceill-tests (Files): Use nan.h.
50618         * modules/floorl-tests (Files): Likewise.
50619         * modules/frexpl-tests (Files): Likewise.
50620         * modules/isnanl-tests (Files): Likewise.
50621         * modules/ldexpl-tests (Files): Likewise.
50622         * modules/roundl-tests (Files): Likewise.
50623         * modules/truncl-tests (Files): Likewise.
50624         * tests/test-ceill.c (main): Use a working NaN.
50625         * tests/test-floorl.c (main): Likewise.
50626         * tests/test-frexpl.c (main): Likewise.
50627         * tests/test-isnan.c (test_long_double): Likewise.
50628         * tests/test-isnanl.h (main): Likewise.
50629         * tests/test-ldexpl.h (main): Likewise.
50630         * tests/test-roundl.h (main): Likewise.
50631         * tests/test-truncl.h (main): Likewise.
50632         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50633
50634 2009-02-26  Eric Blake  <ebb9@byu.net>
50635             Bruno Haible  <bruno@clisp.org>
50636
50637         Work around a *printf bug with %ls on Solaris.
50638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50639         precision is specified, sprintf stops converting the wide string
50640         argument when the number of bytes that have been produced by this
50641         conversion equals or exceeds the precision.
50642         * doc/posix-functions/fprintf.texi: Update.
50643         * doc/posix-functions/printf.texi: Update.
50644         * doc/posix-functions/snprintf.texi: Update.
50645         * doc/posix-functions/sprintf.texi: Update.
50646         * doc/posix-functions/vfprintf.texi: Update.
50647         * doc/posix-functions/vprintf.texi: Update.
50648         * doc/posix-functions/vsnprintf.texi: Update.
50649         * doc/posix-functions/vsprintf.texi: Update.
50650         * doc/glibc-functions/obstack_printf.texi: Update.
50651         * doc/glibc-functions/obstack_vprintf.texi: Update.
50652
50653 2009-02-26  Eric Blake  <ebb9@byu.net>
50654
50655         stdlib: favor compiler check of random.h
50656         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50657         to avoid an ObjC random.h installed by Swarm.
50658
50659 2009-02-26  Bruno Haible  <bruno@clisp.org>
50660
50661         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50662         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50663         Reported by Gary V. Vaughan <gary@gnu.org>.
50664
50665 2009-02-26  Bruno Haible  <bruno@clisp.org>
50666
50667         Fix *printf behaviour regarding the %ls directive.
50668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50669         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50670         NEED_PRINTF_DIRECTIVE_LS.
50671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50672         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50673         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50674         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50675         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50676         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50677         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50678         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50679         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50680         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50682         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50686         * doc/posix-functions/fprintf.texi: Update.
50687         * doc/posix-functions/printf.texi: Update.
50688         * doc/posix-functions/snprintf.texi: Update.
50689         * doc/posix-functions/sprintf.texi: Update.
50690         * doc/posix-functions/vfprintf.texi: Update.
50691         * doc/posix-functions/vprintf.texi: Update.
50692         * doc/posix-functions/vsnprintf.texi: Update.
50693         * doc/posix-functions/vsprintf.texi: Update.
50694         * doc/glibc-functions/obstack_printf.texi: Update.
50695         * doc/glibc-functions/obstack_vprintf.texi: Update.
50696         Reported by Eric Blake.
50697
50698 2009-02-25  Bruno Haible  <bruno@clisp.org>
50699
50700         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50701         with known value.
50702         Reported by Gary V. Vaughan <gary@gnu.org>.
50703
50704 2009-02-25  Bruno Haible  <bruno@clisp.org>
50705
50706         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50707         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50708         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50709         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50710         Reported by Gary V. Vaughan <gary@gnu.org>.
50711
50712 2009-02-25  Bruno Haible  <bruno@clisp.org>
50713
50714         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50715         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50716         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50717         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50718         Reported by Gary V. Vaughan <gary@gnu.org>.
50719
50720 2009-02-25  Eric Blake  <ebb9@byu.net>
50721
50722         tests: skip fseek/ftell tests if ungetc is broken
50723         * m4/ungetc.m4: New file.
50724         * modules/fseek-tests: Split test, so ungetc dependency is
50725         separate from rest of test.
50726         * modules/fseeko-tests: Likewise.
50727         * modules/ftell-tests: Likewise.
50728         * modules/ftello-tests: Likewise.
50729         * tests/test-fseek.c (main): Isolate ungetc dependency.
50730         * tests/test-fseeko.c (main): Likewise.
50731         * tests/test-ftell.c (main): Likewise.
50732         * tests/test-ftello.c (main): Likewise.
50733         * tests/test-fseek2.sh: New file.
50734         * tests/test-fseeko2.sh: Likewise.
50735         * tests/test-ftell2.sh: Likewise.
50736         * tests/test-ftello2.sh: Likewise.
50737
50738 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50739
50740         test-getaddrinfo: fix usage of skip return code 77
50741         * tests/test-gettaddrinfo.c: Return skip code 77 only
50742         for first occurrence of skip (4x77 is not 77)
50743
50744 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50745
50746         strtod: avoid C99 decl-after-statement
50747         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50748
50749 2009-02-24  Eric Blake  <ebb9@byu.net>
50750
50751         strtod: detect HP-UX 11.31 bug
50752         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50753         Reported by Gary V. Vaughan.
50754
50755 2009-02-23  Bruno Haible  <bruno@clisp.org>
50756
50757         Fix invalid read past end of memory block.
50758         * lib/vasnprintf.c (DCHAR_SET): Define.
50759         (local_wcslen): Define only when needed.
50760         (local_strnlen, local_wcsnlen): New functions.
50761         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50762         directives that involve a conversion ourselves.
50763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50764         wcsnlen, mbrtowc, wcrtomb.
50765         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50766         * tests/test-vasprintf-posix.c (test_function): Likewise.
50767         * tests/test-snprintf-posix.h (test_function): Likewise.
50768         * tests/test-sprintf-posix.h (test_function): Likewise.
50769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50770
50771 2009-02-22  Bruno Haible  <bruno@clisp.org>
50772
50773         Implement new clarified decomposition of Hangul syllables.
50774         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50775         of type LTV, return only a pairwise decomposition.
50776         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50777         Likewise.
50778         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50779         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50780         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50781
50782 2009-02-22  Bruno Haible  <bruno@clisp.org>
50783
50784         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50785         zero-length results and shrink excess allocated memory.
50786         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50787         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50788         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50789         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50790         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50791         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50792         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50793         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50794         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50795         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50796         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50797         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50798
50799 2009-02-21  Bruno Haible  <bruno@clisp.org>
50800
50801         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50802         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50803         spaces after a period. Put a space between a macro name and its
50804         argument list. Trivial rewordings.
50805         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50806         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50807         (main): Return 0 explicitly.
50808
50809 2009-02-21  Bruno Haible  <bruno@clisp.org>
50810
50811         Tests for module 'uninorm/filter'.
50812         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50813         * modules/uninorm/filter-tests: New file.
50814
50815         New module 'uninorm/filter'.
50816         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50817         uninorm_filter_flush, uninorm_filter_free): New declarations.
50818         * lib/uninorm/uninorm-filter.c: New file.
50819         * modules/uninorm/filter: New file.
50820
50821 2009-02-21  Bruno Haible  <bruno@clisp.org>
50822
50823         Tests for module 'uninorm/nfkc'.
50824         * tests/uninorm/test-nfkc.c: New file.
50825         * tests/uninorm/test-u8-nfkc.c: New file.
50826         * tests/uninorm/test-u16-nfkc.c: New file.
50827         * tests/uninorm/test-u32-nfkc.c: New file.
50828         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50829         * tests/uninorm/test-u32-nfkc-big.c: New file.
50830         * modules/uninorm/nfkc-tests: New file.
50831
50832         New module 'uninorm/nfkc'.
50833         * lib/uninorm/nfkc.c: New file.
50834         * modules/uninorm/nfkc: New file.
50835
50836         Tests for module 'uninorm/nfkd'.
50837         * tests/uninorm/test-nfkd.c: New file.
50838         * tests/uninorm/test-u8-nfkd.c: New file.
50839         * tests/uninorm/test-u16-nfkd.c: New file.
50840         * tests/uninorm/test-u32-nfkd.c: New file.
50841         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50842         * tests/uninorm/test-u32-nfkd-big.c: New file.
50843         * modules/uninorm/nfkd-tests: New file.
50844
50845         New module 'uninorm/nfkd'.
50846         * lib/uninorm/nfkd.c: New file.
50847         * modules/uninorm/nfkd: New file.
50848
50849         Tests for module 'uninorm/nfc'.
50850         * tests/uninorm/test-nfc.c: New file.
50851         * tests/uninorm/test-u8-nfc.c: New file.
50852         * tests/uninorm/test-u16-nfc.c: New file.
50853         * tests/uninorm/test-u32-nfc.c: New file.
50854         * tests/uninorm/test-u32-nfc-big.sh: New file.
50855         * tests/uninorm/test-u32-nfc-big.c: New file.
50856         * modules/uninorm/nfc-tests: New file.
50857
50858         New module 'uninorm/nfc'.
50859         * lib/uninorm/nfc.c: New file.
50860         * modules/uninorm/nfc: New file.
50861
50862         Tests for module 'uninorm/nfd'.
50863         * tests/uninorm/test-nfd.c: New file.
50864         * tests/uninorm/test-u8-nfd.c: New file.
50865         * tests/uninorm/test-u16-nfd.c: New file.
50866         * tests/uninorm/test-u32-nfd.c: New file.
50867         * tests/uninorm/test-u32-nfd-big.sh: New file.
50868         * tests/uninorm/test-u32-nfd-big.c: New file.
50869         * tests/uninorm/test-u32-normalize-big.h: New file.
50870         * tests/uninorm/test-u32-normalize-big.c: New file.
50871         * tests/uninorm/NormalizationTest.txt: New file, created from
50872         Unicode 5.1.0 NormalizationTest.txt.
50873         * modules/uninorm/nfd-tests: New file.
50874
50875         New module 'uninorm/nfd'.
50876         * lib/uninorm/nfd.c: New file.
50877         * modules/uninorm/nfd: New file.
50878
50879         New module 'uninorm/u32-normalize'.
50880         * lib/uninorm/u32-normalize.c: New file.
50881         * modules/uninorm/u32-normalize: New file.
50882
50883         New module 'uninorm/u16-normalize'.
50884         * lib/uninorm/u16-normalize.c: New file.
50885         * modules/uninorm/u16-normalize: New file.
50886
50887         New module 'uninorm/u8-normalize'.
50888         * lib/uninorm/u8-normalize.c: New file.
50889         * lib/uninorm/normalize-internal.h: New file.
50890         * lib/uninorm/u-normalize-internal.h: New file.
50891         * modules/uninorm/u8-normalize: New file.
50892
50893         New module 'uninorm/decompose-internal'.
50894         * lib/uninorm/decompose-internal.c: New file.
50895         * modules/uninorm/decompose-internal: New file.
50896
50897         Tests for module 'uninorm/composition'.
50898         * tests/uninorm/test-composition.c: New file.
50899         * modules/uninorm/composition-tests: New file.
50900
50901         New module 'uninorm/composition'.
50902         * lib/uninorm/composition.c: New file.
50903         * lib/uninorm/composition-table.gperf: New file, generated by
50904         gen-uni-tables.
50905         * modules/uninorm/composition: New file.
50906
50907         Tests for module 'uninorm/compat-decomposition'.
50908         * tests/uninorm/test-compat-decomposition.c: New file.
50909         * modules/uninorm/compat-decomposition-tests: New file.
50910
50911         New module 'uninorm/compat-decomposition'.
50912         * lib/uninorm/decompose-internal.h: New file.
50913         * lib/uninorm/compat-decomposition.c: New file.
50914         * modules/uninorm/compat-decomposition: New file.
50915
50916         Tests for module 'uninorm/canonical-decomposition'.
50917         * tests/uninorm/test-canonical-decomposition.c: New file.
50918         * modules/uninorm/canonical-decomposition-tests: New file.
50919
50920         New module 'uninorm/canonical-decomposition'.
50921         * lib/uninorm/canonical-decomposition.c: New file.
50922         * modules/uninorm/canonical-decomposition: New file.
50923
50924         Tests for module 'uninorm/decomposition'.
50925         * tests/uninorm/test-decomposition.c: New file.
50926         * modules/uninorm/decomposition-tests: New file.
50927
50928         New module 'uninorm/decomposition'.
50929         * lib/uninorm/decomposition.c: New file.
50930         * modules/uninorm/decomposition: New file.
50931
50932         New module 'uninorm/decomposition-table'.
50933         * lib/uninorm/decomposition-table.h: New file.
50934         * lib/uninorm/decomposition-table.c: New file.
50935         * lib/uninorm/decomposition-table1.h: New file, generated by
50936         gen-uni-tables.
50937         * lib/uninorm/decomposition-table2.h: New file, generated by
50938         gen-uni-tables.
50939         * modules/uninorm/decomposition-table: New file.
50940
50941         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50942         (UC_DECOMP_*): New enumeration items.
50943         (get_decomposition): New function.
50944         (struct decomp_table): New type.
50945         (output_decomposition, output_decomposition_tables): New functions.
50946         (unicode_composition_exclusions): New variable.
50947         (fill_composition_exclusions, debug_output_composition_tables): New
50948         functions.
50949         (main): Accept one more argument. Invoke fill_composition_exclusions.
50950         Output decomposition and composition tables.
50951
50952         New module 'uninorm/base'.
50953         * lib/uninorm.h: New file.
50954         * lib/unictype.h: Update comment.
50955         * modules/uninorm/base: New file.
50956
50957 2009-02-21  David Lutterkort  <lutter@redhat.com>
50958
50959         Tests for module 'safe-alloc'.
50960         * tests/test-safe-alloc.c: New file.
50961         * modules/safe-alloc-tests: New file.
50962
50963         New module 'safe-alloc'.
50964         * lib/safe-alloc.h: New file.
50965         * lib/safe-alloc.c: New file.
50966         * m4/safe-alloc.m4: New file.
50967         * modules/safe-alloc: New file.
50968         * doc/safe-alloc.texi: New file.
50969         * doc/gnulib.texi: Include it.
50970         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50971         safe-alloc.
50972
50973 2009-02-18  Bruno Haible  <bruno@clisp.org>
50974
50975         Fix link error on non-glibc systems.
50976         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50977         variable.
50978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50979
50980 2009-02-18  Jim Meyering  <meyering@redhat.com>
50981
50982         fts: avoid used-uninitialized error due to recent change
50983         * lib/fts.c (fts_read): Guard uses of the new member,
50984         parent->fts_n_dirs_remaining, since it's not relevant for
50985         the parent of a directory specified on the command-line.
50986
50987 2009-02-17  James Youngman  <jay@gnu.org>
50988             Bruno Haible  <bruno@clisp.org>
50989
50990         * m4/include_next.m4: Reformulate comment.
50991
50992 2009-02-16  Jim Meyering  <meyering@redhat.com>
50993
50994         fts: add #if guards so that the fts_lgpl module still builds
50995         * lib/fts.c: Guard just-added hash-table-using parts with
50996         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50997         Reported by Simon Josefsson.
50998
50999 2009-02-15  Bruno Haible  <bruno@clisp.org>
51000
51001         * modules/array-mergesort-tests: New file.
51002         * tests/test-array-mergesort.c: New file.
51003
51004         New module 'array-mergesort'.
51005         * modules/array-mergesort: New file.
51006         * lib/array-mergesort.h: New file.
51007
51008 2009-02-15  Bruno Haible  <bruno@clisp.org>
51009
51010         Fix 2009-02-07 commit.
51011         * lib/gen-uni-tables.c (output_predicate, output_category,
51012         output_combclass, output_bidi_category, output_decimal_digit,
51013         output_digit, output_numeric, output_mirror, output_scripts,
51014         output_ident_category, output_simple_mapping): Fix format directives.
51015         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51016
51017 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51018
51019         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51020         fixes are available from IBM.
51021
51022 2009-02-13  Jim Meyering  <meyering@redhat.com>
51023
51024         fts: arrange not to stat non-directories in more cases
51025         This makes GNU find (when it doesn't need to stat each file)
51026         *much* more efficient at traversing reiserfs file systems.
51027         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51028         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51029         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51030         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51031         (leaf_optimization_applies): New function.
51032         (LCO_hash, LCO_compare): New helper functions.
51033         (link_count_optimize_ok): New function.
51034         (fts_stat): Initialize new member (if dir).
51035         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51036         we've just stat'ed a directory.  Skip the stat call when possible.
51037         ---
51038         Note this AFS-related exchange:
51039         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51040         and note find's pioctl call in find/fstype.c.
51041         But that is necessary only if you want to enable the
51042         optimization for AFS, and for now, I don't.
51043
51044         fts: move a function definition "up" (no semantic change)
51045         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51046         "up" to precede upcoming use of a related function.
51047
51048 2009-02-11  Jim Meyering  <meyering@redhat.com>
51049
51050         fts: correct internal computation of nlinks (optimization-related)
51051         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51052         whether the current entry is a directory, so don't test it.
51053
51054 2009-02-10  Bruno Haible  <bruno@clisp.org>
51055
51056         Tests for module 'uniwbrk/ulc-wordbreaks'.
51057         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51058         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51059         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51060
51061         Tests for module 'uniwbrk/u32-wordbreaks'.
51062         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51063         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51064
51065         Tests for module 'uniwbrk/u16-wordbreaks'.
51066         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51067         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51068
51069         Tests for module 'uniwbrk/u8-wordbreaks'.
51070         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51071         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51072
51073 2009-02-10  Bruno Haible  <bruno@clisp.org>
51074
51075         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51076         property.
51077         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51078         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51079         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51080
51081 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51082
51083         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51084         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51085
51086 2009-02-10  Bruno Haible  <bruno@clisp.org>
51087
51088         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51089         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51090         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51091         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51092         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51093         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51094
51095 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51096
51097         * lib/sockets.h (gl_fd_to_handle): New function.
51098
51099         * tests/test-sockets.c: Call gl_fd_to_handle.
51100
51101 2009-02-09  Bruno Haible  <bruno@clisp.org>
51102
51103         * doc/havelib.texi: Document the conventions on bi-arch systems.
51104
51105 2009-02-08  Bruno Haible  <bruno@clisp.org>
51106
51107         Document the AC_LIB_LINKFLAGS macro.
51108         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51109         * doc/gnulib.texi: Include it.
51110
51111 2009-02-08  Bruno Haible  <bruno@clisp.org>
51112
51113         Fix wrong order of sections, compared to TOC.
51114         * doc/gnulib.texi: Include relocatable-maint.texi after the
51115         "Regular expressions" node, not before.
51116
51117 2009-02-08  Bruno Haible  <bruno@clisp.org>
51118
51119         Tests for module 'unicase/totitle'.
51120         * modules/unicase/totitle-tests: New file.
51121
51122         Tests for module 'unicase/tolower'.
51123         * modules/unicase/tolower-tests: New file.
51124
51125         Tests for module 'unicase/toupper'.
51126         * modules/unicase/toupper-tests: New file.
51127         * tests/unicase/test-mapping-part1.h: New file.
51128         * tests/unicase/test-mapping-part2.h: New file.
51129
51130         New module 'unicase/totitle'.
51131         * modules/unicase/totitle: New file.
51132         * lib/unicase/totitle.c: New file.
51133
51134         New module 'unicase/tolower'.
51135         * modules/unicase/tolower: New file.
51136         * lib/unicase/tolower.c: New file.
51137
51138         New module 'unicase/toupper'.
51139         * modules/unicase/toupper: New file.
51140         * lib/unicase/toupper.c: New file.
51141         * lib/unicase/simple-mapping.h: New file.
51142
51143         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51144         (mapping_table): New structure.
51145         (output_simple_mapping): New function.
51146         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51147         * modules/gen-uni-tables (Description): Update.
51148         * lib/unicase/toupper.h: New file, automatically generated by
51149         gen-uni-tables.
51150         * lib/unicase/tolower.h: New file, automatically generated by
51151         gen-uni-tables.
51152         * lib/unicase/totitle.h: New file, automatically generated by
51153         gen-uni-tables.
51154         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51155         gen-uni-tables.
51156         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51157         gen-uni-tables.
51158         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51159         gen-uni-tables.
51160
51161         New module 'unicase/base'.
51162         * modules/unicase/base: New file.
51163         * lib/unicase.h: New file.
51164
51165 2009-02-08  Bruno Haible  <bruno@clisp.org>
51166
51167         New module 'uniwbrk/ulc-wordbreaks'.
51168         * modules/uniwbrk/ulc-wordbreaks: New file.
51169         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51170
51171         New module 'uniwbrk/u32-wordbreaks'.
51172         * modules/uniwbrk/u32-wordbreaks: New file.
51173         * lib/uniwbrk/u32-wordbreaks.c: New file.
51174
51175         New module 'uniwbrk/u16-wordbreaks'.
51176         * modules/uniwbrk/u16-wordbreaks: New file.
51177         * lib/uniwbrk/u16-wordbreaks.c: New file.
51178
51179         New module 'uniwbrk/u8-wordbreaks'.
51180         * modules/uniwbrk/u8-wordbreaks: New file.
51181         * lib/uniwbrk/u8-wordbreaks.c: New file.
51182         * lib/uniwbrk/u-wordbreaks.h: New file.
51183
51184         New module 'uniwbrk/table'.
51185         * modules/uniwbrk/table: New file.
51186         * lib/uniwbrk/wbrktable.h: New file.
51187         * lib/uniwbrk/wbrktable.c: New file.
51188
51189         New module 'uniwbrk/wordbreak-property'.
51190         * modules/uniwbrk/wordbreak-property: New file.
51191         * lib/uniwbrk/wordbreak-property.c: New file.
51192
51193         * lib/gen-uni-tables.c (WBP_*): New enum items.
51194         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51195         (unicode_org_wbp): New variable.
51196         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51197         New functions.
51198         (wbp_table): New structure.
51199         (output_wbp, output_wbrk_tables): New functions.
51200         (main): Accept additional argument. Invoke fill_org_wbp,
51201         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51202         output_wbrk_tables.
51203         * modules/gen-uni-tables (Description): Update.
51204         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51205         gen-uni-tables.
51206
51207         New module 'uniwbrk/base'.
51208         * modules/uniwbrk/base: New file.
51209         * lib/uniwbrk.h: New file.
51210
51211 2009-02-08  Bruno Haible  <bruno@clisp.org>
51212
51213         Update to Unicode 5.1.0.
51214         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51215         U+2185..U+2188.
51216         (is_property_default_ignorable_code_point): Don't include characters
51217         of category Cc or Cs and not-a-characters.
51218         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51219         U+0D79, U+109E, U+109F, U+A60C.
51220         * lib/unictype/bidi_of.h: Regenerated.
51221         * lib/unictype/blocks.h: Regenerated.
51222         * lib/unictype/categ_C.h: Regenerated.
51223         * lib/unictype/categ_Cf.h: Regenerated.
51224         * lib/unictype/categ_Cn.h: Regenerated.
51225         * lib/unictype/categ_L.h: Regenerated.
51226         * lib/unictype/categ_Ll.h: Regenerated.
51227         * lib/unictype/categ_Lm.h: Regenerated.
51228         * lib/unictype/categ_Lo.h: Regenerated.
51229         * lib/unictype/categ_Lu.h: Regenerated.
51230         * lib/unictype/categ_M.h: Regenerated.
51231         * lib/unictype/categ_Mc.h: Regenerated.
51232         * lib/unictype/categ_Me.h: Regenerated.
51233         * lib/unictype/categ_Mn.h: Regenerated.
51234         * lib/unictype/categ_N.h: Regenerated.
51235         * lib/unictype/categ_Nd.h: Regenerated.
51236         * lib/unictype/categ_Nl.h: Regenerated.
51237         * lib/unictype/categ_No.h: Regenerated.
51238         * lib/unictype/categ_P.h: Regenerated.
51239         * lib/unictype/categ_Pd.h: Regenerated.
51240         * lib/unictype/categ_Pe.h: Regenerated.
51241         * lib/unictype/categ_Pf.h: Regenerated.
51242         * lib/unictype/categ_Pi.h: Regenerated.
51243         * lib/unictype/categ_Po.h: Regenerated.
51244         * lib/unictype/categ_Ps.h: Regenerated.
51245         * lib/unictype/categ_S.h: Regenerated.
51246         * lib/unictype/categ_Sk.h: Regenerated.
51247         * lib/unictype/categ_Sm.h: Regenerated.
51248         * lib/unictype/categ_So.h: Regenerated.
51249         * lib/unictype/categ_of.h: Regenerated.
51250         * lib/unictype/combining.h: Regenerated.
51251         * lib/unictype/ctype_alnum.h: Regenerated.
51252         * lib/unictype/ctype_alpha.h: Regenerated.
51253         * lib/unictype/ctype_graph.h: Regenerated.
51254         * lib/unictype/ctype_lower.h: Regenerated.
51255         * lib/unictype/ctype_print.h: Regenerated.
51256         * lib/unictype/ctype_punct.h: Regenerated.
51257         * lib/unictype/ctype_upper.h: Regenerated.
51258         * lib/unictype/decdigit.h: Regenerated.
51259         * lib/unictype/digit.h: Regenerated.
51260         * lib/unictype/mirror.h: Regenerated.
51261         * lib/unictype/numeric.h: Regenerated.
51262         * lib/unictype/pr_alphabetic.h: Regenerated.
51263         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51264         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51265         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51266         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51267         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51268         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51269         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51270         * lib/unictype/pr_combining.h: Regenerated.
51271         * lib/unictype/pr_dash.h: Regenerated.
51272         * lib/unictype/pr_decimal_digit.h: Regenerated.
51273         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51274         * lib/unictype/pr_deprecated.h: Regenerated.
51275         * lib/unictype/pr_diacritic.h: Regenerated.
51276         * lib/unictype/pr_extender.h: Regenerated.
51277         * lib/unictype/pr_format_control.h: Regenerated.
51278         * lib/unictype/pr_grapheme_base.h: Regenerated.
51279         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51280         * lib/unictype/pr_grapheme_link.h: Regenerated.
51281         * lib/unictype/pr_id_continue.h: Regenerated.
51282         * lib/unictype/pr_id_start.h: Regenerated.
51283         * lib/unictype/pr_ideographic.h: Regenerated.
51284         * lib/unictype/pr_ignorable_control.h: Regenerated.
51285         * lib/unictype/pr_lowercase.h: Regenerated.
51286         * lib/unictype/pr_math.h: Regenerated.
51287         * lib/unictype/pr_numeric.h: Regenerated.
51288         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51289         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51290         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51291         * lib/unictype/pr_other_id_continue.h: Regenerated.
51292         * lib/unictype/pr_other_lowercase.h: Regenerated.
51293         * lib/unictype/pr_other_math.h: Regenerated.
51294         * lib/unictype/pr_punctuation.h: Regenerated.
51295         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51296         * lib/unictype/pr_soft_dotted.h: Regenerated.
51297         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51298         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51299         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51300         * lib/unictype/pr_uppercase.h: Regenerated.
51301         * lib/unictype/pr_xid_continue.h: Regenerated.
51302         * lib/unictype/pr_xid_start.h: Regenerated.
51303         * lib/unictype/pr_zero_width.h: Regenerated.
51304         * lib/unictype/scripts.h: Regenerated.
51305         * lib/unictype/scripts_byname.gperf: Regenerated.
51306         * lib/unictype/sy_java_ident.h: Regenerated.
51307         * lib/unilbrk/lbrkprop1.h: Regenerated.
51308         * lib/unilbrk/lbrkprop2.h: Regenerated.
51309         * tests/unictype/test-categ_C.c: Regenerated.
51310         * tests/unictype/test-categ_Cf.c: Regenerated.
51311         * tests/unictype/test-categ_Cn.c: Regenerated.
51312         * tests/unictype/test-categ_L.c: Regenerated.
51313         * tests/unictype/test-categ_Ll.c: Regenerated.
51314         * tests/unictype/test-categ_Lm.c: Regenerated.
51315         * tests/unictype/test-categ_Lo.c: Regenerated.
51316         * tests/unictype/test-categ_Lu.c: Regenerated.
51317         * tests/unictype/test-categ_M.c: Regenerated.
51318         * tests/unictype/test-categ_Mc.c: Regenerated.
51319         * tests/unictype/test-categ_Me.c: Regenerated.
51320         * tests/unictype/test-categ_Mn.c: Regenerated.
51321         * tests/unictype/test-categ_N.c: Regenerated.
51322         * tests/unictype/test-categ_Nd.c: Regenerated.
51323         * tests/unictype/test-categ_Nl.c: Regenerated.
51324         * tests/unictype/test-categ_No.c: Regenerated.
51325         * tests/unictype/test-categ_P.c: Regenerated.
51326         * tests/unictype/test-categ_Pd.c: Regenerated.
51327         * tests/unictype/test-categ_Pe.c: Regenerated.
51328         * tests/unictype/test-categ_Pf.c: Regenerated.
51329         * tests/unictype/test-categ_Pi.c: Regenerated.
51330         * tests/unictype/test-categ_Po.c: Regenerated.
51331         * tests/unictype/test-categ_Ps.c: Regenerated.
51332         * tests/unictype/test-categ_S.c: Regenerated.
51333         * tests/unictype/test-categ_Sk.c: Regenerated.
51334         * tests/unictype/test-categ_Sm.c: Regenerated.
51335         * tests/unictype/test-categ_So.c: Regenerated.
51336         * tests/unictype/test-ctype_alnum.c: Regenerated.
51337         * tests/unictype/test-ctype_alpha.c: Regenerated.
51338         * tests/unictype/test-ctype_graph.c: Regenerated.
51339         * tests/unictype/test-ctype_lower.c: Regenerated.
51340         * tests/unictype/test-ctype_print.c: Regenerated.
51341         * tests/unictype/test-ctype_punct.c: Regenerated.
51342         * tests/unictype/test-ctype_upper.c: Regenerated.
51343         * tests/unictype/test-decdigit.h: Regenerated.
51344         * tests/unictype/test-digit.h: Regenerated.
51345         * tests/unictype/test-numeric.h: Regenerated.
51346         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51347         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51348         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51349         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51350         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51351         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51352         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51353         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51354         * tests/unictype/test-pr_combining.c: Regenerated.
51355         * tests/unictype/test-pr_dash.c: Regenerated.
51356         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51357         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51358         * tests/unictype/test-pr_deprecated.c: Regenerated.
51359         * tests/unictype/test-pr_diacritic.c: Regenerated.
51360         * tests/unictype/test-pr_extender.c: Regenerated.
51361         * tests/unictype/test-pr_format_control.c: Regenerated.
51362         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51363         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51364         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51365         * tests/unictype/test-pr_id_continue.c: Regenerated.
51366         * tests/unictype/test-pr_id_start.c: Regenerated.
51367         * tests/unictype/test-pr_ideographic.c: Regenerated.
51368         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51369         * tests/unictype/test-pr_lowercase.c: Regenerated.
51370         * tests/unictype/test-pr_math.c: Regenerated.
51371         * tests/unictype/test-pr_numeric.c: Regenerated.
51372         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51373         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51374         Regenerated.
51375         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51376         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51377         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51378         * tests/unictype/test-pr_other_math.c: Regenerated.
51379         * tests/unictype/test-pr_punctuation.c: Regenerated.
51380         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51381         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51382         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51383         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51384         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51385         * tests/unictype/test-pr_uppercase.c: Regenerated.
51386         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51387         * tests/unictype/test-pr_xid_start.c: Regenerated.
51388         * tests/unictype/test-pr_zero_width.c: Regenerated.
51389
51390         Update to Unicode 5.1.0.
51391         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51392         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51393         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51394         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51395         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51396         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51397         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51398         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51399         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51400         (nonspacing_table_ind): Update.
51401         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51402
51403         Update to Unicode 5.1.0.
51404         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51405         code transform.
51406         * lib/uniname/uniname.c (unicode_character_name,
51407         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51408         * lib/uniname/uninames.h: Regenerated.
51409         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51410
51411 2009-02-07  Bruno Haible  <bruno@clisp.org>
51412
51413         Merge gen-ctype and gen-lbrk into a single program.
51414         * lib/gen-uni-tables.c: New file, incorporating
51415         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51416         Add directory prefixes to the names of the generated files.
51417         * lib/unictype/gen-ctype.c: Remove file.
51418         * lib/unilbrk/gen-lbrk.c: Remove file.
51419         * modules/gen-uni-tables: New file.
51420         * modules/unictype/gen-ctype: Remove file.
51421         * modules/unilbrk/gen-lbrk: Remove file.
51422
51423 2009-02-07  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51426
51427         New module 'unistr/u32-strcoll'.
51428         * modules/unistr/u32-strcoll: New file.
51429         * lib/unistr/u32-strcoll.c: New file.
51430
51431         New module 'unistr/u16-strcoll'.
51432         * modules/unistr/u16-strcoll: New file.
51433         * lib/unistr/u16-strcoll.c: New file.
51434
51435         New module 'unistr/u8-strcoll'.
51436         * modules/unistr/u8-strcoll: New file.
51437         * lib/unistr/u8-strcoll.c: New file.
51438         * lib/unistr/u-strcoll.h: New file.
51439
51440 2009-02-07  Bruno Haible  <bruno@clisp.org>
51441
51442         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51443         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51444         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51445         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51446         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51447         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51448
51449 2009-02-07  Bruno Haible  <bruno@clisp.org>
51450
51451         Make 64-bit clean.
51452         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51453         output_combclass, output_bidi_category, output_decimal_digit,
51454         output_digit, output_numeric, output_mirror, output_scripts,
51455         output_ident_category): Use proper width specifier in format strings.
51456
51457 2009-02-07  Bruno Haible  <bruno@clisp.org>
51458
51459         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51460         failure behaviour.
51461
51462 2009-02-07  Jim Meyering  <meyering@redhat.com>
51463
51464         regex: avoid compilation failure with upcoming gcc-4.4
51465         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51466         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51467         "... error: integer overflow in preprocessor expression".
51468
51469 2009-02-05  Ben Pfaff  <blp@gnu.org>
51470
51471         Fix link errors on Windows when close module is used.
51472         * modules/close: Add $(LIB_CLOSE) to Link section.
51473         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51474         $(LIB_CLOSE) on Windows.
51475
51476 2009-02-05  Jim Meyering  <meyering@redhat.com>
51477
51478         still avoid unused-parameter warnings, but do it cleanly
51479         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51480         (get_fs_usage): Cast to void instead.
51481         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51482         (dev_from_mount_options, read_file_system_list): Cast to void.
51483         Prompted by Bruno Haible.
51484
51485 2009-02-04  Jim Meyering  <meyering@redhat.com>
51486
51487         fsusage.c: correct copyright year
51488         * lib/fsusage.c: Reflect year in which the change is pushed into
51489
51490         avoid misc. warnings
51491         * lib/fsusage.c (UNUSED_PARAM): Define.
51492         (get_fs_usage): Mark parameter "disk" as unused.
51493         * lib/getugroups.c (getgrent): Use "void" in prototype.
51494         * lib/mountlist.c: Mark unused parameters.
51495         (read_file_system_list): Declare a local with "const".
51496         * lib/nanosleep.c (getnow): Declare static.
51497         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51498
51499         dirfd: set errno upon failure
51500         * lib/dirfd.c: Include <errno.h>.
51501         Set errno to ENOTSUP when returning -1.
51502         * modules/dirfd (Depends-on): Add errno.
51503         Suggested by John Kodis <kodis@comcast.net>.
51504
51505 2009-02-01  Bruno Haible  <bruno@clisp.org>
51506
51507         Don't assume sizeof (long) >= sizeof (void *).
51508         * lib/memcmp.c: Include stdint.h.
51509         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51510         srcp2 to 'const byte *'.
51511         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51512         types to uintptr_t.
51513         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51514         * modules/memcmp (Depends-on): Add stdint.
51515         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51516
51517 2009-01-30  Eric Blake  <ebb9@byu.net>
51518
51519         fix more require-before-expand issues
51520         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51521         expand, AC_PROG_AWK.
51522         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51523
51524 2009-01-28  Eric Blake  <ebb9@byu.net>
51525
51526         version-etc: use consistent URL formatting
51527         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51528         Improve formatting.  Use fputs for string without %.
51529
51530 2009-01-28  Jim Meyering  <meyering@redhat.com>
51531
51532         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51533         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51534         "underquoted definition of NAME" from autoconf-2.59.
51535
51536 2009-01-28  Bruno Haible  <bruno@clisp.org>
51537
51538         * doc/gnulib.texi: Add "Obsolete modules" to index.
51539
51540 2009-01-28  Jim Meyering  <meyering@redhat.com>
51541
51542         useless-if-before-free: recognize more variants
51543         * build-aux/useless-if-before-free: Also recognize e.g.,
51544         if (NULL != p) free (p);
51545
51546 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51547
51548         test-getaddrinfo: skip (don't fail) this test when there's no network
51549         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51550         on the presumption that it means you lack network access.
51551
51552 2009-01-26  Jim Meyering  <meyering@redhat.com>
51553
51554         fflush: avoid warnings on modern systems
51555         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51556         pos and result, into scopes where they're used.
51557
51558 2009-01-26  Eric Blake  <ebb9@byu.net>
51559
51560         Silence warning reintroduced by recent extensions patch.
51561         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51562         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51563         autoconf.
51564
51565         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51566         * m4/00gnulib.m4: New file.
51567         * gnulib-tool (func_get_filelist): Always use it.
51568         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51569         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51570
51571 2009-01-25  Bruno Haible  <bruno@clisp.org>
51572
51573         Make test-quotearg work on MacOS X and AIX.
51574         * tests/test-quotearg.sh: New file.
51575         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51576         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51577         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51578         include <libintl.h>.
51579         (fake_locale): Remove variable.
51580         (gettext, dgettext, dcgettext): Remove functions.
51581         (main): Instead of setting a fake locale, set a real locale. Call
51582         textdomain and bindtextdomain.
51583         * modules/quotearg-tests (Files): Add the new files.
51584         (Depends-on): Add gettext, setenv, unsetenv.
51585         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51586         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51587         Augment TESTS_ENVIRONMENT.
51588
51589 2009-01-25  Bruno Haible  <bruno@clisp.org>
51590
51591         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51592         fr_FR.ISO8859-1 locale on MacOS X.
51593         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51594         ja_JP.eucJP locale on MacOS X.
51595         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51596         zh_CN.GB18030 locale on MacOS X.
51597
51598 2009-01-25  Bruno Haible  <bruno@clisp.org>
51599
51600         Avoid link errors on MacOS X 10.3.
51601         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51602         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51603
51604 2009-01-25  Bruno Haible  <bruno@clisp.org>
51605
51606         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51607         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51608         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51609         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51610         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51611         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51612         posix_spawnattr_init, posix_spawnattr_setsigmask,
51613         posix_spawnattr_setflags, posix_spawnattr_destroy.
51614
51615         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51616         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51617         * modules/execute (Files): Remove m4/posix_spawn.m4.
51618         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51619         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51620         posix_spawnattr_init, posix_spawnattr_setsigmask,
51621         posix_spawnattr_setflags, posix_spawnattr_destroy.
51622
51623 2009-01-25  Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/glthread/threadlib.c: Include <stdlib.h>.
51626
51627 2009-01-25  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/glthread/threadlib.c (dummy): New declaration.
51630
51631 2009-01-25  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51634         multibyte characters also for the GB18030 encoding. Don't crash when
51635         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51636
51637 2009-01-25  Bruno Haible  <bruno@clisp.org>
51638
51639         Avoid redefining 'struct random_data' on OSF/1 5.1.
51640         * lib/stdlib.in.h: Include <random.h> if it exists.
51641         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51642         HAVE_RANDOM_H. Include <random.h> when testing whether
51643         'struct random_data' exists.
51644         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51645
51646 2009-01-25  Bruno Haible  <bruno@clisp.org>
51647
51648         Don't install charset.alias on MacOS X >= 10.3.
51649         * lib/localcharset.c (DARWIN7): New macro.
51650         (get_charset_aliases): Hardcode the result for Darwin7.
51651         * modules/localcharset (install-exec-local): Don't install
51652         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51653
51654 2009-01-25  Bruno Haible  <bruno@clisp.org>
51655
51656         Don't install charset.alias on mingw and Cygwin.
51657         * modules/localcharset (install-exec-local): Don't install
51658         charset.alias on mingw and Cygwin, if the file does not yet exist.
51659         The result for these platforms is hardcoded in localcharset.c.
51660
51661 2009-01-25  Bruno Haible  <bruno@clisp.org>
51662
51663         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51664         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51665         before requiring AC_USE_SYSTEM_EXTENSIONS.
51666
51667 2009-01-25  Jim Meyering  <meyering@redhat.com>
51668
51669         c-strtod: avoid warnings
51670         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51671         "assignment discards qualifiers from pointer target type" warnings.
51672
51673 2009-01-24  Bruno Haible  <bruno@clisp.org>
51674
51675         Add support for non-UTF-8 locales on MacOS X.
51676         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51677         canonical encodings. For Darwin 7 and newer, don't map traditional
51678         encodings to UTF-8.
51679         Reported by Vincent Lefevre <vincent@vinc17.org>
51680         at <http://savannah.gnu.org/bugs/?25235>.
51681
51682 2009-01-24  Bruno Haible  <bruno@clisp.org>
51683
51684         * doc/gnulib.texi (Obsolete modules): New section.
51685         Reported by Mike Frysinger <vapier@gentoo.org>.
51686
51687 2009-01-24  Bruno Haible  <bruno@clisp.org>
51688
51689         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51690         (%.dvi): New rule.
51691
51692 2009-01-24  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51695         Reported by Eric Blake.
51696
51697 2009-01-24  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51700         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51701         Reported by Gary V. Vaughan <gary@gnu.org>.
51702
51703 2009-01-24  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51706
51707 2009-01-23  Bruno Haible  <bruno@clisp.org>
51708
51709         Make c-strtod, c-strtold usable in libraries.
51710         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51711         (C_STRTOD): Call strdup instead of xstrdup.
51712         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51713         * modules/c-strtold (Depends-on): Likewise.
51714         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51715         * NEWS: Mention the change.
51716         Reported by Michael Gold <mgold@ncf.ca>.
51717
51718 2009-01-23  Jim Meyering  <meyering@redhat.com>
51719
51720         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51721         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51722         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51723
51724 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51725
51726         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51727         GNU CoreUtils.
51728         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51729         * modules/version-etc (Description): Update.
51730
51731 2009-01-22  Bruno Haible  <bruno@clisp.org>
51732
51733         Cache the C locale object.
51734         * lib/c-strtod.c (c_locale_cache): New variable.
51735         (c_locale): New function.
51736         (C_STRTOD): Use it, and don't call freelocale.
51737         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51738         Suggested by Paolo Bonzini.
51739
51740 2009-01-21  Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51743         conditions other than overflow.
51744
51745 2009-01-21  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/c-strtod.c: Include errno.h.
51748         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51749         value from STRTOD_L and STRTOD.
51750
51751 2009-01-21  Bruno Haible  <bruno@clisp.org>
51752         and Jim Meyering  <meyering@redhat.com>
51753
51754         nanosleep: skip configure test (fail it) for apple universal builds
51755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51756         universal builds, assume that nanosleep does not work.
51757         * modules/nanosleep (Depends-on): Add multiarch.
51758
51759         mktime: skip configure test (fail it) for apple universal builds
51760         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51761         universal builds, assume that mktime does not work.
51762         * modules/mktime (Depends-on): Add multiarch.
51763
51764 2009-01-21  Eric Blake  <ebb9@byu.net>
51765
51766         multiarch: avoid expand-before-require warning
51767         * modules/multiarch (configure.ac): Require, rather than expand,
51768         gl_MULTIARCH.
51769         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51770         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51771         enforce that all clients require it.  Partial reversion of
51772         2008-12-29 patch.
51773
51774         error: avoid expand-before-require warning
51775         * modules/errno (configure.ac): Require, rather than expand,
51776         gl_HEADER_ERRNO_H.
51777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51778         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51779         enforce that all clients require it.
51780
51781         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51782         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51783         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51784         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51785
51786 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51787
51788         Revert:
51789         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51790
51791         regex: do not depend on obsolete modules.
51792         * modules/regex: Remove memcmp and memmove.
51793
51794 2009-01-20  Bruno Haible  <bruno@clisp.org>
51795
51796         Make the 'link' module link on Windows NT 4.
51797         * lib/link.c (_WIN32_WINNT): Don't define.
51798         (CreateHardLinkFuncType): New type.
51799         (CreateHardLinkFunc, initialized): New variables.
51800         (initialize): New function.
51801         (link): Invoke CreateHardLink indirectly through the function pointer.
51802
51803 2009-01-20  Bruno Haible  <bruno@clisp.org>
51804
51805         Fix compilation failure on mingw.
51806         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51807
51808 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51809
51810         * doc/c-strtod.texi: Mention a couple of restrictions.
51811
51812 2009-01-20  Jim Meyering  <meyering@redhat.com>
51813
51814         gettimeofday: move more declarations out of functions
51815         * lib/gettimeofday.c: Move extern declarations of tzset and
51816         gmtime out of containing functions.  Prompted by Bruno Haible.
51817
51818 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51819
51820         regex: do not depend on obsolete modules.
51821         * modules/regex: Remove memcmp and memmove.
51822
51823 2009-01-19  Bruno Haible  <bruno@clisp.org>
51824
51825         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51826         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51827         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51828         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51829         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51830
51831 2009-01-19  Bruno Haible  <bruno@clisp.org>
51832
51833         * tests/test-link.c: Include <errno.h>.
51834         (main): Exit with code 77 when a hard link cannot be created due to
51835         the file system.
51836         * tests/test-link.sh: Skip test when a hard link cannot be created due
51837         to the file system.
51838         Suggested by Eric Blake.
51839
51840 2009-01-19  Martin Lambers  <marlam@marlam.de>
51841
51842         * modules/link-tests: New file.
51843         * tests/test-link.sh: New file.
51844         * tests/test-link.c: New file.
51845
51846 2009-01-19  Eric Blake  <ebb9@byu.net>
51847
51848         doc: mention another function added in cygwin 1.7.0
51849         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51850         Another new function in cygwin 1.7.
51851
51852 2009-01-19  Bruno Haible  <bruno@clisp.org>
51853
51854         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51855         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51856         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51857         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51858         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51859         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51860         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51861         * m4/md4.m4 (gl_MD4): Likewise.
51862         * m4/md5.m4 (gl_MD5): Likewise.
51863         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51864         * m4/sha1.m4 (gl_SHA1): Likewise.
51865         * m4/sha256.m4 (gl_SHA256): Likewise.
51866         * m4/sha512.m4 (gl_SHA512): Likewise.
51867
51868 2009-01-19  Bruno Haible  <bruno@clisp.org>
51869
51870         * modules/uniname/uniname-tests (Depends-on): Add progname.
51871         * tests/uniname/test-uninames.c: Include progname.h.
51872         (main): Call set_program_name.
51873
51874         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51875         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51876         (main): Call set_program_name.
51877
51878         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51879         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51880         (main): Call set_program_name.
51881
51882         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51883         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51884         (main): Call set_program_name.
51885
51886         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51887         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51888         (main): Call set_program_name.
51889
51890         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51891         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51892         (main): Call set_program_name.
51893
51894         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51895         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51896         (main): Call set_program_name.
51897
51898         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51899         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51900         (main): Call set_program_name.
51901
51902         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51903         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51904         (main): Call set_program_name.
51905
51906 2009-01-19  Eric Blake  <ebb9@byu.net>
51907
51908         test-unistd: test previous patch
51909         * tests/test-unistd.c: Test *_FILENO macros.
51910
51911         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51912         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51913         Guarantee a definition.
51914         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51915         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51916         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51917         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51918         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51919         Likewise.
51920         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51921         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51922         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51923         Likewise.
51924         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51925         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51926         (STDERR_FILENO): Likewise.
51927         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51928         (STDERR_FILENO): Likewise.
51929         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51930         (STDERR_FILENO): Likewise.
51931         Reported by Elbert Pol.
51932
51933 2009-01-19  Eric Blake  <ebb9@byu.net>
51934
51935         doc: mention more functions added in cygwin 1.7.0
51936         * doc/posix-functions/abort.texi (abort): Update wording related
51937         to cygwin.
51938         * doc/posix-functions/daylight.texi (daylight): Likewise.
51939         * doc/posix-functions/optarg.texi (optarg): Likewise.
51940         * doc/posix-functions/optarg.texi (opterr): Likewise.
51941         * doc/posix-functions/optarg.texi (optind): Likewise.
51942         * doc/posix-functions/optarg.texi (optopt): Likewise.
51943         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51944         worked in 1.5.x, and was withdrawn in 1.7.
51945         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51946         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51947         cygwin versions.
51948         * doc/posix-functions/perror.texi (perror): Likewise.
51949         * doc/posix-functions/printf.texi (printf): Likewise.
51950         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51951         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51952         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51953         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51954         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51955         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51956         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51957         Likewise.
51958         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51959         Likewise.
51960         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51961         this function.
51962         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51963         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51964         Likewise.
51965         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51966         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51967         * doc/posix-functions/confstr.texi (confstr): Likewise.
51968         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51969         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51970         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51971         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51972         * doc/posix-functions/fputws.texi (fputws): Likewise.
51973         * doc/posix-functions/fwide.texi (fwide): Likewise.
51974         * doc/posix-functions/getwc.texi (getwc): Likewise.
51975         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51976         * doc/posix-functions/putwc.texi (putwc): Likewise.
51977         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51978         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51979         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51980         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51981         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51982         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51983         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51984         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51985         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51986         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51987         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51988
51989 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51990
51991         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51992         * lib/ioctl.c: Include <sys/ioctl.h>.
51993
51994 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51995
51996         * modules/getdate-tests (Depends-on): Add progname.
51997         * tests/test-getdate.c: Use progname module, to avoid link errors
51998         on non-glibc systems.
51999
52000 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52001
52002         * modules/filenamecat-tests (Depends-on): Add progname.
52003         * modules/fstrcmp-tests (Depends-on): Likewise.
52004
52005         * tests/test-filenamecat.c: Use progname module, to avoid link
52006         errors on non-glibc systems.
52007         * tests/test-fstrcmp.c: Likewise.
52008
52009 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52010
52011         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52012         * lib/gettimeofday.c: Move extern declaration out of function.
52013
52014 2009-01-18  Bruno Haible  <bruno@clisp.org>
52015
52016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52017         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52018         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52019
52020 2009-01-18  Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/strftime.c (MEMPCPY): Remove unused macro.
52023         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52024
52025 2009-01-18  Martin Lambers  <marlam@marlam.de>
52026
52027         New module 'link'.
52028         * lib/unistd.in.h (link): New declaration.
52029         * lib/link.c: New file.
52030         * m4/link.m4: New file.
52031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52032         HAVE_LINK.
52033         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52034         * modules/link: New file.
52035         * doc/posix-functions/link.texi: Mention the new module.
52036
52037 2009-01-18  Bruno Haible  <bruno@clisp.org>
52038
52039         * tests/test-avltree_list.c (main): Call set_program_name.
52040         * tests/test-avltree_oset.c (main): Likewise.
52041         * tests/test-obstack-printf.c: Include progname.h.
52042         (main): Call set_program_name.
52043         * tests/test-quotearg.c: Include progname.h.
52044         (main): Call set_program_name.
52045         * tests/test-xmemdup0.c: Include progname.h.
52046         (main): Call set_program_name.
52047
52048 2009-01-18  Bruno Haible  <bruno@clisp.org>
52049
52050         New module 'alphasort'.
52051         * lib/dirent.in.h (alphasort): New declaration.
52052         * lib/alphasort.c: New file, from glibc with modifications.
52053         * m4/alphasort.m4: New file.
52054         * modules/alphasort: New file.
52055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52056         HAVE_ALPHASORT.
52057         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52058         HAVE_ALPHASORT.
52059         * doc/posix-functions/alphasort.texi: Mention the new module and the
52060         portability problems.
52061
52062 2009-01-18  Bruno Haible  <bruno@clisp.org>
52063
52064         New module 'scandir'.
52065         * lib/dirent.in.h (scandir): New declaration.
52066         * lib/scandir.c: New file, from glibc with modifications.
52067         * m4/scandir.m4: New file.
52068         * modules/scandir: New file.
52069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52070         HAVE_SCANDIR.
52071         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52072         HAVE_SCANDIR.
52073         * doc/posix-functions/scandir.texi: Mention the new module and the
52074         portability problems.
52075
52076 2009-01-17  Bruno Haible  <bruno@clisp.org>
52077
52078         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52079         Update documentation.
52080         (func_remove_suffix): Escape all dots in the suffix. Update
52081         documentation.
52082         (func_filter_filelist): Update documentation.
52083         Reported by Ralf Wildenhues.
52084
52085 2009-01-17  Bruno Haible  <bruno@clisp.org>
52086
52087         * modules/dprintf-posix-tests: New file.
52088         * tests/test-dprintf-posix.sh: New file.
52089         * tests/test-dprintf-posix.c: New file.
52090
52091         New modules 'dprintf', 'dprintf-posix'.
52092         * lib/stdio.in.h (dprintf): New declaration.
52093         * lib/dprintf.c: New file.
52094         * m4/dprintf.m4: New file.
52095         * m4/dprintf-posix.m4: New file.
52096         * modules/dprintf: New file.
52097         * modules/dprintf-posix: New file.
52098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52099         HAVE_DPRINTF, REPLACE_DPRINTF.
52100         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52101         HAVE_DPRINTF, REPLACE_DPRINTF.
52102         * doc/posix-functions/dprintf.texi: Mention the new modules.
52103
52104 2009-01-17  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/vdprintf-posix-tests: New file.
52107         * tests/test-vdprintf-posix.sh: New file.
52108         * tests/test-vdprintf-posix.c: New file.
52109
52110         New modules 'vdprintf', 'vdprintf-posix'.
52111         * lib/stdio.in.h (vdprintf): New declaration.
52112         * lib/vdprintf.c: New file.
52113         * m4/vdprintf.m4: New file.
52114         * m4/vdprintf-posix.m4: New file.
52115         * modules/vdprintf: New file.
52116         * modules/vdprintf-posix: New file.
52117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52118         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52119         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52120         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52121         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52122
52123 2009-01-17  Bruno Haible  <bruno@clisp.org>
52124
52125         Fix replacement of fopen on mingw.
52126         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52127         mingw.
52128
52129 2009-01-17  Bruno Haible  <bruno@clisp.org>
52130
52131         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52132         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52133
52134 2009-01-17  Bruno Haible  <bruno@clisp.org>
52135
52136         Avoid test-fflush2.sh failure on mingw.
52137         * tests/test-fflush2.c: Include binary-io.h.
52138         (main): Put standard input into binary mode.
52139         * modules/fflush-tests (Depends-on): Add binary-io.
52140
52141 2009-01-17  Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/wchar.in.h: In another particular situation, include only the
52144         system's <wchar.h> file.
52145         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52146         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52147         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52148
52149 2009-01-17  Bruno Haible  <bruno@clisp.org>
52150
52151         Support for stripping executables in --enable-relocatable.
52152         * build-aux/install-reloc: Expect one more argument, or an environment
52153         variable RELOC_STRIP_PROG. If set, strip the destination program and
52154         its wrapper.
52155         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52156         RELOC_STRIP_PROG.
52157         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52158         to set RELOCATABLE_STRIP.
52159         * NEWS: Mention the new Makefile requirement.
52160
52161 2009-01-17  Bruno Haible  <bruno@clisp.org>
52162
52163         * build-aux/install-reloc: Remove debugging information left over by
52164         C compiler on MacOS X.
52165
52166 2009-01-17  Bruno Haible  <bruno@clisp.org>
52167
52168         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52169         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52170         _NSGetExecutablePath.
52171
52172 2009-01-16  Jim Meyering  <meyering@redhat.com>
52173
52174         strerror: avoid warnings about discarding "const"
52175         * lib/strerror.c (rpl_strerror): Instead of returning a const
52176         string from each and every "case", use a variable, and add a single
52177         cast after the switch.
52178
52179 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52180
52181         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52182
52183 2009-01-16  Bruno Haible  <bruno@clisp.org>
52184
52185         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52186         array initializer syntax that also works in C++ mode.
52187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52188
52189 2009-01-16  Jim Meyering  <meyering@redhat.com>
52190
52191         poll: suppress a warning
52192         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52193         to ignore "...unsigned expression < 0 is always false" warnings.
52194
52195 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52196
52197         poll: remove declarations of unused variables
52198         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52199         sockbuf and optlen.
52200
52201 2009-01-15  Bruno Haible  <bruno@clisp.org>
52202
52203         Make fflush-after-ungetc POSIX compliant on BSD systems.
52204         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52205         (clear_ungetc_buffer): Implement also for other systems.
52206         (rpl_fflush): On glibc systems, invoke
52207         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52208         clear_ungetc_buffer after fetching the stream's position, not before.
52209
52210 2009-01-15  Bruno Haible  <bruno@clisp.org>
52211
52212         Make fflush-after-ungetc POSIX compliant on glibc systems.
52213         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52214         after ungetc.
52215         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52216         (rpl_fflush): On glibc systems, simply call the system's fflush
52217         function after clearing the ungetc buffer.
52218         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52219         Instead, lseek only to the end of file, then use the system's fseeko
52220         for the rest. On glibc systems, reset the EOF indicator bit.
52221
52222 2009-01-15  Jim Meyering  <meyering@redhat.com>
52223
52224         openmp.m4: revert quote-adding change, for portability to older autoconf
52225         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52226         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52227         Simon Josefsson noticed the problem when using autoconf-2.61.
52228
52229 2009-01-15  Bruno Haible  <bruno@clisp.org>
52230
52231         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52232         * tests/test-fflush2.c (ASSERT): Always fail.
52233         (main): Add two tests for fflush() after ungetc(), taking into account
52234         the Austin Group's clarification.
52235         Suggested by Eric Blake.
52236
52237 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52238
52239         mktime.m4: remove K&R-style function prototypes
52240         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52241         for the Sun C++ compiler.
52242
52243 2009-01-14  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52246         while including <wchar.h>.
52247         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52248         the system's <wchar.h> file.
52249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52250
52251 2009-01-14  Bruno Haible  <bruno@clisp.org>
52252
52253         * m4/csharp.m4: Don't mention gettext on the serial number line.
52254         * m4/csharpexec.m4: Likewise.
52255         * m4/eaccess.m4: Likewise.
52256         * m4/javaexec.m4: Likewise.
52257         * m4/sig_atomic_t.m4: Likewise.
52258         * m4/tmpdir.m4: Likewise.
52259         * m4/intldir.m4: Bump gettext version.
52260         * m4/lib-ld.m4: Likewise.
52261
52262 2009-01-14  Bruno Haible  <bruno@clisp.org>
52263
52264         * lib/progname.c (set_program_name): Add more comments.
52265         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52266
52267 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52268
52269         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52270         were sys/stat.h does not define it.
52271
52272 2009-01-14  Jim Meyering  <meyering@redhat.com>
52273
52274         many *.m4 files: improve m4 quoting
52275         99% of this change was performed by running the following commands:
52276         git ls-files | grep '\.m4$' | xargs perl -pi \
52277           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52278           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52279           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52280           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52281         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52282         The remainder were to add Copyright dates, increment serial numbers,
52283         undo some changes in comments, exclude m4/intl.m4, and add quotes
52284         around the "1" in ",1" where the unusual spacing prohibited the
52285         above regexps from doing the job.  For more details, see
52286         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52287         * m4/acl.m4: Modified.
52288         * m4/afs.m4: Likewise.
52289         * m4/alloca.m4: Likewise.
52290         * m4/argp.m4: Likewise.
52291         * m4/argz.m4: Likewise.
52292         * m4/atexit.m4: Likewise.
52293         * m4/bison-i18n.m4: Likewise.
52294         * m4/bison.m4: Likewise.
52295         * m4/byteswap.m4: Likewise.
52296         * m4/c-stack.m4: Likewise.
52297         * m4/c-strtod.m4: Likewise.
52298         * m4/calloc.m4: Likewise.
52299         * m4/canonicalize-lgpl.m4: Likewise.
52300         * m4/chown.m4: Likewise.
52301         * m4/clock_time.m4: Likewise.
52302         * m4/codeset.m4: Likewise.
52303         * m4/copy-file.m4: Likewise.
52304         * m4/csharp.m4: Likewise.
52305         * m4/csharpcomp.m4: Likewise.
52306         * m4/csharpexec.m4: Likewise.
52307         * m4/d-ino.m4: Likewise.
52308         * m4/d-type.m4: Likewise.
52309         * m4/dirfd.m4: Likewise.
52310         * m4/double-slash-root.m4: Likewise.
52311         * m4/eaccess.m4: Likewise.
52312         * m4/eealloc.m4: Likewise.
52313         * m4/environ.m4: Likewise.
52314         * m4/errno_h.m4: Likewise.
52315         * m4/euidaccess.m4: Likewise.
52316         * m4/execute.m4: Likewise.
52317         * m4/fatal-signal.m4: Likewise.
52318         * m4/fchdir.m4: Likewise.
52319         * m4/fcntl_h.m4: Likewise.
52320         * m4/fileblocks.m4: Likewise.
52321         * m4/filenamecat.m4: Likewise.
52322         * m4/findprog.m4: Likewise.
52323         * m4/flexmember.m4: Likewise.
52324         * m4/fnmatch.m4: Likewise.
52325         * m4/fopen.m4: Likewise.
52326         * m4/fpending.m4: Likewise.
52327         * m4/fprintf-posix.m4: Likewise.
52328         * m4/free.m4: Likewise.
52329         * m4/frexp.m4: Likewise.
52330         * m4/frexpl.m4: Likewise.
52331         * m4/fsusage.m4: Likewise.
52332         * m4/ftruncate.m4: Likewise.
52333         * m4/gc-camellia.m4: Likewise.
52334         * m4/gc-random.m4: Likewise.
52335         * m4/gc.m4: Likewise.
52336         * m4/getaddrinfo.m4: Likewise.
52337         * m4/getcwd-abort-bug.m4: Likewise.
52338         * m4/getcwd-path-max.m4: Likewise.
52339         * m4/getdate.m4: Likewise.
52340         * m4/getdomainname.m4: Likewise.
52341         * m4/getgroups.m4: Likewise.
52342         * m4/gethostname.m4: Likewise.
52343         * m4/gethrxtime.m4: Likewise.
52344         * m4/getline.m4: Likewise.
52345         * m4/getloadavg.m4: Likewise.
52346         * m4/getndelim2.m4: Likewise.
52347         * m4/getpass.m4: Likewise.
52348         * m4/gettext.m4: Likewise.
52349         * m4/gettime.m4: Likewise.
52350         * m4/gettimeofday.m4: Likewise.
52351         * m4/gnulib-common.m4: Likewise.
52352         * m4/group-member.m4: Likewise.
52353         * m4/host-os.m4: Likewise.
52354         * m4/iconv.m4: Likewise.
52355         * m4/iconv_open.m4: Likewise.
52356         * m4/inet_ntop.m4: Likewise.
52357         * m4/inet_pton.m4: Likewise.
52358         * m4/inline.m4: Likewise.
52359         * m4/intldir.m4: Likewise.
52360         * m4/intlmacosx.m4: Likewise.
52361         * m4/intmax.m4: Likewise.
52362         * m4/intmax_t.m4: Likewise.
52363         * m4/inttypes.m4: Likewise.
52364         * m4/inttypes_h.m4: Likewise.
52365         * m4/inttypes-pri.m4: Likewise.
52366         * m4/isapipe.m4: Likewise.
52367         * m4/isnand.m4: Likewise.
52368         * m4/isnanf.m4: Likewise.
52369         * m4/isnanl.m4: Likewise.
52370         * m4/javacomp.m4: Likewise.
52371         * m4/javaexec.m4: Likewise.
52372         * m4/jm-winsz1.m4: Likewise.
52373         * m4/jm-winsz2.m4: Likewise.
52374         * m4/lchown.m4: Likewise.
52375         * m4/lcmessage.m4: Likewise.
52376         * m4/ldexpl.m4: Likewise.
52377         * m4/lib-ld.m4: Likewise.
52378         * m4/lib-link.m4: Likewise.
52379         * m4/libsigsegv.m4: Likewise.
52380         * m4/link-follow.m4: Likewise.
52381         * m4/localcharset.m4: Likewise.
52382         * m4/locale-fr.m4: Likewise.
52383         * m4/locale-ja.m4: Likewise.
52384         * m4/locale-tr.m4: Likewise.
52385         * m4/locale-zh.m4: Likewise.
52386         * m4/lock.m4: Likewise.
52387         * m4/longlong.m4: Likewise.
52388         * m4/ls-mntd-fs.m4: Likewise.
52389         * m4/lstat.m4: Likewise.
52390         * m4/malloc.m4: Likewise.
52391         * m4/mathl.m4: Likewise.
52392         * m4/mbrtowc.m4: Likewise.
52393         * m4/mbstate_t.m4: Likewise.
52394         * m4/mbswidth.m4: Likewise.
52395         * m4/memchr.m4: Likewise.
52396         * m4/memcmp.m4: Likewise.
52397         * m4/memcpy.m4: Likewise.
52398         * m4/memmem.m4: Likewise.
52399         * m4/memmove.m4: Likewise.
52400         * m4/mempcpy.m4: Likewise.
52401         * m4/memrchr.m4: Likewise.
52402         * m4/memset.m4: Likewise.
52403         * m4/minmax.m4: Likewise.
52404         * m4/mkdir-slash.m4: Likewise.
52405         * m4/mkdtemp.m4: Likewise.
52406         * m4/mktime.m4: Likewise.
52407         * m4/mmap-anon.m4: Likewise.
52408         * m4/mountlist.m4: Likewise.
52409         * m4/nanosleep.m4: Likewise.
52410         * m4/nls.m4: Likewise.
52411         * m4/nocrash.m4: Likewise.
52412         * m4/open.m4: Likewise.
52413         * m4/openat.m4: Likewise.
52414         * m4/openmp.m4: Likewise.
52415         * m4/pathmax.m4: Likewise.
52416         * m4/perl.m4: Likewise.
52417         * m4/physmem.m4: Likewise.
52418         * m4/pipe.m4: Likewise.
52419         * m4/po.m4: Likewise.
52420         * m4/poll.m4: Likewise.
52421         * m4/posixtm.m4: Likewise.
52422         * m4/posixver.m4: Likewise.
52423         * m4/printf-frexp.m4: Likewise.
52424         * m4/printf-frexpl.m4: Likewise.
52425         * m4/printf-posix.m4: Likewise.
52426         * m4/printf-posix-rpl.m4: Likewise.
52427         * m4/printf.m4: Likewise.
52428         * m4/progtest.m4: Likewise.
52429         * m4/putenv.m4: Likewise.
52430         * m4/readline.m4: Likewise.
52431         * m4/readlink.m4: Likewise.
52432         * m4/readutmp.m4: Likewise.
52433         * m4/realloc.m4: Likewise.
52434         * m4/regex.m4: Likewise.
52435         * m4/relocatable.m4: Likewise.
52436         * m4/relocatable-lib.m4: Likewise.
52437         * m4/rename-dest-slash.m4: Likewise.
52438         * m4/rename.m4: Likewise.
52439         * m4/rmdir-errno.m4: Likewise.
52440         * m4/rmdir.m4: Likewise.
52441         * m4/roundf.m4: Likewise.
52442         * m4/roundl.m4: Likewise.
52443         * m4/rpmatch.m4: Likewise.
52444         * m4/save-cwd.m4: Likewise.
52445         * m4/selinux-selinux-h.m4: Likewise.
52446         * m4/setenv.m4: Likewise.
52447         * m4/settime.m4: Likewise.
52448         * m4/sig2str.m4: Likewise.
52449         * m4/sig_atomic_t.m4: Likewise.
52450         * m4/signalblocking.m4: Likewise.
52451         * m4/signbit.m4: Likewise.
52452         * m4/sigpipe.m4: Likewise.
52453         * m4/sockets.m4: Likewise.
52454         * m4/sockpfaf.m4: Likewise.
52455         * m4/st_dm_mode.m4: Likewise.
52456         * m4/stat-time.m4: Likewise.
52457         * m4/stdbool.m4: Likewise.
52458         * m4/stdint.m4: Likewise.
52459         * m4/stdint_h.m4: Likewise.
52460         * m4/stpcpy.m4: Likewise.
52461         * m4/stpncpy.m4: Likewise.
52462         * m4/strcase.m4: Likewise.
52463         * m4/strchrnul.m4: Likewise.
52464         * m4/strcspn.m4: Likewise.
52465         * m4/strdup.m4: Likewise.
52466         * m4/strftime.m4: Likewise.
52467         * m4/strndup.m4: Likewise.
52468         * m4/strnlen.m4: Likewise.
52469         * m4/strpbrk.m4: Likewise.
52470         * m4/strptime.m4: Likewise.
52471         * m4/strsep.m4: Likewise.
52472         * m4/strtod.m4: Likewise.
52473         * m4/strtoimax.m4: Likewise.
52474         * m4/strtok_r.m4: Likewise.
52475         * m4/strtol.m4: Likewise.
52476         * m4/strtoll.m4: Likewise.
52477         * m4/strtoul.m4: Likewise.
52478         * m4/strtoull.m4: Likewise.
52479         * m4/strtoumax.m4: Likewise.
52480         * m4/strverscmp.m4: Likewise.
52481         * m4/threadlib.m4: Likewise.
52482         * m4/timegm.m4: Likewise.
52483         * m4/tm_gmtoff.m4: Likewise.
52484         * m4/tmpdir.m4: Likewise.
52485         * m4/tmpfile.m4: Likewise.
52486         * m4/tzset.m4: Likewise.
52487         * m4/uintmax_t.m4: Likewise.
52488         * m4/unlinkdir.m4: Likewise.
52489         * m4/unlocked-io.m4: Likewise.
52490         * m4/uptime.m4: Likewise.
52491         * m4/userspec.m4: Likewise.
52492         * m4/utimbuf.m4: Likewise.
52493         * m4/utime.m4: Likewise.
52494         * m4/utimes-null.m4: Likewise.
52495         * m4/utimes.m4: Likewise.
52496         * m4/vararrays.m4: Likewise.
52497         * m4/vasnprintf.m4: Likewise.
52498         * m4/vfprintf-posix.m4: Likewise.
52499         * m4/vprintf-posix.m4: Likewise.
52500         * m4/wait-process.m4: Likewise.
52501         * m4/wchar_t.m4: Likewise.
52502         * m4/wint_t.m4: Likewise.
52503         * m4/write-any-file.m4: Likewise.
52504         * m4/yield.m4: Likewise.
52505
52506 2009-01-13  Bruno Haible  <bruno@clisp.org>
52507
52508         Avoid test-copy-file.sh failures when ACL support insufficient.
52509         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52510         TESTS_ENVIRONMENT.
52511         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52512         Reported by Jim Meyering.
52513
52514 2009-01-13  Bruno Haible  <bruno@clisp.org>
52515
52516         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52517         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52518         * modules/unistdio/u8-printf-parse (Files): Likewise.
52519         * modules/unistdio/u32-printf-parse (Files): Likewise.
52520         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52521
52522 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52523
52524         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52525         and m4/inttypes_h.m4 too.
52526
52527 2009-01-12  Eric Blake  <ebb9@byu.net>
52528
52529         tests: IRIX 6.2 cc can't compile -0.0 into .data
52530         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52531         rather than at compile-time.
52532         * tests/test-floorl.c (minus_zero): Likewise.
52533         * tests/test-frexpl.c (minus_zero): Likewise.
52534         * tests/test-isnan.c (minus_zerol): Likewise.
52535         * tests/test-isnanl.h (minus_zero): Likewise.
52536         * tests/test-ldexpl.c (minus_zero): Likewise.
52537         * tests/test-roundl.c (minus_zero): Likewise.
52538         * tests/test-signbit.c (minus_zerol): Likewise.
52539         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52540         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52541         * tests/test-truncl.c (minus_zero): Likewise.
52542         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52543         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52544         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52545
52546 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52547
52548         regex: fix glibc bug 9697
52549         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52550         handling.
52551
52552 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52553
52554         regex: fix glibc bug 697
52555         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52556         being NULL also if there are no backreferences.
52557
52558 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52559
52560         regex: merge glibc changes
52561         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52562         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52563         re_string_skip_chars, re_string_reconstruct): Likewise.
52564         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52565
52566 2009-01-07  Jim Meyering  <meyering@redhat.com>
52567
52568         poll: filter through cppi
52569         * lib/poll.c: Indent cpp directives to reflect nesting.
52570
52571 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52572
52573         poll: don't return uninitialized
52574         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52575
52576 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52577
52578         avoid compile failure on AIX 6.1
52579         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52580         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52581
52582 2009-01-04  Jim Meyering  <meyering@redhat.com>
52583
52584         remove duplicate inclusion of <stdio.h>
52585         * tests/test-fprintf-posix.c: Likewise.
52586         * tests/test-printf-posix.c: Likewise.
52587         * tests/test-snprintf-posix.c: Likewise.
52588         * tests/test-sprintf-posix.c: Likewise.
52589         * tests/test-vasprintf-posix.c: Likewise.
52590         * tests/test-vfprintf-posix.c: Likewise.
52591         * tests/test-vprintf-posix.c: Likewise.
52592         * tests/test-vsnprintf-posix.c: Likewise.
52593         * tests/test-vsprintf-posix.c: Likewise.
52594
52595 2009-01-03  Jim Meyering  <meyering@redhat.com>
52596
52597         gnulib-tool: fix sed-based filtering
52598         * gnulib-tool (func_filter_filelist): Remove extra backslash
52599         in sed_fff_filter definition.
52600
52601 2009-01-02  Jim Meyering  <meyering@redhat.com>
52602
52603         strftime: avoid compilation failure on Solaris 2.6
52604         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52605         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52606         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52607         be available.  Reported by Tom G. Christensen.  Details in
52608         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52609
52610 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52611             Bruno Haible  <bruno@clisp.org>
52612
52613         Speed up gnulib-tool by doing more string processing through shell
52614         built-ins.
52615         * gnulib-tool (fast_func_append): New variable.
52616         (func_remove_prefix, func_remove_suffix): New functions.
52617         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52618         (func_filter_filelist): New function.
52619         (func_get_dependencies): Use func_remove_suffix instead of sed.
52620         (func_get_automake_snippet): Use func_filter_filelist instead of a
52621         subshell and sed invocation.
52622
52623 2009-01-01  Bruno Haible  <bruno@clisp.org>
52624
52625         Fix a security bug.
52626         * gnulib-tool (func_import, import, update): Don't allow the characters
52627         '"', '$', '`', '\' in macro arguments that become part of commands that
52628         are evaluated.
52629
52630 2009-01-01  Bruno Haible  <bruno@clisp.org>
52631
52632         * gnulib-tool (func_reset_sigpipe): Add more comments.
52633
52634 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52635
52636         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52637         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52638         already know the answer.
52639
52640 2009-01-01  Jim Meyering  <meyering@redhat.com>
52641
52642         * lib/version-etc.c (version_etc_va): Update copyright year.
52643
52644 2008-12-30  Bruno Haible  <bruno@clisp.org>
52645
52646         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52647         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52648         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52649
52650 2008-12-29  Eric Blake  <ebb9@byu.net>
52651
52652         multiarch: avoid autoconf AC_REQUIRE bug
52653         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52654         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52655         2.63 and older.
52656         Reported by Bruno Haible, and analyzed in
52657         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52658
52659 2008-12-29  Bruno Haible  <bruno@clisp.org>
52660
52661         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52662         files in subdirectories correctly.
52663         Reported by Ralf Wildenhues.
52664
52665 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52666
52667         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52668         rather than 'join FILE -', for Solaris join.
52669
52670 2008-12-29  Bruno Haible  <bruno@clisp.org>
52671
52672         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52673         quoting.
52674         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52675         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52676         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52677         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52678         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52679         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52680         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52681         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52682         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52683         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52684         * m4/nls.m4 (AM_NLS): Likewise.
52685         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52686         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52687         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52688         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52689         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52690         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52691         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52692         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52693         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52694         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52695         * m4/xsize.m4 (gl_XSIZE): Likewise.
52696         Suggested by Jim Meyering.
52697
52698 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52699
52700         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52701         * lib/parse-duration.c: use a switch instead of cascading if's.
52702
52703 2008-12-29  Eric Blake  <ebb9@byu.net>
52704
52705         wchar.h: supply WEOF on Irix 5.3
52706         * lib/wchar.in.h (wint_t): Also supply WEOF.
52707         * lib/wctype.in.h (wint_t): Likewise.
52708         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52709         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52710         Reported by Tom G. Christensen.
52711
52712 2008-12-26  Bruno Haible  <bruno@clisp.org>
52713
52714         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52715         i486, i586, i686.
52716
52717 2008-12-26  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52720
52721 2008-12-26  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52724         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52725         not __STDC_CONSTANT_MACROS.
52726         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52727
52728 2008-12-25  Bruno Haible  <bruno@clisp.org>
52729
52730         Add support for universal builds to vasnprintf.
52731         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52732         universal builds, guess no.
52733         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52734         * modules/vasprintf-posix (Depends-on): Likewise.
52735         * modules/fprintf-posix (Depends-on): Likewise.
52736         * modules/vfprintf-posix (Depends-on): Likewise.
52737         * modules/snprintf-posix (Depends-on): Likewise.
52738         * modules/vsnprintf-posix (Depends-on): Likewise.
52739         * modules/sprintf-posix (Depends-on): Likewise.
52740         * modules/vsprintf-posix (Depends-on): Likewise.
52741         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52742         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52743         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52744         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52745         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52746         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52747         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52748
52749         Add support for universal builds to <inttypes.h>.
52750         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52751         _SCNu64_PREFIX): In Apple
52752         universal builds, define directly, using _LP64.
52753         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52754         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52755         * modules/inttypes (Depends-on): Add multiarch.
52756         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52757
52758         Add support for universal builds to <stdint.h>.
52759         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52760         universal builds, define directly, using _LP64.
52761         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52762         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52763         and size_t.
52764         * modules/stdint (Depends-on): Add multiarch.
52765         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52766
52767         New module 'multiarch'.
52768         * modules/multiarch: New file.
52769         * m4/multiarch.m4: New file.
52770
52771 2008-12-25  Bruno Haible  <bruno@clisp.org>
52772
52773         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52774
52775 2008-12-25  Bruno Haible  <bruno@clisp.org>
52776
52777         * modules/btowc (License): Relicense under LGPLv2+.
52778         * modules/mbsinit (License): Likewise.
52779         * modules/mbrtowc (License): Likewise.
52780         * modules/wcrtomb (License): Likewise.
52781         * modules/streq (License): Likewise.
52782         Reported by David Lutterkort <lutter@redhat.com>.
52783
52784 2008-12-23  Bruno Haible  <bruno@clisp.org>
52785
52786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52787
52788 2008-12-23  Bruno Haible  <bruno@clisp.org>
52789
52790         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52792         GETADDRINFO_LIB, not in LIBS.
52793         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52794         * modules/canon-host (Link): Likewise.
52795         * NEWS: Mention the change.
52796         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52797         GETADDRINFO_LIB.
52798
52799 2008-12-22  Bruno Haible  <bruno@clisp.org>
52800
52801         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52802         * doc/posix-functions/iswalpha_l.texi: Likewise.
52803         * doc/posix-functions/iswblank_l.texi: Likewise.
52804         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52805         * doc/posix-functions/iswctype_l.texi: Likewise.
52806         * doc/posix-functions/iswdigit_l.texi: Likewise.
52807         * doc/posix-functions/iswgraph_l.texi: Likewise.
52808         * doc/posix-functions/iswlower_l.texi: Likewise.
52809         * doc/posix-functions/iswprint_l.texi: Likewise.
52810         * doc/posix-functions/iswpunct_l.texi: Likewise.
52811         * doc/posix-functions/iswspace_l.texi: Likewise.
52812         * doc/posix-functions/iswupper_l.texi: Likewise.
52813         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52814         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52815         * doc/posix-functions/open_wmemstream.texi: Likewise.
52816         * doc/posix-functions/swscanf.texi: Likewise.
52817         * doc/posix-functions/towctrans_l.texi: Likewise.
52818         * doc/posix-functions/towlower.texi: Likewise.
52819         * doc/posix-functions/towlower_l.texi: Likewise.
52820         * doc/posix-functions/towupper.texi: Likewise.
52821         * doc/posix-functions/towupper_l.texi: Likewise.
52822         * doc/posix-functions/vfwprintf.texi: Likewise.
52823         * doc/posix-functions/vfwscanf.texi: Likewise.
52824         * doc/posix-functions/vswscanf.texi: Likewise.
52825         * doc/posix-functions/vwprintf.texi: Likewise.
52826         * doc/posix-functions/vwscanf.texi: Likewise.
52827         * doc/posix-functions/wcpcpy.texi: Likewise.
52828         * doc/posix-functions/wcpncpy.texi: Likewise.
52829         * doc/posix-functions/wcscasecmp.texi: Likewise.
52830         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52831         * doc/posix-functions/wcscoll_l.texi: Likewise.
52832         * doc/posix-functions/wcsdup.texi: Likewise.
52833         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52834         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52835         * doc/posix-functions/wcsnlen.texi: Likewise.
52836         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52837         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52838         * doc/posix-functions/wctrans_l.texi: Likewise.
52839         * doc/posix-functions/wctype_l.texi: Likewise.
52840         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52841         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52842         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52843         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52844         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52845         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52846         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52847         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52848         * doc/glibc-functions/wcschrnul.texi: Likewise.
52849         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52850         * doc/glibc-functions/wcstod_l.texi: Likewise.
52851         * doc/glibc-functions/wcstof_l.texi: Likewise.
52852         * doc/glibc-functions/wcstol_l.texi: Likewise.
52853         * doc/glibc-functions/wcstold_l.texi: Likewise.
52854         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52855         * doc/glibc-functions/wcstoq.texi: Likewise.
52856         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52857         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52858         * doc/glibc-functions/wcstouq.texi: Likewise.
52859         * doc/glibc-functions/wmempcpy.texi: Likewise.
52860
52861 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52862             Eric Blake  <ebb9@byu.net>
52863             Paolo Bonzini  <bonzini@gnu.org>
52864             Bruno Haible  <bruno@clisp.org>
52865
52866         Make c-stack work on Haiku.
52867         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52868         (c_stack_action): Use SA_ONSTACK flag.
52869
52870 2008-12-22  Bruno Haible  <bruno@clisp.org>
52871
52872         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52873
52874 2008-12-22  Bruno Haible  <bruno@clisp.org>
52875
52876         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52877         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52878         being overridden.
52879         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52880         New macros.
52881         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52883         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52884         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52885
52886 2008-12-22  Bruno Haible  <bruno@clisp.org>
52887
52888         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52889         from test code.
52890
52891 2008-12-22  Eric Blake  <ebb9@byu.net>
52892
52893         Avoid gcc warnings on cygwin.
52894         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52895         Avoid unused variable.
52896         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52897         Likewise.
52898
52899 2008-12-22  Bruno Haible  <bruno@clisp.org>
52900
52901         Remove HAVE_MBRTOWC conditionals.
52902         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52903         (mbscasecmp): Assume mbrtowc function.
52904         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52905         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52906         * lib/mbschr.c: Include mbuiter.h unconditionally.
52907         (mbschr): Assume mbrtowc function.
52908         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52909         (mbscspn): Assume mbrtowc function.
52910         * lib/mbslen.c: Include mbuiter.h unconditionally.
52911         (mbslen): Assume mbrtowc function.
52912         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52913         (mbsncasecmp): Assume mbrtowc function.
52914         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52915         (mbsnlen): Assume mbrtowc function.
52916         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52917         (mbspbrk): Assume mbrtowc function.
52918         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52919         (mbspcasecmp): Assume mbrtowc function.
52920         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52921         (mbsrchr): Assume mbrtowc function.
52922         * lib/mbssep.c: Include mbuiter.h unconditionally.
52923         (mbssep): Assume mbrtowc function.
52924         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52925         (mbsspn): Assume mbrtowc function.
52926         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52927         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52928         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52929         (mbstok_r): Assume mbrtowc function.
52930         * lib/propername.c: Include mbuiter.h unconditionally.
52931         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52932         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52933         (trim2): Assume mbrtowc function.
52934         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52935         (mbsnwidth): Assume mbrtowc function.
52936         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52937         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52938         fallback definitions.
52939         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52940
52941 2008-12-22  Bruno Haible  <bruno@clisp.org>
52942
52943         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52944
52945 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52946
52947         * modules/regex: Request emulations for the mb*/wc* functions we need.
52948         * m4/regex.m4: Don't look for those functions here.
52949         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52950
52951 2008-12-22  Bruno Haible  <bruno@clisp.org>
52952
52953         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52954
52955 2008-12-21  Bruno Haible  <bruno@clisp.org>
52956
52957         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52958         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52959         (Include): Remove conditionalization.
52960         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52961         (Include): Remove conditionalization.
52962         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52963         (Include): Remove conditionalization.
52964         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52965         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52966         * NEWS: Mention the change.
52967         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52968         via Sergey Poznyakoff <gray@gnu.org.ua>.
52969
52970 2008-12-21  Bruno Haible  <bruno@clisp.org>
52971
52972         * MODULES.html.sh (Extended multibyte and wide character utilities
52973         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52974         wcrtomb, wcsrtombs.
52975         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52976         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52977         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52978         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52979
52980 2008-12-21  Bruno Haible  <bruno@clisp.org>
52981
52982         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52983
52984 2008-12-21  Bruno Haible  <bruno@clisp.org>
52985
52986         * modules/wcsnrtombs-tests: New file.
52987         * tests/test-wcsnrtombs1.sh: New file.
52988         * tests/test-wcsnrtombs2.sh: New file.
52989         * tests/test-wcsnrtombs3.sh: New file.
52990         * tests/test-wcsnrtombs4.sh: New file.
52991         * tests/test-wcsnrtombs.c: New file.
52992
52993         New module 'wcsnrtombs'.
52994         * lib/wchar.in.h (wcsnrtombs): New declaration.
52995         * lib/wcsnrtombs.c: New file.
52996         * lib/wcsrtombs-state.c: New file.
52997         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52998         (internal_state): Remove variable.
52999         * m4/wcsnrtombs.m4: New file.
53000         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53001         compilation units.
53002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53003         HAVE_WCSNRTOMBS.
53004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53005         HAVE_WCSNRTOMBS.
53006         * modules/wcsnrtombs: New file.
53007         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53008         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53009
53010 2008-12-21  Bruno Haible  <bruno@clisp.org>
53011
53012         * modules/wcsrtombs-tests: New file.
53013         * tests/test-wcsrtombs1.sh: New file.
53014         * tests/test-wcsrtombs2.sh: New file.
53015         * tests/test-wcsrtombs3.sh: New file.
53016         * tests/test-wcsrtombs4.sh: New file.
53017         * tests/test-wcsrtombs.c: New file.
53018
53019         New module 'wcsrtombs'.
53020         * lib/wchar.in.h (wcsrtombs): New declaration.
53021         * lib/wcsrtombs.c: New file.
53022         * m4/wcsrtombs.m4: New file.
53023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53024         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53026         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53027         * modules/wcsrtombs: New file.
53028         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53029         bugs.
53030
53031 2008-12-21  Bruno Haible  <bruno@clisp.org>
53032
53033         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53034         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53036         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53037         if not correct.
53038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53039         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53040         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53041         m4/locale-zh.m4, m4/codeset.m4.
53042         * doc/posix-functions/wcrtomb.texi: Document the bug.
53043
53044 2008-12-21  Bruno Haible  <bruno@clisp.org>
53045
53046         Work around a btowc() bug on IRIX 6.5.
53047         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53048         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53049         REPLACE_WTOBC if not.
53050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53051         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53052         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53053
53054 2008-12-21  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/wcrtomb-tests: New file.
53057         * tests/test-wcrtomb.sh: New file.
53058         * tests/test-wcrtomb.c: New file.
53059
53060         New module 'wcrtomb'.
53061         * lib/wchar.in.h (wcrtomb): New declaration.
53062         * lib/wcrtomb.c: New file.
53063         * m4/wcrtomb.m4: New file.
53064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53065         HAVE_WCRTOMB.
53066         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53067         HAVE_WCRTOMB.
53068         * modules/wcrtomb: New file.
53069         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53070
53071 2008-12-21  Bruno Haible  <bruno@clisp.org>
53072
53073         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53074         * modules/mbsrtowcs (Files): Likewise.
53075         * modules/wctob (Files): Likewise.
53076         * modules/c-strcase-tests (Files): Likewise.
53077         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53078         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53079         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53080         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53081         * modules/vasnprintf-posix-tests (Files): Likewise.
53082
53083 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53084
53085         gitlog-to-changelog: pass all command-line arguments to git-log
53086         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53087         it is sometimes convenient to filter the commits in various ways.
53088         gitlog-to-changelog only allows --since to specify a start date,
53089         but git-log itself supports many other filtering mechanisms.
53090         At the moment, I want to filter by branch name.  Rather than
53091         adding a --branch option to gitlog-to-changelog, it seems more
53092         flexible to simply pass all options directly to git-log and let
53093         git do the work.  Notice that this effectively makes --since a
53094         redundant option for gitlog-to-changelog, but removing it would
53095         require current usage to change since calls would then require
53096         an additional '--'.
53097
53098 2008-12-21  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/mbsnrtowcs-tests: New file.
53101         * tests/test-mbsnrtowcs1.sh: New file.
53102         * tests/test-mbsnrtowcs2.sh: New file.
53103         * tests/test-mbsnrtowcs3.sh: New file.
53104         * tests/test-mbsnrtowcs4.sh: New file.
53105         * tests/test-mbsnrtowcs.c: New file.
53106
53107         New module 'mbsnrtowcs'.
53108         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53109         * lib/mbsnrtowcs.c: New file.
53110         * lib/mbsrtowcs-state.c: New file.
53111         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53112         (internal_state): Remove variable.
53113         * m4/mbsnrtowcs.m4: New file.
53114         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53115         compilation units.
53116         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53117         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53118         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53119         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53120         * modules/mbsnrtowcs: New file.
53121         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53122         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53123         portability problem.
53124
53125 2008-12-21  Bruno Haible  <bruno@clisp.org>
53126
53127         Work around mbsrtowcs bug.
53128         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53129         (gl_FUNC_MBSRTOWCS): Invoke it.
53130         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53131         m4/locale-zh.m4.
53132         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53133
53134 2008-12-21  Bruno Haible  <bruno@clisp.org>
53135
53136         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53137
53138 2008-12-21  Bruno Haible  <bruno@clisp.org>
53139
53140         Update doc for AIX.
53141         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53142         16-bit wchar_t type.
53143         * doc/posix-functions/btowc.texi: Likewise.
53144         * doc/posix-functions/fgetwc.texi: Likewise.
53145         * doc/posix-functions/fgetws.texi: Likewise.
53146         * doc/posix-functions/fputwc.texi: Likewise.
53147         * doc/posix-functions/fputws.texi: Likewise.
53148         * doc/posix-functions/fwide.texi: Likewise.
53149         * doc/posix-functions/fwprintf.texi: Likewise.
53150         * doc/posix-functions/fwscanf.texi: Likewise.
53151         * doc/posix-functions/getwchar.texi: Likewise.
53152         * doc/posix-functions/getwc.texi: Likewise.
53153         * doc/posix-functions/iswalnum.texi: Likewise.
53154         * doc/posix-functions/iswalpha.texi: Likewise.
53155         * doc/posix-functions/iswblank.texi: Likewise.
53156         * doc/posix-functions/iswcntrl.texi: Likewise.
53157         * doc/posix-functions/iswctype.texi: Likewise.
53158         * doc/posix-functions/iswdigit.texi: Likewise.
53159         * doc/posix-functions/iswgraph.texi: Likewise.
53160         * doc/posix-functions/iswlower.texi: Likewise.
53161         * doc/posix-functions/iswprint.texi: Likewise.
53162         * doc/posix-functions/iswpunct.texi: Likewise.
53163         * doc/posix-functions/iswspace.texi: Likewise.
53164         * doc/posix-functions/iswupper.texi: Likewise.
53165         * doc/posix-functions/iswxdigit.texi: Likewise.
53166         * doc/posix-functions/mbrtowc.texi: Likewise.
53167         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53168         * doc/posix-functions/mbstowcs.texi: Likewise.
53169         * doc/posix-functions/mbtowc.texi: Likewise.
53170         * doc/posix-functions/putwchar.texi: Likewise.
53171         * doc/posix-functions/putwc.texi: Likewise.
53172         * doc/posix-functions/swprintf.texi: Likewise.
53173         * doc/posix-functions/tolower.texi: Likewise.
53174         * doc/posix-functions/toupper.texi: Likewise.
53175         * doc/posix-functions/towctrans.texi: Likewise.
53176         * doc/posix-functions/ungetwc.texi: Likewise.
53177         * doc/posix-functions/vswprintf.texi: Likewise.
53178         * doc/posix-functions/wcrtomb.texi: Likewise.
53179         * doc/posix-functions/wcscat.texi: Likewise.
53180         * doc/posix-functions/wcschr.texi: Likewise.
53181         * doc/posix-functions/wcscmp.texi: Likewise.
53182         * doc/posix-functions/wcscoll.texi: Likewise.
53183         * doc/posix-functions/wcscpy.texi: Likewise.
53184         * doc/posix-functions/wcscspn.texi: Likewise.
53185         * doc/posix-functions/wcsftime.texi: Likewise.
53186         * doc/posix-functions/wcslen.texi: Likewise.
53187         * doc/posix-functions/wcsncat.texi: Likewise.
53188         * doc/posix-functions/wcsncmp.texi: Likewise.
53189         * doc/posix-functions/wcsncpy.texi: Likewise.
53190         * doc/posix-functions/wcspbrk.texi: Likewise.
53191         * doc/posix-functions/wcsrchr.texi: Likewise.
53192         * doc/posix-functions/wcsrtombs.texi: Likewise.
53193         * doc/posix-functions/wcsspn.texi: Likewise.
53194         * doc/posix-functions/wcsstr.texi: Likewise.
53195         * doc/posix-functions/wcstod.texi: Likewise.
53196         * doc/posix-functions/wcstof.texi: Likewise.
53197         * doc/posix-functions/wcstoimax.texi: Likewise.
53198         * doc/posix-functions/wcstok.texi: Likewise.
53199         * doc/posix-functions/wcstold.texi: Likewise.
53200         * doc/posix-functions/wcstoll.texi: Likewise.
53201         * doc/posix-functions/wcstol.texi: Likewise.
53202         * doc/posix-functions/wcstombs.texi: Likewise.
53203         * doc/posix-functions/wcstoull.texi: Likewise.
53204         * doc/posix-functions/wcstoul.texi: Likewise.
53205         * doc/posix-functions/wcstoumax.texi: Likewise.
53206         * doc/posix-functions/wcswidth.texi: Likewise.
53207         * doc/posix-functions/wcsxfrm.texi: Likewise.
53208         * doc/posix-functions/wctob.texi: Likewise.
53209         * doc/posix-functions/wctomb.texi: Likewise.
53210         * doc/posix-functions/wctrans.texi: Likewise.
53211         * doc/posix-functions/wctype.texi: Likewise.
53212         * doc/posix-functions/wcwidth.texi: Likewise.
53213         * doc/posix-functions/wmemchr.texi: Likewise.
53214         * doc/posix-functions/wmemcmp.texi: Likewise.
53215         * doc/posix-functions/wmemcpy.texi: Likewise.
53216         * doc/posix-functions/wmemmove.texi: Likewise.
53217         * doc/posix-functions/wmemset.texi: Likewise.
53218         * doc/posix-functions/wprintf.texi: Likewise.
53219         * doc/posix-functions/wscanf.texi: Likewise.
53220
53221 2008-12-21  Bruno Haible  <bruno@clisp.org>
53222
53223         Update doc for HP-UX 11.11.
53224         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53225         in HP-UX version 11.00, not in all versions of HP-UX 11.
53226         * doc/posix-functions/fwide.texi: Likewise.
53227         * doc/posix-functions/fwprintf.texi: Likewise.
53228         * doc/posix-functions/fwscanf.texi: Likewise.
53229         * doc/posix-functions/inet_ntop.texi: Likewise.
53230         * doc/posix-functions/inet_pton.texi: Likewise.
53231         * doc/posix-functions/mbrlen.texi: Likewise.
53232         * doc/posix-functions/mbrtowc.texi: Likewise.
53233         * doc/posix-functions/mbsinit.texi: Likewise.
53234         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53235         * doc/posix-functions/swprintf.texi: Likewise.
53236         * doc/posix-functions/swscanf.texi: Likewise.
53237         * doc/posix-functions/towctrans.texi: Likewise.
53238         * doc/posix-functions/vfwprintf.texi: Likewise.
53239         * doc/posix-functions/vswprintf.texi: Likewise.
53240         * doc/posix-functions/vwprintf.texi: Likewise.
53241         * doc/posix-functions/wcrtomb.texi: Likewise.
53242         * doc/posix-functions/wcsrtombs.texi: Likewise.
53243         * doc/posix-functions/wcsstr.texi: Likewise.
53244         * doc/posix-functions/wctob.texi: Likewise.
53245         * doc/posix-functions/wctrans.texi: Likewise.
53246         * doc/posix-functions/wmemchr.texi: Likewise.
53247         * doc/posix-functions/wmemcmp.texi: Likewise.
53248         * doc/posix-functions/wmemcpy.texi: Likewise.
53249         * doc/posix-functions/wmemmove.texi: Likewise.
53250         * doc/posix-functions/wmemset.texi: Likewise.
53251         * doc/posix-functions/wprintf.texi: Likewise.
53252         * doc/posix-functions/wscanf.texi: Likewise.
53253
53254 2008-12-21  Bruno Haible  <bruno@clisp.org>
53255
53256         Work around a portability problem.
53257         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53258         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53259
53260 2008-12-20  Bruno Haible  <bruno@clisp.org>
53261
53262         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53263         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53264         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53266         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53267
53268         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53269         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53270         set.
53271         (GNULIB_defined_mbstate_t): New macro.
53272         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53273         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53274         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53275         reuses the system's mbrtowc function but works around the bugs.
53276         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53277         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53278         macros.
53279         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53280         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53281         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53282         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53283         REPLACE_MBSINIT if mbsinit needs to be overridden.
53284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53285         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53286         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53287         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53288         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53289         m4/locale-zh.m4.
53290         (Depends): Add mbsinit.
53291         * modules/mbsinit (Depends): Add mbrtowc.
53292         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53293
53294 2008-12-20  Bruno Haible  <bruno@clisp.org>
53295
53296         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53297         so that there are no conversion errors on AIX.
53298         * tests/test-mbsrtowcs.c (main): LIkewise.
53299
53300 2008-12-20  Bruno Haible  <bruno@clisp.org>
53301
53302         Work around wctob bug on Solaris <= 9.
53303         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53304         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53306         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53307         * modules/wctob (Files): Add m4/locale-fr.m4.
53308         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53309
53310 2008-12-20  Bruno Haible  <bruno@clisp.org>
53311
53312         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53313         /dev/null.
53314         * tests/test-select-in.sh: Likewise.
53315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53316
53317 2008-12-20  Bruno Haible  <bruno@clisp.org>
53318
53319         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53320         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53321         Cygwin 1.5.x.
53322
53323 2008-12-20  Bruno Haible  <bruno@clisp.org>
53324
53325         Ensure mbstate_t is defined on HP-UX 11.11.
53326         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53327         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53328         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53329         AC_USE_SYSTEM_EXTENSIONS.
53330         * modules/fnmatch (Depends-on): Add extensions.
53331         * modules/mbrlen (Depends-on): Likewise.
53332         * modules/mbrtowc (Depends-on): Likewise.
53333         * modules/mbsinit (Depends-on): Likewise.
53334         * modules/mbsrtowcs (Depends-on): Likewise.
53335         * modules/mbswidth (Depends-on): Likewise.
53336         * modules/quotearg (Depends-on): Likewise.
53337         * modules/strftime (Depends-on): Likewise.
53338
53339 2008-12-20  Bruno Haible  <bruno@clisp.org>
53340
53341         Ensure wctob is declared on IRIX 6.5.
53342         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53343         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53344         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53346         of HAVE_WCTOB.
53347         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53348         HAVE_WCTOB.
53349         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53350
53351 2008-12-19  Bruno Haible  <bruno@clisp.org>
53352
53353         * modules/mbsrtowcs-tests: New file.
53354         * tests/test-mbsrtowcs1.sh: New file.
53355         * tests/test-mbsrtowcs2.sh: New file.
53356         * tests/test-mbsrtowcs3.sh: New file.
53357         * tests/test-mbsrtowcs4.sh: New file.
53358         * tests/test-mbsrtowcs.c: New file.
53359
53360         New module 'mbsrtowcs'.
53361         * lib/wchar.in.h (mbsrtowcs): New declaration.
53362         * lib/mbsrtowcs.c: New file.
53363         * m4/mbsrtowcs.m4: New file.
53364         * modules/mbsrtowcs: New file.
53365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53366         HAVE_MBSRTOWCS.
53367         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53368         HAVE_MBSRTOWCS.
53369         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53370
53371 2008-12-19  Bruno Haible  <bruno@clisp.org>
53372
53373         New module 'mbrlen'.
53374         * lib/wchar.in.h (mbrlen): New declaration.
53375         * lib/mbrlen.c: New file.
53376         * m4/mbrlen.m4: New file.
53377         * modules/mbrlen: New file.
53378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53379         HAVE_MBRLEN.
53380         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53381         HAVE_MBRLEN.
53382         * doc/posix-functions/mbrlen.texi: Document the new module.
53383
53384 2008-12-19  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53387         * modules/mbrtowc (Depends-on): Add verify.
53388         Suggested by Paul Eggert.
53389
53390 2008-12-18  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/mbsinit-tests: New file.
53393         * tests/test-mbsinit.sh: New file.
53394         * tests/test-mbsinit.c: New file.
53395
53396 2008-12-18  Bruno Haible  <bruno@clisp.org>
53397
53398         * modules/mbrtowc-tests: New file.
53399         * tests/test-mbrtowc1.sh: New file.
53400         * tests/test-mbrtowc2.sh: New file.
53401         * tests/test-mbrtowc3.sh: New file.
53402         * tests/test-mbrtowc4.sh: New file.
53403         * tests/test-mbrtowc.c: New file.
53404
53405         New module 'mbrtowc'.
53406         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53407         mbsinit and mbrtowc.
53408         (mbrtowc): New declaration.
53409         * lib/mbrtowc.c: New file.
53410         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53411         * modules/mbrtowc: New file.
53412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53413         HAVE_MBRTOWC.
53414         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53415         HAVE_MBRTOWC.
53416         * doc/posix-functions/mbrtowc.texi: Document the new module.
53417
53418 2008-12-18  Bruno Haible  <bruno@clisp.org>
53419
53420         New module 'wctob'.
53421         * lib/wchar.in.h (wctob): New declaration.
53422         * lib/wctob.c: New file.
53423         * m4/wctob.m4: New file.
53424         * modules/wctob: New file.
53425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53426         HAVE_WCTOB.
53427         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53428         * doc/posix-functions/wctob.texi: Document the new module.
53429
53430 2008-12-18  Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53433         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53434
53435 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53436
53437         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53438         G. Christensen" <tgc@jupiterrise.com>.
53439
53440         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53441         G. Christensen" <tgc@jupiterrise.com>.
53442
53443         * lib/flock.c: Need to include string.h.  Reported by "Tom
53444         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53445         <ebb9@byu.net>.
53446
53447 2008-12-18  Bruno Haible  <bruno@clisp.org>
53448
53449         * m4/locale-ja.m4: New file, from GNU gettext.
53450
53451 2008-12-17  Bruno Haible  <bruno@clisp.org>
53452
53453         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53454         Suggested by Eric Blake.
53455
53456 2008-12-17  Bruno Haible  <bruno@clisp.org>
53457
53458         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53459
53460 2008-12-17  Bruno Haible  <bruno@clisp.org>
53461
53462         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53463         * modules/mbsinit (Depends-on): Add verify.
53464         Suggested by Paul Eggert.
53465
53466 2008-12-17  Bruno Haible  <bruno@clisp.org>
53467
53468         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53469         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53470         gl_FUNC_MBRTOWC.
53471         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53472         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53473         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53474         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53475         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53476         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53477         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53478         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53479         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53480         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53481         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53482         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53483         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53484         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53485         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53486         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53487         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53488         * modules/trim (configure.ac): Likewise.
53489
53490 2008-12-17  Bruno Haible  <bruno@clisp.org>
53491
53492         * modules/btowc-tests: New file.
53493         * tests/test-btowc1.sh: New file.
53494         * tests/test-btowc2.sh: New file.
53495         * tests/test-btowc.c: New file.
53496
53497         New module 'btowc'.
53498         * lib/wchar.in.h (btowc): New declaration.
53499         * lib/btowc.c: New file.
53500         * m4/btowc.m4: New file.
53501         * modules/btowc: New file.
53502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53503         HAVE_BTOWC.
53504         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53505         * doc/posix-functions/btowc.texi: Document the new module.
53506
53507 2008-12-17  Bruno Haible  <bruno@clisp.org>
53508
53509         New module 'mbsinit'.
53510         * lib/wchar.in.h (mbsinit): New declaration.
53511         * lib/mbsinit.c: New file.
53512         * m4/mbsinit.m4: New file.
53513         * modules/mbsinit: New file.
53514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53515         HAVE_MBSINIT.
53516         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53517         HAVE_MBSINIT.
53518         * doc/posix-functions/mbsinit.texi: Document the new module.
53519
53520 2008-12-16  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/unistd.in.h: Add comment.
53523         * tests/test-environ.c: Don't include <stdlib.h>.
53524
53525 2008-12-16  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/parse-duration.h (parse_duration): Document return value
53528         convention.
53529         * lib/parse-duration.c: Include specification header first. Add
53530         comments.
53531         (_): Remove macro.
53532         (parse_year_month_day, parse_hour_minute_second): Move side effects
53533         outside of strchr call.
53534         (parse_non_iso8601): Move side effects outside of isspace call.
53535         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53536         call.
53537
53538 2008-12-16  Bruno Haible  <bruno@clisp.org>
53539
53540         * tests/test-parse-duration.sh: Produce no output when the test
53541         succeeds.
53542
53543 2008-12-16  Bruno Haible  <bruno@clisp.org>
53544
53545         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53546         expressions.
53547
53548 2008-12-15  Bruno Haible  <bruno@clisp.org>
53549
53550         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53551         * doc/glibc-functions/flistxattr.texi: Likewise.
53552         * doc/glibc-functions/fopencookie.texi: Likewise.
53553         * doc/glibc-functions/fremovexattr.texi: Likewise.
53554         * doc/glibc-functions/fsetxattr.texi: Likewise.
53555         * doc/glibc-functions/getxattr.texi: Likewise.
53556         * doc/glibc-functions/lgetxattr.texi: Likewise.
53557         * doc/glibc-functions/listxattr.texi: Likewise.
53558         * doc/glibc-functions/llistxattr.texi: Likewise.
53559         * doc/glibc-functions/lremovexattr.texi: Likewise.
53560         * doc/glibc-functions/lsetxattr.texi: Likewise.
53561         * doc/glibc-functions/removexattr.texi: Likewise.
53562         * doc/glibc-functions/setxattr.texi: Likewise.
53563         * doc/posix-functions/open_memstream.texi: Likewise.
53564
53565 2008-12-15  Eric Blake  <ebb9@byu.net>
53566
53567         Update doc for cygwin 1.7.
53568         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53569         functions.
53570         * doc/posix-functions/fchmodat.texi: Likewise.
53571         * doc/posix-functions/fchownat.texi: Likewise.
53572         * doc/posix-functions/fdopendir.texi: Likewise.
53573         * doc/posix-functions/fmemopen.texi: Likewise.
53574         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53575         * doc/posix-functions/fstatat.texi: Likewise.
53576         * doc/posix-functions/futimens.texi: Likewise.
53577         * doc/posix-functions/gai_strerror.texi: Likewise.
53578         * doc/posix-functions/getaddrinfo.texi: Likewise.
53579         * doc/posix-functions/getnameinfo.texi: Likewise.
53580         * doc/posix-functions/if_freenameindex.texi: Likewise.
53581         * doc/posix-functions/if_indextoname.texi: Likewise.
53582         * doc/posix-functions/if_nameindex.texi: Likewise.
53583         * doc/posix-functions/if_nametoindex.texi: Likewise.
53584         * doc/posix-functions/insque.texi: Likewise.
53585         * doc/posix-functions/linkat.texi: Likewise.
53586         * doc/posix-functions/llrint.texi: Likewise.
53587         * doc/posix-functions/llrintf.texi: Likewise.
53588         * doc/posix-functions/llrintl.texi: Likewise.
53589         * doc/posix-functions/lockf.texi: Likewise.
53590         * doc/posix-functions/lrintl.texi: Likewise.
53591         * doc/posix-functions/mkdirat.texi: Likewise.
53592         * doc/posix-functions/mkfifoat.texi: Likewise.
53593         * doc/posix-functions/mknodat.texi: Likewise.
53594         * doc/posix-functions/mq_close.texi: Likewise.
53595         * doc/posix-functions/mq_getattr.texi: Likewise.
53596         * doc/posix-functions/mq_notify.texi: Likewise.
53597         * doc/posix-functions/mq_open.texi: Likewise.
53598         * doc/posix-functions/mq_receive.texi: Likewise.
53599         * doc/posix-functions/mq_send.texi: Likewise.
53600         * doc/posix-functions/mq_setattr.texi: Likewise.
53601         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53602         * doc/posix-functions/mq_timedsend.texi: Likewise.
53603         * doc/posix-functions/mq_unlink.texi: Likewise.
53604         * doc/posix-functions/open_memstream.texi: Likewise.
53605         * doc/posix-functions/openat.texi: Likewise.
53606         * doc/posix-functions/posix_fadvise.texi: Likewise.
53607         * doc/posix-functions/posix_fallocate.texi: Likewise.
53608         * doc/posix-functions/posix_madvise.texi: Likewise.
53609         * doc/posix-functions/posix_memalign.texi: Likewise.
53610         * doc/posix-functions/posix_openpt.texi: Likewise.
53611         * doc/posix-functions/readlinkat.texi: Likewise.
53612         * doc/posix-functions/remque.texi: Likewise.
53613         * doc/posix-functions/renameat.texi: Likewise.
53614         * doc/posix-functions/rintl.texi: Likewise.
53615         * doc/posix-functions/sem_unlink.texi: Likewise.
53616         * doc/posix-functions/shm_open.texi: Likewise.
53617         * doc/posix-functions/shm_unlink.texi: Likewise.
53618         * doc/posix-functions/signgam.texi: Likewise.
53619         * doc/posix-functions/sigset.texi: Likewise.
53620         * doc/posix-functions/stpcpy.texi: Likewise.
53621         * doc/posix-functions/stpncpy.texi: Likewise.
53622         * doc/posix-functions/strerror.texi: Likewise.
53623         * doc/posix-functions/strtod.texi: Likewise.
53624         * doc/posix-functions/symlinkat.texi: Likewise.
53625         * doc/posix-functions/unlinkat.texi: Likewise.
53626         * doc/posix-functions/utimensat.texi: Likewise.
53627         * doc/glibc-functions/bindresvport.texi: Likewise.
53628         * doc/glibc-functions/dn_expand.texi: Likewise.
53629         * doc/glibc-functions/exp10.texi: Likewise.
53630         * doc/glibc-functions/exp10f.texi: Likewise.
53631         * doc/glibc-functions/fgetxattr.texi: Likewise.
53632         * doc/glibc-functions/flistxattr.texi: Likewise.
53633         * doc/glibc-functions/fopencookie.texi: Likewise.
53634         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53635         * doc/glibc-functions/fremovexattr.texi: Likewise.
53636         * doc/glibc-functions/fsetxattr.texi: Likewise.
53637         * doc/glibc-functions/getifaddrs.texi: Likewise.
53638         * doc/glibc-functions/getxattr.texi: Likewise.
53639         * doc/glibc-functions/lgetxattr.texi: Likewise.
53640         * doc/glibc-functions/listxattr.texi: Likewise.
53641         * doc/glibc-functions/llistxattr.texi: Likewise.
53642         * doc/glibc-functions/lremovexattr.texi: Likewise.
53643         * doc/glibc-functions/lsetxattr.texi: Likewise.
53644         * doc/glibc-functions/pow10.texi: Likewise.
53645         * doc/glibc-functions/pow10f.texi: Likewise.
53646         * doc/glibc-functions/rcmd_af.texi: Likewise.
53647         * doc/glibc-functions/removexattr.texi: Likewise.
53648         * doc/glibc-functions/res_init.texi: Likewise.
53649         * doc/glibc-functions/res_mkquery.texi: Likewise.
53650         * doc/glibc-functions/res_query.texi: Likewise.
53651         * doc/glibc-functions/res_querydomain.texi: Likewise.
53652         * doc/glibc-functions/res_send.texi: Likewise.
53653         * doc/glibc-functions/rresvport_af.texi: Likewise.
53654         * doc/glibc-functions/setxattr.texi: Likewise.
53655         * doc/glibc-functions/strcasestr.texi: Likewise.
53656
53657 2008-12-15  Bruno Haible  <bruno@clisp.org>
53658
53659         Fix compilation error on OSF/1 4.0.
53660         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53661         <sys/time.h>, simply delegate to the system header.
53662         Reported by Daniel Richard G. <oss@teragram.com>.
53663
53664 2008-12-15  Bruno Haible  <bruno@clisp.org>
53665
53666         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53667         * doc/posix-functions/fchmodat.texi: Likewise.
53668         * doc/posix-functions/fchownat.texi: Likewise.
53669         * doc/posix-functions/fdopendir.texi: Likewise.
53670         * doc/posix-functions/fstatat.texi: Likewise.
53671         * doc/posix-functions/mkdirat.texi: Likewise.
53672         * doc/posix-functions/unlinkat.texi: Likewise.
53673
53674 2008-12-14  Bruno Haible  <bruno@clisp.org>
53675
53676         Update doc for POSIX:2008.
53677         * doc/posix-functions/faccessat.texi: New file.
53678         * doc/posix-functions/fchmodat.texi: New file.
53679         * doc/posix-functions/fchownat.texi: New file.
53680         * doc/posix-functions/fdopendir.texi: New file.
53681         * doc/posix-functions/fstatat.texi: New file.
53682         * doc/posix-functions/futimens.texi: New file.
53683         * doc/posix-functions/linkat.texi: New file.
53684         * doc/posix-functions/mkdirat.texi: New file.
53685         * doc/posix-functions/mkfifoat.texi: New file.
53686         * doc/posix-functions/mknodat.texi: New file.
53687         * doc/posix-functions/open_wmemstream.texi: New file.
53688         * doc/posix-functions/openat.texi: New file.
53689         * doc/posix-functions/psiginfo.texi: New file.
53690         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53691         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53692         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53693         * doc/posix-functions/readlinkat.texi: New file.
53694         * doc/posix-functions/renameat.texi: New file.
53695         * doc/posix-functions/strerror_l.texi: New file.
53696         * doc/posix-functions/symlinkat.texi: New file.
53697         * doc/posix-functions/unlinkat.texi: New file.
53698         * doc/posix-functions/utimensat.texi: New file.
53699         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53700
53701 2008-12-14  Bruno Haible  <bruno@clisp.org>
53702
53703         Update doc for POSIX:2008.
53704         * doc/posix-functions/alphasort.texi: Renamed from
53705         doc/glibc-functions/alphasort.texi.
53706         * doc/posix-functions/dirfd.texi: Renamed from
53707         doc/glibc-functions/dirfd.texi.
53708         * doc/posix-functions/dprintf.texi: Renamed from
53709         doc/glibc-functions/dprintf.texi.
53710         * doc/posix-functions/duplocale.texi: Renamed from
53711         doc/glibc-functions/duplocale.texi.
53712         * doc/posix-functions/fexecve.texi: Renamed from
53713         doc/glibc-functions/fexecve.texi.
53714         * doc/posix-functions/fmemopen.texi: Renamed from
53715         doc/glibc-functions/fmemopen.texi.
53716         * doc/posix-functions/freelocale.texi: Renamed from
53717         doc/glibc-functions/freelocale.texi.
53718         * doc/posix-functions/getdate_err.texi: Renamed from
53719         doc/glibc-functions/getdate_err.texi.
53720         * doc/posix-functions/isalnum_l.texi: Renamed from
53721         doc/glibc-functions/isalnum_l.texi.
53722         * doc/posix-functions/isalpha_l.texi: Renamed from
53723         doc/glibc-functions/isalpha_l.texi.
53724         * doc/posix-functions/isblank_l.texi: Renamed from
53725         doc/glibc-functions/isblank_l.texi.
53726         * doc/posix-functions/iscntrl_l.texi: Renamed from
53727         doc/glibc-functions/iscntrl_l.texi.
53728         * doc/posix-functions/isdigit_l.texi: Renamed from
53729         doc/glibc-functions/isdigit_l.texi.
53730         * doc/posix-functions/isgraph_l.texi: Renamed from
53731         doc/glibc-functions/isgraph_l.texi.
53732         * doc/posix-functions/islower_l.texi: Renamed from
53733         doc/glibc-functions/islower_l.texi.
53734         * doc/posix-functions/isprint_l.texi: Renamed from
53735         doc/glibc-functions/isprint_l.texi.
53736         * doc/posix-functions/ispunct_l.texi: Renamed from
53737         doc/glibc-functions/ispunct_l.texi.
53738         * doc/posix-functions/isspace_l.texi: Renamed from
53739         doc/glibc-functions/isspace_l.texi.
53740         * doc/posix-functions/isupper_l.texi: Renamed from
53741         doc/glibc-functions/isupper_l.texi.
53742         * doc/posix-functions/iswalnum_l.texi: Renamed from
53743         doc/glibc-functions/iswalnum_l.texi.
53744         * doc/posix-functions/iswalpha_l.texi: Renamed from
53745         doc/glibc-functions/iswalpha_l.texi.
53746         * doc/posix-functions/iswblank_l.texi: Renamed from
53747         doc/glibc-functions/iswblank_l.texi.
53748         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53749         doc/glibc-functions/iswcntrl_l.texi.
53750         * doc/posix-functions/iswctype_l.texi: Renamed from
53751         doc/glibc-functions/iswctype_l.texi.
53752         * doc/posix-functions/iswdigit_l.texi: Renamed from
53753         doc/glibc-functions/iswdigit_l.texi.
53754         * doc/posix-functions/iswgraph_l.texi: Renamed from
53755         doc/glibc-functions/iswgraph_l.texi.
53756         * doc/posix-functions/iswlower_l.texi: Renamed from
53757         doc/glibc-functions/iswlower_l.texi.
53758         * doc/posix-functions/iswprint_l.texi: Renamed from
53759         doc/glibc-functions/iswprint_l.texi.
53760         * doc/posix-functions/iswpunct_l.texi: Renamed from
53761         doc/glibc-functions/iswpunct_l.texi.
53762         * doc/posix-functions/iswspace_l.texi: Renamed from
53763         doc/glibc-functions/iswspace_l.texi.
53764         * doc/posix-functions/iswupper_l.texi: Renamed from
53765         doc/glibc-functions/iswupper_l.texi.
53766         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53767         doc/glibc-functions/iswxdigit_l.texi.
53768         * doc/posix-functions/isxdigit_l.texi: Renamed from
53769         doc/glibc-functions/isxdigit_l.texi.
53770         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53771         doc/glibc-functions/mbsnrtowcs.texi.
53772         * doc/posix-functions/mkdtemp.texi: Renamed from
53773         doc/glibc-functions/mkdtemp.texi.
53774         * doc/posix-functions/newlocale.texi: Renamed from
53775         doc/glibc-functions/newlocale.texi.
53776         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53777         doc/glibc-functions/nl_langinfo_l.texi.
53778         * doc/posix-functions/open_memstream.texi: Renamed from
53779         doc/glibc-functions/open_memstream.texi.
53780         * doc/posix-functions/opterr.texi: Renamed from
53781         doc/glibc-functions/opterr.texi.
53782         * doc/posix-functions/optind.texi: Renamed from
53783         doc/glibc-functions/optind.texi.
53784         * doc/posix-functions/optopt.texi: Renamed from
53785         doc/glibc-functions/optopt.texi.
53786         * doc/posix-functions/psignal.texi: Renamed from
53787         doc/glibc-functions/psignal.texi.
53788         * doc/posix-functions/scandir.texi: Renamed from
53789         doc/glibc-functions/scandir.texi.
53790         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53791         doc/glibc-functions/sched_get_priority_min.texi.
53792         * doc/posix-functions/signgam.texi: Renamed from
53793         doc/glibc-functions/signgam.texi.
53794         * doc/posix-functions/stpcpy.texi: Renamed from
53795         doc/glibc-functions/stpcpy.texi.
53796         * doc/posix-functions/stpncpy.texi: Renamed from
53797         doc/glibc-functions/stpncpy.texi.
53798         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53799         doc/glibc-functions/strcasecmp_l.texi.
53800         * doc/posix-functions/strcoll_l.texi: Renamed from
53801         doc/glibc-functions/strcoll_l.texi.
53802         * doc/posix-functions/strfmon_l.texi: Renamed from
53803         doc/glibc-functions/strfmon_l.texi.
53804         * doc/posix-functions/strftime_l.texi: Renamed from
53805         doc/glibc-functions/strftime_l.texi.
53806         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53807         doc/glibc-functions/strncasecmp_l.texi.
53808         * doc/posix-functions/strndup.texi: Renamed from
53809         doc/glibc-functions/strndup.texi.
53810         * doc/posix-functions/strnlen.texi: Renamed from
53811         doc/glibc-functions/strnlen.texi.
53812         * doc/posix-functions/strsignal.texi: Renamed from
53813         doc/glibc-functions/strsignal.texi.
53814         * doc/posix-functions/strxfrm_l.texi: Renamed from
53815         doc/glibc-functions/strxfrm_l.texi.
53816         * doc/posix-functions/timer_gettime.texi: Renamed from
53817         doc/glibc-functions/timer_gettime.texi.
53818         * doc/posix-functions/tolower_l.texi: Renamed from
53819         doc/glibc-functions/tolower_l.texi.
53820         * doc/posix-functions/toupper_l.texi: Renamed from
53821         doc/glibc-functions/toupper_l.texi.
53822         * doc/posix-functions/towctrans_l.texi: Renamed from
53823         doc/glibc-functions/towctrans_l.texi.
53824         * doc/posix-functions/towlower_l.texi: Renamed from
53825         doc/glibc-functions/towlower_l.texi.
53826         * doc/posix-functions/towupper_l.texi: Renamed from
53827         doc/glibc-functions/towupper_l.texi.
53828         * doc/posix-functions/uselocale.texi: Renamed from
53829         doc/glibc-functions/uselocale.texi.
53830         * doc/posix-functions/vdprintf.texi: Renamed from
53831         doc/glibc-functions/vdprintf.texi.
53832         * doc/posix-functions/wcpcpy.texi:
53833         Renamed from doc/glibc-functions/wcpcpy.texi.
53834         * doc/posix-functions/wcpncpy.texi: Renamed from
53835         doc/glibc-functions/wcpncpy.texi.
53836         * doc/posix-functions/wcscasecmp.texi: Renamed from
53837         doc/glibc-functions/wcscasecmp.texi.
53838         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53839         doc/glibc-functions/wcscasecmp_l.texi.
53840         * doc/posix-functions/wcscoll_l.texi: Renamed from
53841         doc/glibc-functions/wcscoll_l.texi.
53842         * doc/posix-functions/wcsdup.texi: Renamed from
53843         doc/glibc-functions/wcsdup.texi.
53844         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53845         doc/glibc-functions/wcsncasecmp.texi.
53846         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53847         doc/glibc-functions/wcsncasecmp_l.texi.
53848         * doc/posix-functions/wcsnlen.texi: Renamed from
53849         doc/glibc-functions/wcsnlen.texi.
53850         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53851         doc/glibc-functions/wcsnrtombs.texi.
53852         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53853         doc/glibc-functions/wcsxfrm_l.texi.
53854         * doc/posix-functions/wctrans_l.texi: Renamed from
53855         doc/glibc-functions/wctrans_l.texi.
53856         * doc/posix-functions/wctype_l.texi: Renamed from
53857         doc/glibc-functions/wctype_l.texi.
53858         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53859         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53860         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53861         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53862         these subsections.
53863         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53864         Remove sections.
53865
53866 2008-12-14  Bruno Haible  <bruno@clisp.org>
53867
53868         Update doc for POSIX:2008.
53869         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53870
53871 2008-12-14  Bruno Haible  <bruno@clisp.org>
53872
53873         Update doc for POSIX:2008.
53874         * doc/pastposix-functions/bcmp.texi: Renamed from
53875         doc/posix-functions/bcmp.texi.
53876         * doc/pastposix-functions/bcopy.texi: Renamed from
53877         doc/posix-functions/bcopy.texi.
53878         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53879         doc/posix-functions/bsd_signal.texi.
53880         * doc/pastposix-functions/bzero.texi: Renamed from
53881         doc/posix-functions/bzero.texi.
53882         * doc/pastposix-functions/ecvt.texi: Renamed from
53883         doc/posix-functions/ecvt.texi.
53884         * doc/pastposix-functions/fcvt.texi: Renamed from
53885         doc/posix-functions/fcvt.texi.
53886         * doc/pastposix-functions/ftime.texi: Renamed from
53887         doc/posix-functions/ftime.texi.
53888         * doc/pastposix-functions/gcvt.texi: Renamed from
53889         doc/posix-functions/gcvt.texi.
53890         * doc/pastposix-functions/getcontext.texi: Renamed from
53891         doc/posix-functions/getcontext.texi.
53892         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53893         doc/posix-functions/gethostbyaddr.texi.
53894         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53895         doc/posix-functions/gethostbyname.texi.
53896         * doc/pastposix-functions/getwd.texi: Renamed from
53897         doc/posix-functions/getwd.texi.
53898         * doc/pastposix-functions/h_errno.texi: Renamed from
53899         doc/posix-functions/h_errno.texi.
53900         * doc/pastposix-functions/index.texi: Renamed from
53901         doc/posix-functions/index.texi.
53902         * doc/pastposix-functions/makecontext.texi: Renamed from
53903         doc/posix-functions/makecontext.texi.
53904         * doc/pastposix-functions/mktemp.texi: Renamed from
53905         doc/posix-functions/mktemp.texi.
53906         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53907         doc/posix-functions/pthread_attr_getstackaddr.texi.
53908         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53909         doc/posix-functions/pthread_attr_setstackaddr.texi.
53910         * doc/pastposix-functions/rindex.texi: Renamed from
53911         doc/posix-functions/rindex.texi.
53912         * doc/pastposix-functions/scalb.texi: Renamed from
53913         doc/posix-functions/scalb.texi.
53914         * doc/pastposix-functions/setcontext.texi: Renamed from
53915         doc/posix-functions/setcontext.texi.
53916         * doc/pastposix-functions/swapcontext.texi: Renamed from
53917         doc/posix-functions/swapcontext.texi.
53918         * doc/pastposix-functions/ualarm.texi: Renamed from
53919         doc/posix-functions/ualarm.texi.
53920         * doc/pastposix-functions/usleep.texi: Renamed from
53921         doc/posix-functions/usleep.texi.
53922         * doc/pastposix-functions/vfork.texi: Renamed from
53923         doc/posix-functions/vfork.texi.
53924         * doc/pastposix-functions/wcswcs.texi: Renamed from
53925         doc/posix-functions/wcswcs.texi.
53926         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53927         (Function Substitutes): Update.
53928
53929 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53930
53931         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53932         m4/strerror.m4.
53933
53934 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53935             Bruno Haible  <bruno@clisp.org>
53936
53937         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53938
53939 2008-12-13  Bruno Haible  <bruno@clisp.org>
53940
53941         * modules/strtoull (Depends-on): Remove unistd.
53942
53943 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53944
53945         * modules/strtoull (Depends-on): Add stdlib.
53946
53947 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53948
53949         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53950
53951 2008-12-10  Jim Meyering  <meyering@redhat.com>
53952
53953         gl_ASSERT: don't say assertions are disabled when they're not
53954         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53955         "checking whether to enable assertions... no", when they are in
53956         fact enabled.  This is solely a bug in the output of configure.
53957         In spite of saying "no", NDEBUG was not defined in that case.
53958         Also, as noted by Eric Blake, leave assertions enabled upon
53959         --enable-assert=INVALID.
53960
53961 2008-12-10  Bruno Haible  <bruno@clisp.org>
53962
53963         Change MODULES.html to refer to POSIX:2008 where possible.
53964         * MODULES.html.sh (POSIX2008_URL): New variable.
53965         (posix_headers): Remove sys/timeb, ucontext.
53966         (posix2001_headers): New variable.
53967         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53968         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53969         index, makecontext, mktemp, pthread_attr_getstackaddr,
53970         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53971         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53972         (posix2001_functions): New variable.
53973         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53974         otherwise.
53975
53976 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53977
53978         add missing include to parse-duration.c
53979         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53980         * modules/parse-duration (Depends-on): Add xalloc.
53981
53982         fix sed script reading maint.mk
53983         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53984         (syntax-check-rules): Use it.
53985
53986 2008-12-09  Bruno Haible  <bruno@clisp.org>
53987
53988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53989         MacOS X 10.4/PowerPC.
53990         Reported by Simon Josefsson.
53991
53992 2008-12-08  Jim Meyering  <meyering@redhat.com>
53993
53994         work around mingw's lack of some S_IF definitions
53995         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53996         Reported by Simon Josefsson.
53997
53998 2008-12-08  Bruno Haible  <bruno@clisp.org>
53999
54000         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54001         applied to variables. Needed on MacOS X 10.4/PowerPC.
54002         Reported by Simon Josefsson.
54003
54004 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54005         and Eric Blake  <ebb9@byu.net>
54006
54007         assert: honor --enable-assert
54008         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54009         order to honor --enable-assert, rather than treating it as a
54010         synonym for --disable-assert.
54011
54012 2008-12-08  Jim Meyering  <meyering@redhat.com>
54013
54014         * lib/posixtm.c: Remove now-useless declaration of mktime.
54015
54016         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54017
54018 2008-12-07  Bruno Haible  <bruno@clisp.org>
54019
54020         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54021         test_once): Mark functions as static.
54022         * tests/test-tls.c (test_tls): Likewise.
54023
54024 2008-12-07  Bruno Haible  <bruno@clisp.org>
54025
54026         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54027         iconv_register_autodetect.
54028
54029 2008-12-07  Jim Meyering  <meyering@redhat.com>
54030
54031         posixtm.c: avoid a warning
54032         * lib/posixtm.c (posixtime): Don't initialize tm0.
54033         It's no longer needed to placate gcc4's -Wuninitialized,
54034         and the attempt to placate would elicit a new warning.
54035
54036         unicodeio.c: mark unused parameters
54037         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54038         (fallback_failure_callback): Likewise.
54039
54040 2008-12-07  Bruno Haible  <bruno@clisp.org>
54041
54042         * gnulib-tool (func_create_testdir): When building the tests
54043         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54044         Reported by Simon Josefsson.
54045
54046 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54047
54048         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54049
54050 2008-12-06  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54053         Suggested by Eric Blake.
54054
54055 2008-12-06  Bruno Haible  <bruno@clisp.org>
54056
54057         Fix a c-stack test failure on MacOS X.
54058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54059         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54060         handler for SIGBUS as well.
54061         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54062         install a signal handler for SIGBUS as well.
54063         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54064
54065 2008-12-06  Bruno Haible  <bruno@clisp.org>
54066
54067         Advocacy documentation.
54068         * doc/gnulib-intro.texi (Benefits): New section.
54069         * doc/gnulib.texi: Update.
54070
54071 2008-12-06  Bruno Haible  <bruno@clisp.org>
54072
54073         Document the 'manywarnings' module.
54074         * doc/manywarnings.texi: New file.
54075         * doc/gnulib.texi: Include it.
54076
54077 2008-12-05  Eric Blake  <ebb9@byu.net>
54078
54079         tests: silence some gcc warnings
54080         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54081         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54082         type mismatches.
54083
54084 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54085             Bruno Haible  <bruno@clisp.org>
54086
54087         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54088
54089 2008-11-29  Jim Meyering  <meyering@redhat.com>
54090
54091         unicodeio.c: mark unused parameters
54092         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54093         (fallback_failure_callback): Likewise.
54094
54095         fts: fix a thinko
54096         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54097         (set_stat_type): Return S_IF*-valued "type" directly.
54098         Prompted by James Youngman's spotting a related bug.
54099         Confirmed by further testing through find.
54100
54101         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54102         * lib/fts.c (D_TYPE): Define.
54103         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54104         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54105         (s_ifmt_shift_bits): New function.
54106         (set_stat_type): New function.
54107         (fts_build): When not calling fts_stat, call set_stat_type
54108         to propagate dirent.d_type info to fts_read caller.
54109         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54110         fts_statp->st_mode type information may be valid.
54111
54112 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54113
54114         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54115         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54116         <sds@gnu.org>.
54117
54118 2008-11-20  Bruno Haible  <bruno@clisp.org>
54119
54120         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54121         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54122         INCLUDE_NEXT.
54123         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54124         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54125         * modules/math (Makefile.am): Substitute
54126         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54128
54129 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54130             Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/stdint.in.h: Define all type macros so that their expansion is
54133         a single typedef'ed token. Fixes a compilation failure in Boost which
54134         does "using ::int8_t;".
54135
54136 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54137
54138         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54139         gl_MANYWARN_ALL_GCC.
54140         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54141         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54142         * modules/manywarnings: New file.
54143         * MODULES.html.sh: Mention manywarnings module.
54144
54145 2008-11-18  Bruno Haible  <bruno@clisp.org>
54146
54147         * doc/gnulib-tool.texi (Unit tests): New section.
54148
54149 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54150
54151         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54152         paths like 'lib/po/foo.po'.
54153
54154 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54155
54156         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54157         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54158
54159 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54160
54161         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54162         parameter works.
54163
54164 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54165
54166         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54167
54168 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54169
54170         * modules/parse-duration-tests: New file.
54171         * tests/test-parse-duration.sh: New file.
54172         * tests/test-parse-duration.c: New file.
54173
54174         New module 'parse-duration'.
54175         * lib/parse-duration.h: New file.
54176         * lib/parse-duration.c: New file.
54177         * modules/parse-duration: New file.
54178
54179 2008-11-17  Bruno Haible  <bruno@clisp.org>
54180
54181         * tests/test-select-out.sh: Comment out the first pipe test.
54182         Reported by Simon Josefsson.
54183
54184 2008-11-17  Bruno Haible  <bruno@clisp.org>
54185
54186         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54187         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54188         gl_HOSTENT.
54189
54190 2008-11-17  Bruno Haible  <bruno@clisp.org>
54191
54192         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54193         -lnetwork and -lnet. Needed for Haiku and BeOS.
54194
54195 2008-11-16  Bruno Haible  <bruno@clisp.org>
54196
54197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54198
54199 2008-11-16  Bruno Haible  <bruno@clisp.org>
54200
54201         Avoid test failure on Haiku.
54202         * tests/test-fsync.c: Include <errno.h>.
54203         (main): Don't require that fsync (0) fails.
54204
54205 2008-11-15  Bruno Haible  <bruno@clisp.org>
54206
54207         New module 'hostent'.
54208         * modules/hostent: New file.
54209         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54210
54211 2008-11-15  Bruno Haible  <bruno@clisp.org>
54212
54213         New module 'servent'.
54214         * modules/servent: New file.
54215         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54216
54217 2008-11-15  Bruno Haible  <bruno@clisp.org>
54218
54219         Avoid generating same test program with two different rules.
54220         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54221         test-frexp to test-frexp-nolibm.
54222         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54223         test-frexpl to test-frexpl-nolibm.
54224
54225 2008-11-15  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54228         $(FREXPL_LIBM).
54229
54230 2008-11-15  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/netdb.in.h: Activate the definitions also when the system's
54233         <netdb.h> has 'struct addrinfo'.
54234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54235         EAI_OVERFLOW or AI_NUMERICSERV.
54236         * doc/posix-headers/netdb.texi: Document the problem.
54237
54238 2008-11-15  Bruno Haible  <bruno@clisp.org>
54239
54240         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54241
54242         Make the 'sched' module work on platforms where <sched.h> exists but
54243         is incomplete (such as Haiku).
54244         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54245         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54246         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54247         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54248         HAVE_STRUCT_SCHED_PARAM.
54249         * modules/sched (Depends-on): Add include_next.
54250         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54251         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54252         * doc/posix-headers/sched.texi: Document the issue.
54253
54254 2008-11-13  Jim Meyering  <meyering@redhat.com>
54255
54256         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54257         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54258         test would fail due to the difference in the Report bugs to ...
54259         line.  The expected address is empty, "<>", while the actual
54260         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54261
54262 2008-11-12  Bruno Haible  <bruno@clisp.org>
54263
54264         lstat: don't compile lstat.c on systems lacking lstat
54265         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54266         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54267         Reported by Daniel P. Berrange via Jim Meyering.
54268
54269 2008-11-12  Jim Meyering  <meyering@redhat.com>
54270
54271         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54272
54273 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54274
54275         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54276         instead.
54277
54278 2008-11-12  Bruno Haible  <bruno@clisp.org>
54279
54280         * lib/unicodeio.c: Include unistr.h.
54281         (utf8_wctomb): Remove function.
54282         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54283
54284 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54285
54286         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54287         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54288         <bruno@clisp.org>.
54289         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54290
54291 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54292
54293         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54294         * doc/gnulib.texi: Add section for warnings.
54295
54296 2008-11-11  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/sockets.h: Add a comment.
54299
54300 2008-11-11  Karl Berry  <karl@gnu.org>
54301
54302         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54303
54304 2008-11-11  Eric Blake  <ebb9@byu.net>
54305
54306         fdl.texi: avoid git symlinks
54307         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54308
54309 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54310
54311         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54312
54313 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54314
54315         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54316         (gl_WARN_ADD): Substitute $2 if literal.
54317
54318 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54319
54320         * m4/warning.m4: Remove.
54321
54322 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54323
54324         * m4/warnings.m4: Almost complete rewrite. :-)
54325
54326 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54327
54328         * modules/warnings: New module.
54329         * m4/warnings.m4: New file.
54330         * MODULES.html.sh: Mention warnings module.
54331         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54332         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54333
54334 2008-11-10  Eric Blake  <ebb9@byu.net>
54335
54336         fdl.texi: make a symlink to the latest version
54337         * doc/standards.texi: Revert today's earlier change.
54338         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54339         * doc/fdl.texi: ...and replace this with a symlink to the newer
54340         fdl-1.3.texi.
54341
54342 2008-11-10  Bruno Haible  <bruno@clisp.org>
54343
54344         * tests/test-select-fd.c (main): Accept the result file name as fourth
54345         argument.
54346         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54347         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54348
54349 2008-11-10  Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54352         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54353         as autoconf-substituted macros.
54354         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54356         gl_NETDB_H_DEFAULTS. Set these variables.
54357         * modules/netdb (Makefile.am): Substitute these variables.
54358
54359 2008-11-10  Eric Blake  <ebb9@byu.net>
54360
54361         standards.texi: include correct file for FDL 1.3
54362         * doc/standards.texi (GNU Free Documentation License): Change
54363         include file to pull in FDL 1.3, not 1.2.
54364
54365         fdl.texi: revert accidental change to license
54366         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54367
54368 2008-11-10  Bruno Haible  <bruno@clisp.org>
54369
54370         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54371         cross-compiling guesses also when the native compile gives no result.
54372
54373 2008-11-10  Bruno Haible  <bruno@clisp.org>
54374
54375         * lib/spawni.c (__spawni): Force variable into the stack.
54376
54377 2008-11-10  Bruno Haible  <bruno@clisp.org>
54378
54379         Add support for Haiku.
54380         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54381         glibc and BeOS, but also on Haiku.
54382         * lib/fpurge.c (fpurge): Likewise.
54383         * lib/freadable.c (freadable): Likewise.
54384         * lib/freadahead.c (freadahead): Likewise.
54385         * lib/freading.c (freading): Likewise.
54386         * lib/freadptr.c (freadptr): Likewise.
54387         * lib/freadseek.c (freadptrinc): Likewise.
54388         * lib/fseeko.c (rpl_fseeko): Likewise.
54389         * lib/fseterr.c (fseterr): Likewise.
54390         * lib/fwritable.c (fwritable): Likewise.
54391         * lib/fwriting.c (fwriting): Likewise.
54392         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54393
54394 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54395
54396         * lib/config.charset: Treat Haiku like BeOS.
54397
54398 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54399
54400         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54401         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54402
54403 2008-11-08  Bruno Haible  <bruno@clisp.org>
54404
54405         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54406         AC_CACHE_CHECK.
54407
54408 2008-11-08  Bruno Haible  <bruno@clisp.org>
54409
54410         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54411
54412 2008-11-08  Bruno Haible  <bruno@clisp.org>
54413
54414         * tests/test-select-fd.c: New file.
54415         * tests/test-select-in.sh: New file.
54416         * tests/test-select-out.sh: New file.
54417         * tests/test-select-stdin.c: New file.
54418         * modules/select-tests (Files): Add the new files.
54419         (Depends-on): Add gettimeofday.
54420         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54421         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54422         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54423
54424 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54425             Bruno Haible  <bruno@clisp.org>
54426
54427         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54428
54429 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54430
54431         * build-aux/pmccabe2html: Added support for C++ source files.
54432
54433 2008-11-05  Ben Pfaff  <blp@gnu.org>
54434
54435         Fix lib/close.c build on Windows.
54436         * modules/close (Files): Add lib/w32sock.h.
54437
54438 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54439
54440         Accept Bison's NEWS format.
54441         * build-aux/announce-gen (print_news_deltas): Tweak
54442         $re_prefix.
54443
54444 2008-11-04  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/random_r (Maintainer): Add glibc.
54447
54448 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54449
54450         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54451         by karl@freefriends.org (Karl Berry).
54452         * doc/alloca.texi: Likewise.
54453         * doc/c-ctype.texi: Likewise.
54454         * doc/c-strcase.texi: Likewise.
54455         * doc/c-strcaseeq.texi: Likewise.
54456         * doc/c-strcasestr.texi: Likewise.
54457         * doc/c-strstr.texi: Likewise.
54458         * doc/c-strtod.texi: Likewise.
54459         * doc/c-strtold.texi: Likewise.
54460         * doc/ctime.texi: Likewise.
54461         * doc/error.texi: Likewise.
54462         * doc/fdl.texi: Likewise.
54463         * doc/gcd.texi: Likewise.
54464         * doc/getdate.texi: Likewise.
54465         * doc/gnulib-intro.texi: Likewise.
54466         * doc/gnulib-tool.texi: Likewise.
54467         * doc/gnulib.texi: Likewise.
54468         * doc/inet_ntoa.texi: Likewise.
54469         * doc/maintain.texi: Likewise.
54470         * doc/make-stds.texi: Likewise.
54471         * doc/quote.texi: Likewise.
54472         * doc/regexprops-generic.texi: Likewise.
54473         * doc/standards.texi: Likewise.
54474         * doc/verify.texi: Likewise.
54475         * doc/visibility.texi: Likewise.
54476         * doc/gnulib.texi (GNU Free Documentation License): Include
54477         fdl-1.3.texi instead of fdl.texi.
54478
54479 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54480
54481         * doc/fdl-1.3.texi: New file, from
54482         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54483         * modules/fdl-1.3: Add.
54484         * MODULES.html.sh: Add fdl-1.3.
54485
54486 2008-11-03  Bruno Haible  <bruno@clisp.org>
54487
54488         Make determination of absolute name of header file work with AIX xlc.
54489         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54490         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54491         preprocessing.
54492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54493         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54494
54495 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54496
54497         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54498         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54499         <ludo@gnu.org>.
54500
54501 2008-11-02  Bruno Haible  <bruno@clisp.org>
54502
54503         Mark 'strpbrk' obsolete.
54504         * modules/strpbrk (Status, Notice): New sections.
54505         * modules/strtok_r (Depends-on): Add strpbrk.
54506
54507 2008-11-02  Bruno Haible  <bruno@clisp.org>
54508
54509         Mark 'strdup' obsolete.
54510         * modules/strdup (Status, Notice): New sections.
54511         * modules/findprog (Depends-on): Add strdup.
54512         * modules/getaddrinfo (Depends-on): Likewise.
54513         * modules/localename (Depends-on): Likewise.
54514         * modules/relocatable-lib (Depends-on): Likewise.
54515         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54516         * modules/relocatable-prog (Depends-on): Likewise.
54517         * modules/trim (Depends-on): Likewise.
54518         * modules/unictype/gen-ctype (Depends-on): Likewise.
54519         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54520
54521 2008-11-02  Bruno Haible  <bruno@clisp.org>
54522
54523         Mark 'strcspn' obsolete.
54524         * modules/strcspn (Status, Notice): New sections.
54525
54526 2008-11-02  Bruno Haible  <bruno@clisp.org>
54527
54528         Mark 'rmdir' obsolete.
54529         * modules/rmdir (Status, Notice): New sections.
54530         * modules/clean-temp (Depends-on): Add rmdir.
54531         * modules/openat (Depends-on): Likewise.
54532
54533 2008-11-02  Bruno Haible  <bruno@clisp.org>
54534
54535         Mark 'raise' obsolete.
54536         * modules/raise (Status, Notice): New sections.
54537         (Include): Specify <signal.h>.
54538         * modules/stdio (Depends-on): Add raise.
54539         * modules/write (Depends-on): Likewise.
54540
54541 2008-11-02  Bruno Haible  <bruno@clisp.org>
54542
54543         Mark 'memset' obsolete.
54544         * modules/memset (Status, Notice): New sections.
54545
54546 2008-11-02  Bruno Haible  <bruno@clisp.org>
54547
54548         Mark 'memmove' obsolete.
54549         * modules/memmove (Status, Notice): New sections.
54550         * modules/argp (Depends-on): Add memmove.
54551         * modules/argz (Depends-on): Likewise.
54552         * modules/canonicalize (Depends-on): Likewise.
54553         * modules/canonicalize-lgpl (Depends-on): Likewise.
54554         * modules/fts (Depends-on): Likewise.
54555         * modules/getcwd (Depends-on): Likewise.
54556         * modules/human (Depends-on): Likewise.
54557         * modules/regex (Depends-on): Likewise.
54558         * modules/striconveh (Depends-on): Likewise.
54559         * modules/trim (Depends-on): Likewise.
54560         * modules/unistr/u8-move (Depends-on): Likewise.
54561         * modules/unistr/u16-move (Depends-on): Likewise.
54562         * modules/unistr/u32-move (Depends-on): Likewise.
54563
54564 2008-11-02  Bruno Haible  <bruno@clisp.org>
54565
54566         Mark 'memcpy' obsolete.
54567         * modules/memcpy (Status, Notice): New sections.
54568
54569 2008-11-02  Bruno Haible  <bruno@clisp.org>
54570
54571         Mark 'memcmp' obsolete.
54572         * modules/memcmp (Status, Notice): New sections.
54573         * modules/argmatch (Depends-on): Add memchr.
54574         * modules/backupfile (Depends-on): Likewise.
54575         * modules/c-strcasestr (Depends-on): Likewise.
54576         * modules/crypto/des (Depends-on): Likewise.
54577         * modules/csharpcomp (Depends-on): Likewise.
54578         * modules/fnmatch (Depends-on): Likewise.
54579         * modules/git-merge-changelog (Depends-on): Likewise.
54580         * modules/isnand (Depends-on): Likewise.
54581         * modules/isnand-nolibm (Depends-on): Likewise.
54582         * modules/isnanf (Depends-on): Likewise.
54583         * modules/isnanf-nolibm (Depends-on): Likewise.
54584         * modules/isnanl (Depends-on): Likewise.
54585         * modules/isnanl-nolibm (Depends-on): Likewise.
54586         * modules/mbchar (Depends-on): Likewise.
54587         * modules/memcoll (Depends-on): Likewise.
54588         * modules/quotearg (Depends-on): Likewise.
54589         * modules/regex (Depends-on): Likewise.
54590         * modules/relocatable-prog (Depends-on): Likewise.
54591         * modules/same (Depends-on): Likewise.
54592         * modules/signbit (Depends-on): Likewise.
54593         * modules/strcasestr-simple (Depends-on): Likewise.
54594         * modules/unictype/gen-ctype (Depends-on): Likewise.
54595         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54596         * modules/uniname/uniname (Depends-on): Likewise.
54597         * modules/unistr/u8-cmp (Depends-on): Likewise.
54598
54599 2008-11-02  Bruno Haible  <bruno@clisp.org>
54600
54601         Mark 'memchr' obsolete.
54602         * modules/memchr (Status, Notice): New sections.
54603         * modules/argp (Depends-on): Add memchr.
54604         * modules/base64 (Depends-on): Likewise.
54605         * modules/c-strcasestr (Depends-on): Likewise.
54606         * modules/chdir-long (Depends-on): Likewise.
54607         * modules/fnmatch (Depends-on): Likewise.
54608         * modules/getsubopt (Depends-on): Likewise.
54609         * modules/git-merge-changelog (Depends-on): Likewise.
54610         * modules/glob (Depends-on): Likewise.
54611         * modules/strcasestr-simple (Depends-on): Likewise.
54612         * modules/strnlen (Depends-on): Likewise.
54613
54614 2008-11-02  Bruno Haible  <bruno@clisp.org>
54615
54616         Mark 'atexit' obsolete.
54617         * modules/atexit (Status, Notice): New sections.
54618         * modules/chdir-long (Depends-on): Add atexit.
54619         * modules/wait-process (Depends-on): Likewise.
54620
54621 2008-11-02  Bruno Haible  <bruno@clisp.org>
54622
54623         * gnulib-tool: New option --with-obsolete.
54624         (func_usage): Document it.
54625         (func_modules_transitive_closure): Drop obsolete dependencies if
54626         incobsolete is not true.
54627         (func_import): Read and save the incobsolete variable to the cache.
54628
54629 2008-11-02  Bruno Haible  <bruno@clisp.org>
54630
54631         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54632         * gnulib-tool: New option --extract-status.
54633         (func_usage): Document it.
54634         (sed_extract_prog): Recognize it.
54635         (func_get_status): New function.
54636
54637 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54638
54639         * modules/sockets (License): Change from LGPL to LGPLv2+.
54640
54641 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54642
54643         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54644
54645 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54646
54647         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54648         Mention times and sys_times.
54649         * modules/sys_times, modules/sys_times-tests: New modules.
54650         * modules/times, modules/times-tests: Likewise
54651         * m4/sys_times_h.m4: New file.
54652         * lib/sys_times.in.h: Likewise
54653         * lib/times.c: Likewise.
54654         * tests/test-sys_times.c: Likewise.
54655         * tests/test-times.c: Likewise.
54656         * doc/posix-headers/sys_times.texi: Update.
54657         * doc/posix-functions/times.texi: Update.
54658
54659 2008-10-28  Jim Meyering  <meyering@redhat.com>
54660
54661         * modules/tempname (Depends-on): Add lstat.
54662
54663         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54664
54665 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54666
54667         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54668         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54669         using idiom used elsewhere in gnulib.
54670
54671 2008-10-27  Jim Meyering  <meyering@redhat.com>
54672
54673         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54674
54675 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54676
54677         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54678         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54679         programs.
54680         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54681
54682 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54683
54684         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54685
54686 2008-10-27  Bruno Haible  <bruno@clisp.org>
54687
54688         * tests/test-lstat.c: Include <stdio.h>.
54689
54690 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54691
54692         * modules/lstat-tests: New module.
54693         * tests/test-lstat.c: New file.
54694
54695 2008-10-26  Jim Meyering  <meyering@redhat.com>
54696
54697         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54698
54699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54700             Bruno Haible  <bruno@clisp.org>
54701
54702         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54703         * modules/configmake (Include): Add a note that the include must come
54704         after all system headers.
54705         * lib/javaversion.c: Include configmake.h after all other includes.
54706
54707 2008-10-26  Bruno Haible  <bruno@clisp.org>
54708
54709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54710         HAVE_STRUCT_RANDOM_DATA to 1.
54711         (gl_STDLIB_H): Simplify.
54712
54713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54714
54715         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54716         substitute HAVE_STRUCT_RANDOM_DATA.
54717         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54718         random_data.
54719         * modules/stdlib (Makefile.am): Substitute
54720         HAVE_STRUCT_RANDOM_DATA.
54721
54722 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54723
54724         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54725         * doc/gnulib-intro.texi (Copyright): Likewise.
54726
54727 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54728
54729         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54730         findings.
54731
54732 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54733             Bruno Haible  <bruno@clisp.org>
54734
54735         * lib/unistd.in.h: Include <winsock2.h>.
54736         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54737         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54738         Provide dummy declarations.
54739         (gethostname): Override.
54740         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54741         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54742         gl_PREREQ_SYS_H_WINSOCK2.
54743         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54744         * doc/posix-functions/gethostname.texi: More details.
54745
54746 2008-10-25  Bruno Haible  <bruno@clisp.org>
54747
54748         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54749         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54750         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54751
54752         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54753         here ...
54754         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54755         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54756         gl_UNISTD_H_DEFAULTS.
54757
54758 2008-10-25  Eric Blake  <ebb9@byu.net>
54759
54760         signbit: avoid spurious compiler failure
54761         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54762         declarations inside function.
54763
54764 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54765             Bruno Haible  <bruno@clisp.org>
54766
54767         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54768         * modules/random_r (Depends-on): Add stdint.
54769
54770 2008-10-24  Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54773         Eggert.
54774         * modules/strerror (License): Likewise.
54775
54776 2008-10-24  Jim Meyering  <meyering@redhat.com>
54777
54778         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54779         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54780
54781 2008-10-24  Eric Blake  <ebb9@byu.net>
54782
54783         getgroups: fix compilation when getgroups is available
54784         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54785         but with <config.h> override of getgroups disabled.
54786
54787 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54788
54789         * doc/gnulib.texi (Header files): Add note about C++ problems.
54790         Explained by Bruno Haible <bruno@clisp.org>.
54791
54792 2008-10-23  Bruno Haible  <bruno@clisp.org>
54793
54794         Define a dummy SA_NODEFER macro on Interix.
54795         * lib/signal.in.h (SA_NODEFER): Define fallback.
54796         Reported by Aleksey Cheusov <cheusov@tut.by> via
54797         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54798
54799 2008-10-23  Bruno Haible  <bruno@clisp.org>
54800
54801         * modules/freadahead (License): Change to LGPLv2+.
54802         Suggested by Simon Josefsson.
54803
54804 2008-10-23  Jim Meyering  <meyering@redhat.com>
54805
54806         random_r: new module
54807         * modules/random_r: New file.
54808         * m4/random_r.m4: New file.
54809         * lib/random_r.c: New file, from glibc.
54810         * modules/random_r-tests: New file.
54811         * tests/test-random_r.c: New file.
54812         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54813          Declare.
54814         (RAND_MAX): Define.
54815         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54816         * modules/stdlib: Substitute them, too.
54817         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54818         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54819         * doc/glibc-functions/random_r.texi: Likewise.
54820         * doc/glibc-functions/setstate_r.texi: Likewise.
54821         * doc/glibc-functions/srandom_r.texi: Likewise.
54822         * config/srclist.txt: Mention it.
54823
54824 2008-10-23  David Lutterkort  <lutter@redhat.com>
54825
54826         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54827         link requirement
54828
54829 2008-10-23  Jim Meyering  <meyering@redhat.com>
54830
54831         selinux-h: mark parameters of stub functions as intentionally unused
54832         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54833         * lib/se-context.in.h: Likewise.
54834
54835 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54836
54837         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54838
54839 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54840
54841         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54842
54843 2008-10-22  Eric Blake  <ebb9@byu.net>
54844
54845         glthread/thread: avoid compiler warning
54846         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54847         Add unreachable abort to silence compiler.
54848
54849 2008-10-22  Eric Blake  <ebb9@byu.net>
54850
54851         netdb: also supply struct addrinfo for cygwin 1.5.x
54852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54853         older cygwin.
54854         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54855         cygwin.
54856         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54857
54858 2008-10-22  Bruno Haible  <bruno@clisp.org>
54859
54860         * users.txt: Update entry about pspp.
54861
54862 2008-10-21  Bruno Haible  <bruno@clisp.org>
54863
54864         Simplification.
54865         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54866         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54867
54868         Simplification.
54869         * lib/ioctl.c (ioctl): Don't undefine.
54870         * lib/socket.c (socket): Don't undefine.
54871
54872         Remove unused module indicator macros.
54873         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54874         GNULIB_$1 as a C macro.
54875
54876         * doc/posix-functions/close.texi: Undo last change.
54877         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54878         Windows platforms.
54879
54880 2008-10-21  Bruno Haible  <bruno@clisp.org>
54881
54882         Add gethostname() declaration to <unistd.h>.
54883         * lib/unistd.in.h (gethostname): New declaration.
54884         * lib/gethostname.c: Include <unistd.h>.
54885         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54886         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54888         and HAVE_GETHOSTNAME.
54889         * modules/gethostname (Depends-on): Add unistd.
54890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54891         (Include): Specify <unistd.h>.
54892         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54893         HAVE_GETHOSTNAME.
54894         * tests/test-gethostname.c: Include <unistd.h> first.
54895
54896 2008-10-21  Bruno Haible  <bruno@clisp.org>
54897
54898         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54899         * modules/select-tests (Depends-on): Likewise.
54900         Reported by Simon Josefsson.
54901
54902 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54903
54904         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54905         * lib/accept.c: New file, based on winsock.c.
54906         * lib/bind.c: New file, based on winsock.c.
54907         * lib/connect.c: New file, based on winsock.c.
54908         * lib/getpeername.c: New file, based on winsock.c.
54909         * lib/getsockname.c: New file, based on winsock.c.
54910         * lib/getsockopt.c: New file, based on winsock.c.
54911         * lib/ioctl.c: New file, based on winsock.c.
54912         * lib/listen.c: New file, based on winsock.c.
54913         * lib/recv.c: New file, based on winsock.c.
54914         * lib/recvfrom.c: New file, based on winsock.c.
54915         * lib/send.c: New file, based on winsock.c.
54916         * lib/sendto.c: New file, based on winsock.c.
54917         * lib/setsockopt.c: New file, based on winsock.c.
54918         * lib/shutdown.c: New file, based on winsock.c.
54919         * lib/socket.c: New file, based on winsock.c.
54920         * lib/w32sock.h: New file, based on winsock.c.
54921         * lib/winsock.c: Remove file.
54922         * modules/accept: Likewise.
54923         * modules/bind: Likewise.
54924         * modules/connect: Likewise.
54925         * modules/getpeername: Likewise.
54926         * modules/getsockname: Likewise.
54927         * modules/getsockopt: Likewise.
54928         * modules/ioctl: Likewise.
54929         * modules/listen: Likewise.
54930         * modules/recv: Likewise.
54931         * modules/recvfrom: Likewise.
54932         * modules/send: Likewise.
54933         * modules/sendto: Likewise.
54934         * modules/setsockopt: Likewise.
54935         * modules/shutdown: Likewise.
54936         * modules/socket: Use socket.c instead of winsock.c.
54937         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54938         * doc/posix-functions/accept.texi: Doc fix.
54939         * doc/posix-functions/bind.texi: Doc fix.
54940         * doc/posix-functions/close.texi: Doc fix.
54941         * doc/posix-functions/connect.texi: Doc fix.
54942         * doc/posix-functions/getpeername.texi: Doc fix.
54943         * doc/posix-functions/getsockname.texi: Doc fix.
54944         * doc/posix-functions/getsockopt.texi: Doc fix.
54945         * doc/posix-functions/ioctl.texi: Doc fix.
54946         * doc/posix-functions/listen.texi: Doc fix.
54947         * doc/posix-functions/recv.texi: Doc fix.
54948         * doc/posix-functions/recvfrom.texi: Doc fix.
54949         * doc/posix-functions/send.texi: Doc fix.
54950         * doc/posix-functions/sendto.texi: Doc fix.
54951         * doc/posix-functions/setsockopt.texi: Doc fix.
54952         * doc/posix-functions/shutdown.texi: Doc fix.
54953         * doc/posix-functions/socket.texi: Doc fix.
54954
54955 2008-10-20  Bruno Haible  <bruno@clisp.org>
54956
54957         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54958         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54959         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54960         as an alias for SIGABRT.
54961         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54962         (sigaction): Map it to SIGABRT.
54963         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54964
54965 2008-10-20  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/fts.c: Don't include lstat.h.
54968         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54969
54970         Move the lstat() declaration to <sys/stat.h>.
54971         * lib/lstat.h: Remove file.
54972         * lib/sys_stat.in.h: Add special invocation convention.
54973         (lstat): New declaration.
54974         * lib/lstat.c (orig_lstat): New function.
54975         (rpl_lstat): Use orig_lstat instead of lstat.
54976         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54977         AC_C_INLINE. Set REPLACE_LSTAT.
54978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54979         and REPLACE_LSTAT.
54980         * modules/lstat (Files): Remove lib/lstat.h.
54981         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54982         (Include): Specify <sys/stat.h> instead of lstat.h.
54983         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54984         REPLACE_LSTAT.
54985         * NEWS: Mention the change.
54986
54987 2008-10-20  Bruno Haible  <bruno@clisp.org>
54988
54989         * modules/posix_spawn-tests: New file.
54990         * tests/test-posix_spawn3.c: New file.
54991
54992 2008-10-20  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54995         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54996         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54997         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54998         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54999
55000 2008-10-20  Bruno Haible  <bruno@clisp.org>
55001
55002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55003         of posix_spawn on AIX 5.3.
55004
55005 2008-10-20  Bruno Haible  <bruno@clisp.org>
55006
55007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55008
55009 2008-10-20  Bruno Haible  <bruno@clisp.org>
55010
55011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55012         of AC_LANG_PROGRAM.
55013
55014 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55015
55016         * lib/netdb.in.h: Don't define GNU specific constants until they
55017         are supported or needed.  Reported by Bruno Haible
55018         <bruno@clisp.org>.
55019
55020 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55021
55022         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55023
55024 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55025
55026         * lib/getaddrinfo.h: Remove file.
55027         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55028         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55029         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55030         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55031         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55032         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55033         * tests/test-getaddrinfo.c: Likewise.
55034         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55035         * NEWS: Mention change.
55036
55037 2008-10-19  Bruno Haible  <bruno@clisp.org>
55038
55039         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55040
55041 2008-10-19  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/wait-process.c: Include simply <sys/wait.h>.
55044         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55045         WIFSTOPPED): Remove fallback definitions.
55046         * modules/wait-process (Depends-on): Add sys_wait.
55047
55048         New module 'sys_wait'.
55049         * modules/sys_wait: New file.
55050         * lib/sys_wait.in.h: New file, partially copied from
55051         lib/wait-process.c.
55052         * m4/sys_wait_h.m4: New file.
55053         * doc/posix-headers/sys_wait.texi: Mention the new module.
55054
55055 2008-10-19  Bruno Haible  <bruno@clisp.org>
55056
55057         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55058
55059 2008-10-19  Bruno Haible  <bruno@clisp.org>
55060
55061         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55062         * lib/wait-process.c (WAIT_T): Remove type.
55063         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55064         (wait_subprocess): Update.
55065
55066 2008-10-19  Bruno Haible  <bruno@clisp.org>
55067
55068         New module 'atoll'.
55069         * modules/atoll: New file.
55070         * lib/stdlib.in.h (atoll): New declaration.
55071         * lib/atoll.c: New file, from glibc with modifications.
55072         * m4/atoll.m4: New file.
55073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55074         HAVE_ATOLL.
55075         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55076         * doc/posix-functions/atoll.texi: Mention the new module.
55077
55078 2008-10-19  Bruno Haible  <bruno@clisp.org>
55079
55080         Add strtoull() declaration to <stdlib.h>.
55081         * lib/stdlib.in.h (strtoull): New declaration.
55082         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55083         Set HAVE_STRTOULL.
55084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55085         HAVE_STRTOULL.
55086         * modules/strtoull (Depends-on): Add stdlib.
55087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55088         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55089         HAVE_STRTOULL.
55090
55091 2008-10-19  Bruno Haible  <bruno@clisp.org>
55092
55093         Add strtoll() declaration to <stdlib.h>.
55094         * lib/stdlib.in.h (strtoll): New declaration.
55095         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55096         Set HAVE_STRTOLL.
55097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55098         HAVE_STRTOLL.
55099         * modules/strtoll (Depends-on): Add stdlib.
55100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55101         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55102
55103 2008-10-19  Bruno Haible  <bruno@clisp.org>
55104
55105         * modules/bcopy (Depends-on): Add strings.
55106         (Include): Specify <strings.h>.
55107
55108 2008-10-19  Bruno Haible  <bruno@clisp.org>
55109
55110         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55111
55112 2008-10-19  Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55115         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55116         mingw.
55117
55118 2008-10-19  Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/atanl.c: Don't include isnanl.h.
55121         * lib/cosl.c: Likewise.
55122         * lib/ldexpl.c: Likewise.
55123         * lib/logl.c: Likewise.
55124         * lib/sinl.c: Likewise.
55125         * lib/sqrtl.c: Likewise.
55126         * lib/tanl.c: Likewise.
55127
55128         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55129         * lib/isnanf.h: Remove file.
55130         * lib/isnand.h: Remove file.
55131         * lib/isnanl.h: Remove file.
55132         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55133         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55134         macros.
55135         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55136         HAVE_ISNANF, don't define it as a C macro.
55137         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55138         HAVE_ISNAND, don't define it as a C macro.
55139         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55140         HAVE_ISNANL, don't define it as a C macro.
55141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55142         HAVE_ISNAN[FDL].
55143         * modules/isnanf (Files): Remove lib/isnanf.h.
55144         (Depends-on): Add math.
55145         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55146         (Include): Specify <math.h> instead of isnanf.h.
55147         * modules/isnand (Files): Remove lib/isnand.h.
55148         (Depends-on): Add math.
55149         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55150         (Include): Specify <math.h> instead of isnand.h.
55151         * modules/isnanl (Files): Remove lib/isnanl.h.
55152         (Depends-on): Add math.
55153         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55154         (Include): Specify <math.h> instead of isnanl.h.
55155         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55156         HAVE_ISNAN[FDL].
55157         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55158         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55159         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55160         * NEWS: Mention the change.
55161
55162 2008-10-18  Bruno Haible  <bruno@clisp.org>
55163
55164         Add getusershell(), setusershell(), endusershell() declarations to
55165         <unistd.h>.
55166         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55167         declarations.
55168         * lib/getusershell.c: Include unistd.h.
55169         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55170         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55171         HAVE_GETUSERSHELL.
55172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55173         and HAVE_GETUSERSHELL.
55174         * modules/getusershell (Depends-on): Add unistd, extensions.
55175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55176         (Include): Specify <unistd.h>.
55177         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55178         HAVE_GETUSERSHELL.
55179
55180 2008-10-18  Bruno Haible  <bruno@clisp.org>
55181
55182         Add a getloadavg() declaration to <stdlib.h>.
55183         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55184         getloadavg declaration.
55185         (getloadavg): New declaration.
55186         * lib/getloadavg.c: Include <stdlib.h> first.
55187         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55188         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55189         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55191         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55192         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55194         (Include): Specify <stdlib.h>.
55195         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55196         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55197
55198 2008-10-18  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/dirchownmod.c: Don't include lchmod.h.
55201
55202         Move the lchmod() declaration to <sys/stat.h>.
55203         * lib/lchmod.h: Remove file.
55204         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55205         (lchmod): New declaration, moved here from lib/lchown.h.
55206         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55207         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55209         and HAVE_LCHMOD.
55210         * modules/lchmod (Files): Remove lib/lchmod.h.
55211         (Depends-on): Add sys_stat, extensions.
55212         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55213         (Include): Specify <sys/stat.h> instead of lchmod.h.
55214         * modules/sys_stat (Depends-on): Add link-warning.
55215         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55216         definition of GL_LINK_WARNING.
55217         * NEWS: Mention the change.
55218
55219 2008-10-18  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/fchdir.c: Don't include dirfd.h.
55222         * lib/fts.c: Likewise.
55223         * lib/getcwd.c: Likewise.
55224         * lib/glob.c: Likewise.
55225
55226         Move the dirfd() declaration to <dirent.h>.
55227         * lib/dirfd.h: Remove file.
55228         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55229         (dirfd): New declaration.
55230         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55232         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55233         HAVE_DECL_DIRFD.
55234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55235         HAVE_DECL_DIRFD.
55236         * modules/dirfd (Files): Remove lib/dirfd.h.
55237         (Depends-on): Add dirent, extensions.
55238         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55239         (Include): Specify <dirent.h> instead of dirfd.h.
55240         * modules/dirent (Depends-on): Add link-warning.
55241         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55242         definition of GL_LINK_WARNING.
55243         * NEWS: Mention the change.
55244
55245 2008-10-18  Bruno Haible  <bruno@clisp.org>
55246
55247         Move the euidaccess() declaration to <unistd.h>.
55248         * lib/euidaccess.h: Remove file.
55249         * lib/unistd.in.h (euidaccess): New declaration.
55250         * lib/euidaccess.c: Don't include euidaccess.h.
55251         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55252         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55254         and HAVE_EUIDACCESS.
55255         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55256         (Depends-on): Add unistd.
55257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55258         (Include): Specify <unistd.h> instead of euidaccess.h.
55259         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55260         HAVE_EUIDACCESS.
55261         * NEWS: Mention the change.
55262
55263 2008-10-18  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55266
55267         Move the getdomainname() declaration to <unistd.h>.
55268         * lib/getdomainname.h: Remove file.
55269         * lib/unistd.in.h (getdomainname): New declaration.
55270         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55271         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55272         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55273         HAVE_GETDOMAINNAME.
55274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55275         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55276         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55277         (Depends-on): Add unistd, extensions.
55278         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55279         (Includes): Specify <unistd.h> instead of getdomainname.h.
55280         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55281         HAVE_GETDOMAINNAME.
55282         * NEWS: Mention the change.
55283
55284 2008-10-18  Bruno Haible  <bruno@clisp.org>
55285
55286         * modules/dirent: New file.
55287         * m4/dirent_h.m4: New file.
55288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55289         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55290         * modules/fchdir (Files): Remove lib/dirent.in.h.
55291         (Depends-on): Add dirent.
55292         (Makefile.am): Move rules to modules/dirent.
55293         * doc/posix-headers/dirent.texi: Mention the new module.
55294
55295 2008-10-18  Bruno Haible  <bruno@clisp.org>
55296
55297         Avoid -Wunused-parameter warnings in public gnulib header files.
55298         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55299         macro.
55300         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55301
55302 2008-10-18  Bruno Haible  <bruno@clisp.org>
55303
55304         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55305         * doc/glibc-functions/error.texi: Mention the module 'error'.
55306         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55307         * doc/glibc-functions/getdomainname.texi: Mention the module
55308         'getdomainname'.
55309         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55310         * doc/glibc-functions/getpagesize.texi: Mention the module
55311         'getpagesize'.
55312         * doc/glibc-functions/getusershell.texi: Mention the module
55313         'getusershell'.
55314         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55315         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55316         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55317         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55318         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55319         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55320         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55321         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55322         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55323         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55324         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55325         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55326         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55327         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55328
55329 2008-10-17  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55332         HP-UX and IRIX, use -0.0L.
55333         * tests/test-ceill.c (minus_zero): Likewise.
55334         * tests/test-floorl.c (minus_zero): Likewise.
55335         * tests/test-frexpl.c (minus_zero): Likewise.
55336         * tests/test-isnan.c (minus_zerol): Likewise.
55337         * tests/test-isnanl.h (minus_zero): Likewise.
55338         * tests/test-ldexpl.c (minus_zero): Likewise.
55339         * tests/test-roundl.c (minus_zero): Likewise.
55340         * tests/test-signbit.c (minus_zerol): Likewise.
55341         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55342         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55343         * tests/test-truncl.c (minus_zero): Likewise.
55344         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55345         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55346         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55347         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55348
55349 2008-10-17  Bruno Haible  <bruno@clisp.org>
55350
55351         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55352         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55353         that it gets activated only for gcc >= 3.0.
55354         * lib/dirent.in.h: Likewise.
55355         * lib/errno.in.h: Likewise.
55356         * lib/fcntl.in.h: Likewise.
55357         * lib/float.in.h: Likewise.
55358         * lib/iconv.in.h: Likewise.
55359         * lib/inttypes.in.h: Likewise.
55360         * lib/locale.in.h: Likewise.
55361         * lib/math.in.h: Likewise.
55362         * lib/netdb.in.h: Likewise.
55363         * lib/netinet_in.in.h: Likewise.
55364         * lib/search.in.h: Likewise.
55365         * lib/signal.in.h: Likewise.
55366         * lib/spawn.in.h: Likewise.
55367         * lib/stdarg.in.h: Likewise.
55368         * lib/stdint.in.h: Likewise.
55369         * lib/stdio.in.h: Likewise.
55370         * lib/stdlib.in.h: Likewise.
55371         * lib/string.in.h: Likewise.
55372         * lib/strings.in.h: Likewise.
55373         * lib/sys_file.in.h: Likewise.
55374         * lib/sys_ioctl.in.h: Likewise.
55375         * lib/sys_select.in.h: Likewise.
55376         * lib/sys_socket.in.h: Likewise.
55377         * lib/sys_stat.in.h: Likewise.
55378         * lib/sys_time.in.h: Likewise.
55379         * lib/sysexits.in.h: Likewise.
55380         * lib/time.in.h: Likewise.
55381         * lib/unistd.in.h: Likewise.
55382         * lib/wchar.in.h: Likewise.
55383         * lib/wctype.in.h: Likewise.
55384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55385
55386 2008-10-17  Jim Meyering  <meyering@redhat.com>
55387
55388         ignore-value: don't depend on inline module
55389         * modules/ignore-value (Depends-on): Remove 'inline'.
55390         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55391         Suggestion from Bruno Haible.
55392
55393 2008-10-17  Bruno Haible  <bruno@clisp.org>
55394
55395         New implementation of condition variables for Win32.
55396         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55397         (gl_linked_waitqueue_t): New type.
55398         (gl_cond_t): Use it.
55399         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55400         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55401         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55402         (glthread_cond_init_func, glthread_cond_wait_func,
55403         glthread_cond_timedwait_func, glthread_cond_signal_func,
55404         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55405         Reimplemented on the basis of gl_linked_waitqueue_t.
55406         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55407         gl_waitqueue_t.
55408         (gl_rwlock_t): Update.
55409         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55410
55411 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55412
55413         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55414         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55415
55416 2008-10-17  Jim Meyering  <meyering@redhat.com>
55417
55418         ignore-value: new module
55419         * modules/ignore-value: New file.
55420         * lib/ignore-value.h: New file.
55421         * MODULES.html.sh (Compiler warning management): New section,
55422         just for this module.  More to come.
55423
55424 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55425
55426         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55427         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55428         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55429
55430 2008-10-16  Jim Meyering  <meyering@redhat.com>
55431
55432         openat-die.c: avoid 'no previous prototype' warning
55433         * lib/openat-die.c: Include "openat.h".
55434         Reported by Reuben Thomas <rrt@sc3d.org>.
55435
55436 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55437
55438         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55439         * lib/netdb.in.h: Fix typo.
55440         Reported by Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/netdb.in.h: Include sys/socket.h for platforms without
55443         netdb.h, to get structures like hostent on MinGW.
55444         * modules/netdb (Depends-on): Add sys_socket.
55445
55446 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55447
55448         * modules/netdb, modules/netdb-tests: New file.
55449         * m4/netdb_h.m4: New file.
55450         * lib/netdb.in.h: Add, currently just an empty file pending
55451         definitions.
55452         * tests/test-netdb.c: New file.
55453         * doc/posix-headers/netdb.texi: Mention that we replace it if
55454         needed.
55455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55456         netdb.
55457
55458 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55459
55460         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55461         with code.
55462
55463 2008-10-13  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/glthread/cond.c (glthread_cond_wait_func,
55466         glthread_cond_timedwait_func): Add a comment.
55467
55468 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55469
55470         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55471         * tests/test-select.c: Likewise,
55472
55473 2008-10-13  Bruno Haible  <bruno@clisp.org>
55474
55475         * lib/glthread/cond.c (glthread_cond_wait_func,
55476         glthread_cond_timedwait_func): Fix variable name.
55477         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55478
55479 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55480
55481         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55483         struct sockaddr.sa_len.
55484         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55485
55486 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55487
55488         * build-aux/pmccabe2html: Add css and css_url parameters.
55489
55490 2008-10-12  Bruno Haible  <bruno@clisp.org>
55491
55492         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55493         calling aclx_get.
55494         Reported by Rainer Tammer <tammer@tammer.net>.
55495
55496 2008-10-12  Bruno Haible  <bruno@clisp.org>
55497
55498         Use msvcrt aware primitives for creation/termination of Win32 threads.
55499         * lib/glthread/thread.c: Include <process.h>.
55500         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55501         (wrapper_func): Update signature.
55502         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55503
55504 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55505             Bruno Haible  <bruno@clisp.org>
55506
55507         Provide a Win32 implementation of the 'cond' module.
55508         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55509         * lib/glthread/cond.c (glthread_cond_init_func,
55510         glthread_cond_wait_func, glthread_cond_timedwait_func,
55511         glthread_cond_signal_func, glthread_cond_broadcast_func,
55512         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55513         * modules/cond (Dependencies): Add gettimeofday.
55514
55515 2008-10-11  Bruno Haible  <bruno@clisp.org>
55516
55517         Make sleep work on older versions of mingw.
55518         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55519         only whether it exists.
55520         * doc/posix-functions/sleep.texi: Mention the problem with older
55521         versions of mingw.
55522
55523 2008-10-11  Bruno Haible  <bruno@clisp.org>
55524
55525         New module 'shutdown'.
55526         * modules/shutdown: New file.
55527         * lib/sys_socket.in.h (shutdown): New declaration.
55528         * lib/winsock.c (shutdown): New function.
55529         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55530         GNULIB_SHUTDOWN.
55531         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55532         * doc/posix-functions/shutdown.texi: Document the new module.
55533
55534 2008-10-11  Jim Meyering  <meyering@redhat.com>
55535
55536         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55537
55538 2008-10-11  Bruno Haible  <bruno@clisp.org>
55539
55540         New module 'fclose'.
55541         * modules/fclose: New file.
55542         * lib/stdio.in.h (fclose): New declaration.
55543         * lib/fclose.c: New file.
55544         * m4/fclose.m4: New file.
55545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55546         REPLACE_FCLOSE.
55547         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55548         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55549         REPLACE_FCLOSE.
55550         * modules/close (Depends-on): fclose.
55551         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55552
55553 2008-10-11  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55556         set errno and don't call _close.
55557
55558 2008-10-10  Bruno Haible  <bruno@clisp.org>
55559
55560         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55561         ACL, not afterwards. Fixes test failure on Cygwin.
55562
55563 2008-10-09  Ben Pfaff  <blp@gnu.org>
55564
55565         * build-aux/announce-gen: Fix gnulib version related part of usage
55566         message.  Die with a useful error message if no tarballs are
55567         found.
55568
55569 2008-10-10  Jim Meyering  <meyering@redhat.com>
55570
55571         bootstrap: use git's --depth=N option only if it's supported
55572         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55573         recognize the --depth option.  Reported by Pádraig Brady.
55574
55575 2008-10-09  Bruno Haible  <bruno@clisp.org>
55576
55577         New module 'ioctl'.
55578         * modules/ioctl: New file.
55579         * lib/sys_socket.in.h (ioctl): Remove declaration.
55580         * lib/winsock.c: Include <sys/ioctl.h>.
55581         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55582         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55583         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55584         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55585         * doc/posix-functions/ioctl.texi: Mention the new module.
55586
55587 2008-10-09  Bruno Haible  <bruno@clisp.org>
55588
55589         New module 'sys_ioctl'.
55590         * lib/sys_ioctl.in.h: New file.
55591         * m4/sys_ioctl_h.m4: New file.
55592         * modules/sys_ioctl: New file.
55593         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55594
55595 2008-10-09  Bruno Haible  <bruno@clisp.org>
55596
55597         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55598         * lib/winsock.c: Include <stdarg.h>.
55599         (rpl_ioctl): Change to second argument 'int' and then varargs.
55600
55601 2008-10-09  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55604         when the sys_socket module is present and the system has <winsock2.h>.
55605
55606 2008-10-09  Bruno Haible  <bruno@clisp.org>
55607
55608         * doc/posix-functions/close.texi: Mention module 'close' instead of
55609         module 'sys_socket'.
55610
55611 2008-10-09  Bruno Haible  <bruno@clisp.org>
55612
55613         * doc/glibc-headers/sys_ioctl.texi: New file.
55614         * doc/gnulib.texi: Include it.
55615
55616 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55617             Bruno Haible  <bruno@clisp.org>
55618
55619         Combine the two replacements of 'close'.
55620         * lib/sys_socket.in.h (close): Define to a reminder to include
55621         <unistd.h>.
55622         (_gl_close_fd_maybe_socket): New declaration.
55623         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55624         * lib/winsock.c (close): Remove undefinition.
55625         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55626         needed for the gnulib module 'close'.
55627         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55628         define to an error symbol or to a warning, if suitable.
55629         * lib/close.c: Include <sys/socket.h>.
55630         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55631         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55632         UNISTD_H_HAVE_WINSOCK2_H.
55633         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55635         UNISTD_H_HAVE_WINSOCK2_H.
55636         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55637         (configure.ac): Set a module indicator.
55638         (Makefile.am): Substitute GNULIB_CLOSE.
55639         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55640         * modules/poll-tests (Depends-on): Add close.
55641         * modules/select-tests (Depends-on): Likewise.
55642
55643 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55644             Bruno Haible  <bruno@clisp.org>
55645
55646         New module 'close'.
55647         * modules/close: New file.
55648         * lib/unistd.in.h (close): Move declaration out of the
55649         FCHDIR_REPLACEMENT scope.
55650         (_gl_unregister_fd): New declaration.
55651         * lib/close.c: New file.
55652         * lib/fchdir.c (rpl_close): Remove function.
55653         * m4/close.m4: New file.
55654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55655         close.
55656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55657         REPLACE_CLOSE.
55658         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55659         REPLACE_CLOSE.
55660         * modules/fchdir (Depends-on): Add close.
55661
55662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55663             Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/fcntl.in.h (open): Simplify conditionals.
55666         (_gl_register_fd): New declaration.
55667         * lib/fchdir.c (rpl_open): Remove function.
55668         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55669         also.
55670         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55672         open.
55673
55674 2008-10-09  Jim Meyering  <meyering@redhat.com>
55675
55676         GNUmakefile: use the more name-space-friendly "_version"
55677         * top/GNUmakefile (_dummy): Update.
55678         (_version): Rename from "version".
55679
55680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55681             Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55684         rpl_close.
55685         (_gl_register_fd): New function, extracted from rpl_open.
55686         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55687         (rpl_open, rpl_opendir): Use _gl_register_fd.
55688
55689 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55690
55691         Fix organization of 'open' replacement.
55692         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55693         (gl_FUNC_OPEN): Use it.
55694         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55695
55696 2008-10-08  Bruno Haible  <bruno@clisp.org>
55697
55698         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55699
55700 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55701
55702         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55703         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55704         listen).
55705
55706 2008-10-08  Eric Blake  <ebb9@byu.net>
55707
55708         GNUmakefile: add 'make version' target
55709         * top/GNUmakefile (_curr-ver): Split version update rules...
55710         (version): ...into a target.
55711
55712 2008-10-07  Bruno Haible  <bruno@clisp.org>
55713
55714         Use a more portable replacement expression for -0.0L.
55715         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55716         instead of -0.0L. Fix m4 quotation.
55717
55718         * tests/test-signbit.c: Include <float.h>.
55719         (minus_zero): New variable.
55720         (test_signbitl): Use minus_zero instead of -zero.
55721         * modules/signbit-tests (Depends-on): Add float.
55722
55723         * tests/test-ceill.c: Include <float.h>.
55724         (zero): Remove variable.
55725         (minus_zero): New variable.
55726         (main): Use minus_zero instead of -zero.
55727         * modules/ceill-tests (Depends-on): Add float.
55728
55729         * tests/test-floorl.c: Include <float.h>.
55730         (zero): Remove variable.
55731         (minus_zero): New variable.
55732         (main): Use minus_zero instead of -zero.
55733         * modules/floorl-tests (Depends-on): Add float.
55734
55735         * tests/test-roundl.c: Include <float.h>.
55736         (zero): Remove variable.
55737         (minus_zero): New variable.
55738         (main): Use minus_zero instead of -zero.
55739         * modules/roundl-tests (Depends-on): Add float.
55740
55741         * tests/test-truncl.c: Include <float.h>.
55742         (zero): Remove variable.
55743         (minus_zero): New variable.
55744         (main): Use minus_zero instead of -zero.
55745         * modules/truncl-tests (Depends-on): Add float.
55746
55747         * tests/test-frexpl.c (zero): Remove variable.
55748         (minus_zero): New variable.
55749         (main): Use minus_zero instead of -zero.
55750         * modules/frexpl-tests (Depends-on): Add float.
55751
55752         * tests/test-isnan.c (zerol): Remove variable.
55753         (minus_zerol): New variable.
55754         (test_long_double): Use minus_zerol instead of -zerol.
55755         * modules/isnan-tests (Depends-on): Add float.
55756
55757         * tests/test-isnanl.h (zero): Remove variable.
55758         (minus_zero): New variable.
55759         (main): Use minus_zero instead of -zero.
55760         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55761         * modules/isnanl-tests (Depends-on): Add float.
55762
55763         * tests/test-ldexpl.c (zero): Remove variable.
55764         (minus_zero): New variable.
55765         (main): Use minus_zero instead of -zero.
55766         * modules/ldexpl-tests (Depends-on): Add float.
55767
55768         * tests/test-snprintf-posix.h (zerol): Remove variable.
55769         (minus_zerol): New variable.
55770         (test_function): Use minus_zerol instead of -zerol.
55771         * modules/snprintf-posix-tests (Depends-on): Add float.
55772         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55773
55774         * tests/test-sprintf-posix.h (zerol): Remove variable.
55775         (minus_zerol): New variable.
55776         (test_function): Use minus_zerol instead of -zerol.
55777         * modules/sprintf-posix-tests (Depends-on): Add float.
55778         * modules/vsprintf-posix-tests (Depends-on): Add float.
55779
55780         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55781         (minus_zerol): New variable.
55782         (test_function): Use minus_zerol instead of -zerol.
55783         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55784
55785         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55786         (minus_zerol): New variable.
55787         (test_function): Use minus_zerol instead of -zerol.
55788         * modules/vasprintf-posix-tests (Depends-on): Add float.
55789
55790 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55791
55792         * MODULES.html.sh (Support for building documentation): Mention
55793         pmccabe2html.  Sort entries.
55794
55795         Add pmccabe2html module, from gnupdf.
55796         * build-aux/pmccabe.css: New file.
55797         * build-aux/pmccabe2html: New file.
55798         * m4/pmccabe2html.m4: New file.
55799         * modules/pmccabe2html: New file.
55800
55801 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55802
55803         flock: new module
55804         * MODULES.html.sh: Add to list of modules.
55805         * lib/flock.c: flock implementation for Windows and Unix systems
55806         which have fcntl.
55807         * doc/glibc-functions/flock.texi: Update documentation.
55808         * lib/sys_file.in.h: <sys/file.h> header file.
55809         * m4/flock.m4: M4 macros.
55810         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55811         * modules/flock: flock module.
55812         * modules/flock-tests: flock tests module.
55813         * modules/sys_file: sys/file.h module.
55814         * tests/test-flock.c: test suite for flock.
55815
55816 2008-10-06  Jim Meyering  <meyering@redhat.com>
55817
55818         bootstrap: check for LT_INIT more portably still ;-)
55819         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55820         Spotted by Bruno Haible.
55821
55822 2008-10-06  Eric Blake  <ebb9@byu.net>
55823
55824         test-signbit: avoid tripping Irix cc bug on -0.0L
55825         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55826         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55827         entire testsuite consistent and avoids an Irix 6.2 bug.
55828
55829 2008-10-05  Bruno Haible  <bruno@clisp.org>
55830             Jim Meyering  <jim@meyering.net>
55831
55832         Add an option for ignoring EPIPE during close_stdout.
55833         * lib/closeout.h: Include <stdbool.h>.
55834         (close_stdout_set_ignore_EPIPE): New declaration.
55835         * lib/closeout.c: Include <stdbool.h>.
55836         (ignore_EPIPE): New variable.
55837         (close_stdout_set_ignore_EPIPE): New function.
55838         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55839         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55840         failure.
55841         * modules/closeout (Depends-on): Add stdbool.
55842
55843 2008-10-05  Bruno Haible  <bruno@clisp.org>
55844
55845         * modules/accept: New file.
55846         * modules/bind: New file.
55847         * modules/connect: New file.
55848         * modules/getpeername: New file.
55849         * modules/getsockname: New file.
55850         * modules/getsockopt: New file.
55851         * modules/listen: New file.
55852         * modules/recv: New file.
55853         * modules/recvfrom: New file.
55854         * modules/send: New file.
55855         * modules/sendto: New file.
55856         * modules/setsockopt: New file.
55857         * modules/socket: New file.
55858         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55859         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55860         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55861         the particular module is requested. Add a link warning when the
55862         particular module is not requested.
55863         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55864         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55865         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55866         the particular module is requested.
55867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55868         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55869         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55870         * modules/sys_socket (Depends-on): Add link-warning.
55871         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55872         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55873         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55874         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55875         GL_LINK_WARNING.
55876         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55877         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55878         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55879         * doc/posix-functions/getpeername.texi: Mention the new module
55880         'getpeername'.
55881         * doc/posix-functions/getsockname.texi: Mention the new module
55882         'getsockname'.
55883         * doc/posix-functions/getsockopt.texi: Mention the new module
55884         'getsockopt'.
55885         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55886         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55887         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55888         * doc/posix-functions/send.texi: Mention the new module 'send'.
55889         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55890         * doc/posix-functions/setsockopt.texi: Mention the new module
55891         'setsockopt'.
55892         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55893         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55894         listen, connect, accept.
55895         * modules/select-tests (Depends-on): Likewise.
55896
55897 2008-10-05  Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/winsock.c (strerror): Remove unused #undef.
55900         (rpl_close): Remove unused local variable.
55901
55902         * modules/sys_socket (Depends-on); Add errno.
55903
55904 2008-10-05  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55907         (select): Add a link warning when the 'select' module is not used.
55908         * modules/sys_select (Depends-on): Add link-warning.
55909         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55910         Suggested by Paolo Bonzini.
55911
55912 2008-10-05  Jim Meyering  <meyering@redhat.com>
55913
55914         bootstrap: check for LT_INIT more portably
55915         * build-aux/bootstrap: Avoid using grep -E, since it's not
55916         portable enough.  Suggestion from Bruno Haible.
55917
55918 2008-10-05  Bruno Haible  <bruno@clisp.org>
55919
55920         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55921         as being fixed by gnulib.
55922
55923 2008-10-05  Bruno Haible  <bruno@clisp.org>
55924
55925         * modules/select-tests: New file, mostly copied from
55926         modules/sys_select-tests.
55927         * tests/test-select.c: New file, mostly copied from
55928         tests/test-sys_select.c.
55929         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55930         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55931         (Makefile.am): Remove test_sys_select_LDADD.
55932
55933         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55934         to an undefined symbol, for an error message.
55935         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55936         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55937         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55938         winsock-select.c here.
55939         * modules/sys_select (Files): Remove lib/winsock-select.c.
55940         (Depends-on): Remove alloca.
55941         (Makefile.am): Substitute GNULIB_SELECT.
55942         * modules/select: New file.
55943         * doc/posix-functions/select.texi: Update.
55944
55945 2008-10-05  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55948         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55949         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55950         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55951         getdtablesize.
55952         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55953         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55954
55955 2008-10-05  Bruno Haible  <bruno@clisp.org>
55956
55957         * modules/getdtablesize-tests: New file.
55958         * tests/test-getdtablesize.c: New file.
55959
55960         New module 'getdtablesize'.
55961         * lib/unistd.in.h (getdtablesize): New declaration.
55962         * lib/getdtablesize.c: New file.
55963         * m4/getdtablesize.m4: New file.
55964         * modules/getdtablesize: New file.
55965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55966         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55967         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55968         HAVE_GETDTABLESIZE.
55969         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55970
55971 2008-10-05  Bruno Haible  <bruno@clisp.org>
55972
55973         * modules/sched (Makefile.am): Fix typo.
55974         Reported by Simon Josefsson.
55975
55976 2008-10-05  Jim Meyering  <meyering@redhat.com>
55977
55978         bootstrap: check for LT_INIT, too
55979         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55980         are deprecated.  Suggestion from Ralf Wildenhues.
55981
55982 2008-10-05  Bruno Haible  <bruno@clisp.org>
55983
55984         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55985         overriding them by ours.
55986         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55987
55988 2008-10-05  Jim Meyering  <meyering@redhat.com>
55989
55990         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55991         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55992         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55993
55994 2008-10-04  Bruno Haible  <bruno@clisp.org>
55995
55996         * modules/dup2 (License): Change to LGPLv2+.
55997         * modules/sleep (License): Likewise.
55998         * modules/perror (License): Likewise.
55999         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56000         Blake.
56001         * modules/signal (License): Likewise.
56002         * modules/sigprocmask (License): Likewise.
56003         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56004         Meyering.
56005
56006 2008-10-04  Bruno Haible  <bruno@clisp.org>
56007
56008         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56009         Reported by Rainer Tammer <tammer@tammer.net>.
56010
56011 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56012             Bruno Haible  <bruno@clisp.org>
56013
56014         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56015         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56016         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56017
56018 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56019
56020         filevercmp: new module
56021         * lib/filevercmp.h: New function filevercmp comparing version strings.
56022         * lib/filevercmp.c: Implementation of filevercmp function.
56023         * modules/filevercmp: Module metadata.
56024         * tests/test-filevercmp.c: Unit test for new module.
56025         * modules/filevercmp-tests: Unit test metadata.
56026         * MODULES.html.sh: Add filevercmp module.
56027
56028 2008-10-03  Bruno Haible  <bruno@clisp.org>
56029
56030         * lib/c-ctype.h: Add comment.
56031         Reported by Jim Meyering.
56032
56033 2008-10-02  Bruno Haible  <bruno@clisp.org>
56034
56035         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56036
56037 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56038
56039         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56040         name of bootstrap.conf accordingly.
56041
56042 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56043
56044         * build-aux/bootstrap: Install git-merge-changelog configuration
56045         items into .gitconfig if needed.
56046
56047 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56048
56049         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56050         git repository, and initialize/update it accordingly.
56051
56052 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56053
56054         * modules/fsync-tests: New file.
56055         * tests/test-fsync.c: New file.
56056
56057         New module 'fsync'.
56058         * lib/fsync.c: New file.
56059         * m4/fsync.m4: New file.
56060         * modules/fsync: New file.
56061         * lib/unistd.in.h (fsync): New declaration.
56062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56063         GNULIB_FSYNC and HAVE_FSYNC.
56064         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56065         * MODULES.html.sh (posix_functions): Add fsync.
56066         * doc/posix-functions/fsync.texi: Mention the new module.
56067
56068 2008-10-02  Jim Meyering  <meyering@redhat.com>
56069
56070         fts.c: sync with similar code from coreutils' remove.c
56071         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56072         Guard also with "#if defined __linux__", since for now at least,
56073         this code is Linux-kernel-specific.
56074
56075 2008-10-02  Jim Meyering  <meyering@redhat.com>
56076
56077         fts: bug fixes
56078         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56079         Include <sys/vfs.h>, not <sys/statfs.h>.
56080
56081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56082         Include <sys/vfs.h>, not <sys/statfs.h>.
56083
56084 2008-10-01  Bruno Haible  <bruno@clisp.org>
56085
56086         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56087         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56088         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56089         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56090         * doc/posix-functions/posix_spawnp.texi: Likewise.
56091         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56092         whether posix_spawn actually works.
56093         * m4/pipe.m4 (gl_PIPE): Likewise.
56094         * modules/execute (Files): Add m4/posix_spawn.m4.
56095         * modules/pipe (Files): Add m4/posix_spawn.m4.
56096         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56097
56098 2008-10-01  Jim Meyering  <meyering@redhat.com>
56099
56100         remove trailing spaces
56101         * NEWS: Likewise.
56102         * lib/poll.c (poll): Likewise.
56103         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56104         * lib/winsock.c (rpl_close): Likewise.
56105         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56106         * modules/yield: Likewise.
56107         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56108         * tests/test-sys_select.c (connect_to_socket): Likewise.
56109
56110         fts.c: adjust a new interface to be more generally useful
56111         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56112         (fts_build): Adjust caller.
56113
56114 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56115
56116         * modules/cond-tests: New file.
56117         * tests/test-cond.c: New file.
56118
56119 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56120             Bruno Haible  <bruno@clisp.org>
56121
56122         * modules/cond (Dependencies): Add errno, time.
56123         * lib/glthread/cond.h: Include <time.h>.
56124         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56125         across platforms.
56126
56127 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56128             Bruno Haible  <bruno@clisp.org>
56129
56130         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56131
56132 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56133             Bruno Haible  <bruno@clisp.org>
56134
56135         * modules/tls-tests (Depends-on): Add thread, yield.
56136         (configure.ac): Remove all checks.
56137         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56138         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56139         gl_thread_self): Remove definitions. Include glthread/thread.h and
56140         glthread/yield.h instead.
56141         (test_tls): Pass an additional NULL argument to gl_thread_join.
56142
56143 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56144             Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/lock-tests (Depends-on): Add thread, yield.
56147         (configure.ac): Remove all checks.
56148         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56149         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56150         gl_thread_self): Remove definitions. Include glthread/thread.h and
56151         glthread/yield.h instead.
56152         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56153         additional NULL argument to gl_thread_join.
56154
56155 2008-09-30  Bruno Haible  <bruno@clisp.org>
56156
56157         Fix the Win32 implementation of the 'thread' module.
56158         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56159         pointer type.
56160         (gl_thread_self): Invoke gl_thread_self_func.
56161         (gl_thread_self_func): New declaration.
56162         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56163         (do_init_self_key, init_self_key): New functions.
56164         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56165         Remove some fields.
56166         (running_threads, running_lock): Remove variables.
56167         (get_current_thread_handle): New function.
56168         (gl_thread_self_func, wrapper_func, glthread_create_func,
56169         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56170         simplified.
56171
56172 2008-09-30  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56175         files.
56176
56177 2008-09-30  Jim Meyering  <meyering@redhat.com>
56178
56179         fts.m4: correct the test for statfs.f_type
56180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56181         when checking for statfs.f_type.
56182
56183 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56184
56185         tests: avoid some compiler warnings
56186         * tests/test-memchr.c (main): Pass NULL indirectly.
56187         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56188
56189 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
56190
56191         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56192         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56193         exactly specified dayshifts.
56194         (dayshift): New rule.
56195         (rel): Add dayshift.
56196         (relative_time_table) [tomorrow, yesterday, today, now]:
56197         Use tDAY_SHIFT in place of tDAY_UNIT.
56198         * tests/test-getdate.c: Add tests for now-disallowed countable
56199         dayshifts, e.g., "4 yesterday ago".
56200
56201 2008-09-29  Bruno Haible  <bruno@clisp.org>
56202
56203         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56204         * tests/test-posix_spawn1.in.sh: Renamed from
56205         tests/test-posix_spawn.in.sh.
56206         * tests/test-posix_spawn2.c: New file.
56207         * tests/test-posix_spawn2.in.sh: New file.
56208         * modules/posix_spawnp-tests (Files): Update.
56209         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56210
56211 2008-09-29  Bruno Haible  <bruno@clisp.org>
56212
56213         Propagate effects of putenv/setenv/unsetenv to child processes.
56214         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56215         * lib/pipe.c (create_pipe): Likewise.
56216
56217 2008-09-29  Bruno Haible  <bruno@clisp.org>
56218
56219         Enable use of shell scripts as executables in mingw.
56220         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56221         run the program as a shell script.
56222         * lib/pipe.c (create_pipe): Likewise.
56223         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56224         resulting array.
56225
56226 2008-09-29  Eric Blake  <ebb9@byu.net>
56227
56228         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56229
56230 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56231
56232         * doc/posix-functions/accept.texi: Update mingw problems.
56233         * doc/posix-functions/bind.texi: Update mingw problems.
56234         * doc/posix-functions/close.texi: Update mingw problems.
56235         * doc/posix-functions/connect.texi: Update mingw problems.
56236         * doc/posix-functions/getpeername.texi: Update mingw problems.
56237         * doc/posix-functions/getsockname.texi: Update mingw problems.
56238         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56239         * doc/posix-functions/ioctl.texi: Update mingw problems.
56240         * doc/posix-functions/listen.texi: Update mingw problems.
56241         * doc/posix-functions/recv.texi: Update mingw problems.
56242         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56243         * doc/posix-functions/select.texi: Update mingw problems.
56244         * doc/posix-functions/send.texi: Update mingw problems.
56245         * doc/posix-functions/sendto.texi: Update mingw problems.
56246         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56247         * doc/posix-functions/socket.texi: Update mingw problems.
56248
56249 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56250             Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/sys_select.in.h: Include sys/time.h.
56253         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56254         * modules/sys_select: Depend on sys_time.
56255         * tests/test-sys_select.c: Test that sys/select.h defines struct
56256         timeval fully.
56257
56258 2008-09-29  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56261         * lib/sys_select.in.h: Likewise.
56262
56263 2008-09-29  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56266
56267 2008-09-29  Bruno Haible  <bruno@clisp.org>
56268
56269         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56270         Set LIBSOCKET instead of augmenting LIBS.
56271         * modules/sockets (Link): New section.
56272         * modules/sockets-tests (test_sockets_LDADD): New variable.
56273         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56274         * modules/poll-tests (test_poll_LDADD): New variable.
56275         * NEWS: Document the change.
56276
56277 2008-09-29  Bruno Haible  <bruno@clisp.org>
56278
56279         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56280         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56281         ARPA_INET_H directly.
56282         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56283
56284 2008-09-28  Bruno Haible  <bruno@clisp.org>
56285
56286         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56287         from gl_HEADER_SYS_SOCKET.
56288         (gl_HEADER_SYS_SOCKET): Invoke it.
56289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56290
56291 2008-09-28  Bruno Haible  <bruno@clisp.org>
56292
56293         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56294         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56295         Needed on OSF/1 4.0.
56296
56297 2008-09-28  Bruno Haible  <bruno@clisp.org>
56298
56299         Override open more carefully.
56300         * lib/open.c (orig_open): New function.
56301         (rpl_open): Use orig_open instead of open.
56302         * lib/fcntl.in.h: Add special invocation convention.
56303         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56304         (gl_FUNC_OPEN): Invoke it.
56305
56306         Override freopen more carefully.
56307         * lib/freopen.c (orig_freopen): New function.
56308         (rpl_freopen): Use orig_freopen instead of freopen.
56309         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56310         (gl_FUNC_FREOPEN): Invoke it.
56311
56312         Override fopen more carefully.
56313         * lib/fopen.c (orig_fopen): New function.
56314         (rpl_fopen): Use orig_fopen instead of fopen.
56315         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56316         (gl_FUNC_FOPEN): Invoke it.
56317         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56318
56319 2008-09-28  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56322         SIGPIPE.
56323
56324 2008-09-28  Bruno Haible  <bruno@clisp.org>
56325
56326         * tests/test-sigaction.c (handler, main): Disable the check whether
56327         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56328         glibc systems with LinuxThreads.
56329
56330 2008-09-28  Bruno Haible  <bruno@clisp.org>
56331
56332         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56333
56334         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56335         with AIX xlc.
56336         * lib/fcntl.in.h (open): Likewise.
56337         Reported by Rainer Tammer <tammer@tammer.net>.
56338
56339 2008-09-28  Bruno Haible  <bruno@clisp.org>
56340
56341         * modules/posix_spawnp-tests: New file.
56342         * tests/test-posix_spawn.c: New file.
56343         * tests/test-posix_spawn.in.sh: New file.
56344
56345         New module 'posix_spawnp'.
56346         * modules/posix_spawnp: New file.
56347         * lib/spawnp.c: New file, from GNU libc with modifications.
56348         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56349
56350         New module 'posix_spawn'.
56351         * modules/posix_spawn: New file.
56352         * lib/spawn.c: New file, from GNU libc with modifications.
56353         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56354
56355         New module 'posix_spawnattr_destroy'.
56356         * modules/posix_spawnattr_destroy: New file.
56357         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56358         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56359         module.
56360
56361         New module 'posix_spawnattr_setsigmask'.
56362         * modules/posix_spawnattr_setsigmask: New file.
56363         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56364         modifications.
56365         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56366         new module.
56367
56368         New module 'posix_spawnattr_getsigmask'.
56369         * modules/posix_spawnattr_getsigmask: New file.
56370         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56371         modifications.
56372         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56373         new module.
56374
56375         New module 'posix_spawnattr_setsigdefault'.
56376         * modules/posix_spawnattr_setsigdefault: New file.
56377         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56378         modifications.
56379         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56380         new module.
56381
56382         New module 'posix_spawnattr_getsigdefault'.
56383         * modules/posix_spawnattr_getsigdefault: New file.
56384         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56385         modifications.
56386         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56387         new module.
56388
56389         New module 'posix_spawnattr_setschedpolicy'.
56390         * modules/posix_spawnattr_setschedpolicy: New file.
56391         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56392         modifications.
56393         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56394         new module.
56395
56396         New module 'posix_spawnattr_getschedpolicy'.
56397         * modules/posix_spawnattr_getschedpolicy: New file.
56398         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56399         modifications.
56400         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56401         new module.
56402
56403         New module 'posix_spawnattr_setschedparam'.
56404         * modules/posix_spawnattr_setschedparam: New file.
56405         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56406         modifications.
56407         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56408         new module.
56409
56410         New module 'posix_spawnattr_getschedparam'.
56411         * modules/posix_spawnattr_getschedparam: New file.
56412         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56413         modifications.
56414         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56415         new module.
56416
56417         New module 'posix_spawnattr_setpgroup'.
56418         * modules/posix_spawnattr_setpgroup: New file.
56419         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56420         modifications.
56421         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56422         module.
56423
56424         New module 'posix_spawnattr_getpgroup'.
56425         * modules/posix_spawnattr_getpgroup: New file.
56426         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56427         modifications.
56428         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56429         module.
56430
56431         New module 'posix_spawnattr_setflags'.
56432         * modules/posix_spawnattr_setflags: New file.
56433         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56434         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56435         module.
56436
56437         New module 'posix_spawnattr_getflags'.
56438         * modules/posix_spawnattr_getflags: New file.
56439         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56440         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56441         module.
56442
56443         New module 'posix_spawnattr_init'.
56444         * modules/posix_spawnattr_init: New file.
56445         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56446         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56447         module.
56448
56449         New module 'posix_spawn_file_actions_destroy'.
56450         * modules/posix_spawn_file_actions_destroy: New file.
56451         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56452         modifications.
56453         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56454         the new module.
56455
56456         New module 'posix_spawn_file_actions_addopen'.
56457         * modules/posix_spawn_file_actions_addopen: New file.
56458         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56459         modifications.
56460         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56461         the new module.
56462
56463         New module 'posix_spawn_file_actions_adddup2'.
56464         * modules/posix_spawn_file_actions_adddup2: New file.
56465         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56466         modifications.
56467         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56468         the new module.
56469
56470         New module 'posix_spawn_file_actions_addclose'.
56471         * modules/posix_spawn_file_actions_addclose: New file.
56472         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56473         modifications.
56474         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56475         the new module.
56476
56477         New module 'posix_spawn_file_actions_init'.
56478         * modules/posix_spawn_file_actions_init: New file.
56479         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56480         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56481         new module.
56482
56483         New module 'posix_spawn-internal'.
56484         * modules/posix_spawn-internal: New file.
56485         * lib/spawn_int.h: New file, from GNU libc with modifications.
56486         * lib/spawni.c: New file, from GNU libc with modifications.
56487         * m4/posix_spawn.m4: New file.
56488
56489         New module 'spawn'.
56490         * modules/spawn: New file.
56491         * lib/spawn.in.h: New file, from GNU libc with modifications.
56492         * m4/spawn_h.m4: New file.
56493         * doc/posix-headers/spawn.texi: Mention the new module.
56494
56495 2008-09-28  Bruno Haible  <bruno@clisp.org>
56496
56497         * modules/sched-tests: New file.
56498         * tests/test-sched.c: New file.
56499
56500         New module 'sched'.
56501         * modules/sched: New file.
56502         * lib/sched.in.h: New file.
56503         * m4/sched_h.m4: New file.
56504         * doc/posix-headers/sched.texi: Mention the new module.
56505
56506 2008-09-27  Eric Blake  <ebb9@byu.net>
56507
56508         Fix previous patch, and tweak references to $0.
56509         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56510         (func_version, func_gnulib_dir): Don't call this program
56511         gnulib-tool.
56512         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56513         with using $0 in function.
56514         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56515         (func_fatal_error): Reuse the name the user invoked us with.
56516
56517 2008-09-27  Bruno Haible  <bruno@clisp.org>
56518
56519         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56520         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56521         (gl_ICONV_H): Not here.
56522         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56523         instead of assigning ICONV_H directly.
56524
56525         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56527         WCHAR_H directly.
56528
56529 2008-09-27  Bruno Haible  <bruno@clisp.org>
56530
56531         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56532         * modules/arpa_inet (Depends-on): Add link-warning.
56533         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56534         * modules/unistd (Makefile.am): Likewise.
56535
56536 2008-09-26  Bruno Haible  <bruno@clisp.org>
56537
56538         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56539         variables.
56540         (func_version): Essentially copied from gnulib-tool.
56541         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56542         func_readlink): Copied from gnulib-tool.
56543
56544 2008-09-26  Bruno Haible  <bruno@clisp.org>
56545
56546         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56547         invoking git-version-gen.
56548
56549 2008-09-26  Bruno Haible  <bruno@clisp.org>
56550
56551         * posix-modules: Update to directory names changed on 2008-01-19.
56552         Remove commas in output before splitting into words. No more need to
56553         avoid 'ftruncate' since 2007-02-19.
56554
56555 2008-09-26  Bruno Haible  <bruno@clisp.org>
56556
56557         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56558
56559 2008-09-26  Bruno Haible  <bruno@clisp.org>
56560
56561         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56562         * modules/fwriteerror (Depends-on): Add errno.
56563
56564 2008-09-26  Bruno Haible  <bruno@clisp.org>
56565
56566         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56567         * tests/test-vc-list-files-cvs.sh: Likewise.
56568
56569 2008-09-26  Bruno Haible  <bruno@clisp.org>
56570
56571         * doc/posix-headers/sys_resource.texi: Reorder items.
56572
56573 2008-09-26  Jim Meyering  <meyering@redhat.com>
56574
56575         fts: tweak inode comparison function
56576         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56577         inode numbers, as documented.
56578
56579         fts: sort dirent entries on inode number before traversing
56580         This avoids a quadratic, seek-related performance penalty when
56581         operating on a directory containing many entries (measurable at 10k;
56582         3.5 hours at 2 million entries with a cold cache) on certain types
56583         of file systems, including ext3 and ext4, but not tmpfs.
56584         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56585         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56586         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56587         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56588         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56589         (fts_build): Set the stat.st_ino member from D_INO.
56590         If it is likely to be useful, sort dirent entries on inode number.
56591
56592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56593         and the struct statfs.f_type member.
56594         * modules/fts (Depends-on): Add d-ino.
56595
56596 2008-09-26  Bruno Haible  <bruno@clisp.org>
56597
56598         * modules/sigpipe-die (Depends-on): Add sigpipe.
56599
56600         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56601         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56602         and GNULIB_STDIO_H_SIGPIPE are set.
56603         * lib/stdio-write.c: New file.
56604         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56605         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56606         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56607         REPLACE_STDIO_WRITE_FUNCS.
56608         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56609         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56610         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56611         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56612         * modules/stdio (Files): Add lib/stdio-write.c.
56613         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56614         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56615         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56616         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56617         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56618         REPLACE_FPRINTF_POSIX.
56619         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56620         REPLACE_PRINTF_POSIX.
56621         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56622         REPLACE_VFPRINTF_POSIX.
56623         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56624         REPLACE_VPRINTF_POSIX.
56625         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56626         SIGPIPE issue.
56627         * doc/posix-functions/fputc.texi: Likewise.
56628         * doc/posix-functions/fputs.texi: Likewise.
56629         * doc/posix-functions/fwrite.texi: Likewise.
56630         * doc/posix-functions/printf.texi: Likewise.
56631         * doc/posix-functions/putc.texi: Likewise.
56632         * doc/posix-functions/putchar.texi: Likewise.
56633         * doc/posix-functions/puts.texi: Likewise.
56634         * doc/posix-functions/vfprintf.texi: Likewise.
56635         * doc/posix-functions/vprintf.texi: Likewise.
56636
56637         * modules/safe-write (Depends-on): Add write.
56638
56639         * modules/sigpipe-tests: New file.
56640         * tests/test-sigpipe.c: New file.
56641         * tests/test-sigpipe.sh: New file.
56642
56643         * modules/write: New file.
56644         * lib/unistd.in.h: Include <sys/types.h>.
56645         (write): New declaration.
56646         * lib/write.c: New file.
56647         * m4/write.m4: New file.
56648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56649         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56650         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56651         GNULIB_WRITE, REPLACE_WRITE.
56652         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56653         and the SIGPIPE issue.
56654
56655         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56656         (raise): New declaration.
56657         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56658         (ext_signal): New function.
56659         (rpl_raise): New function.
56660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56661         GNULIB_SIGNAL_H_SIGPIPE.
56662         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56663         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56664
56665         * modules/sigpipe: New file.
56666         * m4/sigpipe.m4: New file.
56667
56668 2008-09-25  Derek Price  <derek@ximbiot.com>
56669             Bruno Haible  <bruno@clisp.org>
56670
56671         * gnulib-tool (func_import): Report all license incompatibilities, not
56672         just the first one.
56673
56674 2008-09-25  Bruno Haible  <bruno@clisp.org>
56675
56676         * gnulib-tool (func_import): When computing the edits, consider not
56677         only the Makefile.ams that exist but also those that will be generated.
56678
56679 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56680
56681         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56682         fixes gnulib-tool --test warning about duplicate dependency.
56683
56684 2008-09-25  Bruno Haible  <bruno@clisp.org>
56685
56686         * gnulib-tool: Don't ask the user to perform edits in the generated
56687         Makefile.ams.
56688         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56689         apply to the Makefile.am being generated.
56690         (func_emit_tests_Makefile_am): Execute edits that apply to the
56691         Makefile.am being generated.
56692         (func_import): Setup list of Makefile.am edits before emitting the
56693         Makefile.ams, not at the end.
56694         (func_create_testdir): Update.
56695         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56696
56697 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56698
56699         * gnulib-tool (func_import): Store the --tests-base option in the
56700         comment in gnulib-cache.m4.
56701
56702 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56703
56704         * NEWS: Document increased portability that sys_select now provides.
56705
56706         * lib/sys_select.in.h: Install select wrapper.
56707         * lib/sys_socket.in.h: Use more descriptive name when there is no
56708         select wrapper.
56709         * lib/winsock-select.c: New.
56710         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56711         Require gl_HEADER_SYS_SOCKET.
56712         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56713         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56714         * tests/test-sys_select.c: Add functional tests.
56715
56716 2008-09-24  Eric Blake  <ebb9@byu.net>
56717
56718         open, fopen: close fd leak in last patch
56719         * lib/open.c (rpl_open): Close fd before returning error.
56720         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56721         * doc/posix-functions/open.texi (open): Document that Irix also
56722         has the bug.
56723         * doc/posix-functions/fopen.texi (fopen): Likewise.
56724         Reported by Paolo Bonzini.
56725
56726 2008-09-24  Bruno Haible  <bruno@clisp.org>
56727
56728         Ensure that a filename ending in a slash cannot be used to access a
56729         non-directory.
56730         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56731         to check whether it's really a directory.
56732         * lib/fopen.c: Include fcntl.h, unistd.h.
56733         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56734         and fdopen().
56735         * modules/fopen (Depends-on): Add unistd.
56736         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56737         * tests/test-fopen.c (main): Likewise.
56738         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56739         * doc/posix-functions/fopen.texi: Likewise.
56740         Reported by Eric Blake.
56741
56742 2008-09-23  Eric Blake  <ebb9@byu.net>
56743
56744         c-stack: avoid compiler optimizations when provoking overflow
56745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56746         recursion harder to optimize, to ensure a stack overflow occurs.
56747         * tests/test-c-stack.c (recurse): Likewise.
56748         Borrowed from libsigsegv.
56749
56750         c-stack: work around Irix sigaltstack bug
56751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56752         whether sigaltstack uses wrong end of stack_t (copied in part from
56753         libsigsegv).
56754         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56755         Irix bug, without requiring an over-allocation.
56756         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56757         bug.
56758
56759         fopen: document mingw bug on directories
56760         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56761         not allowing a stream visiting a directory, even though reading
56762         from such a stream is not portable.
56763
56764 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56765
56766         * lib/poll.c: Rewrite.
56767         * modules/poll: Depend on alloca.
56768
56769 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56770
56771         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56772         instead define prototypes for a full set of wrappers.  Ensure
56773         that Cygwin does not use the compatibility code, which is only
56774         for MinGW.
56775         * lib/winsock.c: New.
56776         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56777         * modules/sys_socket: Add lib/winsock.c.
56778
56779         * modules/poll-tests: Add errno and perror.
56780         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56781
56782 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56783
56784         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56785
56786 2008-09-23  Bruno Haible  <bruno@clisp.org>
56787
56788         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56789         * doc/glibc-functions/*: Likewise.
56790
56791 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56792
56793         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56794         success.
56795
56796 2008-09-22  Eric Blake  <ebb9@byu.net>
56797             Bruno Haible  <bruno@clisp.org>
56798
56799         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56800         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56801         supply %A but mishandle pseudo-NaN.
56802         Reported by Simon Josefsson.
56803
56804 2008-09-21  Bruno Haible  <bruno@clisp.org>
56805
56806         * tests/test-lock.c (main): Tweak skip message.
56807         * tests/test-tls.c (main): Likewise.
56808
56809 2008-09-21  Bruno Haible  <bruno@clisp.org>
56810
56811         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56812         whether 'struct sigaction' has sa_sigaction here...
56813         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56814         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56815
56816 2008-09-21  Bruno Haible  <bruno@clisp.org>
56817
56818         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56819         section.
56820         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56821         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56822         the new section.
56823         (Support for obsolete systems lacking POSIX:2001): New section.
56824         (String handling <string.h>): Move strdup to the new section.
56825         Suggested by Simon Josefsson and Paolo Bonzini.
56826
56827 2008-09-21  Bruno Haible  <bruno@clisp.org>
56828
56829         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56830         exponents in %e and %g results on 'long double'. Needed for mingw's
56831         improved *printf functions.
56832         * tests/test-vasprintf-posix.c (test_function): Likewise.
56833         * tests/test-snprintf-posix.h (test_function): Likewise.
56834         * tests/test-sprintf-posix.h (test_function): Likewise.
56835         Reported by Eric Blake.
56836
56837 2008-09-21  Bruno Haible  <bruno@clisp.org>
56838
56839         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56840         * tests/test-sprintf-posix.h (test_function): Likewise.
56841
56842 2008-09-21  Bruno Haible  <bruno@clisp.org>
56843
56844         * modules/getpass (Depends-on): Add strdup-posix.
56845
56846         New module 'strdup-posix'.
56847         * modules/strdup-posix: New file.
56848         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56849         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56851         REPLACE_STRDUP.
56852         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56853         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56855         strdup-posix.
56856
56857         * modules/strdup (Depends-on): Remove malloc-posix.
56858
56859 2008-09-20  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56862         Wildenhues.
56863
56864 2008-09-20  Bruno Haible  <bruno@clisp.org>
56865
56866         Ensure that wint_t gets defined on IRIX 5.3.
56867         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56868         * lib/wctype.in.h (wint_t): Likewise.
56869         (__wctype_wint_t): Remove type.
56870         (isw*): Use wint_t instead of __wctype_wint_t.
56871         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56872         * modules/wchar (Files): Add m4/wint_t.m4.
56873         (Makefile.am): Substitute HAVE_WINT_T.
56874         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56875         * tests/test-wctype.c: Check that wint_t is defined.
56876         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56877         * doc/posix-headers/wctype.texi: Likewise.
56878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56879
56880 2008-09-18  Bruno Haible  <bruno@clisp.org>
56881
56882         * gnulib-tool (func_exit): Update comment.
56883
56884 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56885
56886         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56887         assumes strdup exists and does not depend on strdup to return
56888         ENOMEM on out of memory conditions.
56889
56890 2008-09-18  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56893         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56894         digits for the exponent.
56895
56896 2008-09-18  Jim Meyering  <meyering@redhat.com>
56897             Bruno Haible  <bruno@clisp.org>
56898
56899         * lib/vasnprintf.c (decimal_point_char): Define also if
56900         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56901
56902 2008-09-16  Bruno Haible  <bruno@clisp.org>
56903         and Eric Blake  <ebb9@byu.net>
56904
56905         vasnprintf: support Irix 5.3
56906         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56907         that mishandle long double infinity.
56908         Reported by Tom G. Christensen.
56909
56910 2008-09-16  Bruno Haible  <bruno@clisp.org>
56911
56912         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56913         Solaris 9.
56914         * doc/glibc-functions/alphasort.texi: Likewise.
56915         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56916
56917 2008-09-16  Jim Meyering  <meyering@redhat.com>
56918
56919         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56920         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56921         a umask modification leak out of a subshell.  Otherwise, the
56922         opensolaris /bin/sh would be accepted and thus cause unwarranted
56923         failures in the coreutils test suite.
56924
56925 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56926
56927         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56928         to succeed.
56929
56930 2008-09-16  Jim Meyering  <meyering@redhat.com>
56931
56932         avoid spurious test failure when library is built without ACL support
56933         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56934         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56935         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56936         * tests/test-copy-acl.sh: Likewise.
56937
56938 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56939
56940         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56941         based on character occurrence counts.
56942
56943 2008-09-15  Eric Blake  <ebb9@byu.net>
56944
56945         tests: avoid some compiler warnings
56946         * tests/test-memchr.c (main): Pass NULL indirectly.
56947         * tests/test-closein.c (main): Avoid unused variable.
56948
56949 2008-09-15  Bruno Haible  <bruno@clisp.org>
56950
56951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56952         are missing on OpenBSD 4.0 individually.
56953         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56954
56955 2008-09-15  Bruno Haible  <bruno@clisp.org>
56956
56957         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56958         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56959         * doc/posix-functions/perror.texi: Likewise.
56960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56961         is missing.
56962         Reported by Eric Blake.
56963
56964         * lib/errno.in.h: Use replacement values >= 2000.
56965         Reported by Eric Blake.
56966
56967 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56968
56969         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56970         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56971         limit.
56972         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56973         compareseq was aborted.
56974
56975 2008-09-14  Bruno Haible  <bruno@clisp.org>
56976
56977         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56978         yvec_edit_count.
56979         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56980         (fstrcmp_bounded): Simplify result computation accordingly.
56981
56982 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56983
56984         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56985         (fstrcmp): Define in terms of fstrcmp_bounded.
56986         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56987         lower_bound argument.
56988         Return quickly if the result is certainly < lower_bound.
56989         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56990
56991 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56992
56993         * lib/diffseq.h (EARLY_ABORT): New macro.
56994         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56995         evaluates to true.
56996
56997 2008-09-14  Bruno Haible  <bruno@clisp.org>
56998
56999         * modules/perror-tests: New file.
57000         * tests/test-perror.sh: New file.
57001         * tests/test-perror.c: New file.
57002
57003         New module 'perror'.
57004         * lib/stdio.in.h (perror): New declaration.
57005         * lib/perror.c: New file.
57006         * m4/perror.m4: New file.
57007         * modules/perror: New file.
57008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57009         * doc/posix-functions/perror.texi: Mention the perror module.
57010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57011         REPLACE_PERROR.
57012         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57013         REPLACE_PERROR.
57014
57015 2008-09-14  Bruno Haible  <bruno@clisp.org>
57016
57017         * modules/stdio (Makefile.am): Reorder to match the order in
57018         lib/stdio.in.h.
57019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57020
57021 2008-09-13  Bruno Haible  <bruno@clisp.org>
57022
57023         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57024
57025 2008-09-13  Bruno Haible  <bruno@clisp.org>
57026
57027         Extend strerror to cover the added errno values.
57028         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57029         (rpl_strerror): Provide error messages for the added errno values and
57030         for the WSA* values.
57031         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57032         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57033         strerror.
57034         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57035         * modules/strerror (Depends-on): Add errno.
57036         * doc/posix-functions/strerror.texi: Document the change.
57037         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57038         and EOVERFLOW.
57039
57040 2008-09-13  Bruno Haible  <bruno@clisp.org>
57041
57042         * modules/EOVERFLOW: Remove file.
57043         * m4/eoverflow.m4: Remove file.
57044         * modules/EOVERFLOW-tests: Remove file.
57045         * tests/test-EOVERFLOW.c: Remove file.
57046         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57047         * modules/ftell (Depends-on): Likewise.
57048         * modules/getdelim (Depends-on): Likewise.
57049         * modules/getugroups (Depends-on): Likewise.
57050         * modules/poll (Depends-on): Likewise.
57051         * modules/snprintf (Depends-on): Likewise.
57052         * modules/sprintf-posix (Depends-on): Likewise.
57053         * modules/vasnprintf (Depends-on): Likewise.
57054         * modules/vasprintf (Depends-on): Likewise.
57055         * modules/vfprintf-posix (Depends-on): Likewise.
57056         * modules/vsnprintf (Depends-on): Likewise.
57057         * modules/vsprintf-posix (Depends-on): Likewise.
57058         * modules/xvasprintf (Depends-on): Likewise.
57059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57060         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57061         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57062         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57063         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57064         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57065         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57066         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57068         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57069         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57070         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57071         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57072         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57073         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57074         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57075         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57076         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57077         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57078         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57080         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57081         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57082         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57083         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57084         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57085         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57086         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57087         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57088         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57089         * MODULES.html.sh: Remove EOVERFLOW.
57090         * NEWS: Mention the change.
57091
57092 2008-09-13  Bruno Haible  <bruno@clisp.org>
57093
57094         * modules/errno-tests: New file.
57095         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57096
57097         * lib/errno.in.h: New file.
57098         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57099         * modules/errno: New file.
57100         * doc/posix-headers/errno.texi: Update documentation.
57101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57102
57103 2008-09-13  Bruno Haible  <bruno@clisp.org>
57104
57105         * tests/test-poll.c: Use #if for native Windows, rather than testing
57106         __MSVCRT__.
57107
57108 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57109             Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/glob.c: Don't include <pwd.h> on native Windows.
57112         (WINDOWS32): New macro.
57113         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57114
57115 2008-09-13  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57118         (ETIMEDOUT): Remove macro.
57119         (glthread_cond_timedwait_multithreaded): New declaration.
57120         (glthread_cond_timedwait): Use it.
57121         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57122         (glthread_cond_timedwait_multithreaded): New function.
57123
57124 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57125
57126         * modules/poll-tests: Do not check for io.h.
57127         * tests/test-poll.c: Check for __MSVCRT__ instead.
57128
57129 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57130
57131         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57132         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57133         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57134
57135 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57136
57137         * modules/poll-tests: New.
57138         * tests/test-poll.c: New.
57139
57140 2008-09-12  Eric Blake  <ebb9@byu.net>
57141
57142         frexp: test for NetBSD failure on -0.0
57143         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57144         not all, bugs from NetBSD 3.0 have been fixed.
57145         * doc/posix-functions/frexp.texi (frexp): Document bug.
57146         Reported by Thomas Klausner.
57147
57148         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57149         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57150         literal -0.0.
57151         Reported by Jonathan C. Patschke <jp@centtech.com>.
57152
57153 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57154
57155         * lib/glthread/cond.h: Use dummy implementation also if
57156         USE_WIN32_THREADS.
57157
57158 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57159
57160         * modules/fnmatch-posix (License): Change to LGPLv2+.
57161         * modules/fnmatch-gnu (License): Likewise.
57162
57163 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57164
57165         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57166
57167 2008-09-11  Jim Meyering  <meyering@redhat.com>
57168
57169         * users.txt: Add gtk-vnc.
57170
57171 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57172
57173         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57174         rotate amounts.
57175
57176         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57177         required for 16-bit and 8-bit rotates.
57178         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57179         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57180         UINT8_MAX instead of hard-coded constants.
57181         Suggested by Paul Eggert.
57182
57183 2008-09-07  Bruno Haible  <bruno@clisp.org>
57184
57185         * tests/test-striconveh.c (main): Check behaviour when converting from
57186         UTF-7.
57187
57188         Make striconveh work better with stateful encodings.
57189         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57190         that iconv does not increment the inptr when returning -1/EINVAL.
57191
57192 2008-09-07  Bruno Haible  <bruno@clisp.org>
57193
57194         * build-aux/config.rpath: Update according to libtool-2.2.6.
57195         * build-aux/config.libpath: Likewise.
57196
57197 2008-09-06  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57200         * lib/freadptr.c (freadptr): Likewise.
57201         * lib/freadseek.c (freadptrinc): Likewise.
57202         Reported by Simon Josefsson.
57203
57204 2008-09-06  Bruno Haible  <bruno@clisp.org>
57205
57206         * modules/freadptr (License): Change to LGPLv2+.
57207         * modules/freadseek (License): Likewise.
57208         Suggested by Eric Blake.
57209
57210         * modules/memchr2 (License): Change to LGPLv2+.
57211         Approved by Eric Blake.
57212
57213 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57214             Bruno Haible  <bruno@clisp.org>
57215
57216         Make gnulib-tool work with native 'sed' on AIX.
57217         * gnulib-tool (sed_noop): New variable.
57218         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57219         func_add_or_update, func_create_testdir): Use it to initialize sed
57220         script variables.
57221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57222
57223 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57224             Bruno Haible  <bruno@clisp.org>
57225
57226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57227         also works after #include directives.
57228
57229 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
57230
57231         getdate.y: reject an out-of-range timezone value
57232         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57233         the range [-24...+24].  When specified with only one or two digits,
57234         * tests/test-getdate.c: Tests for the fix.
57235         * doc/getdate.texi: Document this change.
57236
57237 2008-09-03  Bruno Haible  <bruno@clisp.org>
57238
57239         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57240
57241 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57242
57243         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57244         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57245         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57246         Blake <ebb9@byu.net>.
57247
57248         * tests/test-bitrotate.c: Add more test vectors.
57249
57250 2008-09-02  Eric Blake  <ebb9@byu.net>
57251
57252         vasnprintf-posix: handle large precision via %.*d
57253         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57254         when handling it ourselves.
57255         * tests/test-vasnprintf-posix.c (test_function): Add test.
57256         * tests/test-snprintf-posix.h (test_function): Likewise.
57257         * tests/test-sprintf-posix.h (test_function): Likewise.
57258         * tests/test-vasprintf-posix.c (test_function): Likewise.
57259         Reported by Alain Guibert.
57260
57261 2008-09-01  Eric Blake  <ebb9@byu.net>
57262
57263         c-stack: make configure-time check more robust
57264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57265         successful sigaction call.
57266         Reported by Tom G. Christensen.
57267
57268 2008-09-01  Bruno Haible  <bruno@clisp.org>
57269
57270         New module 'findprog-lgpl'.
57271         * modules/findprog-lgpl: New file.
57272         * lib/findprog-lgpl.c: New file.
57273         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57274         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57275         to decide whether to use strdup or xstrdup, concatenated_filename or
57276         xconcatenated_filename.
57277
57278 2008-09-01  Bruno Haible  <bruno@clisp.org>
57279
57280         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57281         'xconcat-filename' (GPL).
57282         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57283         (License): Change to LGPLv2+.
57284         * modules/xconcat-filename: New file.
57285         * lib/concat-filename.h (concatenated_filename): Change specification.
57286         (xconcatenated_filename): New declaration.
57287         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57288         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57289         memory situations.
57290         * lib/xconcat-filename.c: New file.
57291         * NEWS: Mention the change.
57292         * lib/findprog.c: Include concat-filename.h, not filename.h.
57293         (find_in_path): Use xconcatenated_filename instead of
57294         concatenated_filename.
57295         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57296         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57297         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57298         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57299         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57300         instead of concatenated_filename.
57301         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57302         (execute_java_class): Use xconcatenated_filename instead of
57303         concatenated_filename.
57304         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57305         * modules/javacomp (Depends-on): Likewise.
57306         * modules/javaexec (Depends-on): Likewise.
57307
57308 2008-09-01  Bruno Haible  <bruno@clisp.org>
57309
57310         Split module 'filename' into 'filename' and 'concat-filename'.
57311         * modules/filename: Keep only lib/filename.h.
57312         (License): Change to LGPLv2+.
57313         * modules/concat-filename: New file, extracted from modules/filename.
57314         * lib/filename.h (concatenated_filename): Remove declaration.
57315         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57316         * lib/concat-filename.c: Include concat-filename.h.
57317         * NEWS: Mention the change.
57318
57319 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57320
57321         * lib/bitrotate.h (rotl8, rotr8): Add.
57322
57323         * modules/bitrotate (configure.ac): Need
57324         AC_REQUIRE([AC_C_INLINE]).
57325         (Description): Mention stdint.h.  Reported by Bruno Haible
57326         <bruno@clisp.org>.
57327
57328         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57329         Paolo Bonzini <bonzini@gnu.org>.
57330
57331 2008-08-31  Bruno Haible  <bruno@clisp.org>
57332
57333         Assume Solaris specific bi-arch conventions on Solaris systems.
57334         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57335         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57336         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57337         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57338         like acl_libdirstem.
57339         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57340         acl_libdirstem.
57341         * NEWS: Mention the change.
57342         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57343
57344 2008-08-31  Jim Meyering  <meyering@redhat.com>
57345
57346         * lib/strftime.h: Add comments describing the two added arguments.
57347
57348         remove duplicate #include directives
57349         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57350         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57351
57352 2008-08-31  Bruno Haible  <bruno@clisp.org>
57353
57354         New module 'sigpipe-die'.
57355         * modules/sigpipe-die: New file.
57356         * lib/sigpipe-die.h: New file.
57357         * lib/sigpipe-die.c: New file.
57358         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57359
57360 2008-08-31  Bruno Haible  <bruno@clisp.org>
57361
57362         Don't override previously installed signal handlers.
57363         * lib/fatal-signal.c (saved_sigactions): New variable.
57364         (uninstall_handlers): Reset the signal to the saved handler, not
57365         to SIG_DFL (except when ignored).
57366         (install_handlers): Save the previous handlers.
57367
57368 2008-08-30  Bruno Haible  <bruno@clisp.org>
57369
57370         * gnulib-tool (func_reset_sigpipe): New function.
57371         (func_get_automake_snippet, func_modules_transitive_closure,
57372         func_import): Invoke it before a join command that reads from stdin,
57373         to avoid "echo: write error: Broken pipe" error messages on stderr.
57374         Reported by Sam Steingold <sds@gnu.org>.
57375
57376 2008-08-30  Bruno Haible  <bruno@clisp.org>
57377
57378         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57379         Code copied from m4/open.m4.
57380         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57381         access and the filename ends in a slash. Code copied from lib/open.c.
57382         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57383         * tests/test-fopen.c (main): Check against bug with trailing slash.
57384
57385 2008-08-29  Bruno Haible  <bruno@clisp.org>
57386
57387         Avoid some "gcc -pedantic" warnings.
57388         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57389         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57390         * lib/dirent.in.h: Likewise.
57391         * lib/fcntl.in.h: Likewise.
57392         * lib/float.in.h: Likewise.
57393         * lib/iconv.in.h: Likewise.
57394         * lib/inttypes.in.h: Likewise.
57395         * lib/locale.in.h: Likewise.
57396         * lib/math.in.h: Likewise.
57397         * lib/netinet_in.in.h: Likewise.
57398         * lib/search.in.h: Likewise.
57399         * lib/signal.in.h: Likewise.
57400         * lib/stdarg.in.h: Likewise.
57401         * lib/stdint.in.h: Likewise.
57402         * lib/stdio.in.h: Likewise.
57403         * lib/stdlib.in.h: Likewise.
57404         * lib/string.in.h: Likewise.
57405         * lib/strings.in.h: Likewise.
57406         * lib/sys_select.in.h: Likewise.
57407         * lib/sys_socket.in.h: Likewise.
57408         * lib/sys_stat.in.h: Likewise.
57409         * lib/sys_time.in.h: Likewise.
57410         * lib/sysexits.in.h: Likewise.
57411         * lib/time.in.h: Likewise.
57412         * lib/unistd.in.h: Likewise.
57413         * lib/wchar.in.h: Likewise.
57414         * lib/wctype.in.h: Likewise.
57415         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57416         * modules/fchdir (Makefile.am): Likewise.
57417         * modules/fcntl (Makefile.am): Likewise.
57418         * modules/float (Makefile.am): Likewise.
57419         * modules/iconv_open (Makefile.am): Likewise.
57420         * modules/inttypes (Makefile.am): Likewise.
57421         * modules/locale (Makefile.am): Likewise.
57422         * modules/math (Makefile.am): Likewise.
57423         * modules/netinet_in (Makefile.am): Likewise.
57424         * modules/search (Makefile.am): Likewise.
57425         * modules/signal (Makefile.am): Likewise.
57426         * modules/stdarg (Makefile.am): Likewise.
57427         * modules/stdint (Makefile.am): Likewise.
57428         * modules/stdio (Makefile.am): Likewise.
57429         * modules/stdlib (Makefile.am): Likewise.
57430         * modules/string (Makefile.am): Likewise.
57431         * modules/strings (Makefile.am): Likewise.
57432         * modules/sys_select (Makefile.am): Likewise.
57433         * modules/sys_socket (Makefile.am): Likewise.
57434         * modules/sys_stat (Makefile.am): Likewise.
57435         * modules/sys_time (Makefile.am): Likewise.
57436         * modules/sysexits (Makefile.am): Likewise.
57437         * modules/time (Makefile.am): Likewise.
57438         * modules/unistd (Makefile.am): Likewise.
57439         * modules/wchar (Makefile.am): Likewise.
57440         * modules/wctype (Makefile.am): Likewise.
57441         Reported by Reuben Thomas <rrt@sc3d.org>.
57442
57443 2008-08-29  Bruno Haible  <bruno@clisp.org>
57444
57445         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57446         any more.
57447
57448 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57449
57450         * MODULES.html.sh (Misc): Add bitrotate.
57451
57452         * modules/bitrotate: New file.
57453
57454         * lib/bitrotate.h: New file.
57455
57456         * modules/bitrotate-tests: New file.
57457
57458         * tests/test-bitrotate.c: New file.
57459
57460         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57461         on the bitrotate module.
57462
57463         * lib/arctwo.c: Use new bitrotate module.
57464
57465 2008-08-29  Jim Meyering  <meyering@redhat.com>
57466
57467         bootstrap: merge changes from coreutils
57468         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57469         of copied files.  Remove a kludge, now that this is fixed.
57470         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57471         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57472         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57473
57474 2008-08-29  Bruno Haible  <bruno@clisp.org>
57475
57476         * MODULES.html.sh: Remove --cvs-urls option.
57477
57478 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57479
57480         maint.mk: adjust to file name change
57481         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57482
57483 2008-08-28  Jim Meyering  <meyering@redhat.com>
57484
57485         * modules/getndelim2 (License): Relicense to LGPLv2+.
57486         Approved by Richard Stallman for the version of 1995, and by
57487         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57488
57489 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57490
57491         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57492         dummy if one is not available.  Do not touch them if
57493         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57494         (getc_maybe_unlocked): New.
57495         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57496
57497 2008-08-26  Eric Blake  <ebb9@byu.net>
57498
57499         doc/INSTALL: resync from autoconf
57500         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57501         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57502         moving...
57503         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57504         * INSTALL: Regenerate.
57505         * INSTALL.ISO: New file.
57506         * INSTALL.UTF-8: Likewise.
57507
57508 2008-08-26  Jim Meyering  <meyering@redhat.com>
57509
57510         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57511         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57512         these definitions conditional, so that they may be overridden, too.
57513
57514 2008-08-26  Bruno Haible  <bruno@clisp.org>
57515
57516         Generate INSTALL file variants with prettier quotes.
57517         * doc/Makefile (INSTALL_PRELUDE): New macro.
57518         (INSTALL): Use it.
57519         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57520
57521 2008-08-26  Bruno Haible  <bruno@clisp.org>
57522
57523         Run makeinfo in an English locale.
57524         * doc/Makefile (MAKEINFO): New variable.
57525
57526 2008-08-26  Bruno Haible  <bruno@clisp.org>
57527
57528         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57529         Suggested by Eric Blake.
57530
57531 2008-08-25  Bruno Haible  <bruno@clisp.org>
57532
57533         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57534
57535 2008-08-25  Eric Blake  <ebb9@byu.net>
57536
57537         c-stack: test that stack overflow can be caught
57538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57539         that platform allows handling stack overflow; at least OS/2 EMX
57540         has sigaltstack, but crashes before transferring control to
57541         handler on stack overflow.
57542         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57543         check for HAVE_STACK_OVERFLOW_HANDLING.
57544         Reported by Elbert Pol.
57545
57546 2008-08-25  Bruno Haible  <bruno@clisp.org>
57547
57548         * doc/posix-functions/strftime.texi: Fix description of strftime
57549         module.
57550
57551 2008-08-24  Bruno Haible  <bruno@clisp.org>
57552
57553         * tests/uniwidth/test-uc_width2.c: New file.
57554         * tests/uniwidth/test-uc_width2.sh: New file.
57555         * modules/uniwidth/width-tests (Files): Add the new files.
57556         (TESTS): Add uniwidth/test-uc_width2.sh.
57557         (TESTS_ENVIRONMENT): New variable.
57558         (check_PROGRAMS): Add test-uc_width2.
57559         (test_uc_width2_SOURCES): New variable.
57560
57561         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57562         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57563         not 0x00AB.
57564         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57565
57566 2008-08-22  Eric Blake  <ebb9@byu.net>
57567
57568         test-lock, test-tls: mention why a test is skipped
57569         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57570         skipped.
57571         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57572
57573         count-one-bits: relax license
57574         * modules/count-one-bits (License): Relicense to LGPLv2+.
57575         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57576
57577 2008-08-22  Andreas Schwab  <schwab@suse.de>
57578
57579         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57580         Remove spurious space in assignment.
57581
57582 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57583
57584         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57585         Paul Eggert <eggert@CS.UCLA.EDU>.
57586
57587 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57588
57589         * modules/gettext: Add m4/threadlib.m4.
57590
57591 2008-08-19  Eric Blake  <ebb9@byu.net>
57592
57593         test-c-stack: fix compilation failure on FreeBSD 5.0
57594         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57595         headers before <sys/resource.h>.
57596         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57597         the bug.
57598         Reported by Nelson H. F. Beebe.
57599
57600         strverscmp: migrate from "strverscmp.h" to <string.h>
57601         * modules/string (Makefile.am): Add new hooks.
57602         * modules/strverscmp (Files): Remove strverscmp.h.
57603         (Depends-on): Add string.
57604         (configure.ac): Add indicator.
57605         (Include): Mention new header.
57606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57607         defaults.
57608         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57609         results.
57610         * lib/strverscmp.h: Delete.
57611         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57612         * tests/test-strverscmp.c (includes): Adjust client.
57613         * lib/check-version.c (includes): Likewise.
57614         * NEWS: Document the change.
57615
57616         strverscmp: add unit test
57617         * modules/strverscmp-tests: New file.
57618         * tests/test-strverscmp.c: Likewise.
57619
57620 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57621
57622         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57623         regarding Windows crypto stuff, from Mono.
57624
57625 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57626
57627         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57628         if present, for intel RND.  Return error on failures.
57629
57630 2008-08-18  Ben Pfaff  <blp@gnu.org>
57631
57632         gitlog-to-changelog: give better diagnostic for failed pipe-open
57633         * build-aux/gitlog-to-changelog: Improve error message: suggest
57634         that the version of Git may be too old.
57635
57636 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57637
57638         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57639         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57640
57641 2008-08-18  Bruno Haible  <bruno@clisp.org>
57642
57643         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57644         pthread_in_use().
57645
57646 2008-08-18  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/glthread/threadlib.c: Include <pthread.h>.
57649
57650 2008-08-18  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57653         glthread_recursive_lock_* macros.
57654         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57655         Fix syntax error.
57656
57657 2008-08-18  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/glthread/thread.c: Avoid forcing a context switch right after
57660         thread creation.
57661
57662 2008-08-17  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57665         * lib/glthread/thread.h: Provide Win32 specific implementation.
57666         * modules/thread (Files): Add lib/glthread/thread.c.
57667         (Depends-on): Add lock.
57668         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57669
57670 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57671
57672         New module 'yield'.
57673         * modules/yield: New file.
57674         * lib/glthread/yield.h: New file.
57675         * m4/yield.m4: New file.
57676         * MODULES.html.sh (Multithreading): Add yield.
57677
57678 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57679
57680         New module 'thread'.
57681         * modules/thread: New file.
57682         * lib/glthread/thread.h: New file.
57683         * m4/thread.m4: New file.
57684         * MODULES.html.sh (Multithreading): Add thread.
57685
57686 2008-08-17  Bruno Haible  <bruno@clisp.org>
57687
57688         * lib/glthread/lock.h: Include <stdlib.h> always.
57689         * lib/glthread/tls.h: Likewise.
57690         * lib/glthread/cond.h: Likewise.
57691
57692 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57693
57694         New module 'cond'.
57695         * modules/cond: New file.
57696         * lib/glthread/cond.h: New file.
57697         * lib/glthread/cond.c: New file.
57698         * m4/cond.m4: New file.
57699         * MODULES.html.sh (Multithreading): Add cond.
57700
57701 2008-08-16  Eric Blake  <ebb9@byu.net>
57702
57703         c-stack: fix regression on Irix 5.3 from 2008-06-21
57704         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57705         sa_sigaction...
57706         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57707         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57708         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57709         * modules/signal (Makefile.am): Use the value.
57710         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57711         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57712         * doc/posix-headers/signal.texi (signal.h): Document this
57713         portability issue.
57714         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57715         Reported by Tom G. Christensen.
57716
57717 2008-08-17  Bruno Haible  <bruno@clisp.org>
57718
57719         New module 'threadlib'.
57720         * modules/threadlib: New file.
57721         * lib/glthread/threadlib.c: New file, extracted from
57722         lib/glthread/lock.c.
57723         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57724         functions.
57725         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57726         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57727         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57728         macros.
57729         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57730         (gl_DISABLE_THREADS): Remove macro.
57731         * modules/lock (Files): Remove build-aux/config.rpath.
57732         (Depends-on): Remove havelib. Add threadlib.
57733         (configure.ac-early): Remove section.
57734         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57735         * modules/tls (Depends-on): Remove lock. Add threadlib.
57736         (Link): New section, copied from threadlib.
57737         * MODULES.html.sh (Multithreading): Add threadlib.
57738
57739 2008-08-14  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57742         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57743         glthread_rwlock_unlock, glthread_rwlock_destroy,
57744         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57745         glthread_recursive_lock_destroy): Define as macros always.
57746         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57747         glthread_lock_lock.
57748         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57749         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57750         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57751         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57752         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57753         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57754         (glthread_recursive_lock_lock_func): Renamed from
57755         glthread_recursive_lock_lock.
57756         (glthread_recursive_lock_unlock_func): Renamed from
57757         glthread_recursive_lock_unlock.
57758         (glthread_recursive_lock_destroy_func): Renamed from
57759         glthread_recursive_lock_destroy.
57760
57761 2008-08-14  Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/glthread/lock.h: Renamed from lib/lock.h.
57764         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57765         * lib/glthread/tls.h: Renamed from lib/tls.h.
57766         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57767         * lib/fstrcmp.c: Update includes.
57768         * lib/strsignal.c: Update includes.
57769         * modules/lock (Files, Makefile.am): Update.
57770         (Include): Change to "glthread/lock.h".
57771         * modules/tls (Files, Makefile.am): Update.
57772         (Include): Change to "glthread/tls.h".
57773         * tests/test-lock.c: Update includes.
57774         * tests/test-tls.c: Update includes.
57775         * NEWS: Mention the renamed header files.
57776
57777 2008-08-11  Jim Meyering  <meyering@redhat.com>
57778
57779         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57780
57781 2008-08-11  Eric Blake  <ebb9@byu.net>
57782
57783         test-c-stack: avoid C99-ism
57784         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57785         before statement.
57786         Reported by Alain Guibert.
57787
57788 2008-08-10  Jim Meyering  <meyering@redhat.com>
57789
57790         ensure that return value of uinttostr et al are not ignored
57791         * lib/inttostr.h (__GNUC_PREREQ): Define.
57792         (__attribute_warn_unused_result__): Define.
57793         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57794
57795 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57796
57797         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57798         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57799
57800 2008-08-07  Jim Meyering  <meyering@redhat.com>
57801
57802         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57803
57804         * modules/mkstemp (License): Relicense under LGPLv2+.
57805         * modules/tempname (License): Likewise.
57806
57807 2008-08-06  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/poll.c (poll): Further micro-optimization.
57810
57811 2008-08-06  Jim Meyering  <meyering@redhat.com>
57812
57813         inet_pton.c: use locale-independent tolower
57814         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57815         (inet_pton6): Use c_tolower rather than tolower.
57816         * modules/inet_pton (Depends-on): Add c-ctype.
57817
57818 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57819
57820         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57821         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57822
57823 2008-08-06  Jim Meyering  <meyering@redhat.com>
57824
57825         * modules/inet_pton (License): Relicense under LGPLv2+.
57826
57827 2008-08-03  Bruno Haible  <bruno@clisp.org>
57828
57829         Additional non-aborting API for lock and tls.
57830         * lib/lock.h: Include <errno.h>.
57831         (glthread_lock_init): New macro/function.
57832         (gl_lock_init): Define as wrapper around glthread_lock_init.
57833         (glthread_lock_lock): New macro/function.
57834         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57835         (glthread_lock_unlock): New macro/function.
57836         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57837         (glthread_lock_destroy): New macro/function.
57838         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57839         (glthread_rwlock_init): New macro/function.
57840         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57841         (glthread_rwlock_rdlock): New macro/function.
57842         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57843         (glthread_rwlock_wrlock): New macro/function.
57844         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57845         (glthread_rwlock_unlock): New macro/function.
57846         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57847         (glthread_rwlock_destroy): New macro/function.
57848         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57849         (glthread_recursive_lock_init): New macro/function.
57850         (gl_recursive_lock_init): Define as wrapper around
57851         glthread_recursive_lock_init.
57852         (glthread_recursive_lock_lock): New macro/function.
57853         (gl_recursive_lock_lock): Define as wrapper around
57854         glthread_recursive_lock_lock.
57855         (glthread_recursive_lock_unlock): New macro/function.
57856         (gl_recursive_lock_unlock): Define as wrapper around
57857         glthread_recursive_lock_unlock.
57858         (glthread_recursive_lock_destroy): New macro/function.
57859         (gl_recursive_lock_destroy): Define as wrapper around
57860         glthread_recursive_lock_destroy.
57861         (glthread_once): New macro/function.
57862         (gl_once): Define as wrapper around glthread_once.
57863         Update function declarations.
57864         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57865         glthread_rwlock_init. Return error code.
57866         (glthread_rwlock_rdlock_multithreaded): Renamed from
57867         glthread_rwlock_rdlock. Return error code.
57868         (glthread_rwlock_wrlock_multithreaded): Renamed from
57869         glthread_rwlock_wrlock. Return error code.
57870         (glthread_rwlock_unlock_multithreaded): Renamed from
57871         glthread_rwlock_unlock. Return error code.
57872         (glthread_rwlock_destroy_multithreaded): Renamed from
57873         glthread_rwlock_destroy. Return error code.
57874         (glthread_recursive_lock_init_multithreaded): Renamed from
57875         glthread_recursive_lock_init. Return error code.
57876         (glthread_recursive_lock_lock_multithreaded): Renamed from
57877         glthread_recursive_lock_lock. Return error code.
57878         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57879         glthread_recursive_lock_unlock. Return error code.
57880         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57881         glthread_recursive_lock_destroy. Return error code.
57882         (glthread_once_call): Make static.
57883         (glthread_once_multithreaded): Renamed from glthread_once.
57884         * lib/tls.h: Include <errno.h>.
57885         (glthread_tls_key_init): New macro/function.
57886         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57887         (glthread_tls_set): New macro/function.
57888         (gl_tls_set): Define as wrapper around glthread_tls_set.
57889         (glthread_tls_key_destroy): New macro/function.
57890         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57891         Update function declarations.
57892         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57893         glthread_tls_get.
57894         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57895
57896 2008-08-04  Eric Blake  <ebb9@byu.net>
57897
57898         gnumakefile: use space, not TAB, outside of targets
57899         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57900
57901 2008-08-02  Jim Meyering  <meyering@redhat.com>
57902
57903         getdate.y: avoid locale-dependent date parsing failure
57904         In Turkish locales, getdate would fail to recognize keywords
57905         containing a lowercase "i".  The solution is not to rely on
57906         locale-sensitive case-conversion.
57907         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57908         (lookup_word): Use c_toupper in place of toupper.
57909         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57910         Reported by Vefa Bicakci <bicave@superonline.com> in
57911         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57912         * modules/getdate (Depends-on): Add c-ctype.
57913
57914 2008-08-02  Bruno Haible  <bruno@clisp.org>
57915
57916         * gnulib-tool (func_import): When updating or creating a .gitignore
57917         file, prepend each added line with a slash, and ignore leading slashes
57918         from the existing lines.
57919         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57920
57921 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57922
57923         Portability fix for GNU make 3.79.1.
57924         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57925         versions do not understand.
57926
57927 2008-08-01  Bruno Haible  <bruno@clisp.org>
57928
57929         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57930         * tests/test-isnanf.h (zero): New variable.
57931         (main): Avoid literal -0.0f.
57932         * tests/test-isnand.h (zero): New variable.
57933         (main): Avoid literal -0.0.
57934         * tests/test-isnanl.h (zero): New variable.
57935         (main): Avoid literal -0.0L.
57936         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57937         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57938         -0.0, -0.0L.
57939         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57940         (test_signbitd): Avoid literal -0.0.
57941         (test_signbitl): Avoid literal -0.0L.
57942         * tests/test-ceilf1.c (zero): New variable.
57943         (main): Avoid literal -0.0f.
57944         * tests/test-ceill.c (zero): New variable.
57945         (main): Avoid literal -0.0L.
57946         * tests/test-floorf1.c (zero): New variable.
57947         (main): Avoid literal -0.0f.
57948         * tests/test-floorl.c (zero): New variable.
57949         (main): Avoid literal -0.0L.
57950         * tests/test-roundf1.c (zero): New variable.
57951         (main): Avoid literal -0.0f.
57952         * tests/test-round1.c (zero): New variable.
57953         (main): Avoid literal -0.0.
57954         * tests/test-roundl.c (zero): New variable.
57955         (main): Avoid literal -0.0L.
57956         * tests/test-truncf1.c (zero): New variable.
57957         (main): Avoid literal -0.0f.
57958         * tests/test-trunc1.c (zero): New variable.
57959         (main): Avoid literal -0.0.
57960         * tests/test-truncl.c (zero): New variable.
57961         (main): Avoid literal -0.0L.
57962         * tests/test-frexp.c (zero): New variable.
57963         (main): Avoid literal -0.0.
57964         * tests/test-frexpl.c (zero): New variable.
57965         (main): Avoid literal -0.0L.
57966         * tests/test-ldexpl.c (zero): New variable.
57967         (main): Avoid literal -0.0L.
57968         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57969         (zerod, zerol): New variables.
57970         (test_function): Avoid literals -0.0, -0.0L.
57971         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57972         (zerod, zerol): New variables.
57973         (test_function): Avoid literals -0.0, -0.0L.
57974         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57975         (zerod, zerol): New variables.
57976         (test_function): Avoid literals -0.0, -0.0L.
57977         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57978         (zerod, zerol): New variables.
57979         (test_function): Avoid literals -0.0, -0.0L.
57980         * tests/test-strtod.c (zero): New variable.
57981         (main): Avoid literal -0.0.
57982         Reported by Jonathan C. Patschke <jp@centtech.com>.
57983
57984 2008-07-31  Jim Meyering  <meyering@redhat.com>
57985
57986         sha256.h: correct definition of SHA224_DIGEST_SIZE
57987         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57988         Reported by Paulie Pena IV <paulie4@gmail.com>.
57989         Define as 224 / 8, rather than as a literal.
57990         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57991         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57992         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57993
57994 2008-07-31  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57997         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57998         Reported by Jonathan Patschke <jp@centtech.com>.
57999
58000 2008-07-31  Bruno Haible  <bruno@clisp.org>
58001
58002         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58003         Reported by Paolo Bonzini <bonzini@gnu.org>.
58004
58005 2008-07-30  Eric Blake  <ebb9@byu.net>
58006
58007         test-strtod: allow compilation without -lm
58008         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58009         Reported by Dennis Clarke <blastwave@gmail.com>.
58010
58011 2008-07-28  Jim Meyering  <meyering@redhat.com>
58012
58013         bootstrap: work also when there are no .po files in po/
58014         * build-aux/bootstrap (update_po_files): Complete the change
58015         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58016
58017 2008-07-27  Jim Meyering  <meyering@redhat.com>
58018
58019         * users.txt: Add zile.
58020
58021 2008-07-26  Ben Pfaff  <blp@gnu.org>
58022
58023         Add missing dependencies on new m4/exponent[fdl].m4 files.
58024         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58025         * modules/isnand-nolibm: Add m4/exponentd.m4.
58026         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58027         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58028         m4/isnan[fdl].m4, because the macros actually used moved.
58029         Reported by Jim Meyering.
58030
58031 2008-07-14  Ben Pfaff  <blp@gnu.org>
58032
58033         Add isinf module.
58034         * lib/isinf.c: New file.
58035         * lib/math.in.h: Define isinf macro if we have decided to replace
58036         it.
58037         * m4/isinf.m4: New file.
58038         * m4/math_h.m4: Initialize and substitute variables for isinf
58039         module.
58040         * modules/isinf: New file.
58041         * modules/isinf-tests: New file.
58042         * modules/math: Add substitutions for new module.
58043         * tests/test-isinf.c: New file.
58044         * doc/posix-functions/isinf.texi: Mention new module.
58045         * MODULES.html.sh: Mention new module.
58046
58047 2008-07-14  Ben Pfaff  <blp@gnu.org>
58048
58049         Factor out some macros for use by additional modules.
58050         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58051         exponentf.m4.
58052         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58053         exponentd.m4.
58054         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58055         file exponentl.m4.
58056         * m4/exponentf.m4: New file.
58057         * m4/exponentd.m4: New file.
58058         * m4/exponentl.m4: New file.
58059         * modules/isnanf: Use new file m4/exponentf.m4.
58060         * modules/isnand: Use new file m4/exponentd.m4.
58061         * modules/isnanl: Use new file m4/exponentl.m4.
58062
58063 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58064
58065         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58066         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58067         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58068         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58069
58070         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58071         readlink on platforms without PATH_MAX.
58072
58073 2008-07-21  Eric Blake  <ebb9@byu.net>
58074
58075         Warn, not fail, on stale version.
58076         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58077
58078         Don't allow installation with stale devel version number.
58079         * top/GNUmakefile (_is-install-target): New macro.
58080         (_curr-ver): Forbid installation with stale version number.
58081
58082 2008-07-20  Bruno Haible  <bruno@clisp.org>
58083
58084         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58085         TESTS_ENVIRONMENT.
58086         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58087
58088 2008-07-20  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/c-stack.h (c_stack_action): Add documentation.
58091         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58092
58093 2008-07-20  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58096         * modules/readlink (License): Likewise.
58097
58098 2008-07-17  Eric Blake  <ebb9@byu.net>
58099
58100         * modules/c-stack (Link): Fix typo.
58101
58102         Make c-stack use libsigsegv, when available.
58103         * modules/c-stack (Depends-on): Add libsigsegv.
58104         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58105         needed.
58106         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58107         (segv_handler, overflow_handler, c_stack_action)
58108         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58109         implementation when libsigsegv is available, but only when using
58110         the library is necessary.
58111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58112         comment, explaining why XSI check fails on Linux.
58113         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58114         * tests/test-c-stack2.sh: Tweak skip message.
58115         * NEWS: Document new link-time requirements.
58116
58117 2008-07-16  Eric Blake  <ebb9@byu.net>
58118
58119         c-stack: Expose false positives when not using libsigsegv.
58120         * modules/c-stack-tests (Files): Expand test.
58121         * tests/test-c-stack.c (main): Add means to conditionally trigger
58122         non-overflow SIGSEGV.
58123         * tests/test-c-stack2.sh: New file.
58124
58125 2008-07-14  Bruno Haible  <bruno@clisp.org>
58126
58127         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58128         Reported by Eric Blake.
58129
58130 2008-07-14  Sam Steingold  <sds@gnu.org>
58131             Bruno Haible  <bruno@clisp.org>
58132
58133         New module libsigsegv.
58134         * modules/libsigsegv: New file.
58135         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58136         modifications.
58137         * MODULES.html.sh (Signal handling): New section.
58138
58139 2008-07-14  Bruno Haible  <bruno@clisp.org>
58140
58141         * modules/unictype/ctype-* (Description): Add the word "function".
58142         Improves the resulting doc in MODULES.html.
58143
58144 2008-07-12  Ben Pfaff  <blp@gnu.org>
58145
58146         Add longlong module.
58147         * modules/longlong: New file.
58148
58149 2008-07-12  Bruno Haible  <bruno@clisp.org>
58150
58151         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58152         to empty.
58153
58154 2008-07-10  Ben Pfaff  <blp@gnu.org>
58155
58156         Add isnan module.
58157         * doc/posix-functions/isnan.texi: Mention new module.
58158         * lib/math.in.h: Define isnan macro if we have decided to replace
58159         it.
58160         * m4/isnan.m4: New file.
58161         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58162         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58163         also.
58164         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58165         redundancy.
58166         * m4/math_h.m4: Initialize and substitute variables for isnan
58167         module.
58168         * modules/isnan: New file.
58169         * modules/isnan-tests: New file.
58170         * modules/math: Add substitutions for new module.
58171         * tests/test-isnan.c: New file.
58172         * MODULES.html.sh: Mention new module.
58173
58174 2008-07-10  Ben Pfaff  <blp@gnu.org>
58175
58176         Add isnanf module.
58177         * lib/isnanf.m4: New file.
58178         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58179         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58180         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58181         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58182         * modules/isnanf: New file.
58183         * modules/isnanf-tests: New file.
58184         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58185         files.
58186         * tests/test-isnanf-nolibm.c: factored most of its contents into
58187         new file tests/test-isnanf.h.
58188         * tests/test-isnanf.h: New file.
58189         * tests/test-isnanf.c: New file.
58190         * MODULES.html.sh: Mention new module.
58191         * doc/glibc-functions/isnanf.texi: Mention new module.
58192
58193 2008-07-10  Ben Pfaff  <blp@gnu.org>
58194
58195         Add isnand module.
58196         * lib/isnand.h: New file.
58197         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58198         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58199         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58200         functionality also.
58201         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58202         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58203         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58204         * modules/isnand: New file.
58205         * modules/isnand-tests: New file.
58206         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58207         files.
58208         * tests/test-isnand-nolibm.c: factored most of its contents into
58209         new file tests/test-isnand.h.
58210         * tests/test-isnand.h: New file.
58211         * tests/test-isnand.c: New file.
58212         * MODULES.html.sh: Mention new module.
58213
58214 2008-07-10  Ben Pfaff  <blp@gnu.org>
58215
58216         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58217         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58218         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58219         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58220         * modules/isnanf-nolibm: Update references to renamed files.
58221         * modules/isnand-nolibm: Likewise.
58222         * modules/isnanf-nolibm-tests: Likewise.
58223         * modules/isnand-nolibm-tests: Likewise.
58224         * lib/frexp.c: Likewise.
58225         * lib/isfinite.c: Likewise.
58226         * lib/signbitd.c: Likewise.
58227         * lib/signbitf.c: Likewise.
58228         * lib/vasnprintf.c: Likewise.
58229         * tests/test-ceilf1.c: Likewise.
58230         * tests/test-ceilf2.c: Likewise.
58231         * tests/test-floorf1.c: Likewise.
58232         * tests/test-floorf2.c: Likewise.
58233         * tests/test-frexp.c: Likewise.
58234         * tests/test-round1.c: Likewise.
58235         * tests/test-round2.c: Likewise.
58236         * tests/test-roundf1.c: Likewise.
58237         * tests/test-strtod.c: Likewise.
58238         * tests/test-trunc1.c: Likewise.
58239         * tests/test-trunc2.c: Likewise.
58240         * tests/test-truncf1.c: Likewise.
58241         * tests/test-truncf2.c: Likewise.
58242         * NEWS: Mention the renamed header files.
58243
58244 2008-07-11  Jim Meyering  <meyering@redhat.com>
58245
58246         vc-list-files: make the last-resort awk code more portable
58247         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58248         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58249         does not support it.
58250
58251 2008-07-10  Eric Blake  <ebb9@byu.net>
58252
58253         Work with tar's bootstrap.
58254         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58255         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58256         an m4 comment.
58257
58258 2008-07-09  Jim Meyering  <meyering@redhat.com>
58259
58260         posix-shell.m4: fix typo that made this test malfunction
58261         * m4/posix-shell.m4: Remove capitalization in variable name.
58262
58263 2008-07-08  Bruno Haible  <bruno@clisp.org>
58264
58265         * m4/onceonly.m4: Update comments.
58266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58267
58268 2008-07-04  Jim Meyering  <meyering@redhat.com>
58269
58270         * users.txt: Add vc-dwim.
58271         (bison, coreutils): Use the gitweb URL.
58272
58273 2008-07-03  Jim Meyering  <meyering@redhat.com>
58274
58275         * users.txt: Add libffcall.  From Sam Steingold.
58276
58277 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
58278
58279         getdate.y: do not ignore TZ with relative day, month or year offset
58280         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58281         relative-date-handling, since otherwise, the latter would clobber the
58282         sole output (an updated Start value) of the tz-handling block.
58283         * tests/test-getdate.c: Tests for the fix
58284
58285 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58286
58287         Recognize 'foo_LIBRARIES += libgnu.a'.
58288         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58289         makefile snippet has already specified an installation location,
58290         also using '+='.
58291
58292 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
58293
58294         getdate.y: factor out common actions
58295         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58296         Use them in place of open-coded actions.
58297
58298 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58299
58300         Add self-test for getdate module.
58301         * modules/getdate-tests: New file.
58302         * tests/test-getdate.c: New file.
58303
58304 2008-06-29  Bruno Haible  <bruno@clisp.org>
58305
58306         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58307         .gitignore.
58308         Reported by Sylvain Beucler <beuc@beuc.net>.
58309
58310 2008-06-29  Bruno Haible  <bruno@clisp.org>
58311
58312         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58313         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58314
58315 2008-06-29  Bruno Haible  <bruno@clisp.org>
58316
58317         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58318         EXTRA_DIST.
58319         Reported by Sylvain Beucler <beuc@beuc.net>.
58320
58321 2008-06-26  Jim Meyering  <meyering@redhat.com>
58322
58323         make several modules depend on the "open" module
58324         This provides slightly increased consistency when opening-for-write
58325         the name of a non-directory spelled with a trailing slash.
58326         * modules/chdir-safer: Likewise.
58327         * modules/chown: Likewise.
58328         * modules/clean-temp: Likewise.
58329         * modules/copy-file: Likewise.
58330         * modules/fchdir: Likewise.
58331         * modules/fcntl-safer: Likewise.
58332         * modules/pipe: Likewise.
58333         * modules/utime: Likewise.
58334         Prompted by Eric Blake and Bruno Haible.
58335
58336 2008-06-24  Andreas Schwab  <schwab@suse.de>
58337
58338         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58339         literals can be used as initializers for global variables.
58340
58341 2008-06-23  Eric Blake  <ebb9@byu.net>
58342
58343         Make gnulib-cache.m4 easier to diff.
58344         * gnulib-tool (func_import): Allow newlines when reading cached
58345         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58346
58347 2008-06-23  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58350         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58351         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58352         m4/signalblocking.m4.
58353         (gl_PREREQ_SIGACTION): Don't invoke it.
58354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58355         gl_PREREQ_SIG_HANDLER_H.
58356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58357         Don't check for sigaction here.
58358
58359 2008-06-23  Bruno Haible  <bruno@clisp.org>
58360
58361         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58362         (install_handlers): Don't set the SA_RESETHAND flag.
58363
58364 2008-06-23  Bruno Haible  <bruno@clisp.org>
58365
58366         * m4/sigaction.m4: Comment fixes.
58367         * lib/signal.in.h: Likewise.
58368
58369 2008-06-23  Eric Blake  <ebb9@byu.net>
58370
58371         Fix typo.
58372         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58373
58374         Avoid SA_ namespace.
58375         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58376         Reported by Ralf Wildenhues.
58377
58378         Avoid test failure due to SA_RESTORER.
58379         * tests/test-sigaction.c (SA_MASK): New macro.
58380         (main): Avoid failing due to extension flags being set.
58381         Reported by Jim Meyering.
58382
58383         Revert use of sig-handler.h in sigprocmask.c.
58384         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58385         it requires the existence of struct sigaction.
58386         * lib/sigprocmask.c (handler_t): Restore typedef.
58387         (rpl_signal, old_handlers): Use local type.
58388
58389 2008-06-22  Bruno Haible  <bruno@clisp.org>
58390
58391         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58392         conditionally.
58393         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58394
58395 2008-06-22  Bruno Haible  <bruno@clisp.org>
58396
58397         * doc/posix-functions/siginterrupt.texi: Move note.
58398
58399         * lib/signal.in.h (SA_RESTART): New macro.
58400         * lib/sigaction.c: Update comment.
58401
58402         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58403
58404         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58405         (gl_PREREQ_SIGPROCMASK): Invoke it.
58406         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58407
58408         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58409
58410         * lib/sigprocmask.c: Update a comment.
58411
58412 2008-06-21  Eric Blake  <ebb9@byu.net>
58413
58414         Use sigaction module rather than signal().
58415         * modules/c-stack (Depends-on): Add sigaction.
58416         * modules/fatal-signal (Depends-on): Likewise.
58417         * modules/nanosleep (Depends-on): Likewise.
58418         * modules/sigprocmask (Files): Add sig-handler.h.
58419         * modules/sigaction (Files): Likewise.
58420         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58421         Eggert.
58422         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58423         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58424         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58425         (init_fatal_signals): Likewise.
58426         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58427         (siginterrupt): Delete fallback.
58428         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58429         instead.
58430         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58431         siginterrupt.
58432
58433         New module sigaction, for mingw.
58434         * modules/sigaction: New module...
58435         * modules/sigaction-tests: ...and its test.
58436         * m4/sigaction.m4: New file.
58437         * lib/sigaction.c: Likewise.
58438         * tests/test-sigaction.c: Likewise.
58439         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58440         * modules/signal (Makefile.am): Likewise.
58441         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58442         needed.
58443         * doc/posix-headers/signal.texi (signal.h): Mention provided
58444         types.
58445         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58446         that sigaction is preferable.
58447         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58448         module.
58449         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58450         sigaction.
58451
58452         Improve robustness of sigprocmask by overriding signal.
58453         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58454         is in use.
58455         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58456         (SIGKILL, SIGSTOP): Provide fallbacks.
58457         (rpl_signal): Implement.
58458         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58459         signal can be called inside handlers.
58460
58461         Fix nanosleep module on mingw.
58462         * modules/nanosleep (Depends-on): Add sys_select.
58463         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58464
58465         Fix licensing of sigprocmask.
58466         * modules/raise (License): Relicense as LGPL.
58467
58468 2008-06-21  Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58471         result if it contains question marks.
58472         Reported by Michael Geng <linux@michaelgeng.de>.
58473
58474 2008-06-19  Bruno Haible  <bruno@clisp.org>
58475
58476         Fix CVS-ism.
58477         * doc/gnulib.texi: Include updated-stamp.texi.
58478         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58479         (updated-stamp.texi): New rule.
58480         (gnulib.info): Depend on it.
58481         * doc/.gitignore: Add updated-stamp.texi.
58482         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58483
58484 2008-06-19  Bruno Haible  <bruno@clisp.org>
58485
58486         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58487         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58488
58489 2008-06-19  Eric Blake  <ebb9@byu.net>
58490
58491         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58492         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58493         Reported by Stepan Kasal.
58494
58495 2008-06-18  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58498         Reported by Eric Blake.
58499
58500 2008-06-18  Eric Blake  <ebb9@byu.net>
58501
58502         Work around cygwin 1.5.25 strsignal bug.
58503         * tests/test-strsignal.c: Allow for const char *.
58504         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58505
58506 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58507
58508         * users.txt: Update URL to article and add author/date
58509         information.
58510
58511 2008-06-17  Bruno Haible  <bruno@clisp.org>
58512
58513         New macro gl_DISABLE_THREADS.
58514         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58515         if the user did not pass --enable-threads or --disable-threads option.
58516         (gl_DISABLE_THREADS): New macro.
58517         Reported by Eric Blake <ebb9@byu.net>.
58518
58519 2008-06-17  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58522         when the macro ignores it.
58523         Based on a patch by Eric Blake <ebb9@byu.net>.
58524
58525 2008-06-17  Bruno Haible  <bruno@clisp.org>
58526
58527         * modules/tls (License): Change to LGPLv2+.
58528         Reported by Eric Blake.
58529
58530 2008-06-17  Eric Blake  <ebb9@byu.net>
58531
58532         Simplify c-stack prerequisites.
58533         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58535         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58536         check.
58537         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58538         <sys/resource.h>.
58539
58540         Move c-stack test into testsuite.
58541         * modules/c-stack-tests: New file.
58542         * lib/c-stack.c [DEBUG]: Move test program...
58543         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58544         fail test if sigaltstack is lacking.
58545         * tests/test-c-stack.sh: New driver file.
58546
58547 2008-06-16  Eric Blake  <ebb9@byu.net>
58548
58549         Use raise module consistently.
58550         * modules/fatal-signal (Depends-on): Add raise.
58551         * modules/sigprocmask (Depends-on): Likewise.
58552         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58553         * lib/sigprocmask.c (sigprocmask): Likewise.
58554         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58555         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58556
58557         Fix compliance bug in sigpending.
58558         * lib/sigprocmask.c (sigpending): Return pending array via
58559         parameter, not return value.
58560
58561 2008-06-14  Eric Blake  <ebb9@byu.net>
58562
58563         Improve obstack-printf test code.
58564         * tests/test-obstack-printf.c (test_function): Fix comment, and
58565         simplify usage of obstack_* in macros.  Add a test for coverage.
58566         Reported by Bruno Haible.
58567
58568 2008-06-14  Bruno Haible  <bruno@clisp.org>
58569
58570         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58571         array size as a constant, not as a const variable.
58572         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58573         AC_USE_SYSTEM_EXTENSIONS.
58574         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58575         Test whether the obstack_printf function actually exists.
58576         * modules/obstack-printf (Depends-on): Add extensions.
58577         (Include): Remove obstack.h.
58578         * modules/obstack-printf-posix (Depends-on): Add extensions.
58579         (Include): Remove obstack.h.
58580
58581 2008-06-13  Eric Blake  <ebb9@byu.net>
58582
58583         Add obstack-printf and obstack-printf-posix modules.
58584         * modules/obstack-printf: New file.
58585         * modules/obstack-printf-posix: Likewise.
58586         * MODULES.html.sh (Misc): Mention them.
58587         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58588         Likewise.
58589         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58590         Likewise.
58591         * modules/stdio (Makefile.am): Accomodate new modules.
58592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58593         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58594         Declare.
58595         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58596         functions.
58597         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58598         (gl_REPLACE_OBSTACK_PRINTF): New macros
58599         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58600         * tests/test-obstack-printf.c: New file.
58601         * modules/obstack-printf-tests: Likewise.
58602         * modules/obstack-printf-posix-tests: Likewise.
58603
58604 2008-06-11  Bruno Haible  <bruno@clisp.org>
58605
58606         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58607         * lib/open.c: Include errno.h.
58608         (open): Fail when attempting to write to a file that has a trailing
58609         slash.
58610         * tests/test-open.c (main): Test against trailing slash bug.
58611         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58612
58613 2008-06-10  Bruno Haible  <bruno@clisp.org>
58614
58615         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58616         for $? to work inside the trap command, with various /bin/sh-s.
58617         * tests/test-vc-list-files-cvs.sh: Likewise.
58618
58619 2008-06-10  Bruno Haible  <bruno@clisp.org>
58620
58621         * lib/acl-internal.h: Don't include gettext.h here.
58622         * lib/set-mode-acl.c: Include gettext.h here.
58623         * lib/copy-acl.c: Likewise.
58624
58625 2008-06-10  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58628         * lib/wait-process.c (wait_subprocess): Likewise.
58629         * lib/execute.h (execute): Add termsigp argument.
58630         * lib/execute.c (execute): Likewise.
58631         * lib/csharpcomp.c (compile_csharp_using_pnet,
58632         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58633         * lib/csharpexec.c (execute_csharp_using_pnet,
58634         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58635         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58636         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58637         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58638         is_jikes_present): Update.
58639         * lib/javaexec.c (execute_java_class): Update.
58640         * lib/javaversion.c (execute_and_read_line): Update.
58641         * NEWS: Document the changes.
58642         Reported by Eric Blake.
58643
58644 2008-06-10  Eric Blake  <ebb9@byu.net>
58645
58646         Add missing include.
58647         * tests/test-strstr.c (includes): Add <signal.h>.
58648         * tests/test-strcasestr.c (includes): Likewise.
58649         * tests/test-memmem.c (includes): Likewise.
58650
58651 2008-06-10  Bruno Haible  <bruno@clisp.org>
58652
58653         * lib/wait-process.c (wait_subprocess): Add an assertion.
58654
58655 2008-06-10  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58658
58659 2008-06-10  Bruno Haible  <bruno@clisp.org>
58660
58661         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58662         using alarm().
58663         * tests/test-strcasestr.c (main): Likewise.
58664         * tests/test-strstr.c (main): Likewise.
58665
58666 2008-06-09  Bruno Haible  <bruno@clisp.org>
58667
58668         Work around the Solaris 10 ACE ACLs ABI change.
58669         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58670         declare if ACL_NO_TRIVIAL is present.
58671         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58672         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58673         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58674         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58675         define if ACL_NO_TRIVIAL is present.
58676         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58677         and use the current ABI.
58678         (file_has_acl): Use same #if condition as elsewhere.
58679         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58680         in use, and use the current ABI.
58681         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58682         Reported by Jim Meyering.
58683
58684 2008-06-09  Eric Blake  <ebb9@byu.net>
58685
58686         Work around environments that (stupidly) ignore SIGALRM.
58687         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58688         before using alarm().
58689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58691         Reported by Ian Beckwith <ianb@erislabs.net>.
58692
58693         Produce autobuild blurb earlier in log.
58694         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58695
58696 2008-06-09  Jim Meyering  <meyering@redhat.com>
58697         and OndÅ™ej Vašík  <ovasik@redhat.com>
58698
58699         utimens.c: correct kernel bug work-around
58700         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58701         failure, not success, and the kernel bug we're trying to work
58702         around affects not just the utimensat call, but also the fallback
58703         futimens call.
58704         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58705         not success.
58706         [HAVE_FUTIMENS]: Use the same work-around, here.
58707
58708 2008-06-09  Jim Meyering  <meyering@redhat.com>
58709
58710         add more guards around definition of ACE_-related code
58711         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58712         ALLOW and ACE_OWNER are also defined.
58713
58714 2008-06-08  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/acl-internal.h: Add me as co-author.
58717         * lib/file-has-acl.c: Likewise.
58718         * lib/set-mode-acl.c: Likewise.
58719         * lib/copy-acl.c: Likewise.
58720
58721 2008-06-08  Bruno Haible  <bruno@clisp.org>
58722
58723         Add support for AIX ACLs.
58724         * lib/acl-internal.h (acl_nontrivial): New declaration.
58725         * lib/file-has-acl.c (acl_nontrivial): New function.
58726         (file_has_acl): Add implementation using AIX 4 ACL API.
58727         * lib/set-mode-acl.c (qset_acl): Likewise.
58728         * lib/copy-acl.c (qcopy_acl): Likewise.
58729
58730 2008-06-08  Bruno Haible  <bruno@clisp.org>
58731
58732         Add support for HP-UX ACLs.
58733         * lib/acl-internal.h (acl_nontrivial): New declaration.
58734         * lib/file-has-acl.c (acl_nontrivial): New function.
58735         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58736         * lib/set-mode-acl.c (qset_acl): Likewise.
58737         * lib/copy-acl.c (qcopy_acl): Likewise.
58738
58739 2008-06-08  Bruno Haible  <bruno@clisp.org>
58740
58741         Add support for Cygwin ACLs.
58742         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58743         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58744         the chmod_or_fchmod call.
58745         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58746
58747 2008-06-08  Bruno Haible  <bruno@clisp.org>
58748
58749         Fix bug with setuid modes in Solaris 10+ code.
58750         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58751         succeeded, when the mode contains some special bits.
58752
58753 2008-06-08  Bruno Haible  <bruno@clisp.org>
58754
58755         Add support for Solaris 7..10 ACLs.
58756         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58757         declarations.
58758         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58759         functions.
58760         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58761         * lib/set-mode-acl.c (qset_acl): Likewise.
58762         * lib/copy-acl.c (qcopy_acl): Likewise.
58763
58764 2008-06-08  Bruno Haible  <bruno@clisp.org>
58765
58766         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58767         declaration.
58768         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58769         (acl_access_nontrivial): Remove MacOS X case.
58770         (file_has_acl): Use acl_extended_nontrivial.
58771         * lib/copy-acl.c (qcopy_acl): Likewise.
58772
58773 2008-06-08  Bruno Haible  <bruno@clisp.org>
58774
58775         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58776
58777 2008-06-08  Jim Meyering  <meyering@redhat.com>
58778
58779         * modules/acl (Maintainer): Add Bruno Haible.
58780
58781 2008-06-07  Bruno Haible  <bruno@clisp.org>
58782
58783         Improve support for Tru64 ACLs.
58784         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58785         ACL on OSF/1.
58786
58787 2008-06-07  Bruno Haible  <bruno@clisp.org>
58788
58789         Add support for MacOS X ACLs.
58790         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58791         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58792         * lib/set-mode-acl.c (qset_acl): Likewise.
58793         * lib/copy-acl.c (qcopy_acl): Likewise.
58794
58795 2008-06-07  Bruno Haible  <bruno@clisp.org>
58796
58797         Fix memory leak introduced on 2008-05-22.
58798         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58799         use.
58800
58801 2008-06-07  Bruno Haible  <bruno@clisp.org>
58802
58803         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58804         to construct an empty ACL.
58805
58806 2008-06-07  Bruno Haible  <bruno@clisp.org>
58807
58808         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58809         precisely.
58810         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58811
58812 2008-06-07  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58815         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58816
58817 2008-06-07  Bruno Haible  <bruno@clisp.org>
58818
58819         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58820         regardless of POSIX.
58821         * doc/posix-functions/_longjmp.texi: Likewise.
58822         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58823         SystemV platform in this case.
58824
58825 2008-06-06  Eric Blake  <ebb9@byu.net>
58826
58827         Document abort() bugs.
58828         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58829
58830         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58831         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58832         sigsetjmp.
58833         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58834         siglongjmp, but only as a macro.
58835         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58836         is obsolete.
58837         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58838
58839         Tweak documentation to cover cygwin argz bugs.
58840         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58841         argz bug fix; no code change needed since no cygwin releases
58842         occurred between the last fix and the bug being tested.
58843         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58844         module and recently fixed cygwin bugs.
58845         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58846         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58847         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58848         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58849         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58850         Likewise.
58851         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58852         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58853         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58854         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58855         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58856         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58857         Likewise.
58858
58859         Avoid gcc warning on cygwin.
58860         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58861         !ACL_NO_TRIVIAL]: Avoid unused variable.
58862
58863 2008-06-05  Eric Blake  <ebb9@byu.net>
58864
58865         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58866         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58867         git-version-gen fails to come up with a version.
58868         Reported by Simon Josefsson.
58869
58870 2008-06-05  Jim Meyering  <meyering@redhat.com>
58871             Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         utimens.c: work around a probable Linux kernel bug
58874         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58875         appears to be a kernel bug that causes utimensat to return 280
58876         instead of 0, indicating success.
58877
58878 2008-06-04  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58881         2008-06-01 commit.
58882
58883 2008-06-04  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58886         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58887         (file_has_acl): Use it. Save errno afterwards.
58888         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58889
58890 2008-06-03  Bruno Haible  <bruno@clisp.org>
58891
58892         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58893         draft code. Simplify #ifs.
58894         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58895         Put Solaris code after POSIX-draft code. Fix comments regarding
58896         Solaris 10, HP-UX. Mention Cygwin.
58897         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58898
58899 2008-06-03  Eric Blake  <ebb9@byu.net>
58900
58901         Provide fallback for older kernels.
58902         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58903         Provide runtime fallback if kernel lacks support.
58904         Reported by Mike Frysinger.
58905
58906 2008-06-02  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58909         it exists.
58910
58911 2008-06-02  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58914         * lib/copy-acl.c (qcopy_acl): Update comment.
58915
58916 2008-06-02  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58919         like ACL APIs.
58920
58921 2008-06-02  Bruno Haible  <bruno@clisp.org>
58922
58923         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58924         * tests/test-set-mode-acl.sh: Likewise.
58925         * tests/test-copy-acl.sh: Likewise.
58926         * tests/test-copy-file.sh: Likewise.
58927
58928 2008-06-02  Bruno Haible  <bruno@clisp.org>
58929
58930         * tests/test-file-has-acl.sh: Remove unused code.
58931
58932 2008-06-01  Bruno Haible  <bruno@clisp.org>
58933
58934         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58935         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58936         messages.
58937         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58938
58939 2008-06-01  Bruno Haible  <bruno@clisp.org>
58940
58941         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58942         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58943         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58944         APIs.
58945         * modules/acl-tests (configure.ac): Remove tests now contained in
58946         m4/acl.m4.
58947
58948 2008-06-02  Jim Meyering  <meyering@redhat.com>
58949
58950         announce-gen: use a better key-server host name
58951         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58952         it may be more consistently reliable.  Suggested by Werner Koch
58953         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58954
58955 2008-06-01  Bruno Haible  <bruno@clisp.org>
58956
58957         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58958         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58959
58960 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58961
58962         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58963
58964 2008-06-01  Bruno Haible  <bruno@clisp.org>
58965
58966         New ACL tests.
58967         * tests/test-file-has-acl.sh: New file.
58968         * tests/test-file-has-acl.c: New file.
58969         * tests/test-set-mode-acl.sh: New file.
58970         * tests/test-set-mode-acl.c: New file.
58971         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58972         * tests/test-copy-acl.c: New file.
58973         * modules/acl-tests: New file, based on modules/copy-file-tests.
58974         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58975         (Depends-on): Add acl-tests.
58976         (configure.ac): Remove checks.
58977         (Makefile.am): Don't create test-sameacls program here any more.
58978
58979 2008-06-01  Bruno Haible  <bruno@clisp.org>
58980
58981         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58982         * tests/test-sameacls.c: Include progname.h.
58983         (main): Invoke set_program_name. Portability fixes for MacOS X,
58984         Solaris, HP-UX.
58985
58986 2008-06-01  Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58989         function.
58990         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58991
58992 2008-06-01  Bruno Haible  <bruno@clisp.org>
58993
58994         * modules/rpmatch (Depends-on): Add strdup.
58995
58996 2008-06-01  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/pipe.c: Include unistd-safer.h.
58999         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59000         * modules/pipe (Depends-on): Add unistd-safer.
59001
59002 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59003
59004         * modules/autobuild (configure.ac): Call AB_INIT.
59005
59006 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59007
59008         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59009         Suggested by Bruno Haible <bruno@clisp.org>.
59010
59011 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59012
59013         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59014         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59015         <bruno@clisp.org>.
59016
59017 2008-05-29  Eric Blake  <ebb9@byu.net>
59018
59019         Prefer new POSIX 200x interfaces over futimesat.
59020         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59021         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59022         when available.
59023         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59024
59025 2008-05-28  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/stpcpy (License): Change to LGPLv2+.
59028         Requested by David Lutterkort <dlutter@redhat.com>.
59029
59030 2008-05-27  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59033         current mingw.
59034         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59035
59036 2008-05-27  Bruno Haible  <bruno@clisp.org>
59037
59038         * modules/iconv_open (Link): New section, from module 'iconv'.
59039         * modules/striconv (Link): Likewise.
59040         * modules/striconveh (Link): Likewise.
59041         * modules/xstriconv (Link): Likewise.
59042         * modules/unicodeio (Link): Likewise.
59043         * modules/propername (Link): Likewise.
59044         Reported by Jim Meyering.
59045
59046 2008-05-26  Jim Meyering  <meyering@redhat.com>
59047
59048         sha256: do not artificially restrict buffer length to be < 2^32
59049         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59050         uint32_t to size_t.
59051         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59052         to match.
59053
59054         avoid unaligned access errors, e.g., on sparc
59055         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59056         direct access through a possibly-unaligned uint64* pointer.
59057         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59058         direct access through a possibly-unaligned uint32* pointer.
59059         Prompted by this patch from Tom "spot" Callaway:
59060         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59061
59062         sha512.c: fix typo in comment
59063         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59064
59065 2008-05-25  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59068         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59069         (Makefile.am): Update lib_SOURCES.
59070
59071 2008-05-25  Bruno Haible  <bruno@clisp.org>
59072
59073         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59074
59075 2008-05-25  Jim Meyering  <meyering@redhat.com>
59076
59077         useless-if-before-free: freed expr may have white-space differences
59078         * build-aux/useless-if-before-free: Recognize cases in which the
59079         freed expression differs from the tested one in embedded white
59080         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59081         $1 was used, so we can't make any regexp shy.  Improved tests now
59082         detect this.
59083
59084         useless-if-before-free: accept white space in the expression.
59085         * build-aux/useless-if-before-free: For now, any white space
59086         in the expression must be identical in the free argument.
59087
59088         useless-if-before-free: efficiency tweak
59089         * build-aux/useless-if-before-free: Make the expression-matching
59090         regexp "shy".
59091         Make the *outer* regexp shy, not the expr-matching one.
59092
59093         update code-in-comment to accept cast of free arg
59094         * build-aux/useless-if-before-free: Update regexp.
59095
59096 2008-05-25  Bruno Haible  <bruno@clisp.org>
59097
59098         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59099         * modules/copy-file-tests (Files, Makefile.am): Update.
59100         * tests/test-copy-file.c (func_test_copy): Update.
59101
59102 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59103
59104         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59105
59106 2008-05-23  Bruno Haible  <bruno@clisp.org>
59107
59108         Improve support for ACLs on OSF/1.
59109         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59110         Remove fallback for unknown flavors of ACLs.
59111
59112 2008-05-22  Bruno Haible  <bruno@clisp.org>
59113
59114         Add support for ACLs on OSF/1.
59115         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59116         replacements.
59117         (acl_free_text): New macro fallback.
59118         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59119         acl_free.
59120         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59121         acl_free_text function. Require AC_C_INLINE.
59122
59123 2008-05-22  Bruno Haible  <bruno@clisp.org>
59124
59125         Make copy_acl work on MacOS X 10.5.
59126         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59127         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59128         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59129         If MODE_INSIDE_ACL, don't assume that every system has the same text
59130         representation for ACLs as FreeBSD.
59131         * lib/copy-acl.c (copy_acl): Add support for platforms with
59132         !MODE_INSIDE_ACL.
59133         * lib/file-has-acl.c (file_has_acl): Likewise.
59134         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59135         FreeBSD, MacOS X, or IRIX, respectively.
59136
59137 2008-05-22  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/acl.h: Don't include <sys/acl.h>.
59140         (GETACLCNT): Move fallback to lib/acl-internal.h.
59141         * lib/acl-internal.h: Include <sys/acl.h> here.
59142         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59143
59144 2008-05-22  Bruno Haible  <bruno@clisp.org>
59145
59146         Split off copy_acl function to separate file.
59147         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59148         * lib/acl.c (copy_acl): Moved function to separate file.
59149         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59150         * modules/acl (Files): Add lib/copy-acl.c.
59151         (Makefiles.am): Augment lib_SOURCES.
59152
59153 2008-05-22  Bruno Haible  <bruno@clisp.org>
59154
59155         * modules/copy-file-tests: New file.
59156         * tests/test-copy-file.sh: New file.
59157         * tests/test-copy-file.c: New file.
59158         * tests/test-copy-file-sameacls.c: New file.
59159
59160 2008-05-22  Eric Blake  <ebb9@byu.net>
59161
59162         Avoid gcc warning.
59163         * tests/test-memcmp.c (main): Pass NULL indirectly.
59164
59165 2008-05-21  Bruno Haible  <bruno@clisp.org>
59166
59167         Add reference doc about ACLs.
59168         * doc/acl-resources.txt: New file.
59169         * doc/acl-cygwin.txt: New file.
59170
59171 2008-05-21  Bruno Haible  <bruno@clisp.org>
59172
59173         Avoid one more warning from gcc.
59174         * lib/vasnprintf.c (IF_LINT): Update comments.
59175         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59176
59177 2008-05-21  Jim Meyering  <meyering@redhat.com>
59178
59179         avoid a warning from gcc
59180         * lib/vasnprintf.c (IF_LINT): Define.
59181         (scale10_round_decimal_long_double):
59182         Use it to avoid a "may be used uninitialized" warning.
59183         (scale10_round_decimal_double): Likewise.
59184
59185 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59186
59187         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59188         declared.
59189
59190 2008-05-20  Bruno Haible  <bruno@clisp.org>
59191
59192         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59193         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59194
59195 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59196
59197         * modules/memcmp-tests: New file.
59198         * tests/test-memcmp.c: New file.
59199
59200 2008-05-19  Bruno Haible  <bruno@clisp.org>
59201
59202         * modules/propername (Notice, configure.ac): Put quoted "..." into
59203         --keyword option.
59204         * lib/propername.h: Update comments accordingly.
59205         Reported by Eric Blake.
59206
59207 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59208
59209         * modules/getpass-gnu (Depends-on): Add fseeko.
59210
59211 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59212
59213         * modules/base64-tests: New file.
59214
59215 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59216
59217         * lib/base64.c (base64_decode_ctx): If a decode context structure
59218         was passed in use it to ignore newlines.  If a context structure
59219         was _not_ passed in, continue to treat newlines as garbage (this
59220         is the historical behavior).  Formerly base64_decode.
59221         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59222         takes a decode context structure.
59223         * lib/base64.h (base64_decode): Macro for four-argument calls.
59224         (base64_decode_alloc): Likewise.
59225         * lib/base64.c (base64_decode_ctx): If a decode context structure
59226         was passed in use it to ignore newlines.  If a context structure
59227         was _not_ passed in, continue to treat newlines as garbage (this
59228         is the historical behavior).  Formerly base64_decode.
59229         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59230         takes a decode context structure.
59231         * lib/base64.h (base64_decode): Macro for four-argument calls.
59232         (base64_decode_alloc): Likewise.
59233
59234 2008-05-19  Jim Meyering  <meyering@redhat.com>
59235
59236         avoid a warning from gcc
59237         * lib/trim.c (IF_LINT): Define.
59238         (trim2): Use it to avoid a "may be used uninitialized" warning.
59239
59240         Fix doc typo.
59241         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59242
59243 2008-05-19  Bruno Haible  <bruno@clisp.org>
59244
59245         * doc/glibc-functions/getpass.texi: Document limits of other
59246         implementations.
59247
59248 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59249             Bruno Haible <bruno@clisp.org>
59250
59251         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59252
59253 2008-05-18  Bruno Haible  <bruno@clisp.org>
59254
59255         * modules/propername: New file, from GNU gettext.
59256         * lib/propername.h: New file, from GNU gettext.
59257         * lib/propername.c: New file, from GNU gettext.
59258         * MODULES.html.sh (Internationalization functions): Add propername.
59259
59260 2008-05-16  Jim Meyering  <meyering@redhat.com>
59261             Bruno Haible  <bruno@clisp.org>
59262
59263         Avoid some warnings from "gcc -Wshadow".
59264         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59265
59266 2008-05-15  Eric Blake  <ebb9@byu.net>
59267
59268         Extend previous patch to cygwin 1.7.0.
59269         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59270         fast implementation in cygwin >= 1.7.0.
59271         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59273
59274 2008-05-15  Bruno Haible  <bruno@clisp.org>
59275
59276         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59277         implementation in glibc >= 2.9.
59278         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59280
59281 2008-05-15  Bruno Haible  <bruno@clisp.org>
59282
59283         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59284         (Unicode string functions): Add unilbrk/*.
59285         Reported by Karl Berry.
59286
59287 2008-05-15  Eric Blake  <ebb9@byu.net>
59288
59289         Fix violation of <stdbool.h> replacement in regex.
59290         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59291         * lib/regexec.c (re_search_internal): Likewise.
59292         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59293
59294 2008-05-15  Jim Meyering  <meyering@redhat.com>
59295
59296         avoid distracting test output when git or cvs is not found
59297         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59298         * tests/test-vc-list-files-git.sh: Likewise.
59299
59300 2008-05-15  Eric Blake  <ebb9@byu.net>
59301
59302         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59303         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59304         glibc version.
59305         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59306         * doc/posix-functions/strstr.texi (strstr): Likewise.
59307         * lib/str-two-way.h (MAX): Sychronize with glibc.
59308
59309 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59310
59311         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59312         opr.ctx_type.
59313         (calc_first): Initialize constraint field.
59314         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59315         Fix grammar.
59316         (duplicate_node): Merge constraint field for all node types.
59317         (calc_eclosure_iter): Look at constraint field for all node types.
59318         * lib/regex_internal.c (create_cd_newstate): Don't look at
59319         opr.ctx_type.
59320
59321 2008-05-14  Bruno Haible  <bruno@clisp.org>
59322
59323         Help GCC to do better code generation.
59324         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59325         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59326         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59327         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59328         Declare with attribute 'malloc' if supported.
59329
59330 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59331
59332         use "echo STR|wc -c" rather than unportable "expr length STR"
59333         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59334         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59335
59336 2008-05-14  Jim Meyering  <meyering@redhat.com>
59337
59338         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59339         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59340         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59341         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59342         via Collin Lasse.
59343
59344 2008-05-14  Eric Blake  <ebb9@byu.net>
59345
59346         Avoid quadratic growth in gl_LIBSOURCES.
59347         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59348         Suggested by Bruno Haible.
59349
59350         Test xmemdup0.
59351         * modules/xmemdup0-tests: New file.
59352         * tests/test-xmemdup0.c: Likewise.
59353
59354 2008-05-13  Eric Blake  <ebb9@byu.net>
59355
59356         Split xmemdup0 into its own module.
59357         * modules/xmemdup0: New file.
59358         * lib/xmemdup0.h: Likewise.
59359         * lib/xmemdup0.c: Likewise.
59360         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59361         * lib/xalloc.h (xmemdup0): Remove.
59362         * lib/xmalloc.c (xmemdup0): Likewise.
59363
59364 2008-05-13  Eric Blake  <ebb9@byu.net>
59365             Bruno Haible  <bruno@clisp.org>
59366
59367         Reduce number of forks required during autoconf.
59368         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59369         and gl_LIBSOURCES_DIR.
59370         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59371         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59372         m4_syscmd per file.
59373         <m4_foreach_w>: Move...
59374         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59375
59376 2008-05-13  Eric Blake  <ebb9@byu.net>
59377
59378         * gnulib-tool: Fix various comment typos.
59379
59380 2008-05-12  Bruno Haible  <bruno@clisp.org>
59381
59382         Tailor the linebreaking algorithm.
59383         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59384
59385 2008-05-12  Bruno Haible  <bruno@clisp.org>
59386
59387         Update to Unicode 5.0.0.
59388         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59389         LBP_JV, LBP_JT. Redistribute values.
59390         (unilbrk_table): Change size.
59391         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59392         Unicode TR#14 rev. 22.
59393         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59394         LBP_JV, LBP_JT. Redistribute values.
59395         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59396         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59397         Update.
59398         * lib/unilbrk/lbrkprop1.h: Regenerated.
59399         * lib/unilbrk/lbrkprop2.h: Regenerated.
59400         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59401         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59402         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59403         Likewise.
59404         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59405         Likewise.
59406         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59407         result.
59408         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59409         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59410         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59411         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59412         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59413         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59414
59415 2008-05-11  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59418
59419 2008-05-11  Bruno Haible  <bruno@clisp.org>
59420
59421         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59422         * modules/unilbrk/gen-lbrk: New file.
59423
59424 2008-05-11  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59427         * m4/sha512.m4 (gl_SHA512): Likewise.
59428
59429 2008-05-11  Jim Meyering  <meyering@redhat.com>
59430
59431         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59432         * modules/crypto/sha256: New file.
59433         * modules/crypto/sha512: Likewise.
59434         * lib/sha256.c: Likewise.
59435         * lib/sha256.h: Likewise.
59436         * lib/sha512.c: Likewise.
59437         * lib/sha512.h: Likewise.
59438         * lib/u64.h: Likewise.
59439         * m4/sha256.m4: Likewise.
59440         * m4/sha512.m4: Likewise.
59441         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59442
59443 2008-05-10  Bruno Haible  <bruno@clisp.org>
59444
59445         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59446         (Input/Output <stdio.h>): Add xprintf.
59447         (Signal handling <signal.h>): Add strsignal.
59448         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59449         (Core language properties): Add func.
59450         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59451         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59452         strings.
59453         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59454         (Input/output): New section.
59455         (File system functions): Add openat-die, stat-macros.
59456         (Networking functions): Add sockets.
59457         (Unicode string functions): Add unictype/*.
59458         (Support for building libraries and executables): Add gperf.
59459         (Support for building documentation): Add agpl-3.0.
59460         (Misc): Add nocrash.
59461
59462 2008-05-10  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/unictype/gen-ctype: New file.
59465
59466 2008-05-10  Jim Meyering  <meyering@redhat.com>
59467
59468         Make chdir-safer.c more efficient on a system with no symlinks.
59469         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59470         also if ELOOP is zero.  Suggested by Bruno Haible.
59471
59472         Make chdir-safer.c slightly safer.
59473         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59474         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59475
59476         Avoid compile failure on systems without ELOOP (like mingw).
59477         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59478         Reported by Bruno Haible.
59479
59480 2008-05-10  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59483         (is_utf8_encoding): Use a case-insensitive comparison.
59484         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59485         streq.
59486
59487 2008-05-10  Bruno Haible  <bruno@clisp.org>
59488
59489         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59490         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59491         * lib/unilbrk/ulc-common.h (iconv_string_length,
59492         iconv_string_keeping_offsets): Remove declarations.
59493         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59494         Don't include <iconv.h>, streq.h, xsize.h.
59495         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59496         conversion.
59497         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59498         <iconv.h>, streq.h, xsize.h.
59499         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59500         conversion.
59501         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59502         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59503         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59504         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59505
59506 2008-05-10  Bruno Haible  <bruno@clisp.org>
59507
59508         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59509         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59510
59511         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59512         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59513
59514         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59515         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59516
59517         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59518         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59519
59520         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59521         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59522
59523         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59524         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59525
59526         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59527         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59528
59529         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59530         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59531
59532 2008-05-10  Bruno Haible  <bruno@clisp.org>
59533
59534         Split up 'linebreak' module.
59535         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59536         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59537         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59538         modifications.
59539         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59540         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59541         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59542         lib/linebreak.c.
59543         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59544         lib/linebreak.c.
59545         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59546         lib/linebreak.c.
59547         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59548         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59549         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59550         lib/linebreak.c.
59551         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59552         lib/linebreak.c.
59553         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59554         lib/linebreak.c.
59555         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59556         lib/linebreak.c.
59557         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59558         lib/linebreak.c.
59559         * modules/unilbrk/base: New file.
59560         * modules/unilbrk/tables: New file.
59561         * modules/unilbrk/u8-possible-linebreaks: New file.
59562         * modules/unilbrk/u16-possible-linebreaks: New file.
59563         * modules/unilbrk/u32-possible-linebreaks: New file.
59564         * modules/unilbrk/ulc-common: New file.
59565         * modules/unilbrk/ulc-possible-linebreaks: New file.
59566         * modules/unilbrk/u8-width-linebreaks: New file.
59567         * modules/unilbrk/u16-width-linebreaks: New file.
59568         * modules/unilbrk/u32-width-linebreaks: New file.
59569         * modules/unilbrk/ulc-width-linebreaks: New file.
59570         * lib/linebreak.h: Remove file.
59571         * lib/linebreak.c: Remove file.
59572         * m4/linebreak.m4: Remove file.
59573         * modules/linebreak: Remove file.
59574         * NEWS: Mention the changes.
59575
59576 2008-05-09  Eric Blake  <ebb9@byu.net>
59577
59578         Add xmemdup0.
59579         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59580         implementation.
59581         * lib/xmalloc.c (xmemdup0): New C implementation.
59582
59583 2008-05-08  Bruno Haible  <bruno@clisp.org>
59584
59585         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59586
59587 2008-05-07  Eric Blake  <ebb9@byu.net>
59588
59589         Support cross-compilation of <wctype.h>.
59590         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59591         AC_CACHE_CHECK.
59592
59593 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59594
59595         * build-aux/vc-list-files: Add support for bzr.
59596
59597 2008-05-03  Jim Meyering  <meyering@redhat.com>
59598
59599         avoid failed assertion with tight malloc
59600         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59601
59602 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59603
59604         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59605         are needed from arpa/inet.h.
59606         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59607         Reported by Bruno Haible.
59608
59609 2008-05-02  Jim Meyering  <meyering@redhat.com>
59610
59611         avoid compilation error on FreeBSD 6
59612         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59613
59614 2008-05-01  Jim Meyering  <meyering@redhat.com>
59615
59616         useless-if-before-free: correct --help's exit status description
59617         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59618         for one or more matches, etc.  Reported by Bruno Haible.
59619
59620         vc-list-files: make the stand-alone gnulib test work
59621         * modules/vc-list-files-tests (configure.ac):
59622         Define and AC_SUBST abs_aux_dir.
59623         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59624         $(abs_top_srcdir) to each script and having each of them
59625         duplicate the work of setting PATH, set PATH here, using
59626         the new variable, abs_aux_dir instead.
59627         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59628         * tests/test-vc-list-files-git.sh: Likewise.
59629         Reported by Bruno Haible.
59630
59631 2008-05-01  Bruno Haible  <bruno@clisp.org>
59632
59633         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59634         reallocation. Rename 'done' to 'found_delimiter'.
59635
59636 2008-05-01  Jim Meyering  <meyering@redhat.com>
59637
59638         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59639         * build-aux/vc-list-files: Use `...`, not $(...).
59640
59641 2008-04-30  Jim Meyering  <meyering@redhat.com>
59642
59643         add tests for vc-list-files
59644         * modules/vc-list-files-tests: New module.
59645         * tests/test-vc-list-files-cvs.sh: New file.
59646         * tests/test-vc-list-files-git.sh: New file.
59647
59648         avoid a warning from gcc
59649         * lib/getndelim2.c (IF_LINT): Define.
59650         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59651
59652         vc-list-files: work properly with build-aux/cvsu, too
59653         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59654         to all cvs-based clauses.
59655
59656         vc-list-files: work properly in the CVS+awk case, too
59657         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59658
59659         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59660         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59661         take more than one file argument, so .  Add quotes, just in case $dir
59662         ever contains a shell meta-character.  Prompted by Soren Hansen in
59663         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59664
59665 2008-04-29  Eric Blake  <ebb9@byu.net>
59666
59667         Optimize getndelim2 to use block operations when possible.
59668         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59669         freadseek, and memchr2.
59670         * lib/getndelim2.c (getndelim2): Use them for block reads.
59671
59672 2008-04-29  Bruno Haible  <bruno@clisp.org>
59673
59674         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59675         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59676         * modules/inet_ntop (Depends-on): Add extensions.
59677         * modules/inet_pton (Depends-on): Likewise.
59678         Reported by Simon Josefsson.
59679
59680 2008-04-29  Jim Meyering  <meyering@redhat.com>
59681
59682         When the is more than one match in a block, match all of them.
59683         * build-aux/useless-if-before-free: Iterate through each block
59684         until there are no more matches.
59685
59686         Fix broken useless-if-before-free script.
59687         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59688         the expression to match cast of argument to free-like function.
59689
59690 2008-04-29  Eric Blake  <ebb9@byu.net>
59691
59692         Use new header.
59693         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59694
59695 2008-04-29  Jim Meyering  <meyering@redhat.com>
59696
59697         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59698         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59699         by gnulib to exist and to declare e.g., inet_ntop.
59700         Don't include "inet_ntop.h", now removed.
59701
59702         * m4/arpa_inet_h.m4: Remove trailing blanks.
59703
59704 2008-04-29  Eric Blake  <ebb9@byu.net>
59705
59706         Silence valgrind on safe reads beyond potential array bounds.
59707         * lib/rawmemchr.valgrind: New file.
59708         * lib/strchrnul.valgrind: Likewise.
59709         * modules/rawmemchr (Files): Distribute new file.
59710         * modules/strchrnul (Files): Likewise.
59711         Suggested by Bruno Haible.
59712
59713 2008-04-29  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59716         (inet_ntop, inet_pton): Change portability warning's wording.
59717         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59718         Invoke gl_CHECK_NEXT_HEADERS.
59719         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59720         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59721         set ARPA_INET_H.
59722         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59723         * modules/arpa_inet (Description): No longer only for systems that
59724         lack it.
59725         (Depends-on): Add include_next.
59726         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59727         HAVE_ARPA_INET_H.
59728
59729 2008-04-29  Jim Meyering  <meyering@redhat.com>
59730
59731         * modules/mkdir (License): Re-license as LGPLv2+.
59732
59733 2008-04-29  Bruno Haible  <bruno@clisp.org>
59734
59735         * modules/rawmemchr (Maintainer): Set to Eric.
59736         * modules/strchrnul (Maintainer): Likewise.
59737
59738 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59739
59740         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59741         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59742
59743         * modules/arpa_inet (arpa/inet.h): Use them.
59744
59745 2008-04-28  Eric Blake  <ebb9@byu.net>
59746
59747         Test getndelim2.
59748         * modules/getndelim2-tests: New file.
59749         * tests/test-getndelim2.c: Likewise.
59750         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59751         stream.
59752         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59753
59754         * MODULES.html.sh: Document new module.
59755
59756 2008-04-20  Bruno Haible  <bruno@clisp.org>
59757
59758         * lib/c-stack.c (die): Use raise.
59759         * modules/c-stack (Depends-on): Add raise.
59760
59761 2008-04-28  Bruno Haible  <bruno@clisp.org>
59762
59763         Expect rpmatch to be declared.
59764         * lib/yesno.c (rpmatch): Remove declaration.
59765
59766         Declare rpmatch.
59767         * lib/stdlib.in.h (rpmatch): New declaration.
59768         * lib/rpmatch.c: Include <stdlib.h> first.
59769         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59770         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59772         HAVE_RPMATCH.
59773         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59774         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59775         (Include): Set to <stdlib.h>.
59776         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59777         HAVE_RPMATCH.
59778         * NEWS: Document the change.
59779
59780 2008-04-28  Bruno Haible  <bruno@clisp.org>
59781
59782         Change rpmatch to use nl_langinfo when appropriate.
59783         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59784         (N_): New macro.
59785         (localized_pattern): New function/macro.
59786         (try): Remove match, nomatch arguments. Copy the pattern into safe
59787         memory before caching it.
59788         (rpmatch): Use localized_pattern. Add translator comments.
59789         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59790         Suggested by Eric Blake.
59791         * modules/rpmatch (Depends-on): Add stdbool.
59792
59793 2008-04-28  Eric Blake  <ebb9@byu.net>
59794
59795         Add rawmemchr module, matching glibc.
59796         * modules/string (Makefile.am): New indicator.
59797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59798         * lib/string.in.h (rawmemchr): Declare when appropriate.
59799         * modules/rawmemchr: New file.
59800         * m4/rawmemchr.m4: Likewise.
59801         * lib/rawmemchr.c: Likewise.
59802         * modules/rawmemchr-tests: Likewise.
59803         * tests/test-rawmemchr.c: Likewise.
59804         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59805         module.
59806         * modules/strchrnul (Depends-on): Add rawmemchr.
59807         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59808
59809         Whitespace cleanup.
59810         * tests/test-strchrnul.c: Reindent.
59811         * lib/strchrnul.c: Likewise.
59812
59813         Optimize and test strchrnul.
59814         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59815         * modules/strchrnul-tests: New file.
59816         * tests/test-strchrnul.c: Likewise.
59817
59818         Remove intprops dependency.
59819         * modules/memchr (Depends-on): Remove intprops.
59820         * modules/memrchr (Depends-on): Likewise.
59821         * modules/memchr2 (Depends-on): Likewise.
59822         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59823         * lib/memrchr.c (__memrchr): Likewise.
59824         * lib/memrchr2.c (memchr2): Likewise.
59825         Reported by Simon Josefsson.
59826
59827 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59828
59829         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59830         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59831
59832 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59833
59834         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59835
59836         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59837
59838         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59839
59840         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59841         declarations.
59842         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59843
59844         * m4/inet_pton.m4: Don't check for header files.
59845
59846         * m4/inet_ntop.m4: Don't check for header files.
59847
59848 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59849
59850         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59851         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59852         trigger for cygwin).
59853         Reported by Bruno Haible  <bruno@clisp.org>.
59854
59855 2008-04-28  Bruno Haible  <bruno@clisp.org>
59856
59857         * doc/posix-functions/strdup.texi: Mention mingw problem.
59858
59859 2008-04-27  Bruno Haible  <bruno@clisp.org>
59860
59861         * modules/stat-time-tests (Depends-on): Add sleep.
59862         * tests/test-stat-time.c (force_unlink): New function.
59863         (cleanup): Use it.
59864         (test_mtime): Remove the ctime related tests.
59865         (test_ctime): New function, containing the ctime related tests.
59866         (main): Call test_ctime, except on native Windows platforms.
59867
59868 2008-04-27  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/rpmatch.c (rpmatch): Add some comments.
59871         Reported by James Youngman <jay@gnu.org>.
59872
59873 2008-04-27  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59876         quiet NaNs.
59877
59878 2008-04-27  Bruno Haible  <bruno@clisp.org>
59879
59880         Make test-yesno.sh work on mingw.
59881         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59882         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59883         (main): Set stdin to binary mode.
59884         * modules/yesno-tests (Depends-on): Add binary-io.
59885
59886 2008-04-27  Bruno Haible  <bruno@clisp.org>
59887
59888         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59889         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59890         argument that lie outside the IEEE 854 domain.
59891         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59892         (gl_ISFINITE): Use it.
59893         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59894
59895 2008-04-27  Bruno Haible  <bruno@clisp.org>
59896
59897         Allow local renaming in config.h.
59898         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59899
59900 2008-04-27  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/memchr.c (__memchr): Change type of 'i'.
59903         * lib/memchr2.c (memchr2): Likewise.
59904
59905 2008-04-26  Eric Blake  <ebb9@byu.net>
59906         and Bruno Haible  <bruno@clisp.org>
59907
59908         Optimize and test memrchr.
59909         * modules/memrchr (Depends-on): Add intprops.
59910         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59911         * modules/memrchr-tests: New file.
59912         * tests/test-memrchr.c: New file.
59913
59914 2008-04-26  Bruno Haible  <bruno@clisp.org>
59915
59916         Add tentative support for DragonFly BSD.
59917         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59918         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59919         fp.
59920         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59921         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59922         * lib/fpurge.c (fpurge): Likewise.
59923         * lib/freadable.c (freaadable): Likewise.
59924         * lib/freadahead.c (freadahead): Likewise.
59925         * lib/freading.c (freading): Likewise.
59926         * lib/freadptr.c (freadptr): Likewise.
59927         * lib/freadseek.c (freadptrinc): Likewise.
59928         * lib/fseeko.c (fseeko): Likewise.
59929         * lib/fseterr.c (fseterr): Likewise.
59930         * lib/fwritable.c (fwritable): Likewise.
59931         * lib/fwriting.c (fwriting): Likewise.
59932
59933 2008-04-26  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/stdio-impl.h: New file.
59936         * lib/fbufmode.c: Include stdio-impl.h.
59937         (fbufmode): Use fp_, remove redundant #defines.
59938         * lib/fflush.c: Include stdio-impl.h.
59939         (clear_ungetc_buffer): Remove redundant #defines.
59940         * lib/fpurge.c: Include stdio-impl.h.
59941         (fpurge): Remove redundant #defines.
59942         * lib/freadable.c: Include stdio-impl.h.
59943         (freadable): Remove redundant #defines.
59944         * lib/freadahead.c: Include stdio-impl.h.
59945         (freadahead): Remove redundant #defines.
59946         * lib/freading.c: Include stdio-impl.h.
59947         (freading): Remove redundant #defines.
59948         * lib/freadptr.c: Include stdio-impl.h.
59949         (freadptr): Remove redundant #defines.
59950         * lib/freadseek.c: Include stdio-impl.h.
59951         (freadptrinc): Remove redundant #defines.
59952         * lib/fseeko.c: Include stdio-impl.h.
59953         (rpl_fseeko): Remove redundant #defines.
59954         * lib/fseterr.c: Include stdio-impl.h.
59955         (fseterr): Remove redundant #defines.
59956         * lib/fwritable.c: Include stdio-impl.h.
59957         (fwritable: Remove redundant #defines.
59958         * lib/fwriting.c: Include stdio-impl.h.
59959         (fwriting): Remove redundant #defines.
59960         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59961         * modules/fflush (Files): Likewise.
59962         * modules/fpurge (Files): Likewise.
59963         * modules/freadable (Files): Likewise.
59964         * modules/freadahead (Files): Likewise.
59965         * modules/freading (Files): Likewise.
59966         * modules/freadptr (Files): Likewise.
59967         * modules/freadseek (Files): Likewise.
59968         * modules/fseeko (Files): Likewise.
59969         * modules/fseterr (Files): Likewise.
59970         * modules/fwritable (Files): Likewise.
59971         * modules/fwriting (Files): Likewise.
59972
59973 2008-04-26  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59976         restore_seek_optimization, update_fpos_cache): New functions, extracted
59977         from rpl_fflush.
59978         (rpl_fflush): Use them.
59979         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59980         (gl_REPLACE_FFLUSH): Use it.
59981
59982 2008-04-26  Bruno Haible  <bruno@clisp.org>
59983
59984         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59985         on Solaris.
59986         * tests/test-xstrtoimax.sh: Likewise.
59987         * tests/test-xstrtoumax.sh: Likewise.
59988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59989
59990 2008-04-26  Bruno Haible  <bruno@clisp.org>
59991
59992         * modules/memchr-tests: New file.
59993         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59994
59995 2008-04-26  Eric Blake  <ebb9@byu.net>
59996             Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/memchr.c: Include intprops.h.
59999         (__memchr): Optimize parallel detection of matching bytes. Rename local
60000         variables. Add explanatory comments.
60001
60002 2008-04-26  Bruno Haible  <bruno@clisp.org>
60003
60004         Fix module 'memchr', broken since 2000-10-28.
60005         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60006
60007 2008-04-26  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60010         comments.
60011
60012 2008-04-25  Eric Blake  <ebb9@byu.net>
60013
60014         Use native fstatat on cygwin 1.7.0.
60015         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60016         first.
60017
60018 2008-04-23  Eric Blake  <ebb9@byu.net>
60019
60020         Improve memchr2 performance.
60021         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60022         NUL bytes.
60023         * modules/memchr2 (Depends-on): Use intprops.h.
60024
60025 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60026
60027         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60028         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60029         <blp@cs.stanford.edu>.
60030
60031 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60032
60033         * lib/arpa_inet.in.h: New file.
60034
60035         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60036         (Makefile.am): Sed in substitute header file.
60037
60038         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60039         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60040
60041         * modules/inet_ntop (configure.ac): Use
60042         gl_ARPA_INET_MODULE_INDICATOR.
60043
60044         * modules/inet_pton (configure.ac): Use
60045         gl_ARPA_INET_MODULE_INDICATOR.
60046
60047 2008-04-22  Jim Meyering  <meyering@redhat.com>
60048
60049         * modules/verify (License): Re-license as LGPLv2+.
60050
60051 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60052
60053         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60054         parameter to void* as per POSIX standard (MinGW uses char*).
60055
60056 2008-04-21  Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60059         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60060         Define to replacements if REPLACE_ISWCNTRL is 1.
60061         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60062         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60063         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60064         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60065         what it fixes.
60066         * doc/posix-functions/iswalpha.texi: Likewise.
60067         * doc/posix-functions/iswblank.texi: Likewise.
60068         * doc/posix-functions/iswcntrl.texi: Likewise.
60069         * doc/posix-functions/iswdigit.texi: Likewise.
60070         * doc/posix-functions/iswgraph.texi: Likewise.
60071         * doc/posix-functions/iswlower.texi: Likewise.
60072         * doc/posix-functions/iswprint.texi: Likewise.
60073         * doc/posix-functions/iswpunct.texi: Likewise.
60074         * doc/posix-functions/iswspace.texi: Likewise.
60075         * doc/posix-functions/iswupper.texi: Likewise.
60076         * doc/posix-functions/iswxdigit.texi: Likewise.
60077         Reported by Alain Guibert.
60078
60079 2008-04-21  Bruno Haible  <bruno@clisp.org>
60080
60081         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60082         Patch by Alain Guibert.
60083
60084 2008-04-21  Bruno Haible  <bruno@clisp.org>
60085
60086         Fix test failures on mingw.
60087         * tests/test-xstrtol.c (print_no_progname): New function.
60088         (main): Install it in error_print_progname hook.
60089         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60090         * tests/test-xstrtoimax.sh: Likewise.
60091         * tests/test-xstrtoumax.sh: Likewise.
60092
60093 2008-04-21  Bruno Haible  <bruno@clisp.org>
60094
60095         Fix test failure on mingw.
60096         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60097
60098 2008-04-21  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60101         Actually assign a value.
60102
60103 2008-04-20  Bruno Haible  <bruno@clisp.org>
60104
60105         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60106         take 2.
60107         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60108         'canonicalize-lgpl' module is also used.
60109         * lib/canonicalize-lgpl.c: Undo last change.
60110         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60111
60112 2008-04-20  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60115         config.h. Provide _mkdir based fallback for mingw.
60116         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60117         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60118         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60119         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60120         rather than defining mkdir in config.h.
60121         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60122         (gl_SYS_STAT_H_DEFAULTS): New macro.
60123         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60124         HAVE_IO_H any more.
60125         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60126         HAVE_DECL_MKDIR and HAVE_IO_H.
60127
60128 2008-04-20  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/isapipe.c: Port to native Windows platforms.
60131
60132 2008-04-20  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60135
60136 2008-04-21  Eric Blake  <ebb9@byu.net>
60137
60138         Work around preprocessors that don't handle UINTMAX_MAX.
60139         * lib/memchr2.c (memchr2): Avoid embedded #if.
60140         Reported by Alain Guibert, fix suggested by Bruno Haible.
60141
60142 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60143
60144         * doc/posix-functions/strftime.texi (strftime): Explain better
60145         Windows incompatibility.  Suggested by Micah Cowan
60146         <micah@cowan.name>.
60147
60148 2008-04-20  Bruno Haible  <bruno@clisp.org>
60149
60150         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60151         unistr/u8-mblen.
60152
60153 2008-04-20  Bruno Haible  <bruno@clisp.org>
60154
60155         Fix test failure on platforms with non-GNU iconv.
60156         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60157         (U_TO_U8): Use it, rather than u16_to_u8.
60158         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60159         units at the end of the input string.
60160         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60161
60162 2008-04-20  Bruno Haible  <bruno@clisp.org>
60163
60164         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60165         when the resulting length is 0.
60166         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60167
60168 2008-04-20  Bruno Haible  <bruno@clisp.org>
60169
60170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60171         works.
60172         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60173
60174 2008-04-20  Bruno Haible  <bruno@clisp.org>
60175
60176         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60177         * modules/tsearch-tests (configure.ac): Test for initstate function.
60178
60179 2008-04-20  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60182         for nlink_t if missing.
60183         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60184
60185 2008-04-19  Bruno Haible  <bruno@clisp.org>
60186
60187         Work around snprintf bug on Linux libc5.
60188         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60190         gl_SNPRINTF_SIZE1.
60191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60192         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60193         that test failed.
60194         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60195         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60196         * modules/snprintf (Files): Add m4/printf.m4.
60197         * modules/vsnprintf (Files): Likewise.
60198         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60199         * doc/posix-functions/vsnprintf.texi: Likewise.
60200
60201 2008-04-19  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60204         from 0.0058 to less than 10^-7.
60205
60206 2008-04-19  Bruno Haible  <bruno@clisp.org>
60207
60208         Fix rounding when a precision is given.
60209         * lib/vasnprintf.c (is_borderline): New function.
60210         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60211         9...9x.
60212         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60213         %e, %g.
60214         * tests/test-vasprintf-posix.c (test_function): Likewise.
60215         * tests/test-snprintf-posix.h (test_function): Likewise.
60216         * tests/test-sprintf-posix.h (test_function): Likewise.
60217         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60218         * tests/test-printf-posix.h (test_function): Likewise.
60219         * tests/test-printf-posix.output: Update.
60220         Reported by John Darrington <john@darrington.wattle.id.au> via
60221         Ben Pfaff <blp@cs.stanford.edu>.
60222
60223 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60224
60225         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60226         Suggested by Bruno Haible <bruno@clisp.org>.
60227
60228 2008-04-17  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60231         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60232         implementation.
60233         Patch by Bruce Merry <bmerry@gmail.com>.
60234
60235 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60236
60237         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60238         doesn't work under Windows.
60239
60240 2008-04-16  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60243         New macros.
60244         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60245         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60246         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60247         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60248         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60249         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60250         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60251         macros.
60252         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60253         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60254         Northern Sotho, Uighur.
60255
60256 2008-04-16  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60259         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60260         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60261         Reported by Daniel Bergström <daniel@octocode.com>.
60262
60263 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60264             Bruno Haible  <bruno@clisp.org>
60265
60266         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60267         function.
60268         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60269         New functions, mostly extracted from gl_locale_name_default.
60270         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60271
60272 2008-04-16  Eric Blake  <ebb9@byu.net>
60273
60274         Adjust strtod detection to catch glibc 2.7 bug.
60275         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60276         Reported by John Gatewood Ham.
60277
60278 2008-04-16  Bruno Haible  <bruno@clisp.org>
60279
60280         Add tentative support for Linux libc5.
60281         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60282         * lib/fpurge.c (fpurge): Likewise.
60283         * lib/freadable.c (freadable): Likewise.
60284         * lib/freadahead.c (freadahead): Likewise.
60285         * lib/freading.c (freading): Likewise.
60286         * lib/freadptr.c (freadptr): Likewise.
60287         * lib/freadseek.c (freadptrinc): Likewise.
60288         * lib/fseeko.c (rpl_fseeko): Likewise.
60289         * lib/fseterr.c (fseterr): Likewise.
60290         * lib/fwritable.c (fwritable): Likewise.
60291         * lib/fwriting.c (fwriting): Likewise.
60292         Reported by Alain Guibert <alguibert+bts@free.fr>.
60293
60294 2008-04-15  Bruno Haible  <bruno@clisp.org>
60295
60296         * modules/mathl (configure.ac): Define module indicator.
60297
60298 2008-04-15  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/logl.c (logl): Remove unused variables.
60301
60302 2008-04-15  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60305         fails.
60306
60307 2008-04-15  Bruno Haible  <bruno@clisp.org>
60308
60309         * lib/trim.c (trim2): Fix argument of isspace() macro.
60310
60311 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60312
60313         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60314         to 0.
60315         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60316
60317 2008-04-14  Bruno Haible  <bruno@clisp.org>
60318
60319         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60320         AC_LANG_PROGRAM argument.
60321         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60322         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60324         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60325         * m4/math_h.m4 (gl_MATH_H): Likewise.
60326         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60328         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60329         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60330         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60331         * m4/regex.m4 (gl_REGEX): Likewise.
60332         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60333         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60336         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60337         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60340
60341 2008-04-14  Jim Meyering  <meyering@redhat.com>
60342
60343         test-strtod: fix typos: s/abs/fabs/
60344         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60345
60346 2008-04-13  Bruno Haible  <bruno@clisp.org>
60347
60348         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60349         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60350         module is also used and while not building the reloc-wrapper.
60351
60352 2008-04-13  Bruno Haible  <bruno@clisp.org>
60353
60354         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60355
60356 2008-04-13  Bruno Haible  <bruno@clisp.org>
60357
60358         Fix AIX compilation failure introduced on 2008-04-02.
60359         * tests/test-frexp.c (exp): Undefine before redefining.
60360         * tests/test-frexpl.c (exp): Likewise.
60361
60362 2008-04-13  Bruno Haible  <bruno@clisp.org>
60363
60364         Work around a HP-UX stdio bug.
60365         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60366         * tests/test-ftello.c (main): Likewise.
60367         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60368         * doc/posix-functions/ftello.texi: Likewise.
60369
60370 2008-04-13  Bruno Haible  <bruno@clisp.org>
60371
60372         Make test-signbit pass on HP-UX/hppa.
60373         * tests/test-signbit.c (minus_zerol): New variable.
60374         (test_signbitl): Use it.
60375
60376 2008-04-13  Bruno Haible  <bruno@clisp.org>
60377
60378         Make truncl work on OSF/1 4.0.
60379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60380         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60381         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60383         HAVE_DECL_TRUNCL.
60384         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60385         HAVE_DECL_TRUNCL.
60386         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60387
60388 2008-04-13  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60391
60392 2008-04-13  Bruno Haible  <bruno@clisp.org>
60393
60394         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60395         expression, so as to avoid HP-UX 11 cc compiler bug.
60396
60397 2008-04-13  Bruno Haible  <bruno@clisp.org>
60398
60399         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60400
60401 2008-04-13  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/git-merge-changelog.c: Remove empty declaration outside of
60404         functions.
60405
60406 2008-04-13  Bruno Haible  <bruno@clisp.org>
60407
60408         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60409
60410 2008-04-13  Bruno Haible  <bruno@clisp.org>
60411
60412         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60413         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60415         also if it exists but lacks definitions of the SHUT_* macros.
60416         * modules/sys_socket (Description): Update.
60417         Reported by Elbert Pol <e.pol@chello.nl>.
60418
60419 2008-04-13  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/localcharset.c (OS2): Don't redefine if already defined.
60422         Reported by Elbert Pol <e.pol@chello.nl>.
60423
60424 2008-04-13  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/binary-io.h [__EMX__]: Include <io.h>.
60427         Reported by Elbert Pol <e.pol@chello.nl>.
60428
60429 2008-04-12  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/fpucw.h: Enable the definitions also for x86_64.
60432         Needed for NetBSD/x86_64.
60433         Reported by Thomas Klausner <tk@giga.or.at>.
60434
60435 2008-04-12  Bruno Haible  <bruno@clisp.org>
60436
60437         * tests/test-strtod.c: Include isnand.h.
60438         (main): Use isnand instead of isnan.
60439         Reported by Jim Meyering.
60440
60441 2008-04-12  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60444         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60445
60446 2008-04-12  Jim Meyering  <meyering@redhat.com>
60447
60448         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60449
60450 2008-04-12  Bruno Haible  <bruno@clisp.org>
60451
60452         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60453         Reported by Elbert Pol <e.pol@chello.nl>.
60454
60455 2008-04-12  Eric Blake  <ebb9@byu.net>
60456
60457         Work around Solaris 10 math.h bug.
60458         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60459         (gl_MATH_H_DEFAULTS): Set up default.
60460         * modules/math (Makefile.am): Replace new indicators.
60461         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60462         * tests/test-math.c (main): Test this.
60463         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60464         * doc/posix-headers/math.texi (math.h): Mention bug.
60465         Reported by Nelson H. F. Beebe and Jim Meyering.
60466
60467 2008-04-11  Bruno Haible  <bruno@clisp.org>
60468
60469         Adapt to future versions of Apple GCC.
60470         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60471         Reported by Peter O'Gorman <peter@pogma.com>.
60472
60473 2008-04-11  Bruno Haible  <bruno@clisp.org>
60474
60475         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60476
60477 2008-04-11  Bruno Haible  <bruno@clisp.org>
60478
60479         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60480
60481         * modules/getaddrinfo-tests (Makefile.am): Define
60482         test_getaddrinfo_LDADD.
60483
60484 2008-04-11  Bruno Haible  <bruno@clisp.org>
60485
60486         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60487         (init): Fix syntax error.
60488         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60489         is declared.
60490
60491 2008-04-11  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60494         * modules/glob (Depends-on): Add stdbool.
60495
60496 2008-04-11  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/trim.c: Include <string.h>.
60499
60500 2008-04-11  Eric Blake  <ebb9@byu.net>
60501
60502         Avoid compile failure on OS/2.
60503         * lib/regex_internal.h (internal_function): Disable optimization
60504         on OS/2 (__EMX__), where it caused compiler error.
60505         Reported by Elbert Pol.
60506
60507 2008-04-11  Bruno Haible  <bruno@clisp.org>
60508
60509         Flush the standard error stream before aborting. Needed on mingw.
60510         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60511         * tests/test-array_list.c (ASSERT): Likewise.
60512         * tests/test-array_oset.c (ASSERT): Likewise.
60513         * tests/test-avltree_list.c (ASSERT): Likewise.
60514         * tests/test-avltree_oset.c (ASSERT): Likewise.
60515         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60516         * tests/test-binary-io.c (ASSERT): Likewise.
60517         * tests/test-byteswap.c (ASSERT): Likewise.
60518         * tests/test-c-ctype.c (ASSERT): Likewise.
60519         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60520         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60521         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60522         * tests/test-c-strstr.c (ASSERT): Likewise.
60523         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60524         * tests/test-canonicalize.c (ASSERT): Likewise.
60525         * tests/test-carray_list.c (ASSERT): Likewise.
60526         * tests/test-ceilf1.c (ASSERT): Likewise.
60527         * tests/test-ceilf2.c (ASSERT): Likewise.
60528         * tests/test-ceill.c (ASSERT): Likewise.
60529         * tests/test-count-one-bits.c (ASSERT): Likewise.
60530         * tests/test-fbufmode.c (ASSERT): Likewise.
60531         * tests/test-fflush2.c (ASSERT): Likewise.
60532         * tests/test-floorf1.c (ASSERT): Likewise.
60533         * tests/test-floorf2.c (ASSERT): Likewise.
60534         * tests/test-floorl.c (ASSERT): Likewise.
60535         * tests/test-fopen.c (ASSERT): Likewise.
60536         * tests/test-fpending.c (ASSERT): Likewise.
60537         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60538         * tests/test-fpurge.c (ASSERT): Likewise.
60539         * tests/test-freadable.c (ASSERT): Likewise.
60540         * tests/test-freadahead.c (ASSERT): Likewise.
60541         * tests/test-freading.c (ASSERT): Likewise.
60542         * tests/test-freadptr.c (ASSERT): Likewise.
60543         * tests/test-freadptr2.c (ASSERT): Likewise.
60544         * tests/test-freadseek.c (ASSERT): Likewise.
60545         * tests/test-freopen.c (ASSERT): Likewise.
60546         * tests/test-frexp.c (ASSERT): Likewise.
60547         * tests/test-frexpl.c (ASSERT): Likewise.
60548         * tests/test-fseek.c (ASSERT): Likewise.
60549         * tests/test-fseeko.c (ASSERT): Likewise.
60550         * tests/test-fstrcmp.c (ASSERT): Likewise.
60551         * tests/test-ftell.c (ASSERT): Likewise.
60552         * tests/test-ftello.c (ASSERT): Likewise.
60553         * tests/test-func.c (ASSERT): Likewise.
60554         * tests/test-fwritable.c (ASSERT): Likewise.
60555         * tests/test-fwriting.c (ASSERT): Likewise.
60556         * tests/test-getdelim.c (ASSERT): Likewise.
60557         * tests/test-getline.c (ASSERT): Likewise.
60558         * tests/test-i-ring.c (ASSERT): Likewise.
60559         * tests/test-iconv-utf.c (ASSERT): Likewise.
60560         * tests/test-iconv.c (ASSERT): Likewise.
60561         * tests/test-isfinite.c (ASSERT): Likewise.
60562         * tests/test-isnand.c (ASSERT): Likewise.
60563         * tests/test-isnanf.c (ASSERT): Likewise.
60564         * tests/test-isnanl.h (ASSERT): Likewise.
60565         * tests/test-ldexpl.c (ASSERT): Likewise.
60566         * tests/test-linked_list.c (ASSERT): Likewise.
60567         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60568         * tests/test-localename.c (ASSERT): Likewise.
60569         * tests/test-lseek.c (ASSERT): Likewise.
60570         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60571         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60572         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60573         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60574         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60575         * tests/test-mbschr.c (ASSERT): Likewise.
60576         * tests/test-mbscspn.c (ASSERT): Likewise.
60577         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60578         * tests/test-mbspbrk.c (ASSERT): Likewise.
60579         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60580         * tests/test-mbsrchr.c (ASSERT): Likewise.
60581         * tests/test-mbsspn.c (ASSERT): Likewise.
60582         * tests/test-mbsstr1.c (ASSERT): Likewise.
60583         * tests/test-mbsstr2.c (ASSERT): Likewise.
60584         * tests/test-mbsstr3.c (ASSERT): Likewise.
60585         * tests/test-memchr2.c (ASSERT): Likewise.
60586         * tests/test-memmem.c (ASSERT): Likewise.
60587         * tests/test-open.c (ASSERT): Likewise.
60588         * tests/test-printf-frexp.c (ASSERT): Likewise.
60589         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60590         * tests/test-printf-posix.c (ASSERT): Likewise.
60591         * tests/test-quotearg.c (ASSERT): Likewise.
60592         * tests/test-rbtree_list.c (ASSERT): Likewise.
60593         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60594         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60595         * tests/test-round1.c (ASSERT): Likewise.
60596         * tests/test-roundf1.c (ASSERT): Likewise.
60597         * tests/test-roundl.c (ASSERT): Likewise.
60598         * tests/test-signbit.c (ASSERT): Likewise.
60599         * tests/test-sleep.c (ASSERT): Likewise.
60600         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60601         * tests/test-snprintf.c (ASSERT): Likewise.
60602         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60603         * tests/test-stat-time.c (ASSERT): Likewise.
60604         * tests/test-strcasestr.c (ASSERT): Likewise.
60605         * tests/test-strerror.c (ASSERT): Likewise.
60606         * tests/test-striconv.c (ASSERT): Likewise.
60607         * tests/test-striconveh.c (ASSERT): Likewise.
60608         * tests/test-striconveha.c (ASSERT): Likewise.
60609         * tests/test-strsignal.c (ASSERT): Likewise.
60610         * tests/test-strstr.c (ASSERT): Likewise.
60611         * tests/test-strtod.c (ASSERT): Likewise.
60612         * tests/test-trunc1.c (ASSERT): Likewise.
60613         * tests/test-trunc2.c (ASSERT): Likewise.
60614         * tests/test-truncf1.c (ASSERT): Likewise.
60615         * tests/test-truncf2.c (ASSERT): Likewise.
60616         * tests/test-truncl.c (ASSERT): Likewise.
60617         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60618         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60619         * tests/test-vasnprintf.c (ASSERT): Likewise.
60620         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60621         * tests/test-vasprintf.c (ASSERT): Likewise.
60622         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60623         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60624         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60625         * tests/test-vsnprintf.c (ASSERT): Likewise.
60626         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60627         * tests/test-wcwidth.c (ASSERT): Likewise.
60628         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60629         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60630         * tests/test-xvasprintf.c (ASSERT): Likewise.
60631         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60632         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60633         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60634         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60635         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60636         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60637         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60638         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60639         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60640         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60641         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60642         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60643         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60644         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60645         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60646         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60647         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60648         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60649         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60650         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60651         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60652         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60653         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60654         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60655         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60656         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60657         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60658         * tests/unictype/test-combining.c (ASSERT): Likewise.
60659         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60660         * tests/unictype/test-digit.c (ASSERT): Likewise.
60661         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60662         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60663         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60664         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60665         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60666         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60667         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60668         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60669         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60670         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60671         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60672         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60673         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60674         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60675         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60676         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60677         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60678         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60679         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60680         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60681         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60682         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60683         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60684         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60685         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60686         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60687         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60688         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60689         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60690         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60691         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60692         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60693         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60694         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60695         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60696         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60697         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60698         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60699         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60700         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60701         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60702         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60703         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60704         Reported by Eric Blake.
60705
60706 2008-04-11  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/wchar.in.h: Tweak comment.
60709
60710 2008-04-11  Bruno Haible  <bruno@clisp.org>
60711
60712         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60713         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60714         gl_COMMON.
60715         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60716
60717 2008-04-11  Bruno Haible  <bruno@clisp.org>
60718
60719         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60720
60721 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60722
60723         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60724         of attempting to use non-existing /dev/*random.  Based on patch
60725         from Adam Strzelecki <ono@java.pl> in
60726         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60727
60728 2008-04-08  Bruno Haible  <bruno@clisp.org>
60729
60730         Add tentative support for emx+gcc.
60731         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60732         * lib/fpurge.c (fpurge): Likewise.
60733         * lib/freadable.c (freadable): Likewise.
60734         * lib/freadahead.c (freadahead): Likewise.
60735         * lib/freading.c (freading): Likewise.
60736         * lib/freadptr.c (freadptr): Likewise.
60737         * lib/freadseek.c (freadptrinc): Likewise.
60738         * lib/fseeko.c (rpl_fseeko): Likewise.
60739         * lib/fseterr.c (fseterr): Likewise.
60740         * lib/fwritable.c (fwritable): Likewise.
60741         * lib/fwriting.c (fwriting): Likewise.
60742         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60743
60744 2008-04-09  Eric Blake  <ebb9@byu.net>
60745
60746         Avoid some autoconf warnings.
60747         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60748         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60749         * m4/afs.m4 (gl_AFS): Likewise.
60750         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60751         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60753         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60754         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60755         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60756         (AC_CHECK_DECLS_ONCE): Likewise.
60757         Rename file...
60758         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60759         gnulib-tool requires autoconf 2.59 or better.
60760         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60761
60762 2008-04-08  Eric Blake  <ebb9@byu.net>
60763
60764         Use 'git describe --match' if present (added in git 1.5.5).
60765         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60766         if possible.
60767
60768 2008-04-08  Bruno Haible  <bruno@clisp.org>
60769
60770         Add tentative support for OpenServer.
60771         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60772         _ptr, _cnt.
60773         * lib/fpurge.c (fpurge): Likewise.
60774         * lib/freadable.c (freadable): Likewise.
60775         * lib/freadahead.c (freadahead): Likewise.
60776         * lib/freading.c (freading): Likewise.
60777         * lib/freadptr.c (freadptr): Likewise.
60778         * lib/freadseek.c (freadptrinc): Likewise.
60779         * lib/fseeko.c (rpl_fseeko): Likewise.
60780         * lib/fseterr.c (fseterr): Likewise.
60781         * lib/fwritable.c (fwritable): Likewise.
60782         * lib/fwriting.c (fwriting): Likewise.
60783         Reported by Roger Cornelius <rac@tenzing.org> and
60784         Brian K. White <brian@aljex.com>.
60785
60786 2008-04-06  Jim Meyering  <meyering@redhat.com>
60787
60788         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60789
60790 2008-04-06  Bruno Haible  <bruno@clisp.org>
60791
60792         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60793         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60794         * tests/test-printf-posix.sh: Likewise.
60795         * tests/test-vfprintf-posix.sh: Likewise.
60796         * tests/test-vprintf-posix.sh: Likewise.
60797         * tests/test-xprintf-posix.sh: Likewise.
60798
60799 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60800
60801         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60802         hide error from 'ls', needed on OS/2.
60803         Report by Elbert Pol <elbert.pol@gmail.com>.
60804
60805 2008-04-04  Eric Blake  <ebb9@byu.net>
60806
60807         Make test-fseeko.c failures meaningful.
60808         * tests/test-fseeko.c: Print line number on failure.
60809         * tests/test-fseek.c: Likewise.
60810         Reported by Nelson H. F. Beebe.
60811
60812         Improve strtod bug detection check.
60813         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60814         required for Solaris 10.
60815         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60816
60817 2008-04-04  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60820         by m4/setenv.m4.
60821
60822 2008-04-03  Eric Blake  <ebb9@byu.net>
60823
60824         Ensure sane .version contents.
60825         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60826         version string.
60827         * build-aux/git-version-gen: Improve documentation.
60828
60829         Make GNU make output nicer.
60830         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60831         MAKECMDGOALS to enforce message for all command line targets.  Set
60832         srcdir for use in maint.mk.
60833
60834         Another maintainer tweak.
60835         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60836         a target that regenerates version.
60837
60838 2008-04-03  Jim Meyering  <meyering@redhat.com>
60839
60840         vc-list-files: don't cause coreutils "make po-check" failure
60841         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60842
60843 2008-04-03  Eric Blake  <ebb9@byu.net>
60844
60845         Allow VPATH usage of vc-list-files.
60846         * build-aux/vc-list-files (scriptversion): Add timestamp.
60847         (options): Add --help, --version, -C.
60848         (CVS): Support installed cvsu.
60849
60850 2008-04-02  Bruno Haible  <bruno@clisp.org>
60851
60852         Avoid some "statement with no effect" warnings from gcc.
60853         * tests/test-wctype.c (main): Explicitly ignore unused values.
60854         Reported by Jim Meyering.
60855
60856 2008-04-02  Jim Meyering  <meyering@redhat.com>
60857
60858         Avoid some warnings from "gcc -Wshadow".
60859         * tests/test-frexp.c (exp): Define to a different identifier.
60860         * tests/test-frexpl.c (exp): Likewise.
60861
60862 2008-04-03  Jim Meyering  <meyering@redhat.com>
60863
60864         bootstrap: remove dangling *.[ch] symlinks from lib
60865         * build-aux/bootstrap [dangling symlink removal]: Move find's
60866         -depth option to precede all others, to avoid a warning.
60867         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60868
60869 2008-04-02  Bruno Haible  <bruno@clisp.org>
60870
60871         Avoid some warnings from "gcc -Wshadow".
60872         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60873         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60874         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60875         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60876         Reported by Jim Meyering.
60877
60878 2008-04-01  Bruno Haible  <bruno@clisp.org>
60879
60880         Fix test to work on IRIX 6.5 with cc.
60881         * tests/test-math.c (numeric_equal): New function.
60882         (main): Use it.
60883
60884 2008-04-01  Bruno Haible  <bruno@clisp.org>
60885
60886         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60887
60888 2008-04-01  Bruno Haible  <bruno@clisp.org>
60889
60890         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60891         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60892         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60893         (Depends-on): Remove math.
60894
60895         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60896         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60897         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60898         (Depends-on): Remove math.
60899
60900         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60901         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60902         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60903         (Depends-on): Remove math.
60904         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60905         (Depends-on): Remove math.
60906
60907         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60908         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60909         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60910         (Depends-on): Remove math.
60911         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60912         (Depends-on): Remove math.
60913
60914         * tests/test-round1.c: Include nan.h.
60915         (main): Use NaNd instead of NAN.
60916         * modules/round-tests (Files): Add tests/nan.h.
60917
60918         * tests/test-trunc1.c: Include nan.h.
60919         (main): Use NaNd instead of NAN.
60920         * modules/trunc-tests (Files): Add tests/nan.h.
60921
60922         * tests/test-roundf1.c: Include nan.h.
60923         (main): Use NaNf instead of NAN.
60924         * modules/roundf-tests (Files): Add tests/nan.h.
60925
60926         * tests/test-truncf1.c: Include nan.h.
60927         (main): Use NaNf instead of NAN.
60928         * modules/truncf-tests (Files): Add tests/nan.h.
60929
60930         * tests/test-ceilf1.c: Include nan.h.
60931         (main): Use NaNf instead of NAN.
60932         * modules/ceilf-tests (Files): Add tests/nan.h.
60933
60934         * tests/test-floorf1.c: Include nan.h.
60935         (main): Use NaNf instead of NAN.
60936         * modules/floorf-tests (Files): Add tests/nan.h.
60937
60938         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60939         (main): Use NaNf instead of NAN.
60940         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60941
60942         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60943         (main): Use NaNd instead of NAN.
60944         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60945
60946         * tests/test-frexp.c: Include nan.h.
60947         (main): Use NaNd instead of NAN.
60948         * modules/frexp-tests (Files): Add tests/nan.h.
60949
60950         * lib/isnan.c: Don't include <math.h>.
60951         (FUNC): Don't use NAN macro.
60952         * modules/isnand-nolibm (Depends-on): Remove math.
60953         * modules/isnanf-nolibm (Depends-on): Remove math.
60954         * modules/isnanl (Depends-on): Remove math.
60955         * modules/isnanl-nolibm (Depends-on): Remove math.
60956
60957         * tests/nan.h: New file.
60958
60959 2008-04-01  Eric Blake  <ebb9@byu.net>
60960
60961         Fix typos.
60962         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60963         values to be the right type.
60964
60965         For now, cater to gnulib strtod inaccuracies.
60966         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60967         fractional results.  While not as nice from a QoI perspective, it
60968         is a quicker patch than correctly implementing decimal to binary
60969         rounding.
60970
60971 2008-03-31  Eric Blake  <ebb9@byu.net>
60972
60973         Guarantee a definition of NAN.
60974         * lib/math.in.h (NAN): Define if missing.
60975         * tests/test-math.c (main): Test it.
60976         * doc/posix-headers/math.texi (math.h): Document this.
60977         * lib/isnan.c (rpl_isnand): Use it.
60978         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60979         * tests/test-floorf1.c (NaN): Likewise.
60980         * tests/test-frexp.c (NaN): Likewise.
60981         * tests/test-isnand.c (NaN): Likewise.
60982         * tests/test-isnanf.c (NaN): Likewise.
60983         * tests/test-round1.c (NaN): Likewise.
60984         * tests/test-roundf1.c (NaN): Likewise.
60985         * tests/test-snprintf-posix.h (NaN): Likewise.
60986         * tests/test-sprintf-posix.h (NaN): Likewise.
60987         * tests/test-trunc1.c (NaN): Likewise.
60988         * tests/test-truncf1.c (NaN): Likewise.
60989         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60990         * tests/test-vasprintf-posix.c (NaN): Likewise.
60991         * modules/isnand-nolibm (Depends-on): Add math.
60992         * modules/isnanf-nolibm (Depends-on): Likewise.
60993         * modules/isnanl (Depends-on): Likewise.
60994         * modules/isnanl-nolibm (Depends-on): Likewise.
60995         * modules/snprintf-posix-tests (Depends-on): Likewise.
60996         * modules/sprintf-posix-tests (Depends-on): Likewise.
60997         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60998         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60999         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61000         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61001
61002 2008-03-31  Bruno Haible  <bruno@clisp.org>
61003
61004         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61005         * doc/posix-functions/strtod.texi: Likewise.
61006
61007 2008-03-31  Bruno Haible  <bruno@clisp.org>
61008
61009         * tests/test-strtod.c (main): Don't use C99 syntax.
61010
61011 2008-03-31  Bruno Haible  <bruno@clisp.org>
61012
61013         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61014         Reported by Eric Blake.
61015
61016 2008-03-31  Jim Meyering  <meyering@redhat.com>
61017
61018         Don't compare actual signbit return values.
61019         * tests/test-strtod.c (main): Rather, compare only their
61020         zero/non-zero nature.
61021
61022 2008-03-31  Eric Blake  <ebb9@byu.net>
61023
61024         More strtod documentation.
61025         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61026         failures as distinct bugs.
61027
61028 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61031         Problem reported by Erik Benada in
61032         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61033
61034 2008-03-30  Bruno Haible  <bruno@clisp.org>
61035
61036         * tests/test-strtod.c: Add comments about which assertion fails on which
61037         platform.
61038         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61039
61040 2008-03-30  Eric Blake  <ebb9@byu.net>
61041
61042         Test signbit behavior on zeros.
61043         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61044         (test_signbitd, test_signbitl): Likewise.
61045
61046         More strtod touchups.
61047         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61048         sign of negative underflow, for now.  Use .5, not .1.
61049         * doc/posix-functions/strtod.texi (strtod): Mention these
61050         limitations.
61051         Reported by Jim Meyering.
61052
61053 2008-03-30  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61056         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61057
61058 2008-03-30  Bruno Haible  <bruno@clisp.org>
61059
61060         Avoid failure when attempting to return empty iconv results on some
61061         platforms.
61062         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61063         allocation, don't report ENOMEM when the resulting string is empty.
61064
61065 2008-03-30  Bruno Haible  <bruno@clisp.org>
61066
61067         Fix buffer overrun.
61068         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61069         Don't consider the width for tmp_length. Check count against tmp_length
61070         before doing the padding. Ensure enough allocation during padding.
61071
61072 2008-03-30  Eric Blake  <ebb9@byu.net>
61073
61074         strtod touchups.
61075         * lib/strtod.c (strtod): Avoid compiler warnings.
61076         Reported by Jim Meyering.
61077
61078 2008-03-30  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61081         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61082         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61083         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61084         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61085         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61086         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61087         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61088
61089         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61090         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61091         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61092         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61093         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61094         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61095         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61096         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61097
61098         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61099         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61100         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61101         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61102         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61103         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61104         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61105         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61106
61107         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61108         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61109
61110         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61111         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61112
61113         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61114         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61115
61116         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61118         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61119
61120         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61122         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61123
61124         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61126         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61127
61128         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61130         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61131
61132         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61133         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61135         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61136         (Depends-on): Add EOVERFLOW.
61137         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61138         (Depends-on): Add EOVERFLOW.
61139         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61140         (Depends-on): Add EOVERFLOW.
61141         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61142         (Depends-on): Add EOVERFLOW.
61143         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61144         (Depends-on): Add EOVERFLOW.
61145         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61146         (Depends-on): Add EOVERFLOW.
61147         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61148         (Depends-on): Add EOVERFLOW.
61149         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61150         (Depends-on): Add EOVERFLOW.
61151
61152         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61154         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61155
61156         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61157         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61158         * modules/snprintf (Depends-on): Add EOVERFLOW.
61159
61160         * lib/poll.c (EOVERFLOW): Remove fallback.
61161         * modules/poll (Depends-on): Add EOVERFLOW.
61162
61163         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61164         * modules/getugroups (Depends-on): Add EOVERFLOW.
61165
61166         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61167         * modules/getdelim (Depends-on): Add EOVERFLOW.
61168
61169         * lib/ftell.c (EOVERFLOW): Remove fallback.
61170         * modules/ftell (Depends-on): Add EOVERFLOW.
61171
61172         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61174         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61175
61176         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61177
61178         * modules/EOVERFLOW-tests: New file.
61179         * tests/test-EOVERFLOW.c: New file.
61180
61181         * modules/EOVERFLOW: New file.
61182         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61183
61184 2008-03-30  Bruno Haible  <bruno@clisp.org>
61185
61186         Fix bug introduced on 2007-06-10.
61187         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61188         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61189
61190 2008-03-30  Bruno Haible  <bruno@clisp.org>
61191
61192         Improve freadseek's efficiency after ungetc.
61193         * lib/freadseek.c: Include freadahead.h.
61194         (freadptrinc): New function, extracted from freadseek.
61195         (freadseek): Use it in a loop. Use freadahead to determine the number
61196         of loop iterations.
61197         * modules/freadseek (Depends-on): Add freadahead.
61198         (configure.ac): Require AC_C_INLINE.
61199
61200 2008-03-30  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/freadseek.c (freadseek): Don't ignore the return value of
61203         freadptr.
61204
61205 2008-03-29  Eric Blake  <ebb9@byu.net>
61206
61207         Add hex float support.
61208         * modules/strtod (Depends-on): Add c-ctype.
61209         (Link): Mention POW_LIB.
61210         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61211         whitespace between 'e' and exponent.
61212         * tests/test-strtod.c (main): Enable hex float tests.
61213         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61214         now provides.
61215
61216         Document various strtod bugs, with some fixes.
61217         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61218         "-0x", "inf", "nan", and hex constants.
61219         * doc/posix-functions/atof.texi (atof): Likewise.
61220         * modules/stdlib (Makefile.am): Support strtod.
61221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61222         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61223         detect additional strtod bugs.
61224         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61225         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61226         bool where appropriate.  Parse 'inf' and 'nan'.
61227         * tests/test-strtod.c: New file.
61228         * modules/strtod (Depends-on): Add stdbool, stdlib.
61229         (configure.ac): Turn on module indicator.
61230         * modules/strtod-tests: New module.
61231
61232 2008-03-29  Eric Blake  <ebb9@byu.net>
61233
61234         Fix ftell on mingw.
61235         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61236         * modules/ftell-tests (Depends-on): Add binary-io.
61237         * modules/ftello-tests (Depends-on): Likewise.
61238         * tests/test-ftell.c (main): Enhance test to cover behavior after
61239         ungetc.  Enforce binary mode.
61240         * tests/test-ftello.c (main): Likewise.
61241
61242         Pass test-freadseek on cygwin.
61243         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61244         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61245         ungetc buffer.
61246
61247         * tests/test-fflush2.c (main): Fix typo.
61248
61249 2008-03-29  Bruno Haible  <bruno@clisp.org>
61250
61251         * tests/test-fflush2.c (main): Temporarily disable the contents of
61252         this test.
61253         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61254         Reported by Eric Blake.
61255
61256 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61257
61258         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61259         (GC_SHA224_DIGEST_SIZE): Add.
61260
61261         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61262         (gc_hash_digest_length): Likewise.
61263         (gc_hash_buffer): Likewise.
61264
61265 2008-03-25  Bruno Haible  <bruno@clisp.org>
61266
61267         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61268         detail which gettext release to use.
61269         Reported by Simon Josefsson.
61270
61271 2008-03-26  Jim Meyering  <meyering@redhat.com>
61272
61273         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61274         * modules/gnumakefile (clean-GNUmakefile): Also, use
61275         test ... && ... || : syntax rather than if-then ... fi.
61276
61277         gnumakefile: Don't double-quote-expand $(VPATH) value.
61278         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61279
61280 2008-03-24  Eric Blake  <ebb9@byu.net>
61281
61282         Alter GNUmakefile to install into top directory.
61283         * modules/maintainer-makefile: Split, and add dependency...
61284         * modules/gnumakefile: to this new module.
61285         * build-aux/GNUmakefile: Move...
61286         * top/GNUmakefile: ...here.
61287         * build-aux/maint.mk: Move...
61288         * top/maint.mk: ...here.
61289         * MODULES.html.sh (Support for maintaining...): Document new
61290         module.
61291
61292 2008-03-23  Bruno Haible  <bruno@clisp.org>
61293
61294         * gnulib-tool: New options --vc-files, --no-vc-files.
61295         (func_usage): Document them.
61296         (vc_files): New variable.
61297         (func_import): Consider vc_files.
61298         (func_create_testdir): Set vc_files to empty.
61299         Suggested by Jim Meyering and Karl Berry.
61300
61301 2008-03-23  Bruno Haible  <bruno@clisp.org>
61302
61303         Fix regex compilation error on HP-UX 11.
61304         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61305         * modules/regex (Files): Add m4/mbstate_t.m4.
61306         Reported by Ton Voon <ton.voon@altinity.com>.
61307
61308 2008-03-23  Bruno Haible  <bruno@clisp.org>
61309
61310         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61311
61312 2008-03-23  Eric Blake  <ebb9@byu.net>
61313             Bruno Haible  <bruno@clisp.org>
61314
61315         Install files from top/ in the destination directory.
61316         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61317         augmentation also for the files from top/.
61318         (func_import, func_create_testdir): Rewrite file names:
61319         top/filename -> filename.
61320
61321 2008-03-23  Bruno Haible  <bruno@clisp.org>
61322
61323         Tweak "gnulib --version" output.
61324         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61325
61326 2008-03-23  Bruno Haible  <bruno@clisp.org>
61327
61328         Tweak "gnulib --version" output.
61329         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61330         rather than contents of ChangeLog, when possible.
61331
61332 2008-03-21  Eric Blake  <ebb9@byu.net>
61333
61334         More --version tweaks.
61335         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61336         date of last ChangeLog entry.
61337
61338 2008-03-21  Jim Meyering  <meyering@redhat.com>
61339
61340         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61341
61342 2008-03-20  Eric Blake  <ebb9@byu.net>
61343
61344         VPATH fix.
61345         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61346
61347 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61348
61349         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61350         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61351
61352 2008-03-20  Eric Blake  <ebb9@byu.net>
61353
61354         Sync GNUmakefile with coreutils.
61355         * build-aux/GNUmakefile (have-Makefile): Rename...
61356         (_have-Makefile): ...to this, for namespace consideration.
61357         (GNUmakefile.cfg): Include, if present.
61358         (_autoreconf): Define a default.
61359         (_is-dist-target): New rule for rebuilds to pick up intra-release
61360         version.
61361         (maint-cfg.mk): Rename...
61362         (cfg.mk): ...to this.
61363
61364 2008-03-18  Jim Meyering  <meyering@redhat.com>
61365
61366         New script and module: mktempd
61367         * MODULES.html.sh (maint+release support): Add mktempd.
61368         * build-aux/mktempd: New file.
61369         * modules/mktempd: New file.
61370
61371 2008-03-15  Jim Meyering  <meyering@redhat.com>
61372
61373         Undo last change.
61374         * lib/sha1.c, lib/md5.c: 63 != ~63.
61375         Reported by Andreas Schwab.
61376
61377         sha1.c, md5.c: Hoist a redundant expression.
61378         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61379         "ctx->buflen" only once, before calling *_process_block.
61380         * lib/md5.c (md5_process_bytes): Likewise.
61381
61382 2008-03-14  Eric Blake  <ebb9@byu.net>
61383
61384         Bump copyright year in files generated by gnulib-tool.
61385         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61386         gnulib-tool, rather than hard-coding it.
61387
61388         Fix 'gnulib-tool --version' output to work with git.
61389         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61390         (startup): ...here.
61391         (func_version): Use it to invoke git-version-gen, rather than
61392         relying on CVS keyword expansion.  Modernize wording.
61393         (cvsdatestamp, last_checkin_date, version): Kill unused
61394         variables.
61395
61396 2008-03-12  Jim Meyering  <meyering@redhat.com>
61397
61398         Recognize optional cast of the argument to free.
61399         * build-aux/useless-if-before-free: Update regexps.
61400
61401         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61402
61403 2008-03-11  Bruno Haible  <bruno@clisp.org>
61404
61405         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61406         by a single package.
61407         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61408         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61409         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61410         Reported by Sam Steingold <sds@gnu.org>.
61411
61412 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61413
61414         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61415         repositories.
61416
61417 2008-03-11  Bruno Haible  <bruno@clisp.org>
61418
61419         Avoid conflicts between local macro definitions.
61420         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61421         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61422
61423 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61424             Bruno Haible  <bruno@clisp.org>
61425
61426         Make va_copy work with some version of xlc on AIX 5.1.
61427         * lib/stdarg.in.h: New file.
61428         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61429         On AIX, use a <stdarg.h> file substitute.
61430         * modules/stdarg (Files): Add lib/stdarg.in.h.
61431         (Depends-on): Add include_next.
61432         (Makefile.am): Build a stdarg.h substitute if requested.
61433         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61434
61435 2008-03-10  Bruno Haible  <bruno@clisp.org>
61436
61437         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61439         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61440
61441 2008-03-10  Bruno Haible  <bruno@clisp.org>
61442
61443         * modules/stdlib (Depends-on): Add include_next, remove
61444         absolute-header.
61445
61446 2008-03-09  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/freadahead.h (freadahead): Document more precisely.
61449         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61450         the sum of both buffer sizes.
61451         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61452         * NEWS: Document the change.
61453
61454 2008-03-09  Bruno Haible  <bruno@clisp.org>
61455
61456         Extend freadptr to return also the buffer size.
61457         * lib/freadptr.h (freadptr): Add sizep argument.
61458         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61459         (freadptr): Add sizep argument. Determine buffer size like freadahead
61460         does.
61461         * tests/test-freadptr.c: Don't include freadahead.h.
61462         (main): Adapt for new calling convention of freadptr.
61463         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61464         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61465         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61466         tests/test-freadptr2.sh.
61467         (Depends): Remove freadahead.
61468         (TESTS): Add test-freadptr2.sh.
61469         (check_PROGRAMS): Add test-freadptr2.
61470
61471 2008-03-09  Bruno Haible  <bruno@clisp.org>
61472
61473         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61474         Report and solution by Simon Josefsson.
61475
61476 2008-03-06  Bruno Haible  <bruno@clisp.org>
61477
61478         Make fflush after ungetc work on BSD platforms.
61479         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61480         * tests/test-fflush2.c: New file.
61481         * tests/test-fflush2.sh: New file.
61482         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61483         tests/test-fflush2.c.
61484         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61485         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61486
61487 2008-03-06  Eric Blake  <ebb9@byu.net>
61488
61489         Likewise for ftello.
61490         * modules/ftello (Dependencies): Add extensions.
61491         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61492
61493 2008-03-06  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/fseeko (Dependencies): Add extensions.
61496         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61497         Needed on glibc systems.
61498
61499 2008-03-06  Bruno Haible  <bruno@clisp.org>
61500
61501         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61502         email address.
61503         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61504
61505 2008-03-06  Bruno Haible  <bruno@clisp.org>
61506
61507         * users.txt: Add libgnupdf.
61508
61509 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61510
61511         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61512         (Header File Substitutes, Function Substitutes,
61513         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61514         (Build robot for gnulib): Fix typo.
61515
61516 2008-03-06  Bruno Haible  <bruno@clisp.org>
61517
61518         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61519         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61520
61521 2008-03-06  Bruno Haible  <bruno@clisp.org>
61522
61523         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61524         * doc/gnulib.texi: Include it.
61525
61526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61527
61528         * modules/func (License): Change license to unlimited; there was
61529         no LGPL parts in the module anyway.
61530
61531 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61532
61533         * modules/__func__: Renamed to modules/func.
61534         * modules/__func__-tests: Renamed to modules/func-tests.
61535         * tests/test-__func__.c: Renamed to tests/test-func.c.
61536         * m4/__func__.m4: Renamed to m4/func.m4.
61537         * doc/gnulib.texi (__func__): Section renamed to func.
61538         Suggested by Eric Blake <ebb9@byu.net>.
61539
61540 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61541
61542         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61543         about __func__.  Make example self-contained.  Suggested by Eric
61544         Blake <ebb9@byu.net>.
61545
61546         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61547         Suggested by Eric Blake <ebb9@byu.net>.
61548
61549 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61550
61551         * modules/__func__: New file.
61552         * modules/__func__-tests: New file.
61553         * tests/test-__func__.c: New file.
61554         * m4/__func__.m4: New file.
61555         * doc/gnulib.texi (__func__): Document __func__ module.
61556
61557 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61558
61559         * modules/byteswap (License): Re-license as LGPLv2+.
61560
61561 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61562
61563         * doc/Makefile: Add pdf target.
61564
61565 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61566
61567         * modules/inline (License): Use 'unlimited', since there are only
61568         *.m4 files in this module.
61569
61570 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61571             Bruno Haible  <bruno@clisp.org>
61572
61573         Add support for HP C 7.1 on OpenVMS 8.3.
61574         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61575
61576 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61577
61578         Update VMS specifics.
61579         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61580
61581 2008-03-02  Jim Meyering  <meyering@redhat.com>
61582
61583         Remove the last dependency on the "free" module.
61584         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61585         Reported by Bob Proulx.
61586
61587         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61588
61589         Remove useless "if" tests before free.  Deprecate "free" module.
61590         * doc/posix-functions/free.texi: Mention that this
61591         module is no longer useful.
61592         * modules/free (Notice): Say this module is obsolete.
61593         * modules/readutmp (Depends-on): Remove free.
61594         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61595         * lib/putenv.c (putenv): Likewise.
61596         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61597         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61598         * tests/test-c-strcasestr.c (main): Likewise.
61599         * tests/test-c-strstr.c (main): Likewise.
61600         * tests/test-mbscasestr1.c (main): Likewise.
61601         * tests/test-mbscasestr2.c (main): Likewise.
61602         * tests/test-mbsstr1.c (main): Likewise.
61603         * tests/test-mbsstr2.c (main): Likewise.
61604         * tests/test-memmem.c (main): Likewise.
61605         * tests/test-strcasestr.c (main): Likewise.
61606         * tests/test-striconv.c (main): Likewise.
61607         * tests/test-striconveh.c (main): Likewise.
61608         * tests/test-striconveha.c (main): Likewise.
61609         * tests/test-strstr.c (main): Likewise.
61610
61611         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61612
61613         bootstrap: sync from coreutils again
61614         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61615
61616 2008-03-01  Jim Meyering  <meyering@redhat.com>
61617
61618         bootstrap: sync from coreutils
61619         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61620         also when the target doesn't exist.
61621
61622 2008-03-01  Eric Blake  <ebb9@byu.net>
61623
61624         Fix bugs in last patch.
61625         * lib/memchr2.c (memchr2): Fix typo.
61626         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61627         extension.
61628         Reported by Bruce Korb.
61629
61630         New module 'memchr2'.
61631         * modules/memchr2: New file.
61632         * modules/memchr2-tests: Likewise.
61633         * lib/memchr2.h: Likewise.
61634         * lib/memchr2.c: Likewise, based on memchr.c.
61635         * tests/test-memchr2.c: New test.
61636         * MODULES.html.sh (String handling): Add memchr2.
61637
61638 2008-02-29  Bruno Haible  <bruno@clisp.org>
61639
61640         * modules/freadseek-tests: New file.
61641         * tests/test-freadseek.sh: New file.
61642         * tests/test-freadseek.c: New file.
61643
61644         New module 'freadseek'.
61645         * modules/freadseek: New file.
61646         * lib/freadseek.h: New file.
61647         * lib/freadseek.c: New file.
61648         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61649
61650 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61651
61652         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61653         wydawca.
61654
61655         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61656         program_invocation_name and program_invocation_short_name are
61657         present.
61658
61659 2008-02-28  Bruno Haible  <bruno@clisp.org>
61660
61661         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61662         * tests/test-freadptr.sh: Also test non-seekable stdin.
61663
61664 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61665
61666         * build-aux/bootstrap (source_base, m4_base)
61667         (doc_base, tests_base): New variables.
61668         (gnulib_tool_options): Do not hardcode base directories, use
61669         the above variables instead.
61670
61671 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61672
61673         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61674
61675 2008-02-28  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/freadptr-tests: New file.
61678         * tests/test-freadptr.sh: New file.
61679         * tests/test-freadptr.c: New file.
61680
61681         New module 'freadptr'.
61682         * modules/freadptr: New file.
61683         * lib/freadptr.h: New file.
61684         * lib/freadptr.c: New file.
61685         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61686
61687 2008-02-26  Karl Berry  <karl@freefriends.org>
61688
61689         Sync from Libtool:
61690         * libltdl/argz.c (argz_add, argz_count): New functions.
61691         * libltdl/argz.in.h: Declare them.
61692         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61693
61694 2008-02-22  Bruno Haible  <bruno@clisp.org>
61695
61696         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61697         is a pointer type.  Needed for HP-UX 10.
61698         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61699         * doc/posix-functions/gmtime_r.texi: Likewise.
61700         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61701
61702 2008-02-24  Bruno Haible  <bruno@clisp.org>
61703
61704         * modules/environ-tests: New file.
61705         * tests/test-environ.c: New file.
61706
61707         New module 'environ'.
61708         * modules/environ: New file.
61709         * lib/unistd.in.h (environ): New declaration.
61710         * m4/environ.m4: New file.
61711         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61712         after use.
61713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61714         HAVE_DECL_ENVIRON.
61715         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61716         HAVE_DECL_ENVIRON.
61717         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61718         wrong claim that 'environ' is missing on some systems.
61719         * modules/execute (Depends-on): Add environ.
61720         * lib/execute.c (environ): Remove fallback declaration.
61721         * modules/pipe (Depends-on): Add environ.
61722         * lib/pipe.c (environ): Remove fallback declaration.
61723         * modules/setenv (Depends-on): Add environ.
61724         * lib/setenv.c (environ): Remove fallback declaration.
61725         * modules/unsetenv (Depends-on): Add environ.
61726         * lib/unsetenv.c (environ): Remove fallback declaration.
61727         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61728         m4/environ.m4.
61729         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61730         (gl_PREREQ_UNSETENV): Likewise.
61731
61732 2008-02-24  Bruno Haible  <bruno@clisp.org>
61733
61734         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61735
61736 2008-02-20  Bob Proulx  <bob@proulx.com>
61737
61738         Enable use of older two part flavor 'git describe'.
61739         * build-aux/git-version-gen: If using the older two part flavor of
61740         git version then recreate the third part now present in the
61741         newer three part flavor of git describe.
61742
61743 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61744
61745         * lib/fts.c (fts_build): Typo correction to comment.
61746
61747 2008-02-17  Bruno Haible  <bruno@clisp.org>
61748
61749         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61750         generating no-op conflicts.
61751
61752 2008-02-17  Bruno Haible  <bruno@clisp.org>
61753
61754         Speed up by 10%.
61755         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61756         result_entries, rather than an index-based loop.
61757
61758 2008-02-17  Bruno Haible  <bruno@clisp.org>
61759
61760         Speed up by 25%.
61761         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61762         'hashcode_cached'.
61763         (entry_create): New function.
61764         (entry_hashcode): Use the cached hashcode if possible.
61765         (read_changelog_file, try_split_merged_entry): Use entry_create.
61766
61767 2008-02-17  Bruno Haible  <bruno@clisp.org>
61768
61769         Speed up from O(n^2) to O(n) for long ChangeLog files.
61770         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61771         (read_changelog_file): Change implementation of entries_reversed list
61772         to rbtreehash.
61773         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61774
61775 2008-02-17  Bruno Haible  <bruno@clisp.org>
61776
61777         New option --split-merged-entry.
61778         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61779         (find_paragraph_end, try_split_merged_entry): New functions.
61780         (long_options): Add option --split-merged-entry.
61781         (usage): Document option --split-merged-entry.
61782         (main): Implement option --split-merged-entry.
61783         Reported by Eric Blake.
61784
61785 2008-02-17  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/git-merge-changelog.c: Include c-strstr.h.
61788         (main): Support the "git pull --rebase" situation.
61789         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61790         Reported by Eric Blake.
61791
61792 2008-02-16  Eric Blake  <ebb9@byu.net>
61793
61794         Avoid doubling \ in common case of "c-maybe" quoting style.
61795         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61796         eliding outer quotes.
61797         * lib/quotearg.h: Document this.
61798         * tests/test-quotearg.c (result_strings, inputs, results_g)
61799         (flag_results, locale_results): Test it by adding a new string to
61800         each test group.
61801         (compare_strings): Test new string.
61802
61803 2008-02-13  Eric Blake  <ebb9@byu.net>
61804
61805         Avoid trigraph quoting in default output.
61806         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61807         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61808         unless explicitly requested.
61809         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61810
61811 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61812
61813         Don't rely on signed integer overflowing to negative value.
61814         * lib/getugroups.c (getugroups): Include <limits.h>.
61815         Instead, compare against INT_MAX, and increment only if the test passes.
61816
61817 2008-02-13  Jim Meyering  <meyering@redhat.com>
61818         and Eric Blake  <ebb9@byu.net>
61819
61820         Avoid shadowing warning and compile errors on Linux.
61821         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61822         forwarding macros on Linux.
61823         (dcgettext): Define a stub, for Linux.
61824         (results_g, main): Avoid warnings.
61825
61826 2008-02-12  Eric Blake  <ebb9@byu.net>
61827
61828         Silence warning in last patch.
61829         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61830
61831         Quotearg part 4: add tests, fix c-maybe colon quoting.
61832         * lib/quotearg.h: Improve documentation.
61833         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61834         escapes when adding outer quotes.  When quoting trigraphs, use
61835         valid C notation.  When quoting NUL, omit extra characters if next
61836         character is not digit.  Alter prototype.
61837         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61838         callers.
61839         * modules/quotearg-tests: New module.
61840         * tests/test-quotearg.c: New test.
61841
61842 2008-02-07  Eric Blake  <ebb9@byu.net>
61843
61844         Quotearg part 3: add flag to control outer quote elision.
61845         * lib/quotearg.h (c_maybe_quoting_style): New style.
61846         (enum quoting_flags): Better documentation of flags.
61847         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61848         c-maybe style.
61849         (quotearg_buffer_restyled): Handle new flag to elide outer
61850         quotes.
61851
61852         Quotearg part 2: add flag that can control NUL elision.
61853         * lib/quotearg.h (set_quoting_flags): New prototype.
61854         * lib/quotearg.c (struct quoting_options): Add flag field.
61855         (set_quoting_flags): New function.
61856         (quotearg_buffer_restyled): Add flags parameter.
61857         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61858         (quotearg_n_options): Set the flag, since length cannot be
61859         returned.
61860         (quoting_options_from_style): Default flags correctly.
61861
61862         Quotearg part 1: more wrappers, restore quotearg_char state.
61863         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61864         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61865         (quotearg_colon_mem): New wrappers.
61866         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61867         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61868         functions.
61869         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61870         (quotearg_colon_mem): New functions.
61871
61872 2008-02-11  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61875         library in the current directory: it does not work with parallel make.
61876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61877
61878 2008-02-11  Bruno Haible  <bruno@clisp.org>
61879
61880         * .gitattributes: New file.
61881
61882 2008-02-11  Jim Meyering  <meyering@redhat.com>
61883
61884         useless-if-before-free: Fix reversed exit values.
61885         * build-aux/useless-if-before-free: Use correct values
61886         for EXIT_MATCH and EXIT_NO_MATCH.
61887
61888         * build-aux/useless-if-before-free: Close stdout carefully.
61889
61890 2008-02-10  Bruno Haible  <bruno@clisp.org>
61891
61892         New module 'git-merge-changelog'.
61893         * modules/git-merge-changelog: New file.
61894         * lib/git-merge-changelog.c: New file.
61895
61896 2008-02-10  Jim Meyering  <meyering@redhat.com>
61897
61898         useless-if-before-free: New option: --list (-l).
61899
61900         useless-if-before-free: Don't exit immediately upon open failure.
61901         * build-aux/useless-if-before-free: Exit 2 for errors.
61902         Upon failure to open a file, don't exit immediately.
61903         Rather, just warn and continue with any remaining files.
61904
61905 2008-02-10  Bruno Haible  <bruno@clisp.org>
61906
61907         New abstract list operation 'node_set_value'.
61908         * lib/gl_list.h (gl_list_node_set_value): New function.
61909         (struct gl_list_implementation): New field node_set_value.
61910         * lib/gl_list.c (gl_list_node_set_value): New function.
61911         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61912         (gl_array_list_implementation): Update.
61913         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61914         (gl_carray_list_implementation): Update.
61915         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61916         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61917         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61918         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61919         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61920         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61921         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61922         Update.
61923         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61924         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61925         (gl_sublist_list_implementation): Update.
61926
61927 2008-02-10  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61930         Needed when ELEMENT is #defined to 'some_type *'.
61931
61932 2008-02-10  Jim Meyering  <meyering@redhat.com>
61933
61934         New script and module: useless-if-before-free
61935         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61936         * build-aux/useless-if-before-free: New file.
61937         * modules/useless-if-before-free: New file.
61938
61939         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61940
61941         xstrtol_error: Fix typo.
61942         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61943         s/exit_failure/exit_status/.
61944
61945 2008-02-09  Jim Meyering  <meyering@redhat.com>
61946
61947         New script and module: gitlog-to-changelog
61948         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61949         * modules/gitlog-to-changelog: New file.
61950         * build-aux/gitlog-to-changelog: New file.
61951
61952 2008-02-08  Jim Meyering  <meyering@redhat.com>
61953
61954         Avoid two "parameter unused" warnings.
61955         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61956         Mark "st" as used.
61957
61958         Use "git COMMAND", not "git-COMMAND".
61959         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61960         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61961         * build-aux/git-version-gen: Use "git status", not "git-status".
61962
61963 2008-02-07  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61966         Avoids a crash on Windows Vista.
61967         Reported by Adam Strzelecki <ono@java.pl> via
61968         Simon Josefsson <simon@josefsson.org>.
61969
61970 2008-02-06  Bruno Haible  <bruno@clisp.org>
61971
61972         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61973         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61974         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61976         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61978         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61979         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61987         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61988         left-adjust flag.
61989         * tests/test-snprintf-posix.h (test_function): Likewise.
61990         * tests/test-sprintf-posix.h (test_function): Likewise.
61991         * tests/test-vasprintf-posix.c (test_function): Likewise.
61992         * doc/posix-functions/fprintf.texi: Update.
61993         * doc/posix-functions/printf.texi: Update.
61994         * doc/posix-functions/snprintf.texi: Update.
61995         * doc/posix-functions/sprintf.texi: Update.
61996         * doc/posix-functions/vfprintf.texi: Update.
61997         * doc/posix-functions/vprintf.texi: Update.
61998         * doc/posix-functions/vsnprintf.texi: Update.
61999         * doc/posix-functions/vsprintf.texi: Update.
62000         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62001
62002 2008-02-06  Bruno Haible  <bruno@clisp.org>
62003
62004         Fix bug introduced on 2008-01-26.
62005         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62006
62007 2008-02-06  Bruno Haible  <bruno@clisp.org>
62008
62009         Fix bug introduced on 2007-06-10.
62010         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62011         !NEED_PRINTF_FLAG_ZERO.
62012
62013 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62014
62015         getloadavg: use libperfstat on AIX5
62016         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62017
62018 2008-02-03  Bruno Haible  <bruno@clisp.org>
62019
62020         * lib/diffseq.h: Add comments about required #includes.
62021         Reported by Michael Biggs <gnulib@doubleplum.net>.
62022
62023 2008-02-01  Bruno Haible  <bruno@clisp.org>
62024
62025         * users.txt: Add gnuit.
62026
62027 2008-01-31  Bruno Haible  <bruno@clisp.org>
62028
62029         * lib/md4.c (set_uint32): Mark as inline.
62030         * lib/md5.c (set_uint32): Likewise.
62031         * lib/sha1.c (set_uint32): Likewise.
62032         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62033         * m4/md5.m4 (gl_MD5): Likewise.
62034         * m4/sha1.m4 (gl_SHA1): Likewise.
62035
62036 2008-01-31  Jim Meyering  <meyering@redhat.com>
62037
62038         Use "sizeof VAR", rather than a literal "4".
62039         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62040         * lib/md4.c (md4_read_ctx): Likewise.
62041         * lib/sha1.c (sha1_read_ctx): Likewise.
62042
62043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62044
62045         * tests/test-sha1.c: New file, based on test-md5.c.
62046
62047         * modules/crypto/sha1-tests: New file.
62048
62049 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62050
62051         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62052
62053 2008-01-31  Jim Meyering  <meyering@redhat.com>
62054
62055         Prefer "sizeof v" over the equivalent "4".
62056         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62057         * lib/md5.c (set_uint32): Likewise.
62058         * lib/sha1.c (set_uint32): Likewise.
62059
62060 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62061
62062         * lib/sha1.c (set_uint32): Mark function as static.
62063
62064 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62065
62066         md2: clarify comments to say that alignment is not required.
62067         * lib/md2.h: Remove warning about alignment in comment.
62068         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62069         never been required.
62070
62071 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62072
62073         md4: adapt alignment constraint fix from sha1.
62074         * lib/md4.c (set_uint32): New function, from sha1.c
62075         (md4_read_ctx): Use it.
62076         (md4_finish_ctx): Doc fix.
62077         * lib/md4.h: Doc fix.
62078
62079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62080
62081         md5: adapt alignment constraint fix from sha1.
62082         * lib/md5.c (set_uint32): New function, from sha1.c
62083         (md5_read_ctx): Use it.
62084         (md5_finish_ctx): Doc fix.
62085         * lib/md5.h: Doc fix.
62086
62087 2008-01-30  Peter Palfrader  <weasel@debian.org>
62088
62089         sha1: remove the result buffer alignment constraint
62090         * lib/sha1.c (set_uint32): New function.
62091         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62092         constraint.
62093         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62094         * lib/sha1.h: Likewise.
62095
62096 2008-01-30  Andreas Schwab  <schwab@suse.de>
62097             Bruno Haible  <bruno@clisp.org>
62098
62099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62100         correct definition of LDBL_MIN_EXP.
62101
62102 2008-01-30  Karl Berry  <karl@gnu.org>
62103
62104         * config/srclist-update: try to preserve x bit on updates.
62105         * config/srclistvars.sh: update for karl.
62106
62107 2008-01-29  Jim Meyering  <meyering@redhat.com>
62108
62109         vasnprintf.c: Avoid warning about unused label
62110         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62111         "overflow" label definition and associated code with the
62112         same cpp condition that guards the sole use of that label.
62113
62114 2008-01-26  Bruno Haible  <bruno@clisp.org>
62115
62116         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62117         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62118         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62119         * lib/isnanl-nolibm.h (isnanl): Likewise.
62120         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62121
62122 2008-01-26  Bruno Haible  <bruno@clisp.org>
62123
62124         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62125         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62126
62127 2008-01-26  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62130         GCC >= 4.0 built-in.
62131         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62132
62133 2008-01-26  Bruno Haible  <bruno@clisp.org>
62134
62135         Rename isnan, applicable to 'double' only, to isnand.
62136         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62137         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62138         (configure.ac): Update.
62139         (Include): Replace "isnan.h" with "isnand.h".
62140         * m4/isnand.m4: Renamed from m4/isnan.m4.
62141         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62142         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62143         instead of isnan.c.
62144         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62145         instead of HAVE_ISNAN_IN_LIBC.
62146         (isnand): Renamed from isnan.
62147         * lib/isnand.c: New file.
62148         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62149         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62150         (Makefile.am): Update.
62151         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62152         Include isnand.h instead of isnan.h.
62153         (main): Test isnand instead of isnan.
62154         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62155         isnan-nolibm.
62156         * modules/frexp (Depends-on): Likewise.
62157         * modules/frexp-tests (Depends-on): Likewise.
62158         * modules/frexp-nolibm (Depends-on): Likewise.
62159         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62160         * modules/isfinite (Depends-on): Likewise.
62161         * modules/round-tests (Depends-on): Likewise.
62162         * modules/signbit (Depends-on): Likewise.
62163         * modules/signbit-tests (Depends-on): Likewise.
62164         * modules/snprintf-posix (Depends-on): Likewise.
62165         * modules/sprintf-posix (Depends-on): Likewise.
62166         * modules/trunc-tests (Depends-on): Likewise.
62167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62174         * modules/vasnprintf-posix (Depends-on): Likewise.
62175         * modules/vasprintf-posix (Depends-on): Likewise.
62176         * modules/vfprintf-posix (Depends-on): Likewise.
62177         * modules/vsnprintf-posix (Depends-on): Likewise.
62178         * modules/vsprintf-posix (Depends-on): Likewise.
62179         * lib/frexp.c: Include isnand.h instead of isnan.h.
62180         (ISNAN): Set to isnand instead of isnan.
62181         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62182         (gl_isfinited): Use isnand instead of isnan.
62183         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62184         (gl_signbitd): Use isnand instead of isnan.
62185         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62186         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62187         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62188         (main): Use isnand instead of isnan.
62189         * tests/test-round1.c: Include isnand.h.
62190         (main): Use isnand instead of isnan.
62191         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62192         (ISNAN): Set to isnand instead of isnan.
62193         * tests/test-trunc1.c: Include isnand.h.
62194         (main): Use isnand instead of isnan.
62195         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62196         (equal): Use isnand instead of isnan.
62197         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62198         isnand-nolibm.
62199         * NEWS: Mention the change.
62200
62201 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62202             Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62205         the GCC builtins for signbits are present and set
62206         REPLACE_SIGNBIT_USING_GCC if so.
62207         * lib/math.in.h (signbit): Define using GCC builtins if
62208         REPLACE_SIGNBIT_USING_GCC is set.
62209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62210         REPLACE_SIGNBIT_USING_GCC.
62211         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62212
62213 2008-01-25  Jim Meyering  <meyering@redhat.com>
62214
62215         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62216         * lib/poll.c: Include <config.h>, not "config.h".
62217         * tests/test-getaddrinfo.c: Likewise.
62218
62219 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62220
62221         * modules/sockets-tests: New file.
62222
62223 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62224
62225         * modules/sockets: New module, can be used to call WSA_Startup and
62226         WSA_Cleanup when needed.
62227
62228         * lib/sockets.h, lib/sockets.c: New files.
62229
62230         * m4/sockets.m4: New file.
62231
62232         * tests/test-sockets.c: New file.
62233
62234 2008-01-19  Bruno Haible  <bruno@clisp.org>
62235
62236         * doc/posix-headers: Renamed from doc/headers.
62237         * doc/posix-functions: Renamed from doc/functions.
62238         * doc/gnulib.texi: Update.
62239
62240 2008-01-19  Bruno Haible  <bruno@clisp.org>
62241
62242         * doc/glibc-functions/strcasestr.texi: Include contents of
62243         doc/functions/strcasestr.texi, fixing the list of platforms.
62244         * doc/functions/strcasestr.texi: Remove file.
62245
62246 2008-01-19  Bruno Haible  <bruno@clisp.org>
62247
62248         * doc/glibc-functions/memmem.texi: Include contents of
62249         doc/functions/memmem.texi.
62250         * doc/functions/memmem.texi: Remove file.
62251
62252 2008-01-18  Bruno Haible  <bruno@clisp.org>
62253
62254         * doc/glibc-functions/*.texi: New files.
62255         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62256         to use the new files.
62257
62258 2008-01-17  Bruno Haible  <bruno@clisp.org>
62259
62260         * tests/test-gethostname.c (main): Fix printf statement.
62261
62262 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62263
62264         * modules/gethostname-tests: New file.
62265
62266         * tests/test-gethostname.c: New file.
62267
62268 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62269
62270         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62271         used by the UNAME case.  Reported by Bruno Haible
62272         <bruno@clisp.org>.
62273
62274 2008-01-17  Eric Blake  <ebb9@byu.net>
62275
62276         Convert c-strcasestr to be more efficient.
62277         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62278         (Depends-on): Add c-strcase, remove malloca, strnlen.
62279         * tests/test-c-strcasestr.c (main): Enhance test.
62280         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62281
62282 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62283
62284         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62285         Use it in creating po/Makevars.
62286
62287 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62288
62289         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62290         Applications that requires it should initialize libgcrypt
62291         manually.
62292
62293 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62294
62295         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62296
62297 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         Fix problem with getdate on mingw32 reported by Simon Josefsson
62300         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62301         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62302         tzname", when deciding whether to declare tzname.
62303         * lib/strftime.c (tzname): Likewise.
62304
62305 2008-01-15  Bruno Haible  <bruno@clisp.org>
62306
62307         Work around a MacOS X 10.5 bug in frexpl().
62308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62309         * doc/functions/frexpl.texi: Document the bug.
62310         Reported by Elias Pipping <pipping@gentoo.org>.
62311
62312 2008-01-14  Eric Blake  <ebb9@byu.net>
62313
62314         Touch up previous patch.
62315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62316         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62317
62318         Convert strcasestr module to use Two-Way algorithm.
62319         * modules/strcasestr-simple: New module, based on the old
62320         strcasestr, but with Two-Way rather than KMP.
62321         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62322         * lib/string.in.h (rpl_strcasestr): Declare.
62323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62324         performance.
62325         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62326         * modules/string (Makefile.am): Support strcasestr.
62327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62328         * modules/strcasestr-tests (Depends-on): Check for alarm.
62329         * tests/test-strcasestr.c: Augment test.
62330         * lib/str-two-way.h: Clean up stray macro.
62331         * NEWS: Document new module.
62332         * MODULES.html.sh (string handling): Likewise.
62333         * doc/functions/strcasestr.texi: New file.
62334         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62335         here, since it is not a POSIX function.
62336
62337 2008-01-14  Colin Watson  <cjwatson@debian.org>
62338             Bruno Haible  <bruno@clisp.org>
62339
62340         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62341         works fine; if not, set REPLACE_STRSIGNAL.
62342         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62344         REPLACE_STRSIGNAL.
62345         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62346         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62347         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62348
62349 2008-01-14  Bruno Haible  <bruno@clisp.org>
62350
62351         * modules/strsignal (Include): Change to <string.h>.
62352
62353 2008-01-14  Colin Watson  <cjwatson@debian.org>
62354
62355         * modules/argp (Notice): Add a notice recommending to change
62356         XGETTEXT_OPTIONS.
62357         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62358
62359 2008-01-13  Colin Watson  <cjwatson@debian.org>
62360
62361         * modules/strsignal-tests: New file.
62362         * tests/test-strsignal.c: New file.
62363
62364         * lib/strsignal.c: New file, from glibc with modifications.
62365         * lib/siglist.h: New file, from glibc with modifications.
62366         * lib/string.in.h (strsignal): New declaration.
62367         * m4/strsignal.m4: New file.
62368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62369         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62370         * modules/strsignal: New file.
62371         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62372         HAVE_DECL_STRSIGNAL.
62373
62374 2008-01-13  Bruno Haible  <bruno@clisp.org>
62375
62376         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62377         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62378         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62379         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62380
62381 2008-01-13  Bruno Haible  <bruno@clisp.org>
62382
62383         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62384         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62385         * lib/argp.h (__attribute__): Likewise.
62386         * lib/c-stack.c (__attribute__): Likewise.
62387         * lib/error.h (__attribute__): Likewise.
62388         * lib/fts.c (__attribute__): Likewise.
62389         * lib/openat.h (__attribute__): Likewise.
62390         * lib/stdio.in.h (__attribute__): Likewise.
62391         * lib/string.in.h (__attribute__): Likewise.
62392         * lib/utimens.c (__attribute__): Likewise.
62393         * lib/vasnprintf.h (__attribute__): Likewise.
62394         * lib/xalloc.h (__attribute__): Likewise.
62395         * lib/xprintf.h (__attribute__): Likewise.
62396         * lib/xstrtol.h (__attribute__): Likewise.
62397         * lib/xvasprintf.h (__attribute__): Likewise.
62398
62399 2008-01-12  Bruno Haible  <bruno@clisp.org>
62400
62401         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62402         * doc/glibc-headers/a.out.texi: New file.
62403         * doc/glibc-headers/aliases.texi: New file.
62404         * doc/glibc-headers/alloca.texi: New file.
62405         * doc/glibc-headers/ar.texi: New file.
62406         * doc/glibc-headers/argp.texi: New file.
62407         * doc/glibc-headers/argz.texi: New file.
62408         * doc/glibc-headers/byteswap.texi: New file.
62409         * doc/glibc-headers/crypt.texi: New file.
62410         * doc/glibc-headers/endian.texi: New file.
62411         * doc/glibc-headers/envz.texi: New file.
62412         * doc/glibc-headers/err.texi: New file.
62413         * doc/glibc-headers/error.texi: New file.
62414         * doc/glibc-headers/execinfo.texi: New file.
62415         * doc/glibc-headers/fpu_control.texi: New file.
62416         * doc/glibc-headers/fstab.texi: New file.
62417         * doc/glibc-headers/fts.texi: New file.
62418         * doc/glibc-headers/getopt.texi: New file.
62419         * doc/glibc-headers/ieee754.texi: New file.
62420         * doc/glibc-headers/ifaddrs.texi: New file.
62421         * doc/glibc-headers/libintl.texi: New file.
62422         * doc/glibc-headers/mcheck.texi: New file.
62423         * doc/glibc-headers/mntent.texi: New file.
62424         * doc/glibc-headers/obstack.texi: New file.
62425         * doc/glibc-headers/paths.texi: New file.
62426         * doc/glibc-headers/printf.texi: New file.
62427         * doc/glibc-headers/pty.texi: New file.
62428         * doc/glibc-headers/resolv.texi: New file.
62429         * doc/glibc-headers/shadow.texi: New file.
62430         * doc/glibc-headers/sysexits.texi: New file.
62431         * doc/glibc-headers/ttyent.texi: New file.
62432
62433 2008-01-12  Jim Meyering  <meyering@redhat.com>
62434
62435         announce-gen: emit Gnulib's git-based version string.
62436         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62437         New option --gnulib-version=V, where V is expected to be
62438         the output of running git describe in the gnulib directory.
62439         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62440         not useful, and plan to stop publishing an xdelta file with each
62441         coreutils release.
62442
62443         * build-aux/announce-gen: Also check for lzma-compressed files.
62444
62445 2008-01-11  Bruno Haible  <bruno@clisp.org>
62446
62447         * tests/test-memmem.c (main): Increase maximum allowed time.
62448         * tests/test-strstr.c (main): Likewise.
62449
62450 2008-01-11  Bruno Haible  <bruno@clisp.org>
62451
62452         * doc/functions/memmem.texi: Add more precisions about platforms.
62453         * doc/functions/strstr.texi: Likewise.
62454
62455 2008-01-10  Eric Blake  <ebb9@byu.net>
62456
62457         * m4/strstr.m4: Delete cruft from copy-n-paste.
62458         Reported by Bruno Haible.
62459
62460 2008-01-10  Bruno Haible  <bruno@clisp.org>
62461
62462         Make c-strstr rely on strstr.
62463         * lib/c-strstr.c: Don't include str-kmp.h.
62464         (c_strstr): Define in terms of strstr.
62465         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62466         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62467
62468 2008-01-10  Bruno Haible  <bruno@clisp.org>
62469
62470         * doc/gnulib.texi (String Functions in C Locale): New section.
62471         * doc/c-ctype.texi: New file.
62472         * doc/c-strcase.texi: New file.
62473         * doc/c-strcaseeq.texi: New file.
62474         * doc/c-strcasestr.texi: New file.
62475         * doc/c-strstr.texi: New file.
62476         * doc/c-strtod.texi: New file.
62477         * doc/c-strtold.texi: New file.
62478
62479 2008-01-10  Eric Blake  <ebb9@byu.net>
62480
62481         * lib/relocatable.h: Fix a comment.
62482
62483 2008-01-10  Eric Blake  <ebb9@byu.net>
62484
62485         Share two-way algorithm.
62486         * lib/str-two-way.h: New file, merged from...
62487         * lib/memmem.c: ...here...
62488         * lib/strstr.c: ...and here.
62489         * modules/memmem (Files): Use it.
62490         * modules/strstr (Files): Likewise.
62491
62492         Avoid quadratic strstr implementations.
62493         * lib/strstr.c: New file.
62494         * m4/strstr.m4: Likewise.
62495         * modules/strstr: Likewise.
62496         * modules/strstr-tests: Likewise.
62497         * tests/test-strstr.c: Likewise.
62498         * lib/string.in.h (rpl_strstr): Declare.
62499         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62501         * modules/string (Makefile.am): Likewise.
62502         * MODULES.html.sh (string handling): Mention new module.
62503         * doc/functions/strstr.texi (strstr): Document the bug.
62504
62505 2008-01-10  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/relocatable.h (relocate): State whether result is freshly
62508         allocated or not.
62509         * lib/relocatable.c (relocate): Return a freshly allocated string
62510         instead of a pointer to a privately held string.
62511         Reported by Sylvain Beucler <beuc@gnu.org>.
62512
62513 2008-01-10  Colin Watson  <cjwatson@debian.org>
62514
62515         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62516         s/S_ISNLK/S_ISLNK/.
62517
62518 2008-01-09  Bruno Haible  <bruno@clisp.org>
62519
62520         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62521         and other files.
62522         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62523         if it's only a guess.
62524         * modules/memmem: Simplify by depending on memmem-simple.
62525
62526 2008-01-09  Bruno Haible  <bruno@clisp.org>
62527
62528         Work around OpenBSD 4.0 tdelete() bug.
62529         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62530         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62531         macros and don't redefine the enum values.
62532         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62533         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62534         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62535
62536 2008-01-09  Bruno Haible  <bruno@clisp.org>
62537
62538         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62539         (main): Don't perform the tests if setlocale did not install a UTF-8
62540         locale. Needed on OpenBSD 4.0.
62541         * modules/wcwidth-tests (Depends-on): Add localcharset.
62542
62543 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62544
62545         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62546         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62547         * NEWS: announce this.
62548         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62549
62550 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62551         and Eric Blake  <ebb9@byu.net>
62552
62553         Add memmem-simple module.
62554         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62555         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62556         * modules/memmem-simple: New file.
62557         * modules/memmem (Description): Tweak.
62558         * MODULES.html.sh (string handling): Mention new module.
62559         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62560         addressed by memmem-simple.
62561         * NEWS: Document the difference.
62562
62563 2008-01-09  Eric Blake  <ebb9@byu.net>
62564
62565         Give gcc some memmem optimization hints.
62566         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62567         (strcasestr): Declare as pure.
62568         * modules/memmem (Maintainer): Claim my implementation.
62569
62570 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62571
62572         Support AIX 6.1 and higher.
62573         * build-aux/config.libpath: Likewise.
62574         * build-aux/config.rpath: Likewise.
62575
62576 2008-01-08  Jim Meyering  <meyering@redhat.com>
62577             Bruno Haible  <bruno@clisp.org>
62578
62579         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62580         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62581         Reported by Peter Fales in
62582         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62583
62584 2008-01-08  Bruno Haible  <bruno@clisp.org>
62585
62586         * modules/unictype/category-of (Depends-on): Add
62587         unictype/category-none.
62588         * modules/unictype/category-and-tests (Depends-on): Add
62589         unictype/category-{L,N,Lu,Nd}.
62590         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62591         * modules/unictype/category-or-tests (Depends-on): Add
62592         unictype/category-{L,N}.
62593         * modules/unictype/category-name-tests (Depends-on): Add
62594         unictype/category-{Z,Nl}.
62595         Reported by Simon Josefsson.
62596
62597 2008-01-08  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62600         convention better.
62601         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62602         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62603         Reported by Peter Miller <millerp@canb.auug.org.au>.
62604
62605 2008-01-08  Eric Blake  <ebb9@byu.net>
62606
62607         Rewrite memmem to guarantee linear complexity without malloc.
62608         * lib/memmem.c (memmem): Use Two-Way rather than
62609         Knuth-Morris-Pratt, to allow O(1) space usage.
62610         (critical_factorization, two_way_short_needle)
62611         (two_way_long_needle): New functions.
62612         (knuth_morris_pratt): Delete.
62613         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62614         Add stdint.
62615         * tests/test-memmem.c (main): Add tests for periodic needle and
62616         sublinear performance.
62617         * doc/functions/memmem.texi (memmem): Document other deficiencies
62618         in cygwin and older glibc.
62619
62620 2008-01-08  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62623         augmentation.
62624
62625 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62626
62627         Add a configure time option: --disable-acl.
62628         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62629         AC_ARG_ENABLE(acl).
62630
62631 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62632
62633         * tests/test-localename.c: Don't include obsolete "setenv.h".
62634
62635         * modules/localename-tests (Depends-on): Need unsetenv.
62636
62637 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62638
62639         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62640
62641 2008-01-06  Colin Watson  <cjwatson@debian.org>
62642
62643         * users.txt: Add man-db.
62644
62645 2008-01-07  Bruno Haible  <bruno@clisp.org>
62646
62647         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62648         previous section name.
62649
62650 2008-01-07  Bruno Haible  <bruno@clisp.org>
62651
62652         * lib/progname.c (set_program_name): Don't strip off a leading
62653         "lt-" prefix outside a .libs directory.
62654         Suggested by Paul Eggert.
62655
62656 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62657             Bruno Haible  <bruno@clisp.org>
62658
62659         Improve memory cleanup in 'relocatable' module.
62660         * lib/relocatable.h (compute_curr_prefix): Change return type to
62661         'char *'.
62662         * lib/relocatable.c (compute_curr_prefix): Change return type to
62663         'char *'. Free curr_installdir after use.
62664         (relocate): Free curr_prefix_better after use.
62665         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62666
62667 2008-01-01  Bruno Haible  <bruno@clisp.org>
62668
62669         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62670         failure on older glibc systems.
62671         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62672
62673 2008-01-05  Eric Blake  <ebb9@byu.net>
62674
62675         Avoid quadratic system memmem.
62676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62677         Reported by Ralf Wildenhues.
62678
62679         Fix memmem test for mingw.
62680         * modules/memmem-tests (configure.ac): Check for alarm.
62681         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62682         it.
62683         * doc/functions/memmem.texi: New file.
62684         * doc/gnulib.texi (Function Substitutes): Add memmem.
62685         Reported by Bruno Haible.
62686
62687 2008-01-04  Bruno Haible  <bruno@clisp.org>
62688
62689         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62690         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62691         gl_HEADER_STRING_H_DEFAULTS.
62692
62693 2008-01-04  Eric Blake  <ebb9@byu.net>
62694
62695         Shorten duration of memmem test.
62696         * tests/test-memmem.c (main): Use alarm to declare failure if test
62697         is taking too long.
62698         Reported by Ralf Wildenhues.
62699
62700 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62701
62702         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62703         string, needed by strerror.
62704
62705 2008-01-03  Colin Watson  <cjwatson@debian.org>
62706             Bruno Haible  <bruno@clisp.org>
62707
62708         * doc/gnulib-tool.texi (Localization): New section.
62709
62710 2008-01-02  Bruno Haible  <bruno@clisp.org>
62711
62712         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62713         variables to 'unsigned char *' type.
62714         Reported by Paul Eggert.
62715
62716 2008-01-02  Jim Meyering  <jim@meyering.net>
62717
62718         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62719
62720 2007-12-31  Jim Meyering  <jim@meyering.net>
62721
62722         Avoid use of private FTS type name.
62723         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62724
62725 2007-12-30  Karl Berry  <karl@gnu.org>
62726
62727         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62728         work around defect in Texinfo and/or the standalone Info browser.
62729
62730 2007-12-30  Bruno Haible  <bruno@clisp.org>
62731
62732         Unify 5 copies of the KMP code.
62733         * lib/str-kmp.h: New file.
62734         * lib/c-strcasestr.c: Include str-kmp.h.
62735         (knuth_morris_pratt): Remove function.
62736         (c_strcasestr): Update.
62737         * lib/c-strstr.c: Include str-kmp.h.
62738         (knuth_morris_pratt): Remove function.
62739         (c_strcasestr): Update.
62740         * lib/mbscasestr.c: Include str-kmp.h.
62741         (knuth_morris_pratt_unibyte): Remove function.
62742         * lib/mbsstr.c: Include str-kmp.h.
62743         (knuth_morris_pratt_unibyte): Remove function.
62744         * lib/strcasestr.c: Include str-kmp.h.
62745         (knuth_morris_pratt): Remove function.
62746         (strcasestr): Update.
62747         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62748         * modules/c-strstr (Files): Likewise.
62749         * modules/mbscasestr (Files): Likewise.
62750         * modules/mbsstr (Files): Likewise.
62751         * modules/strcasestr (Files): Likewise.
62752         Suggested by Paul Eggert.
62753
62754 2007-12-30  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62757         defined.
62758
62759 2007-12-30  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/xmalloca.h: Include xalloc.h.
62762         (xnmalloca): New macro.
62763
62764 2007-12-30  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/malloca.h (nmalloca): New macro.
62767         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62768         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62769         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62770         knuth_morris_pratt_multibyte): Likewise.
62771         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62772         knuth_morris_pratt_multibyte): Likewise.
62773         * lib/memmem.c (knuth_morris_pratt): Likewise.
62774         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62775
62776 2007-12-25  Bruno Haible  <bruno@clisp.org>
62777
62778         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62779         * lib/glob.c: Don't include openat.h.
62780         (link_exists2_p): Add back the code that deals with the
62781         !GLOB_ALTDIRFUNC case.
62782         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62783         let it do the filename concatenation.
62784         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62785         * modules/glob (Depends-on): Remove openat.
62786
62787 2007-12-31  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/dirfd (License): Change to LGPLv2+.
62790         Approved by Jim Meyering.
62791
62792 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62795         when multiplying M by sizeof (size_t).
62796
62797 2007-12-10  Martin Lambers  <marlam@marlam.de>
62798
62799         Override getpagesize on mingw.
62800         * lib/getpagesize.c: New file.
62801         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62802         * modules/getpagesize (Files): Add lib/getpagesize.c.
62803         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62805         REPLACE_GETPAGESIZE.
62806         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62807
62808 2007-12-25  Bruno Haible  <bruno@clisp.org>
62809
62810         * modules/localcharset (Notice): New field.
62811         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62812         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62813
62814 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62815             Bruno Haible  <bruno@clisp.org>
62816
62817         Avoid using the syntax symbol() in formatted documentation.
62818         * MODULES.html.sh (func_module): When replacing symbol() with a
62819         hyperlink, remove the parentheses. Show an error if some remain.
62820         Recognize and render the '...' syntax.
62821         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62822         Rework. Add paragraph about GCC's inlining.
62823         * doc/alloca.texi: Likewise.
62824         * doc/error.texi: Remove parentheses from symbol reference.
62825         * doc/gnulib-intro.texi: Likewise.
62826         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62827         * modules/fnmatch (Description): Reword to say "the ... function".
62828         * modules/full-read (Description): Likewise.
62829         * modules/full-write (Description): Likewise.
62830         * modules/safe-read (Description): Likewise.
62831         * modules/safe-write (Description): Likewise.
62832         * modules/strchrnul (Description): Likewise.
62833         * modules/trim (Description): Likewise.
62834         * modules/error (Description): Remove parentheses from symbol
62835         references.
62836         * modules/verror (Description): Likewise.
62837         Reported by Karl Berry.
62838
62839 2007-12-25  Bruno Haible  <bruno@clisp.org>
62840
62841         Fixup after 2007-10-16 commit.
62842         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62843
62844 2007-12-24  Bruno Haible  <bruno@clisp.org>
62845
62846         Make --enable-relocatable work with DESTDIR.
62847         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62848         to compute installdir from destprog.
62849         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62850         also set the RELOC_DESTDIR variable.
62851         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62852
62853 2007-12-24  Bruno Haible  <bruno@clisp.org>
62854
62855         Fix link error due to xalloc_die().
62856         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62857         of xreadlink.
62858         * lib/relocwrapper.c: Update comments.
62859         * build-aux/install-reloc: Remove xreadlink.c from file list.
62860         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62861         xreadlink.c.
62862         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62863
62864 2007-12-24  Bruno Haible  <bruno@clisp.org>
62865
62866         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62867         * lib/setenv.h: Remove file.
62868         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62869         lib/setenv.h.
62870         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62871         (Depends-on): Add stdlib.
62872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62873         gl_FUNC_UNSETENV.
62874         (Include): Replace setenv.h with <stdlib.h>.
62875         * modules/unsetenv: New file.
62876         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62877         * lib/unsetenv.c: Include <stdlib.h> first.
62878         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62879         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62880         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62881         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62882         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62883         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62885         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62886         * doc/functions/unsetenv.texi: Update.
62887         * modules/xsetenv (Depends-on): Add unsetenv.
62888         * modules/getdate (Depends-on): Likewise.
62889         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62890         * lib/xsetenv.c: Don't include setenv.h.
62891         * lib/getdate.y: Likewise.
62892         * lib/relocwrapper.c: Likewise.
62893         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62894         (Depends-on): Add stdlib.
62895         * NEWS: Mention the changes.
62896         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62897
62898 2007-12-23  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62901         indentation.
62902
62903 2007-12-23  Bruno Haible  <bruno@clisp.org>
62904
62905         * lib/c-strcasestr.c: Add more comments.
62906         * lib/c-strstr.c: Likewise.
62907         * lib/mbscasestr.c: Likewise.
62908         * lib/mbsstr.c: Likewise.
62909         * lib/strcasestr.c: Likewise.
62910         * lib/memmem.c: Likewise.
62911
62912 2007-12-23  Bruno Haible  <bruno@clisp.org>
62913
62914         * tests/test-memmem.c: Include <string.h> first.
62915
62916 2007-12-22  Bruno Haible  <bruno@clisp.org>
62917
62918         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62919         the contents of $testsbase.
62920         Reported by Ralf Wildenhues.
62921
62922 2007-12-22  Bruno Haible  <bruno@clisp.org>
62923
62924         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62925         two variables local_ldadd_before, local_ldadd_last.
62926
62927 2007-12-20  Eric Blake  <ebb9@byu.net>
62928
62929         Work around circular library issue when cross-compiling.
62930         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62931         that progname.o does not need to pull in rpl_memcmp.
62932
62933 2007-12-19  Eric Blake  <ebb9@byu.net>
62934
62935         Fix memmem to avoid O(n^2) worst-case complexity.
62936         * lib/memmem.c (knuth_morris_pratt): New function.
62937         (memmem): Use it if first few naive iterations fail.
62938         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62939         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62940         * modules/memchr (License): Likewise.
62941         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62942         malloca.
62943         * tests/test-memmem.c: Rewrite, borrowing ideas from
62944         test-mbsstr1.c; the old version wouldn't even compile!
62945         * modules/memmem-tests: New file.
62946         * lib/string.in.h (rpl_memmem): Add declaration.
62947         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62949         REPLACE_MEMMEM.
62950
62951 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62952
62953         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62954         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62955         before any system include files, and undef after them all.  This
62956         should fix a problem on VMS reported by John E. Malmberg in
62957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62958
62959 2007-12-17  Eric Blake  <ebb9@byu.net>
62960
62961         Revert addition of verify, for BSD/OS.
62962         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62963         can't handle large files, for the sake of obsolete platforms.
62964         * modules/fseeko (Depends-on): Remove verify.
62965         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62966         * doc/functions/ftello.texi (ftello): Likewise.
62967         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62968         Reported by Larry Jones.
62969
62970 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62971
62972         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62973         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62974
62975 2007-12-17  Jim Meyering  <meyering@redhat.com>
62976
62977         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62978         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62979         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62980         * modules/getcwd (Depends-on): Add openat.
62981         Reported by Petr Salinger.
62982
62983 2007-12-17  Bruno Haible  <bruno@clisp.org>
62984
62985         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62986         avoid a segmentation fault of the configure test on x86_64 systems.
62987
62988 2007-12-15  Jim Meyering  <meyering@redhat.com>
62989
62990         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62991
62992 2007-12-13  Eric Blake  <ebb9@byu.net>
62993
62994         Another fseek test.
62995         * tests/test-fseek.c (main): Also test ungetc handling.
62996         * tests/test-fseeko.c (main): Likewise.
62997         * modules/fseeko (Depends-on): Add verify.
62998         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62999         large.
63000         Reported by Larry Jones.
63001
63002         Fix fseeko on mingw.
63003         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63004         seek.
63005
63006         Beef up fseek tests.
63007         * tests/test-fseek.c (main): Also test eof handling.
63008         * tests/test-fseeko.c (main): Likewise.
63009         Reported by Larry Jones.
63010
63011 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63012
63013         Fix fseeko on BSD-based platforms.
63014         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63015         successful seek.
63016
63017 2007-12-12  Eric Blake  <ebb9@byu.net>
63018
63019         Allow circular dependency of separate libtests.a
63020         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63021         when use_libtests.
63022
63023 2007-12-11  Eric Blake  <ebb9@byu.net>
63024
63025         Fix bug with -0.0L in previous patch.
63026         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63027         * tests/test-isnan.c (main): Also test on zeroes.
63028         * tests/test-isnanf.c (main): Likewise.
63029         * tests/test-isnanl.h (main): Likewise.
63030
63031         Detect pseudo-denormals on x86 even when cross-compiling.
63032         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63033         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63034         invalid bit patterns that happen to satisfy ==.
63035
63036         Avoid link failures with separate libtests.a.
63037         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63038         last, to satisfy circular dependencies.
63039
63040 2007-12-11  Eric Blake  <ebb9@byu.net>
63041         and Bruno Haible  <bruno@clisp.org>
63042
63043         Fix OpenBSD 4.0 <float.h> handling of long double.
63044         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63045         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63046         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63047
63048 2007-12-11  Jim Meyering  <meyering@redhat.com>
63049
63050         * users.txt: Add libvirt.
63051
63052         Support versions of autoconf prior to 2.59c.
63053         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63054         if it is not already defined.
63055
63056 2007-12-09  Bruno Haible  <bruno@clisp.org>
63057
63058         Let 'gnulib-tool --import' collect sources needed for the tests in
63059         tests/ rather than in lib/.
63060         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63061         argument. If true, add rules to generate libtests.a, and put libtests.a
63062         into $(LDADD). Consider source files in subdirectories and set
63063         uses_subdirs.
63064         (func_emit_initmacro_start, func_emit_initmacro_end,
63065         func_emit_initmacro_done): Pass all arguments explicitly.
63066         (func_import): Determine two module lists main_modules,
63067         testsrelated_modules. Determine use_libtests. Determine two variables
63068         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63069         instead of just sed_transform_lib_file. Determine two variables
63070         main_files and testsrelated_files. Compute 'files' as the union of
63071         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63072         func_add_or_update. In the generated gnulib-comp.m4, collect the
63073         object files for tests/ in different variables than those for lib/.
63074         Substitute LIBTESTS_LIBDEPS.
63075         (func_create_testdir): Combine the uses_subdirs results from
63076         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63077
63078 2007-12-09  Bruno Haible  <bruno@clisp.org>
63079
63080         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63081         the build-aux directory.
63082
63083 2007-12-09  Bruno Haible  <bruno@clisp.org>
63084
63085         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63086         introduced on 2006-09-09.
63087
63088 2007-12-07  Jim Meyering  <meyering@redhat.com>
63089
63090         Let these macros work also with autoconf-2.59.
63091         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63092         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63094
63095 2007-12-06  Jim Meyering  <meyering@redhat.com>
63096
63097         Avoid a configure-time syntax error in gl_FUNC_ACL.
63098         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63099         function in each branch, before testing the cache variable.
63100
63101 2007-12-04  Eric Blake  <ebb9@byu.net>
63102
63103         Make scripts executable.
63104         * build-aux/config.guess: Add execute permissions.
63105         * build-aux/config.sub: Likewise.
63106         * build-aux/gendocs.sh: Likewise.
63107
63108         Fix frexp on mingw.
63109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63110         cross-compiling.
63111         * doc/functions/frexp.texi (frexp): Document the bug.
63112
63113         Make cygwin fseeko check more reliable.
63114         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63115         version numbers, rather than unrelated feature check.
63116         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63117         * doc/functions/ftello.texi (ftello): Likewise.
63118         Reported by Bruno Haible.
63119
63120         * m4/strerror.m4: Bump version number.
63121
63122 2007-12-03  Bruno Haible  <bruno@clisp.org>
63123
63124         * doc/functions/mprotect.texi: Mention the mingw problem.
63125
63126 2007-12-03  Eric Blake  <ebb9@byu.net>
63127
63128         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63129         REPLACE_STRERROR is initialized before this macro.
63130
63131 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63134         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63135         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63136         put -lsec in even for programs other than 'ls'.  This fixes a problem
63137         for gettext reported by Bruno Haible in
63138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63139         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63140         Add support for Solaris 10.  This isn't efficient, but should get the
63141         job done for now.
63142
63143 2007-12-03  James Youngman  <jay@gnu.org>
63144
63145         * doc/regexprops-generic.texi: change "an close-group" to "a
63146         close-group" and "illegal" to "not allowed".
63147
63148 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63149
63150         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63151         pr_byname.h. Needed for the rare case when the maintainer has done
63152         "make maintainer-clean" in the source directory and then attempts a
63153         build outside the source directory.
63154         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63155         scripts_byname.h.
63156
63157 2007-12-02  Martin Lambers <marlam@marlam.de>
63158             Bruno Haible  <bruno@clisp.org>
63159
63160         * lib/getpagesize.h: Remove file.
63161         * lib/unistd.in.h: Include declaration of getpagesize here.
63162         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63163         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63164         HAVE_SYS_PARAM_H.
63165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63166         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63167         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63168         (Depends-on): Add unistd.
63169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63170         (Include): Use <unistd.h> instead of getpagesize.h.
63171         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63172         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63173         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63174         gl_GETPAGESIZE invocation, already handled by module dependency.
63175         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63176
63177 2007-12-02  Bruno Haible  <bruno@clisp.org>
63178
63179         * modules/strings-tests: New file.
63180         * tests/test-strings.c: New file.
63181
63182         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63183         * lib/strings.in.h: New file.
63184         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63185         * m4/strings_h.m4: New file.
63186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63187         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63188         * modules/strings: New file.
63189         * modules/string (Makefile.am): Update.
63190         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63191         Reported by Karl Berry.
63192
63193 2007-12-01  Eric Blake  <ebb9@byu.net>
63194
63195         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63196         accommodate fix in cygwin 1.5.25.
63197
63198 2007-12-01  Jim Meyering  <meyering@redhat.com>
63199
63200         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63201         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63202         that would inhibit utf8-optimization of a regexp containing line-
63203         or buffer-anchors, e.g., `^', `$'.
63204
63205 2007-11-30  Bruno Haible  <bruno@clisp.org>
63206
63207         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63208         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63209         glthread_recursive_lock_init.
63210         * lib/lock.c (glthread_recursive_lock_init)
63211         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63213
63214 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         New function qset_acl, like set_acl but with syscall semantics.
63217         * lib/acl.h (qset_acl): New decl.
63218         * lib/acl.c (qset_acl): New function.
63219         (set_acl): Use new function.  Use more-consistent diagnostics.
63220
63221 2007-11-28  Jim Meyering  <meyering@redhat.com>
63222
63223         * modules/physmem (License): Change from GPL to LGPLv2+.
63224
63225 2007-11-26  Bruno Haible  <bruno@clisp.org>
63226
63227         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63228         'long double' type has excess precision.
63229         Reported by Jim Meyering in
63230         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63231
63232 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63233
63234         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63235         Sync from <http://gnu.org/licenses>.
63236         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63237         with license text from same location.
63238         * doc/maintain.texi, doc/standards.texi:  Sync from
63239         <http://savannah.gnu.org/projects/gnustandards>.
63240
63241 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
63242         and Jim Meyering  <meyering@redhat.com>
63243
63244         Adjust getdate' grammar to accept a slightly more regular language.
63245         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63246         Before, the former was rejected.
63247         * lib/getdate.y (digits_to_date_time): New function, factored
63248         out of ...
63249         (number): ...here.  Just call digits_to_date_time.
63250         (hybrid): New non-terminal to handle an <unsigned number,
63251         signed relative offset> sequence consistently.
63252
63253 2007-11-18  Jim Meyering  <meyering@redhat.com>
63254
63255         Pull my changes from coreutils:
63256         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63257         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63258         use of $gnulib_tool_option_extras, so that it's separated from the
63259         preceding argument.
63260
63261         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63262         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63263         parent destination directories before copying a file into place.
63264
63265 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63266
63267         bootstrap: work also with 4-argument variant of AC_INIT
63268         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63269
63270 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         Port test-getaddrinfo to Solaris.
63273         Problem reported by Bruno Haible in
63274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63275         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63276         explanation of setting 'hints'.
63277         Don't reject an implementation merely because it returns EAI_SERVICE.
63278         (EAI_SERVICE): Define to 0 if not defined.
63279
63280 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         The license of gnu-make and posix-shell is now "GPLed build tool".
63283         * modules/gnu-make (License): Likewise.
63284         * modules/posix-shell (License): Likewise.
63285
63286         New module posix-shell, for determining a POSIX shell
63287         or perhaps something that is close enough to a POSIX shell.
63288         * m4/posix-shell.m4: New file.
63289         * modules/posix-shell: New file.
63290
63291         * MODULES.html.sh: Mention new module.
63292
63293         New module gnu-make, for determining whether we're using GNU Make.
63294         * m4/gnu-make.m4: New file.
63295         * modules/gnu-make: New file.
63296         * MODULES.html.sh: Mention new module.
63297
63298 2007-11-14  Jim Meyering  <meyering@redhat.com>
63299
63300         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63301         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63302         use this macro to create a function _definition_.
63303         Remove useless "#undef ARGMATCH_DIE".
63304
63305 2007-11-14  Bruno Haible  <bruno@clisp.org>
63306
63307         * lib/config.charset: Update for OpenBSD 4.1.
63308         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63309
63310 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         Document 64-bit #if problems in stdint.texi.
63313         * doc/headers/stdint.texi (stdint.h): Mention problems with
63314         64-bit-#if, and how to work around them.
63315
63316         Don't insist on 'long long int' support in the preprocessor.  It
63317         breaks too many things.  For example, PRIdMAX still uses a 'long
63318         long int' format with the latest Sun compiler, even though
63319         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63320         preprocessor problem.  This causes the latest coreutils to dump
63321         core on Solaris 10 sparc with the Sun C compiler.
63322         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63323         the troublesome expressions at configure-time, not at #if-time.
63324         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63325         preprocessor.
63326         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63327         compile-time C checks, done at 'configure'-time.
63328         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63329         * modules/inttypes (Makefile): Substitute the new symbols that
63330         gl_INTTYPES_H now generates.
63331         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63332
63333 2007-11-12  Bruno Haible  <bruno@clisp.org>
63334
63335         Tests for Unicode character classification functions.
63336
63337         * modules/unictype/bidicategory-byname-tests: New file.
63338         * modules/unictype/bidicategory-name-tests: New file.
63339         * modules/unictype/bidicategory-of-tests: New file.
63340         * modules/unictype/bidicategory-test-tests: New file.
63341         * modules/unictype/block-list-tests: New file.
63342         * modules/unictype/block-of-tests: New file.
63343         * modules/unictype/block-test-tests: New file.
63344         * modules/unictype/category-C-tests: New file.
63345         * modules/unictype/category-Cc-tests: New file.
63346         * modules/unictype/category-Cf-tests: New file.
63347         * modules/unictype/category-Cn-tests: New file.
63348         * modules/unictype/category-Co-tests: New file.
63349         * modules/unictype/category-Cs-tests: New file.
63350         * modules/unictype/category-L-tests: New file.
63351         * modules/unictype/category-Ll-tests: New file.
63352         * modules/unictype/category-Lm-tests: New file.
63353         * modules/unictype/category-Lo-tests: New file.
63354         * modules/unictype/category-Lt-tests: New file.
63355         * modules/unictype/category-Lu-tests: New file.
63356         * modules/unictype/category-M-tests: New file.
63357         * modules/unictype/category-Mc-tests: New file.
63358         * modules/unictype/category-Me-tests: New file.
63359         * modules/unictype/category-Mn-tests: New file.
63360         * modules/unictype/category-N-tests: New file.
63361         * modules/unictype/category-Nd-tests: New file.
63362         * modules/unictype/category-Nl-tests: New file.
63363         * modules/unictype/category-No-tests: New file.
63364         * modules/unictype/category-P-tests: New file.
63365         * modules/unictype/category-Pc-tests: New file.
63366         * modules/unictype/category-Pd-tests: New file.
63367         * modules/unictype/category-Pe-tests: New file.
63368         * modules/unictype/category-Pf-tests: New file.
63369         * modules/unictype/category-Pi-tests: New file.
63370         * modules/unictype/category-Po-tests: New file.
63371         * modules/unictype/category-Ps-tests: New file.
63372         * modules/unictype/category-S-tests: New file.
63373         * modules/unictype/category-Sc-tests: New file.
63374         * modules/unictype/category-Sk-tests: New file.
63375         * modules/unictype/category-Sm-tests: New file.
63376         * modules/unictype/category-So-tests: New file.
63377         * modules/unictype/category-Z-tests: New file.
63378         * modules/unictype/category-Zl-tests: New file.
63379         * modules/unictype/category-Zp-tests: New file.
63380         * modules/unictype/category-Zs-tests: New file.
63381         * modules/unictype/category-and-not-tests: New file.
63382         * modules/unictype/category-and-tests: New file.
63383         * modules/unictype/category-byname-tests: New file.
63384         * modules/unictype/category-name-tests: New file.
63385         * modules/unictype/category-none-tests: New file.
63386         * modules/unictype/category-of-tests: New file.
63387         * modules/unictype/category-or-tests: New file.
63388         * modules/unictype/category-test-withtable-tests: New file.
63389         * modules/unictype/combining-class-tests: New file.
63390         * modules/unictype/ctype-alnum-tests: New file.
63391         * modules/unictype/ctype-alpha-tests: New file.
63392         * modules/unictype/ctype-blank-tests: New file.
63393         * modules/unictype/ctype-cntrl-tests: New file.
63394         * modules/unictype/ctype-digit-tests: New file.
63395         * modules/unictype/ctype-graph-tests: New file.
63396         * modules/unictype/ctype-lower-tests: New file.
63397         * modules/unictype/ctype-print-tests: New file.
63398         * modules/unictype/ctype-punct-tests: New file.
63399         * modules/unictype/ctype-space-tests: New file.
63400         * modules/unictype/ctype-upper-tests: New file.
63401         * modules/unictype/ctype-xdigit-tests: New file.
63402         * modules/unictype/decimal-digit-tests: New file.
63403         * modules/unictype/digit-tests: New file.
63404         * modules/unictype/mirror-tests: New file.
63405         * modules/unictype/numeric-tests: New file.
63406         * modules/unictype/property-alphabetic-tests: New file.
63407         * modules/unictype/property-ascii-hex-digit-tests: New file.
63408         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63409         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63410         * modules/unictype/property-bidi-block-separator-tests: New file.
63411         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63412         * modules/unictype/property-bidi-common-separator-tests: New file.
63413         * modules/unictype/property-bidi-control-tests: New file.
63414         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63415         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63416         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63417         * modules/unictype/property-bidi-european-digit-tests: New file.
63418         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63419         * modules/unictype/property-bidi-left-to-right-tests: New file.
63420         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63421         * modules/unictype/property-bidi-other-neutral-tests: New file.
63422         * modules/unictype/property-bidi-pdf-tests: New file.
63423         * modules/unictype/property-bidi-segment-separator-tests: New file.
63424         * modules/unictype/property-bidi-whitespace-tests: New file.
63425         * modules/unictype/property-byname-tests: New file.
63426         * modules/unictype/property-combining-tests: New file.
63427         * modules/unictype/property-composite-tests: New file.
63428         * modules/unictype/property-currency-symbol-tests: New file.
63429         * modules/unictype/property-dash-tests: New file.
63430         * modules/unictype/property-decimal-digit-tests: New file.
63431         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63432         * modules/unictype/property-deprecated-tests: New file.
63433         * modules/unictype/property-diacritic-tests: New file.
63434         * modules/unictype/property-extender-tests: New file.
63435         * modules/unictype/property-format-control-tests: New file.
63436         * modules/unictype/property-grapheme-base-tests: New file.
63437         * modules/unictype/property-grapheme-extend-tests: New file.
63438         * modules/unictype/property-grapheme-link-tests: New file.
63439         * modules/unictype/property-hex-digit-tests: New file.
63440         * modules/unictype/property-hyphen-tests: New file.
63441         * modules/unictype/property-id-continue-tests: New file.
63442         * modules/unictype/property-id-start-tests: New file.
63443         * modules/unictype/property-ideographic-tests: New file.
63444         * modules/unictype/property-ids-binary-operator-tests: New file.
63445         * modules/unictype/property-ids-trinary-operator-tests: New file.
63446         * modules/unictype/property-ignorable-control-tests: New file.
63447         * modules/unictype/property-iso-control-tests: New file.
63448         * modules/unictype/property-join-control-tests: New file.
63449         * modules/unictype/property-left-of-pair-tests: New file.
63450         * modules/unictype/property-line-separator-tests: New file.
63451         * modules/unictype/property-logical-order-exception-tests: New file.
63452         * modules/unictype/property-lowercase-tests: New file.
63453         * modules/unictype/property-math-tests: New file.
63454         * modules/unictype/property-non-break-tests: New file.
63455         * modules/unictype/property-not-a-character-tests: New file.
63456         * modules/unictype/property-numeric-tests: New file.
63457         * modules/unictype/property-other-alphabetic-tests: New file.
63458         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63459         * modules/unictype/property-other-grapheme-extend-tests: New file.
63460         * modules/unictype/property-other-id-continue-tests: New file.
63461         * modules/unictype/property-other-id-start-tests: New file.
63462         * modules/unictype/property-other-lowercase-tests: New file.
63463         * modules/unictype/property-other-math-tests: New file.
63464         * modules/unictype/property-other-uppercase-tests: New file.
63465         * modules/unictype/property-paired-punctuation-tests: New file.
63466         * modules/unictype/property-paragraph-separator-tests: New file.
63467         * modules/unictype/property-pattern-syntax-tests: New file.
63468         * modules/unictype/property-pattern-white-space-tests: New file.
63469         * modules/unictype/property-private-use-tests: New file.
63470         * modules/unictype/property-punctuation-tests: New file.
63471         * modules/unictype/property-quotation-mark-tests: New file.
63472         * modules/unictype/property-radical-tests: New file.
63473         * modules/unictype/property-sentence-terminal-tests: New file.
63474         * modules/unictype/property-soft-dotted-tests: New file.
63475         * modules/unictype/property-space-tests: New file.
63476         * modules/unictype/property-terminal-punctuation-tests: New file.
63477         * modules/unictype/property-test-tests: New file.
63478         * modules/unictype/property-titlecase-tests: New file.
63479         * modules/unictype/property-unassigned-code-value-tests: New file.
63480         * modules/unictype/property-unified-ideograph-tests: New file.
63481         * modules/unictype/property-uppercase-tests: New file.
63482         * modules/unictype/property-variation-selector-tests: New file.
63483         * modules/unictype/property-white-space-tests: New file.
63484         * modules/unictype/property-xid-continue-tests: New file.
63485         * modules/unictype/property-xid-start-tests: New file.
63486         * modules/unictype/property-zero-width-tests: New file.
63487         * modules/unictype/scripts-tests: New file.
63488         * modules/unictype/syntax-c-ident-tests: New file.
63489         * modules/unictype/syntax-c-whitespace-tests: New file.
63490         * modules/unictype/syntax-java-ident-tests: New file.
63491         * modules/unictype/syntax-java-whitespace-tests: New file.
63492         * tests/unictype/test-bidi_byname.c: New file.
63493         * tests/unictype/test-bidi_name.c: New file.
63494         * tests/unictype/test-bidi_of.c: New file.
63495         * tests/unictype/test-bidi_test.c: New file.
63496         * tests/unictype/test-block_list.c: New file.
63497         * tests/unictype/test-block_of.c: New file.
63498         * tests/unictype/test-block_test.c: New file.
63499         * tests/unictype/test-categ_and.c: New file.
63500         * tests/unictype/test-categ_and_not.c: New file.
63501         * tests/unictype/test-categ_byname.c: New file.
63502         * tests/unictype/test-categ_name.c: New file.
63503         * tests/unictype/test-categ_none.c: New file.
63504         * tests/unictype/test-categ_of.c: New file.
63505         * tests/unictype/test-categ_or.c: New file.
63506         * tests/unictype/test-categ_test_withtable.c: New file.
63507         * tests/unictype/test-combining.c: New file.
63508         * tests/unictype/test-decdigit.c: New file.
63509         * tests/unictype/test-digit.c: New file.
63510         * tests/unictype/test-mirror.c: New file.
63511         * tests/unictype/test-numeric.c: New file.
63512         * tests/unictype/test-pr_byname.c: New file.
63513         * tests/unictype/test-pr_test.c: New file.
63514         * tests/unictype/test-predicate-part1.h: New file.
63515         * tests/unictype/test-predicate-part2.h: New file.
63516         * tests/unictype/test-scripts.c: New file.
63517         * tests/unictype/test-sy_c_ident.c: New file.
63518         * tests/unictype/test-sy_java_ident.c: New file.
63519
63520         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63521         for Unicode 5.0.0.
63522         * tests/unictype/test-categ_Cc.c: Likewise.
63523         * tests/unictype/test-categ_Cf.c: Likewise.
63524         * tests/unictype/test-categ_Cn.c: Likewise.
63525         * tests/unictype/test-categ_Co.c: Likewise.
63526         * tests/unictype/test-categ_Cs.c: Likewise.
63527         * tests/unictype/test-categ_L.c: Likewise.
63528         * tests/unictype/test-categ_Ll.c: Likewise.
63529         * tests/unictype/test-categ_Lm.c: Likewise.
63530         * tests/unictype/test-categ_Lo.c: Likewise.
63531         * tests/unictype/test-categ_Lt.c: Likewise.
63532         * tests/unictype/test-categ_Lu.c: Likewise.
63533         * tests/unictype/test-categ_M.c: Likewise.
63534         * tests/unictype/test-categ_Mc.c: Likewise.
63535         * tests/unictype/test-categ_Me.c: Likewise.
63536         * tests/unictype/test-categ_Mn.c: Likewise.
63537         * tests/unictype/test-categ_N.c: Likewise.
63538         * tests/unictype/test-categ_Nd.c: Likewise.
63539         * tests/unictype/test-categ_Nl.c: Likewise.
63540         * tests/unictype/test-categ_No.c: Likewise.
63541         * tests/unictype/test-categ_P.c: Likewise.
63542         * tests/unictype/test-categ_Pc.c: Likewise.
63543         * tests/unictype/test-categ_Pd.c: Likewise.
63544         * tests/unictype/test-categ_Pe.c: Likewise.
63545         * tests/unictype/test-categ_Pf.c: Likewise.
63546         * tests/unictype/test-categ_Pi.c: Likewise.
63547         * tests/unictype/test-categ_Po.c: Likewise.
63548         * tests/unictype/test-categ_Ps.c: Likewise.
63549         * tests/unictype/test-categ_S.c: Likewise.
63550         * tests/unictype/test-categ_Sc.c: Likewise.
63551         * tests/unictype/test-categ_Sk.c: Likewise.
63552         * tests/unictype/test-categ_Sm.c: Likewise.
63553         * tests/unictype/test-categ_So.c: Likewise.
63554         * tests/unictype/test-categ_Z.c: Likewise.
63555         * tests/unictype/test-categ_Zl.c: Likewise.
63556         * tests/unictype/test-categ_Zp.c: Likewise.
63557         * tests/unictype/test-categ_Zs.c: Likewise.
63558         * tests/unictype/test-ctype_alnum.c: Likewise.
63559         * tests/unictype/test-ctype_alpha.c: Likewise.
63560         * tests/unictype/test-ctype_blank.c: Likewise.
63561         * tests/unictype/test-ctype_cntrl.c: Likewise.
63562         * tests/unictype/test-ctype_digit.c: Likewise.
63563         * tests/unictype/test-ctype_graph.c: Likewise.
63564         * tests/unictype/test-ctype_lower.c: Likewise.
63565         * tests/unictype/test-ctype_print.c: Likewise.
63566         * tests/unictype/test-ctype_punct.c: Likewise.
63567         * tests/unictype/test-ctype_space.c: Likewise.
63568         * tests/unictype/test-ctype_upper.c: Likewise.
63569         * tests/unictype/test-ctype_xdigit.c: Likewise.
63570         * tests/unictype/test-decdigit.h: Likewise.
63571         * tests/unictype/test-digit.h: Likewise.
63572         * tests/unictype/test-numeric.h: Likewise.
63573         * tests/unictype/test-pr_alphabetic.c: Likewise.
63574         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63575         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63576         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63577         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63578         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63579         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63580         * tests/unictype/test-pr_bidi_control.c: Likewise.
63581         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63582         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63584         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63585         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63586         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63587         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63588         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63589         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63590         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63591         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63592         * tests/unictype/test-pr_combining.c: Likewise.
63593         * tests/unictype/test-pr_composite.c: Likewise.
63594         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63595         * tests/unictype/test-pr_dash.c: Likewise.
63596         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63597         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63598         * tests/unictype/test-pr_deprecated.c: Likewise.
63599         * tests/unictype/test-pr_diacritic.c: Likewise.
63600         * tests/unictype/test-pr_extender.c: Likewise.
63601         * tests/unictype/test-pr_format_control.c: Likewise.
63602         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63603         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63604         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63605         * tests/unictype/test-pr_hex_digit.c: Likewise.
63606         * tests/unictype/test-pr_hyphen.c: Likewise.
63607         * tests/unictype/test-pr_id_continue.c: Likewise.
63608         * tests/unictype/test-pr_id_start.c: Likewise.
63609         * tests/unictype/test-pr_ideographic.c: Likewise.
63610         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63611         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63612         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63613         * tests/unictype/test-pr_iso_control.c: Likewise.
63614         * tests/unictype/test-pr_join_control.c: Likewise.
63615         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63616         * tests/unictype/test-pr_line_separator.c: Likewise.
63617         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63618         * tests/unictype/test-pr_lowercase.c: Likewise.
63619         * tests/unictype/test-pr_math.c: Likewise.
63620         * tests/unictype/test-pr_non_break.c: Likewise.
63621         * tests/unictype/test-pr_not_a_character.c: Likewise.
63622         * tests/unictype/test-pr_numeric.c: Likewise.
63623         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63624         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63625         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63626         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63627         * tests/unictype/test-pr_other_id_start.c: Likewise.
63628         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63629         * tests/unictype/test-pr_other_math.c: Likewise.
63630         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63631         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63632         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63633         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63634         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63635         * tests/unictype/test-pr_private_use.c: Likewise.
63636         * tests/unictype/test-pr_punctuation.c: Likewise.
63637         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63638         * tests/unictype/test-pr_radical.c: Likewise.
63639         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63640         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63641         * tests/unictype/test-pr_space.c: Likewise.
63642         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63643         * tests/unictype/test-pr_titlecase.c: Likewise.
63644         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63645         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63646         * tests/unictype/test-pr_uppercase.c: Likewise.
63647         * tests/unictype/test-pr_variation_selector.c: Likewise.
63648         * tests/unictype/test-pr_white_space.c: Likewise.
63649         * tests/unictype/test-pr_xid_continue.c: Likewise.
63650         * tests/unictype/test-pr_xid_start.c: Likewise.
63651         * tests/unictype/test-pr_zero_width.c: Likewise.
63652         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63653         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63654
63655 2007-11-12  Bruno Haible  <bruno@clisp.org>
63656
63657         Unicode character classification functions.
63658         * lib/unictype.h: New file.
63659         * modules/unictype/base: New file.
63660         * modules/unictype/category-L: New file.
63661         * modules/unictype/category-Lu: New file.
63662         * modules/unictype/category-Ll: New file.
63663         * modules/unictype/category-Lt: New file.
63664         * modules/unictype/category-Lm: New file.
63665         * modules/unictype/category-Lo: New file.
63666         * modules/unictype/category-M: New file.
63667         * modules/unictype/category-Mn: New file.
63668         * modules/unictype/category-Mc: New file.
63669         * modules/unictype/category-Me: New file.
63670         * modules/unictype/category-N: New file.
63671         * modules/unictype/category-Nd: New file.
63672         * modules/unictype/category-Nl: New file.
63673         * modules/unictype/category-No: New file.
63674         * modules/unictype/category-P: New file.
63675         * modules/unictype/category-Pc: New file.
63676         * modules/unictype/category-Pd: New file.
63677         * modules/unictype/category-Ps: New file.
63678         * modules/unictype/category-Pe: New file.
63679         * modules/unictype/category-Pi: New file.
63680         * modules/unictype/category-Pf: New file.
63681         * modules/unictype/category-Po: New file.
63682         * modules/unictype/category-S: New file.
63683         * modules/unictype/category-Sm: New file.
63684         * modules/unictype/category-Sc: New file.
63685         * modules/unictype/category-Sk: New file.
63686         * modules/unictype/category-So: New file.
63687         * modules/unictype/category-Z: New file.
63688         * modules/unictype/category-Zs: New file.
63689         * modules/unictype/category-Zl: New file.
63690         * modules/unictype/category-Zp: New file.
63691         * modules/unictype/category-C: New file.
63692         * modules/unictype/category-Cc: New file.
63693         * modules/unictype/category-Cf: New file.
63694         * modules/unictype/category-Cs: New file.
63695         * modules/unictype/category-Co: New file.
63696         * modules/unictype/category-Cn: New file.
63697         * modules/unictype/category-or: New file.
63698         * modules/unictype/category-of: New file.
63699         * modules/unictype/category-test: New file.
63700         * modules/unictype/category-test-withtable: New file.
63701         * modules/unictype/category-byname: New file.
63702         * modules/unictype/category-none: New file.
63703         * modules/unictype/category-and: New file.
63704         * modules/unictype/category-and-not: New file.
63705         * modules/unictype/category-name: New file.
63706         * modules/unictype/combining-class: New file.
63707         * modules/unictype/category-all: New file.
63708         * modules/unictype/bidicategory-all: New file.
63709         * modules/unictype/bidicategory-byname: New file.
63710         * modules/unictype/bidicategory-name: New file.
63711         * modules/unictype/bidicategory-of: New file.
63712         * modules/unictype/bidicategory-test: New file.
63713         * modules/unictype/decimal-digit: New file.
63714         * modules/unictype/digit: New file.
63715         * modules/unictype/numeric: New file.
63716         * modules/unictype/mirror: New file.
63717         * modules/unictype/property-white-space: New file.
63718         * modules/unictype/property-alphabetic: New file.
63719         * modules/unictype/property-other-alphabetic: New file.
63720         * modules/unictype/property-not-a-character: New file.
63721         * modules/unictype/property-default-ignorable-code-point: New file.
63722         * modules/unictype/property-other-default-ignorable-code-point: New
63723         file.
63724         * modules/unictype/property-deprecated: New file.
63725         * modules/unictype/property-logical-order-exception: New file.
63726         * modules/unictype/property-variation-selector: New file.
63727         * modules/unictype/property-private-use: New file.
63728         * modules/unictype/property-unassigned-code-value: New file.
63729         * modules/unictype/property-uppercase: New file.
63730         * modules/unictype/property-other-uppercase: New file.
63731         * modules/unictype/property-lowercase: New file.
63732         * modules/unictype/property-other-lowercase: New file.
63733         * modules/unictype/property-titlecase: New file.
63734         * modules/unictype/property-soft-dotted: New file.
63735         * modules/unictype/property-id-start: New file.
63736         * modules/unictype/property-other-id-start: New file.
63737         * modules/unictype/property-id-continue: New file.
63738         * modules/unictype/property-other-id-continue: New file.
63739         * modules/unictype/property-xid-start: New file.
63740         * modules/unictype/property-xid-continue: New file.
63741         * modules/unictype/property-pattern-white-space: New file.
63742         * modules/unictype/property-pattern-syntax: New file.
63743         * modules/unictype/property-join-control: New file.
63744         * modules/unictype/property-grapheme-base: New file.
63745         * modules/unictype/property-grapheme-extend: New file.
63746         * modules/unictype/property-other-grapheme-extend: New file.
63747         * modules/unictype/property-grapheme-link: New file.
63748         * modules/unictype/property-bidi-control: New file.
63749         * modules/unictype/property-bidi-left-to-right: New file.
63750         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63751         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63752         * modules/unictype/property-bidi-european-digit: New file.
63753         * modules/unictype/property-bidi-eur-num-separator: New file.
63754         * modules/unictype/property-bidi-eur-num-terminator: New file.
63755         * modules/unictype/property-bidi-arabic-digit: New file.
63756         * modules/unictype/property-bidi-common-separator: New file.
63757         * modules/unictype/property-bidi-block-separator: New file.
63758         * modules/unictype/property-bidi-segment-separator: New file.
63759         * modules/unictype/property-bidi-whitespace: New file.
63760         * modules/unictype/property-bidi-non-spacing-mark: New file.
63761         * modules/unictype/property-bidi-boundary-neutral: New file.
63762         * modules/unictype/property-bidi-pdf: New file.
63763         * modules/unictype/property-bidi-embedding-or-override: New file.
63764         * modules/unictype/property-bidi-other-neutral: New file.
63765         * modules/unictype/property-hex-digit: New file.
63766         * modules/unictype/property-ascii-hex-digit: New file.
63767         * modules/unictype/property-ideographic: New file.
63768         * modules/unictype/property-unified-ideograph: New file.
63769         * modules/unictype/property-radical: New file.
63770         * modules/unictype/property-ids-binary-operator: New file.
63771         * modules/unictype/property-ids-trinary-operator: New file.
63772         * modules/unictype/property-zero-width: New file.
63773         * modules/unictype/property-space: New file.
63774         * modules/unictype/property-non-break: New file.
63775         * modules/unictype/property-iso-control: New file.
63776         * modules/unictype/property-format-control: New file.
63777         * modules/unictype/property-dash: New file.
63778         * modules/unictype/property-hyphen: New file.
63779         * modules/unictype/property-punctuation: New file.
63780         * modules/unictype/property-line-separator: New file.
63781         * modules/unictype/property-paragraph-separator: New file.
63782         * modules/unictype/property-quotation-mark: New file.
63783         * modules/unictype/property-sentence-terminal: New file.
63784         * modules/unictype/property-terminal-punctuation: New file.
63785         * modules/unictype/property-currency-symbol: New file.
63786         * modules/unictype/property-math: New file.
63787         * modules/unictype/property-other-math: New file.
63788         * modules/unictype/property-paired-punctuation: New file.
63789         * modules/unictype/property-left-of-pair: New file.
63790         * modules/unictype/property-combining: New file.
63791         * modules/unictype/property-composite: New file.
63792         * modules/unictype/property-decimal-digit: New file.
63793         * modules/unictype/property-numeric: New file.
63794         * modules/unictype/property-diacritic: New file.
63795         * modules/unictype/property-extender: New file.
63796         * modules/unictype/property-ignorable-control: New file.
63797         * modules/unictype/property-test: New file.
63798         * modules/unictype/property-byname: New file.
63799         * modules/unictype/property-all: New file.
63800         * modules/unictype/scripts: New file.
63801         * modules/unictype/scripts-all: New file.
63802         * modules/unictype/block-of: New file.
63803         * modules/unictype/block-test: New file.
63804         * modules/unictype/block-list: New file.
63805         * modules/unictype/block-all: New file.
63806         * modules/unictype/syntax-c-whitespace: New file.
63807         * modules/unictype/syntax-java-whitespace: New file.
63808         * modules/unictype/syntax-c-ident: New file.
63809         * modules/unictype/syntax-java-ident: New file.
63810         * modules/unictype/ctype-alnum: New file.
63811         * modules/unictype/ctype-alpha: New file.
63812         * modules/unictype/ctype-cntrl: New file.
63813         * modules/unictype/ctype-digit: New file.
63814         * modules/unictype/ctype-graph: New file.
63815         * modules/unictype/ctype-lower: New file.
63816         * modules/unictype/ctype-print: New file.
63817         * modules/unictype/ctype-punct: New file.
63818         * modules/unictype/ctype-space: New file.
63819         * modules/unictype/ctype-upper: New file.
63820         * modules/unictype/ctype-xdigit: New file.
63821         * modules/unictype/ctype-blank: New file.
63822         * lib/unictype/bidi_byname.c: New file.
63823         * lib/unictype/bidi_name.c: New file.
63824         * lib/unictype/bidi_of.c: New file.
63825         * lib/unictype/bidi_test.c: New file.
63826         * lib/unictype/bitmap.h: New file.
63827         * lib/unictype/block_test.c: New file.
63828         * lib/unictype/blocks.c: New file.
63829         * lib/unictype/categ_C.c: New file.
63830         * lib/unictype/categ_Cc.c: New file.
63831         * lib/unictype/categ_Cf.c: New file.
63832         * lib/unictype/categ_Cn.c: New file.
63833         * lib/unictype/categ_Co.c: New file.
63834         * lib/unictype/categ_Cs.c: New file.
63835         * lib/unictype/categ_L.c: New file.
63836         * lib/unictype/categ_Ll.c: New file.
63837         * lib/unictype/categ_Lm.c: New file.
63838         * lib/unictype/categ_Lo.c: New file.
63839         * lib/unictype/categ_Lt.c: New file.
63840         * lib/unictype/categ_Lu.c: New file.
63841         * lib/unictype/categ_M.c: New file.
63842         * lib/unictype/categ_Mc.c: New file.
63843         * lib/unictype/categ_Me.c: New file.
63844         * lib/unictype/categ_Mn.c: New file.
63845         * lib/unictype/categ_N.c: New file.
63846         * lib/unictype/categ_Nd.c: New file.
63847         * lib/unictype/categ_Nl.c: New file.
63848         * lib/unictype/categ_No.c: New file.
63849         * lib/unictype/categ_P.c: New file.
63850         * lib/unictype/categ_Pc.c: New file.
63851         * lib/unictype/categ_Pd.c: New file.
63852         * lib/unictype/categ_Pe.c: New file.
63853         * lib/unictype/categ_Pf.c: New file.
63854         * lib/unictype/categ_Pi.c: New file.
63855         * lib/unictype/categ_Po.c: New file.
63856         * lib/unictype/categ_Ps.c: New file.
63857         * lib/unictype/categ_S.c: New file.
63858         * lib/unictype/categ_Sc.c: New file.
63859         * lib/unictype/categ_Sk.c: New file.
63860         * lib/unictype/categ_Sm.c: New file.
63861         * lib/unictype/categ_So.c: New file.
63862         * lib/unictype/categ_Z.c: New file.
63863         * lib/unictype/categ_Zl.c: New file.
63864         * lib/unictype/categ_Zp.c: New file.
63865         * lib/unictype/categ_Zs.c: New file.
63866         * lib/unictype/categ_and.c: New file.
63867         * lib/unictype/categ_and_not.c: New file.
63868         * lib/unictype/categ_byname.c: New file.
63869         * lib/unictype/categ_name.c: New file.
63870         * lib/unictype/categ_none.c: New file.
63871         * lib/unictype/categ_of.c: New file.
63872         * lib/unictype/categ_or.c: New file.
63873         * lib/unictype/categ_test.c: New file.
63874         * lib/unictype/combining.c: New file.
63875         * lib/unictype/ctype_alnum.c: New file.
63876         * lib/unictype/ctype_alpha.c: New file.
63877         * lib/unictype/ctype_blank.c: New file.
63878         * lib/unictype/ctype_cntrl.c: New file.
63879         * lib/unictype/ctype_digit.c: New file.
63880         * lib/unictype/ctype_graph.c: New file.
63881         * lib/unictype/ctype_lower.c: New file.
63882         * lib/unictype/ctype_print.c: New file.
63883         * lib/unictype/ctype_punct.c: New file.
63884         * lib/unictype/ctype_space.c: New file.
63885         * lib/unictype/ctype_upper.c: New file.
63886         * lib/unictype/ctype_xdigit.c: New file.
63887         * lib/unictype/decdigit.c: New file.
63888         * lib/unictype/digit.c: New file.
63889         * lib/unictype/identsyntaxmap.h: New file.
63890         * lib/unictype/mirror.c: New file.
63891         * lib/unictype/numeric.c: New file.
63892         * lib/unictype/pr_alphabetic.c: New file.
63893         * lib/unictype/pr_ascii_hex_digit.c: New file.
63894         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63895         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63896         * lib/unictype/pr_bidi_block_separator.c: New file.
63897         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63898         * lib/unictype/pr_bidi_common_separator.c: New file.
63899         * lib/unictype/pr_bidi_control.c: New file.
63900         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63901         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63902         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63903         * lib/unictype/pr_bidi_european_digit.c: New file.
63904         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63905         * lib/unictype/pr_bidi_left_to_right.c: New file.
63906         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63907         * lib/unictype/pr_bidi_other_neutral.c: New file.
63908         * lib/unictype/pr_bidi_pdf.c: New file.
63909         * lib/unictype/pr_bidi_segment_separator.c: New file.
63910         * lib/unictype/pr_bidi_whitespace.c: New file.
63911         * lib/unictype/pr_byname.c: New file.
63912         * lib/unictype/pr_byname.gperf: New file.
63913         * lib/unictype/pr_combining.c: New file.
63914         * lib/unictype/pr_composite.c: New file.
63915         * lib/unictype/pr_currency_symbol.c: New file.
63916         * lib/unictype/pr_dash.c: New file.
63917         * lib/unictype/pr_decimal_digit.c: New file.
63918         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63919         * lib/unictype/pr_deprecated.c: New file.
63920         * lib/unictype/pr_diacritic.c: New file.
63921         * lib/unictype/pr_extender.c: New file.
63922         * lib/unictype/pr_format_control.c: New file.
63923         * lib/unictype/pr_grapheme_base.c: New file.
63924         * lib/unictype/pr_grapheme_extend.c: New file.
63925         * lib/unictype/pr_grapheme_link.c: New file.
63926         * lib/unictype/pr_hex_digit.c: New file.
63927         * lib/unictype/pr_hyphen.c: New file.
63928         * lib/unictype/pr_id_continue.c: New file.
63929         * lib/unictype/pr_id_start.c: New file.
63930         * lib/unictype/pr_ideographic.c: New file.
63931         * lib/unictype/pr_ids_binary_operator.c: New file.
63932         * lib/unictype/pr_ids_trinary_operator.c: New file.
63933         * lib/unictype/pr_ignorable_control.c: New file.
63934         * lib/unictype/pr_iso_control.c: New file.
63935         * lib/unictype/pr_join_control.c: New file.
63936         * lib/unictype/pr_left_of_pair.c: New file.
63937         * lib/unictype/pr_line_separator.c: New file.
63938         * lib/unictype/pr_logical_order_exception.c: New file.
63939         * lib/unictype/pr_lowercase.c: New file.
63940         * lib/unictype/pr_math.c: New file.
63941         * lib/unictype/pr_non_break.c: New file.
63942         * lib/unictype/pr_not_a_character.c: New file.
63943         * lib/unictype/pr_numeric.c: New file.
63944         * lib/unictype/pr_other_alphabetic.c: New file.
63945         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63946         * lib/unictype/pr_other_grapheme_extend.c: New file.
63947         * lib/unictype/pr_other_id_continue.c: New file.
63948         * lib/unictype/pr_other_id_start.c: New file.
63949         * lib/unictype/pr_other_lowercase.c: New file.
63950         * lib/unictype/pr_other_math.c: New file.
63951         * lib/unictype/pr_other_uppercase.c: New file.
63952         * lib/unictype/pr_paired_punctuation.c: New file.
63953         * lib/unictype/pr_paragraph_separator.c: New file.
63954         * lib/unictype/pr_pattern_syntax.c: New file.
63955         * lib/unictype/pr_pattern_white_space.c: New file.
63956         * lib/unictype/pr_private_use.c: New file.
63957         * lib/unictype/pr_punctuation.c: New file.
63958         * lib/unictype/pr_quotation_mark.c: New file.
63959         * lib/unictype/pr_radical.c: New file.
63960         * lib/unictype/pr_sentence_terminal.c: New file.
63961         * lib/unictype/pr_soft_dotted.c: New file.
63962         * lib/unictype/pr_space.c: New file.
63963         * lib/unictype/pr_terminal_punctuation.c: New file.
63964         * lib/unictype/pr_test.c: New file.
63965         * lib/unictype/pr_titlecase.c: New file.
63966         * lib/unictype/pr_unassigned_code_value.c: New file.
63967         * lib/unictype/pr_unified_ideograph.c: New file.
63968         * lib/unictype/pr_uppercase.c: New file.
63969         * lib/unictype/pr_variation_selector.c: New file.
63970         * lib/unictype/pr_white_space.c: New file.
63971         * lib/unictype/pr_xid_continue.c: New file.
63972         * lib/unictype/pr_xid_start.c: New file.
63973         * lib/unictype/pr_zero_width.c: New file.
63974         * lib/unictype/scripts.c: New file.
63975         * lib/unictype/sy_c_ident.c: New file.
63976         * lib/unictype/sy_c_whitespace.c: New file.
63977         * lib/unictype/sy_java_ident.c: New file.
63978         * lib/unictype/sy_java_whitespace.c: New file.
63979
63980         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63981         Unicode 5.0.0.
63982         * lib/unictype/blocks.h: Likewise.
63983         * lib/unictype/categ_C.h: Likewise.
63984         * lib/unictype/categ_Cc.h: Likewise.
63985         * lib/unictype/categ_Cf.h: Likewise.
63986         * lib/unictype/categ_Cn.h: Likewise.
63987         * lib/unictype/categ_Co.h: Likewise.
63988         * lib/unictype/categ_Cs.h: Likewise.
63989         * lib/unictype/categ_L.h: Likewise.
63990         * lib/unictype/categ_Ll.h: Likewise.
63991         * lib/unictype/categ_Lm.h: Likewise.
63992         * lib/unictype/categ_Lo.h: Likewise.
63993         * lib/unictype/categ_Lt.h: Likewise.
63994         * lib/unictype/categ_Lu.h: Likewise.
63995         * lib/unictype/categ_M.h: Likewise.
63996         * lib/unictype/categ_Mc.h: Likewise.
63997         * lib/unictype/categ_Me.h: Likewise.
63998         * lib/unictype/categ_Mn.h: Likewise.
63999         * lib/unictype/categ_N.h: Likewise.
64000         * lib/unictype/categ_Nd.h: Likewise.
64001         * lib/unictype/categ_Nl.h: Likewise.
64002         * lib/unictype/categ_No.h: Likewise.
64003         * lib/unictype/categ_P.h: Likewise.
64004         * lib/unictype/categ_Pc.h: Likewise.
64005         * lib/unictype/categ_Pd.h: Likewise.
64006         * lib/unictype/categ_Pe.h: Likewise.
64007         * lib/unictype/categ_Pf.h: Likewise.
64008         * lib/unictype/categ_Pi.h: Likewise.
64009         * lib/unictype/categ_Po.h: Likewise.
64010         * lib/unictype/categ_Ps.h: Likewise.
64011         * lib/unictype/categ_S.h: Likewise.
64012         * lib/unictype/categ_Sc.h: Likewise.
64013         * lib/unictype/categ_Sk.h: Likewise.
64014         * lib/unictype/categ_Sm.h: Likewise.
64015         * lib/unictype/categ_So.h: Likewise.
64016         * lib/unictype/categ_Z.h: Likewise.
64017         * lib/unictype/categ_Zl.h: Likewise.
64018         * lib/unictype/categ_Zp.h: Likewise.
64019         * lib/unictype/categ_Zs.h: Likewise.
64020         * lib/unictype/categ_of.h: Likewise.
64021         * lib/unictype/combining.h: Likewise.
64022         * lib/unictype/ctype_alnum.h: Likewise.
64023         * lib/unictype/ctype_alpha.h: Likewise.
64024         * lib/unictype/ctype_blank.h: Likewise.
64025         * lib/unictype/ctype_cntrl.h: Likewise.
64026         * lib/unictype/ctype_digit.h: Likewise.
64027         * lib/unictype/ctype_graph.h: Likewise.
64028         * lib/unictype/ctype_lower.h: Likewise.
64029         * lib/unictype/ctype_print.h: Likewise.
64030         * lib/unictype/ctype_punct.h: Likewise.
64031         * lib/unictype/ctype_space.h: Likewise.
64032         * lib/unictype/ctype_upper.h: Likewise.
64033         * lib/unictype/ctype_xdigit.h: Likewise.
64034         * lib/unictype/decdigit.h: Likewise.
64035         * lib/unictype/digit.h: Likewise.
64036         * lib/unictype/mirror.h: Likewise.
64037         * lib/unictype/numeric.h: Likewise.
64038         * lib/unictype/pr_alphabetic.h: Likewise.
64039         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64040         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64041         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64042         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64043         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64044         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64045         * lib/unictype/pr_bidi_control.h: Likewise.
64046         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64047         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64048         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64049         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64050         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64051         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64052         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64053         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64054         * lib/unictype/pr_bidi_pdf.h: Likewise.
64055         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64056         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64057         * lib/unictype/pr_combining.h: Likewise.
64058         * lib/unictype/pr_composite.h: Likewise.
64059         * lib/unictype/pr_currency_symbol.h: Likewise.
64060         * lib/unictype/pr_dash.h: Likewise.
64061         * lib/unictype/pr_decimal_digit.h: Likewise.
64062         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64063         * lib/unictype/pr_deprecated.h: Likewise.
64064         * lib/unictype/pr_diacritic.h: Likewise.
64065         * lib/unictype/pr_extender.h: Likewise.
64066         * lib/unictype/pr_format_control.h: Likewise.
64067         * lib/unictype/pr_grapheme_base.h: Likewise.
64068         * lib/unictype/pr_grapheme_extend.h: Likewise.
64069         * lib/unictype/pr_grapheme_link.h: Likewise.
64070         * lib/unictype/pr_hex_digit.h: Likewise.
64071         * lib/unictype/pr_hyphen.h: Likewise.
64072         * lib/unictype/pr_id_continue.h: Likewise.
64073         * lib/unictype/pr_id_start.h: Likewise.
64074         * lib/unictype/pr_ideographic.h: Likewise.
64075         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64076         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64077         * lib/unictype/pr_ignorable_control.h: Likewise.
64078         * lib/unictype/pr_iso_control.h: Likewise.
64079         * lib/unictype/pr_join_control.h: Likewise.
64080         * lib/unictype/pr_left_of_pair.h: Likewise.
64081         * lib/unictype/pr_line_separator.h: Likewise.
64082         * lib/unictype/pr_logical_order_exception.h: Likewise.
64083         * lib/unictype/pr_lowercase.h: Likewise.
64084         * lib/unictype/pr_math.h: Likewise.
64085         * lib/unictype/pr_non_break.h: Likewise.
64086         * lib/unictype/pr_not_a_character.h: Likewise.
64087         * lib/unictype/pr_numeric.h: Likewise.
64088         * lib/unictype/pr_other_alphabetic.h: Likewise.
64089         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64090         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64091         * lib/unictype/pr_other_id_continue.h: Likewise.
64092         * lib/unictype/pr_other_id_start.h: Likewise.
64093         * lib/unictype/pr_other_lowercase.h: Likewise.
64094         * lib/unictype/pr_other_math.h: Likewise.
64095         * lib/unictype/pr_other_uppercase.h: Likewise.
64096         * lib/unictype/pr_paired_punctuation.h: Likewise.
64097         * lib/unictype/pr_paragraph_separator.h: Likewise.
64098         * lib/unictype/pr_pattern_syntax.h: Likewise.
64099         * lib/unictype/pr_pattern_white_space.h: Likewise.
64100         * lib/unictype/pr_private_use.h: Likewise.
64101         * lib/unictype/pr_punctuation.h: Likewise.
64102         * lib/unictype/pr_quotation_mark.h: Likewise.
64103         * lib/unictype/pr_radical.h: Likewise.
64104         * lib/unictype/pr_sentence_terminal.h: Likewise.
64105         * lib/unictype/pr_soft_dotted.h: Likewise.
64106         * lib/unictype/pr_space.h: Likewise.
64107         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64108         * lib/unictype/pr_titlecase.h: Likewise.
64109         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64110         * lib/unictype/pr_unified_ideograph.h: Likewise.
64111         * lib/unictype/pr_uppercase.h: Likewise.
64112         * lib/unictype/pr_variation_selector.h: Likewise.
64113         * lib/unictype/pr_white_space.h: Likewise.
64114         * lib/unictype/pr_xid_continue.h: Likewise.
64115         * lib/unictype/pr_xid_start.h: Likewise.
64116         * lib/unictype/pr_zero_width.h: Likewise.
64117         * lib/unictype/scripts.h: Likewise.
64118         * lib/unictype/scripts_byname.gperf: Likewise.
64119         * lib/unictype/sy_c_ident.h: Likewise.
64120         * lib/unictype/sy_c_whitespace.h: Likewise.
64121         * lib/unictype/sy_java_ident.h: Likewise.
64122         * lib/unictype/sy_java_whitespace.h: Likewise.
64123
64124         * lib/unictype/Makefile: New file.
64125         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64126         glibc.
64127         * lib/unictype/3level.h: New file, copied from glibc.
64128         * lib/unictype/3levelbit.h: New file.
64129
64130 2007-11-11  Bruno Haible  <bruno@clisp.org>
64131
64132         * modules/gperf: New file.
64133         * modules/iconv_open (Depends-on): Add it.
64134         (Makefile.am): Remove the GPERF definition.
64135
64136 2007-11-11  Bruno Haible  <bruno@clisp.org>
64137
64138         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64139         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64140
64141 2007-11-11  Bruno Haible  <bruno@clisp.org>
64142
64143         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64144         (usage): Remove function.
64145
64146 2007-11-11  Bruno Haible  <bruno@clisp.org>
64147
64148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64149         gl_FUNC_CEILF_LIBS.
64150         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64151         gl_FUNC_CEIL_LIBS.
64152         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64153         gl_FUNC_CEILL_LIBS.
64154         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64155         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64156         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64157
64158 2007-11-11  Bruno Haible  <bruno@clisp.org>
64159
64160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64161         roundf were declared but do not exist on functions.
64162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64163         roundl were declared but do not exist on functions.
64164         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64165         HAVE_FLOORL_AND_CEILL, respectively.
64166         Needed for Sun C on Solaris 10.
64167
64168 2007-11-11  Bruno Haible  <bruno@clisp.org>
64169
64170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64171         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64172         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64173         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64174         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64175         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64176         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64177         HAVE_DECL_ROUNDF.
64178         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64179         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64181         of HAVE_DECL_ROUND*.
64182         * modules/math (Makefile.am): Update.
64183
64184 2007-11-10  Bruno Haible  <bruno@clisp.org>
64185
64186         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64187         ptrdiff_t as m4/intl.m4.
64188
64189 2007-11-10  Jim Meyering  <meyering@redhat.com>
64190
64191         Avoid link failure for the argmatch test.
64192         * tests/test-argmatch.c (usage): Define function to avoid a link
64193         failure: argmatch_die requires a usage function.
64194
64195 2007-11-09  Bruno Haible  <bruno@clisp.org>
64196
64197         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64198         * doc/functions/vsnprintf.texi: Likewise.
64199         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64200         with a size argument < 2.
64201
64202 2007-11-09  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64205         buffer. Fixes an inefficiency introduced on 2007-11-03.
64206
64207 2007-11-09  Bruno Haible  <bruno@clisp.org>
64208
64209         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64210         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64211
64212 2007-11-08  Jim Meyering  <meyering@redhat.com>
64213
64214         Change cache variable name prefix "jm_" to "gl_" everywhere.
64215         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64216         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64217         * m4/uptime.m4: s/gl_/jm_/
64218
64219 2007-11-07  Bruno Haible  <bruno@clisp.org>
64220
64221         Update to GNU gettext 0.17.
64222         * m4/intl.m4: Update to GNU gettext 0.17.
64223         * m4/po.m4: Likewise.
64224         * modules/gettext (Files): Remove m4/ulonglong.m4.
64225         (configure.ac): Require gettext infrastructure from version 0.17.
64226
64227 2007-11-06  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64230         symbolic values are not defined in a public header.
64231         * lib/freadable.c (freadable) [QNX]: Likewise.
64232         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64233         * lib/freading.c (freading) [QNX]: Likewise.
64234         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64235         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64236         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64237         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64238         Reported by Alain Magloire.
64239
64240         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64241
64242 2007-11-05  Bruno Haible  <bruno@clisp.org>
64243
64244         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64245         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64246         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64247         Reported by Eric Blake.
64248
64249 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64250             Bruno Haible  <bruno@clisp.org>
64251
64252         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64253         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64254         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64255         (malloc): Undefine also before including <stdlib.h>.
64256         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64257         Needed on OSF/1 4.0.
64258
64259 2007-11-05  Jim Meyering  <meyering@redhat.com>
64260
64261         git-version-gen: sync from coreutils.
64262         * build-aux/git-version-gen: Add comments.
64263         Change the first '-' to '.' in the snapshot version string,
64264         e.g., 6.9-377-08144 -> 6.9.377-08144
64265         Remove first parameter.
64266         Don't declare a version "-dirty" merely because a time
64267         stamp has changed.
64268
64269 2007-11-04  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/lock.h: Protect all macro definitions containing an 'if'
64272         statement through a "do { ... } while (0)".
64273         * lib/tls.h: Likewise.
64274
64275 2007-11-04  Bruno Haible  <bruno@clisp.org>
64276
64277         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64278
64279 2007-11-04  Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64282         * modules/fprintf-posix (Depends-on): Add nocrash.
64283         * modules/snprintf-posix (Depends-on): Likewise.
64284         * modules/sprintf-posix (Depends-on): Likewise.
64285         * modules/vasnprintf-posix (Depends-on): Likewise.
64286         * modules/vasprintf-posix (Depends-on): Likewise.
64287         * modules/vfprintf-posix (Depends-on): Likewise.
64288         * modules/vsnprintf-posix (Depends-on): Likewise.
64289         * modules/vsprintf-posix (Depends-on): Likewise.
64290         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64291         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64292         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64293         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64294         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64295         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64296         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64297
64298 2007-11-04  Bruno Haible  <bruno@clisp.org>
64299
64300         * modules/nocrash: New file.
64301         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64302         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64303
64304 2007-11-04  Bruno Haible  <bruno@clisp.org>
64305
64306         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64307         precision handling.
64308         * tests/test-vasprintf-posix.c (test_function): Likewise.
64309         * tests/test-snprintf-posix.h (test_function): Likewise.
64310         * tests/test-sprintf-posix.h (test_function): Likewise.
64311
64312         Fix *printf behaviour for large precisions on mingw and BeOS.
64313         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64314         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64316         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64317         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64318         gl_PRINTF_PRECISION and test its result. Invoke
64319         gl_PREREQ_VASNPRINTF_PRECISION.
64320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64327         * doc/functions/fprintf.texi: Update.
64328         * doc/functions/printf.texi: Update.
64329         * doc/functions/snprintf.texi: Update.
64330         * doc/functions/sprintf.texi: Update.
64331         * doc/functions/vfprintf.texi: Update.
64332         * doc/functions/vprintf.texi: Update.
64333         * doc/functions/vsnprintf.texi: Update.
64334         * doc/functions/vsprintf.texi: Update.
64335
64336 2007-11-04  Bruno Haible  <bruno@clisp.org>
64337
64338         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64339
64340 2007-11-04  Bruno Haible  <bruno@clisp.org>
64341
64342         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64343         Reported by Sylvain Beucler <beuc@gnu.org>.
64344
64345 2007-11-03  Bruno Haible  <bruno@clisp.org>
64346
64347         * tests/test-fprintf-posix2.sh: New file.
64348         * tests/test-fprintf-posix2.c: New file.
64349         * modules/fprintf-posix-tests (Files): Add them.
64350         (TESTS): Add test-fprintf-posix2.sh.
64351         (configure.ac): Check for getrlimit and setrlimit.
64352         (check_PROGRAMS): Add test-fprintf-posix2.
64353
64354         * tests/test-printf-posix2.sh: New file.
64355         * tests/test-printf-posix2.c: New file.
64356         * modules/printf-posix-tests (Files): Add them.
64357         (TESTS): Add test-printf-posix2.sh.
64358         (configure.ac): Check for getrlimit and setrlimit.
64359         (check_PROGRAMS): Add test-printf-posix2.
64360
64361         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64362         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64363         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64364         (decode_double): New function, copied from decode_long_double.
64365         (scale10_round_decimal_decoded): New function, extracted from
64366         scale10_round_decimal_long_double.
64367         (scale10_round_decimal_long_double): Use it.
64368         (scale10_round_decimal_double): New function.
64369         (floorlog10): New function.
64370         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64372         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64374         gl_PRINTF_ENOMEM and test its result. Invoke
64375         gl_PREREQ_VASNPRINTF_ENOMEM.
64376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64383         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64384         * modules/snprintf-posix (Depends-on): Likewise.
64385         * modules/sprintf-posix (Depends-on): Likewise.
64386         * modules/vasnprintf-posix (Depends-on): Likewise.
64387         * modules/vasprintf-posix (Depends-on): Likewise.
64388         * modules/vfprintf-posix (Depends-on): Likewise.
64389         * modules/vsnprintf-posix (Depends-on): Likewise.
64390         * modules/vsprintf-posix (Depends-on): Likewise.
64391         * doc/functions/fprintf.texi: Update.
64392         * doc/functions/printf.texi: Update.
64393         * doc/functions/snprintf.texi: Update.
64394         * doc/functions/sprintf.texi: Update.
64395         * doc/functions/vfprintf.texi: Update.
64396         * doc/functions/vprintf.texi: Update.
64397         * doc/functions/vsnprintf.texi: Update.
64398         * doc/functions/vsprintf.texi: Update.
64399
64400 2007-11-03  Bruno Haible  <bruno@clisp.org>
64401
64402         * modules/frexp-nolibm-tests: New file.
64403
64404         * modules/frexp-nolibm: New file.
64405         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64406
64407 2007-11-03  Bruno Haible  <bruno@clisp.org>
64408
64409         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64410         value is C99 compliant.
64411         Needed for OSF/1 5.1.
64412
64413 2007-11-03  Bruno Haible  <bruno@clisp.org>
64414
64415         Fix out-of-memory handling of vasnprintf.
64416         * lib/printf-parse.c: Include <errno.h>.
64417         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64418         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64419         is already set.
64420
64421 2007-11-02  Eric Blake  <ebb9@byu.net>
64422
64423         Fix tests on cygwin.
64424         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64425
64426 2007-11-01  Bruno Haible  <bruno@clisp.org>
64427
64428         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64429         warning.
64430         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64431         needed for POSIX compatibility.
64432
64433 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64436         for compatibility with GNU.
64437
64438 2007-11-01  Bruno Haible  <bruno@clisp.org>
64439
64440         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64441         (putenv): Renamed from rpl_putenv. Change argument type from
64442         'const char *' to 'char *'.
64443         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64444         of defining putenv in config.h, just set REPLACE_PUTENV.
64445         * modules/putenv (Depends-on): Add stdlib.
64446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64447         (Include): Use <stdlib.h>.
64448         * lib/stdlib.in.h (putenv): New declaration.
64449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64450         REPLACE_PUTENV.
64451         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64452         REPLACE_PUTENV.
64453         Needed for MacOS X 10.5.0.
64454         Reported by Peter O'Gorman <peter@pogma.com>.
64455
64456 2007-11-01  Jim Meyering  <meyering@redhat.com>
64457
64458         Treat an empty date string exactly like "0".
64459         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64460         if the remaining date string (to be parsed) is empty, use "0".
64461         Reported by Mischa Molhoek and discussed in this thread:
64462         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64463
64464 2007-10-31  Bruno Haible  <bruno@clisp.org>
64465
64466         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64467         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64468         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64469         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64470         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64471         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64472
64473 2007-10-31  Bruno Haible  <bruno@clisp.org>
64474
64475         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64476         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64477         (AC_TYPE_LONG_LONG_INT): Use it.
64478         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64479         it as well.
64480         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64481         to m4/longlong.m4.
64482         * modules/stdint (Files): Remove m4/ulonglong.m4.
64483         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64484         m4/ulonglong.m4.
64485         * modules/strtoumax (Files): Likewise.
64486
64487 2007-10-30  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/xvasprintf-posix: New file.
64490         Suggested by Eric Blake.
64491
64492 2007-10-30  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/xprintf-posix-tests: New file.
64495         * tests/test-xprintf-posix.sh: New file.
64496         * tests/test-xprintf-posix.c: New file.
64497         * tests/test-xfprintf-posix.c: New file.
64498
64499         * modules/xprintf-posix: New file.
64500
64501 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64502
64503         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64504         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64505         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64506
64507 2007-10-29  Bruno Haible  <bruno@clisp.org>
64508
64509         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64510         contain the special marker '_cv_'.
64511         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64512         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64513         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64514         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64515         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64516         Reported by Ralf Wildenhues.
64517
64518 2007-10-29  Bruno Haible  <bruno@clisp.org>
64519
64520         * gnulib-tool (func_import): When --lgpl is not specified, set
64521         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64522         GPLv3.
64523         Reported by Simon Josefsson.
64524
64525 2007-10-28  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64528         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64529         HAVE_DECL_ISFINITE.
64530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64531         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64532         HAVE_DECL_ISFINITE.
64533
64534 2007-10-28  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64537         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64538
64539 2007-10-28  Bruno Haible  <bruno@clisp.org>
64540
64541         Fix link errors with Sun C 5.0 on Solaris 10.
64542         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64543         function is declared but not present in the compiler's libm.
64544         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64545         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64546         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64547         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64548         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64549         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64550         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64552         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64553         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64554         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64555         HAVE_DECL_FLOORL.
64556
64557 2007-10-28  Bruno Haible  <bruno@clisp.org>
64558
64559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64560         gl_FUNC_FLOORL. Cache the result.
64561         (gl_FUNC_FLOORL): Use it.
64562         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64563         gl_FUNC_CEILL. Cache the result.
64564         (gl_FUNC_CEILL): Use it.
64565
64566         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64567         gl_FUNC_FLOOR. Cache the result.
64568         (gl_FUNC_FLOOR): Use it.
64569         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64570         gl_FUNC_CEIL. Cache the result.
64571         (gl_FUNC_CEIL): Use it.
64572
64573         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64574         gl_FUNC_FLOORF. Cache the result.
64575         (gl_FUNC_FLOORF): Use it.
64576         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64577         gl_FUNC_CEILF. Cache the result.
64578         (gl_FUNC_CEILF): Use it.
64579
64580 2007-10-28  Bruno Haible  <bruno@clisp.org>
64581
64582         * gnulib-tool: Allow specifying the LGPL version number through
64583         --lgpl=2 or --lgpl=3.
64584         (func_usage): Document --lgpl with argument.
64585         Handle --lgpl=... arguments.
64586         (func_import): Recognize also gl_LGPL calls with an argument. When
64587         --lgpl=2 is used and the module's license is just LGPL, report an
64588         error. Set sed_transform_lib_file according to the lgpl variable. In
64589         the generated files, use --lgpl or gl_LGPL invocations with argument,
64590         if necessary.
64591         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64592         an LGPv2+ license.
64593         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64594         gl_LGPL macro.
64595
64596 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64597             Bruno Haible  <bruno@clisp.org>
64598
64599         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64600         (u16_uctomb_aux): Likewise.
64601         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64602         !HAVE_INLINE.
64603         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64604
64605 2007-10-28  Bruno Haible  <bruno@clisp.org>
64606
64607         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64608         Invoke AM_GETTEXT_OPTION if it exists.
64609         * modules/vasprintf: Likewise.
64610         * modules/verror: Likewise.
64611         * modules/xprintf: Likewise.
64612         * modules/xvasprintf: Likewise.
64613
64614 2007-10-27  Ben Pfaff  <blp@gnu.org>
64615
64616         * lib/math.in.h: Define isfinite macro and prototypes for
64617         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64618         implementations.
64619         * m4/math_h.m4: New substitutions for isfinite module.
64620         * lib/isfinite.c: New file.
64621         * m4/isfinite.m4: New file.
64622         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64623         * modules/isfinite: New file.
64624         * modules/isfinite-tests: New file.
64625         * tests/tests-isfinite.c: New file.
64626         * doc/functions/isfinite.texi: Mention isfinite module.
64627         * MODULES.html.sh: Mention new module.
64628
64629 2007-10-27  Ben Pfaff  <blp@gnu.org>
64630
64631         Ralf Wildenhues reported that Tru64 4.0D declares the round
64632         functions but does not have definitions.
64633         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64634         cannot be found in any library, set the output variable to
64635         "missing" instead of "".
64636         * m4/round.m4: Also use our substitute if we cannot find round in
64637         any library, even if it is declared.
64638         * m4/roundf.m4: Likewise for roundf.
64639         * m4/roundl.m4: Likewise for roundl.
64640         * lib/math.in.h: Undefine roundf, round, roundl before defining
64641         their replacements, to allow for hypothetical systems where these
64642         may be defined as macros but not available in libraries.
64643
64644 2007-10-27  Bruno Haible  <bruno@clisp.org>
64645
64646         * doc/gnulib.texi: Invoke @firstparagraphindent.
64647         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64648         changes in gnulib.
64649         (Source changes): New section.
64650
64651 2007-10-26  Bruno Haible  <bruno@clisp.org>
64652
64653         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64654         borrowed from autoconf.
64655
64656 2007-10-26  Bruno Haible  <bruno@clisp.org>
64657
64658         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64659         strerror returned the empty string. Needed on HP-UX 11.00.
64660
64661 2007-10-24  Micah Cowan  <micah@cowan.name>
64662
64663         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64664         * build-aux/bootstrap: Remove support for now-unnecessary option,
64665         --cvs-user, and envvars CVS_USER, CVS_RSH.
64666
64667 2007-10-24  Jim Meyering  <meyering@redhat.com>
64668
64669         Avoid diagnostics from sha1sum when there is no cached checksum.
64670         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64671         if the po.s1 file hasn't been created yet.
64672
64673         * build-aux/bootstrap: Sync from coreutils:
64674         2007-10-24  Jim Meyering  <meyering@redhat.com>
64675         Get gnulib from the git repository, not from an obsolete cvs one.
64676         * build-aux/bootstrap: Suggestion from Micah Cowan.
64677         2007-10-04  Jim Meyering  <jim@meyering.net>
64678         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64679         (update_po_files): Work also when there are no .po files in po/.
64680
64681 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         * README: Append ".git" to git and cg examples.
64684         Problem reported by Benoit Sigoure.
64685
64686 2007-10-23  Micah Cowan  <micah@cowan.name>
64687
64688         * users.txt: Add wget.
64689
64690 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64691
64692         Fix linking of some unistdio tests on FreeBSD.
64693         * modules/unistdio/u16-vsnprintf-tests
64694         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64695         * modules/unistdio/u16-vsprintf-tests
64696         (test_u16_vsnprintf1_LDADD): Likewise.
64697         * modules/unistdio/u32-vsnprintf-tests
64698         (test_u32_vsnprintf1_LDADD): Likewise.
64699         * modules/unistdio/u32-vsprintf-tests
64700         (test_u32_vsprintf1_LDADD): Likewise.
64701         * modules/unistdio/u8-vsnprintf-tests
64702         (test_u8_vsnprintf1_LDADD): Likewise.
64703         * modules/unistdio/u8-vsprintf-tests
64704         (test_u8_vsprintf1_LDADD): Likewise.
64705         * modules/unistdio/ulc-vsnprintf-tests
64706         (test_ulc_vsnprintf1_LDADD): Likewise.
64707         * modules/unistdio/ulc-vsprintf-tests
64708         (test_ulc_vsprintf1_LDADD): Likewise.
64709
64710         Fix linking of some uniconv tests on FreeBSD.
64711         * modules/uniconv/u16-conv-from-enc-tests
64712         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64713         * modules/uniconv/u16-conv-to-enc-tests
64714         (test_u16_conv_to_enc_LDADD): Likewise.
64715         * modules/uniconv/u16-strconv-from-enc-tests
64716         (test_u16_strconv_from_enc_LDADD): Likewise.
64717         * modules/uniconv/u16-strconv-to-enc-tests
64718         (test_u16_strconv_to_enc_LDADD): Likewise.
64719         * modules/uniconv/u32-conv-from-enc-tests
64720         (test_u32_conv_from_enc_LDADD): Likewise.
64721         * modules/uniconv/u32-conv-to-enc-tests
64722         (test_u32_conv_to_enc_LDADD): Likewise.
64723         * modules/uniconv/u32-strconv-from-enc-tests
64724         (test_u32_strconv_from_enc_LDADD): Likewise.
64725         * modules/uniconv/u32-strconv-to-enc-tests
64726         (test_u32_strconv_to_enc_LDADD): Likewise.
64727         * modules/uniconv/u8-conv-from-enc-tests
64728         (test_u8_conv_from_enc_LDADD): Likewise.
64729         * modules/uniconv/u8-conv-to-enc-tests
64730         (test_u8_conv_to_enc_LDADD): Likewise.
64731         * modules/uniconv/u8-strconv-from-enc-tests
64732         (test_u8_strconv_from_enc_LDADD): Likewise.
64733         * modules/uniconv/u8-strconv-to-enc-tests
64734         (test_u8_strconv_to_enc_LDADD): Likewise.
64735
64736 2007-10-22  Bruno Haible  <bruno@clisp.org>
64737
64738         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64739         size.
64740
64741 2007-10-22  Eric Blake  <ebb9@byu.net>
64742
64743         Tweak x*printf documentation.
64744         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64745         variable name and comments.
64746         Suggested by Bruno Haible.
64747
64748 2007-10-22  Bruno Haible  <bruno@clisp.org>
64749
64750         * lib/acl.c (copy_acl): Fix file name in comment.
64751
64752 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64753
64754         Fix Tru64 problem with stdbool.h.
64755         * lib/stdbool.in.h (false, true):
64756         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64757         Don't declare as an enum in this situation; it runs afoul of Tru64.
64758         Problem reported by Steven M. Schweda in
64759         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64760
64761 2007-10-22  Eric Blake  <ebb9@byu.net>
64762
64763         Also wrap vf?printf.
64764         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64765         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64766         (xvprintf, xvfprintf): New functions.
64767
64768 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64769
64770         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64771         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64772
64773         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64774         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64775
64776 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64779         by Bruno Haible.
64780
64781 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64782
64783         * lib/getloadavg.c
64784         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64785         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64786
64787         * tests/test-i-ring.c: Work for C89.
64788
64789 2007-10-22  Bruno Haible  <bruno@clisp.org>
64790
64791         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64792         -1u, in preprocessor expression, so that we don't test for the bug
64793         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64795
64796 2007-10-22  Eric Blake  <ebb9@byu.net>
64797
64798         * tests/test-yesno.sh: Silence stderr during test.
64799
64800 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64801
64802         * modules/crypto/gc-camellia: New file.
64803
64804         * m4/gc-camellia.m4: New file.
64805
64806         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64807
64808         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64809
64810 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64811
64812         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64813         --help to stdout.  Reported by sms@antinode.org (Steven
64814         M. Schweda).
64815
64816 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64817
64818         * users.txt: Fix link to libksba.
64819
64820 2007-10-21  Ben Pfaff  <blp@gnu.org>
64821
64822         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64823         round.c roundf implementation that depends on floorf and ceilf to
64824         be tested unconditionally.
64825
64826 2007-10-21  Ben Pfaff  <blp@gnu.org>
64827
64828         * m4/check-libm-func.m4: Removed.
64829         * m4/check-math-lib.m4: New file.
64830         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64831         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64832         definition and lack of AC_LIBOBJ([roundf]).
64833         * m4/roundl.m4: Ditto, and similarly for roundl.
64834         * modules/round: Reference new m4 file.
64835         * modules/roundf: Ditto.
64836         * modules/roundl: Ditto.
64837         * tests/test-round2.c (main): Use ROUND instead of round.
64838         Bug report from Bruno Haible.
64839
64840 2007-10-21  Bruno Haible  <bruno@clisp.org>
64841
64842         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64843         context.
64844
64845 2007-10-21  Bruno Haible  <bruno@clisp.org>
64846
64847         * tests/test-wcwidth.c (main): Allow negative result for some control
64848         characters.
64849
64850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64851         Needed on OSF/1 5.1.
64852
64853 2007-10-21  Bruno Haible  <bruno@clisp.org>
64854
64855         * tests/test-floorf1.c: Include isnanf.h.
64856         (main): Use isnanf() instead of isnan().
64857         * tests/test-ceilf1.c: Include isnanf.h.
64858         (main): Use isnanf() instead of isnan().
64859         * tests/test-truncf1.c: Include isnanf.h.
64860         (main): Use isnanf() instead of isnan().
64861         * tests/test-roundf1.c: Include isnanf.h.
64862         (main): Use isnanf() instead of isnan().
64863
64864 2007-10-21  Eric Blake  <ebb9@byu.net>
64865
64866         * users.txt: Update URL for m4.
64867
64868 2007-10-21  Bruno Haible  <bruno@clisp.org>
64869
64870         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64871
64872 2007-10-21  Bruno Haible  <bruno@clisp.org>
64873
64874         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64875         Git's management files if the CVS files are not present.
64876
64877 2007-10-20  Bruno Haible  <bruno@clisp.org>
64878
64879         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64880         gcc-3.4.x.
64881
64882 2007-10-20  Ben Pfaff  <blp@gnu.org>
64883
64884         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64885         implementations.
64886         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64887         * lib/round.c: New file.
64888         * lib/roundf.c: New file.
64889         * lib/roundl.c: New file.
64890         * m4/round.m4: New file.
64891         * m4/roundf.m4: New file.
64892         * m4/roundl.m4: New file.
64893         * m4/check-libm-func-m4: New file.
64894         * modules/math: Replace round, roundf, roundl related @VARS@ in
64895         math.in.h.
64896         * modules/round: New file.
64897         * modules/round-tests: New file.
64898         * modules/roundf: New file.
64899         * modules/roundf-tests: New file.
64900         * modules/roundl: New file.
64901         * modules/roundl-tests: New file.
64902         * tests/test-round1.c: New file.
64903         * tests/test-round2.c: New file.
64904         * tests/test-roundf1.c: New file.
64905         * tests/test-roundf2.c: New file.
64906         * tests/test-roundl.c: New file.
64907         * doc/functions/round.texi: Mention round module.
64908         * doc/functions/roundf.texi: Mention roundf module.
64909         * doc/functions/roundl.texi: Mention roundl module.
64910         * MODULES.html.sh: Mention new modules.
64911         Thanks to Bruno Haible for suggestions.
64912
64913 2007-10-20  Jim Meyering  <meyering@redhat.com>
64914
64915         * lib/xprintf.c: Include <config.h> unconditionally.
64916
64917         Change xprintf's license to GPL.
64918         * modules/xprintf (License): s/LGPL/GPL/, since this module
64919         depends on modules (exit and exitfail) which are GPL.
64920         Suggestion from Bruno Haible.
64921
64922         xprintf fixes.
64923         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64924         Use a clearer diagnostic.
64925         Patch from Bruno Haible.
64926
64927 2007-10-20  Bruno Haible  <bruno@clisp.org>
64928
64929         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64930         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64932
64933 2007-10-20  Bruno Haible  <bruno@clisp.org>
64934
64935         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64936         precision in the comparison result > x - 1 or similar.
64937         * tests/test-ceilf2.c (correct_result_p): Likewise.
64938         * tests/test-truncf2.c (correct_result_p): Likewise.
64939         * tests/test-trunc2.c (correct_result_p): Likewise.
64940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64941
64942 2007-10-20  Bruno Haible  <bruno@clisp.org>
64943
64944         * modules/ceil: New file.
64945         * m4/ceil.m4: New file.
64946         * doc/functions/ceil.texi: Mention the 'ceil' module.
64947
64948 2007-10-20  Bruno Haible  <bruno@clisp.org>
64949
64950         * modules/floor: New file.
64951         * m4/floor.m4: New file.
64952         * doc/functions/floor.texi: Mention the 'floor' module.
64953
64954 2007-10-20  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64957         of %a.
64958         * modules/floorf-tests (Depends-on): Likewise.
64959         * modules/truncf-tests (Depends-on): Likewise.
64960         * modules/trunc-tests (Depends-on): Likewise.
64961         Reported by Ben Pfaff.
64962
64963 2007-10-19  Jim Meyering  <meyering@redhat.com>
64964
64965         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64966         Don't bother testing specific errno values.  Just test ferror.
64967
64968         New module: xprintf
64969         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64970
64971 2007-10-19  Bruno Haible  <bruno@clisp.org>
64972
64973         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64974         syntax.
64975         * modules/javaexec (Makefile.am): Likewise.
64976         * modules/relocatable-prog (Makefile.am): Likewise.
64977         Suggested by Jim Meyering.
64978
64979 2007-10-18  Bruno Haible  <bruno@clisp.org>
64980
64981         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64982         Reported by Jim Meyering.
64983
64984 2007-10-18  Eric Blake  <ebb9@byu.net>
64985
64986         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64987
64988 2007-10-18  Bruno Haible  <bruno@clisp.org>
64989
64990         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64991         the format string into writable memory. Needed in Fortify conditions.
64992
64993 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64994             Bruno Haible  <bruno@clisp.org>
64995
64996         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64997         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64998         * modules/trim (Depends-on): Add mbchar.
64999         (configure.ac): Add gl_FUNC_MBRTOWC.
65000         (Makefile.am): Augment lib_SOURCES.
65001
65002 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         Modify glob.c to use fstatat and dirfd, to simplify it.
65005         Suggested by Eric Blake.
65006         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65007         Don't include <stdbool.h>; not used.
65008         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65009         (link_exists_p): Simplify implementation, since we can now assume
65010         dirfd and fstatat.
65011         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65012
65013 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65014
65015         * gnulib-tool (func_get_dependencies): Fix sed script to
65016         match only tests.
65017
65018 2007-10-17  Bruno Haible  <bruno@clisp.org>
65019
65020         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65021         allow locale names without encoding suffix.
65022         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65023         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65024
65025 2007-10-16  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65028         * lib/getgroups.c (getgroups): Likewise.
65029         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65030
65031 2007-10-16  Bruno Haible  <bruno@clisp.org>
65032
65033         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65034         * modules/malloc-posix (License): Likewise.
65035         * modules/realloc-posix (License): Likewise.
65036         * modules/calloc-posix (License): Likewise.
65037         * modules/intprops (License): Change from GPL to LGPL, with
65038         Paul Eggert's approval.
65039
65040 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         Merge glibc changes into lib/glob.c.
65043
65044         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65045         2007-10-15 04:59:03 UTC.  Here are the changes:
65046
65047         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65048
65049         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65050
65051         * lib/glob.c: Add some branch prediction throughout.
65052
65053         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65054
65055         [BZ #5103]
65056         * lib/glob.c (glob): Recognize patterns starting \/.
65057
65058         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65059
65060         [BZ #3996]
65061         * lib/glob.c (attribute_hidden): Define if not defined.
65062         (glob): Unescape dirname, filename or username when needed and not
65063         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65064         is NULL.  Handle unescaped [ in pattern without closing ].
65065         Don't pass GLOB_CHECK down to recursive glob for directories.
65066         (__glob_pattern_type): New function.
65067         (__glob_pattern_p): Implement using __glob_pattern_type.
65068         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65069         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65070         Remove unreachable code.
65071
65072         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65073
65074         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65075         explain why there are no leaks.
65076
65077         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65078
65079         [BZ #3253]
65080         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65081         time, rather allocate increasingly bigger arrays of pointers, if
65082         possible with alloca, if too large with malloc.
65083
65084 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65087         Problem reported by H.Merijn Brand in
65088         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65089         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65090         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65091
65092 2007-10-15  Bruno Haible  <bruno@clisp.org>
65093
65094         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65095         with explicit rpl_ prefix.
65096         * lib/fopen.c (fopen): Likewise.
65097         * lib/freopen.c (freopen): Likewise.
65098         * lib/iconv.c (iconv): Likewise.
65099         * lib/iconv_close.c (iconv_close): Likewise.
65100
65101 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65102
65103         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65104
65105 2007-10-15  Bruno Haible  <bruno@clisp.org>
65106
65107         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65108         <stddef.h> instead of <stdlib.h> since we only need NULL.
65109         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65110
65111 2007-10-15  Bruno Haible  <bruno@clisp.org>
65112
65113         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65114         Replace paragraph talking about LIBOBJS.
65115         Reported by Colin Watson <cjwatson@debian.org>.
65116
65117 2007-10-15  Bruno Haible  <bruno@clisp.org>
65118
65119         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65120         <stdlib.h> before using NULL.
65121
65122 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65123
65124         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65125         Reported by Albert Chin <china@thewrittenword.com>.
65126
65127 2007-10-14  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/iconv_open-utf-tests: New file.
65130         * tests/test-iconv-utf.c: New file.
65131
65132         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65133         * modules/iconv_open-utf: New file.
65134         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65135         (iconv, iconv_close): New declarations.
65136         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65137         be defined.
65138         (iconv_open): Add special handling of conversion between UTF-8 and
65139         UTF-{16,32}{BE,LE}.
65140         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65141         * lib/iconv_close.c: New file.
65142         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65143         gl_FUNC_ICONV_OPEN.
65144         (gl_FUNC_ICONV_OPEN): Use it.
65145         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65146         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65147         and REPLACE_ICONV_UTF.
65148         * modules/iconv_open (Depends-on): Add c-strcase.
65149         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65150         ICONV_CONST.
65151         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65152
65153 2007-10-13  Albert Chin  <china@thewrittenword.com>
65154             Bruno Haible  <bruno@clisp.org>
65155
65156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65157         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65158
65159 2007-10-13  Bruno Haible  <bruno@clisp.org>
65160
65161         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65162         defined, use the ISO C99 inline semantics.
65163         * lib/argp.h (ARGP_EI): Likewise.
65164
65165 2007-10-13  Bruno Haible  <bruno@clisp.org>
65166
65167         Handle 'inline' change in gcc 4.3.0.
65168         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65169         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65170         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65171         argp_fmtstream_point): Disable 'extern' declaration if the function
65172         definition is going to be provided inline.
65173         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65174         semantics, not the ISO C99 inline semantics.
65175         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65176         'extern' declaration if the function definition is going to be provided
65177         inline.
65178         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65179         the GNU C inline semantics, not the ISO C99 inline semantics. With
65180         GCC 4.2, avoid a warning.
65181
65182 2007-10-13  Bruno Haible  <bruno@clisp.org>
65183
65184         * lib/freading.h (freading): Enable the use of __freading for
65185         glibc >= 2.7.
65186         * lib/freading.c (freading): Likewise.
65187
65188 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65191         "warning: C99 inline functions are not supported; using GNU89".
65192
65193 2007-10-12  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65196         of 2.
65197         * tests/test-ceilf2.c: New file.
65198         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65199
65200         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65201         * modules/ceilf-tests: Update.
65202
65203 2007-10-12  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65206         of 2.
65207         * tests/test-floorf2.c: New file.
65208         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65209
65210         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65211         * modules/floorf-tests: Update.
65212
65213 2007-10-12  Bruno Haible  <bruno@clisp.org>
65214
65215         * tests/test-trunc2.c: New file.
65216         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65217
65218         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65219         * modules/trunc-tests: Update.
65220
65221 2007-10-12  Bruno Haible  <bruno@clisp.org>
65222
65223         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65224         of 2.
65225         * tests/test-truncf2.c: New file.
65226         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65227
65228         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65229         * modules/truncf-tests: Update.
65230
65231 2007-10-11  Eric Blake  <ebb9@byu.net>
65232
65233         Don't claim strerror is broken on Interix.
65234         * doc/functions/strerror.texi (strerror): Known broken systems are
65235         now Solaris 8, and not Interix.
65236         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65237         Interix on cross-compile.
65238         Reported by Martin Koeppe in
65239         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65240
65241 2007-10-11  Bruno Haible  <bruno@clisp.org>
65242
65243         * modules/i-ring-tests: New file.
65244         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65245         instead of assert.
65246
65247 2007-10-11  Bruno Haible  <bruno@clisp.org>
65248
65249         * modules/filenamecat-tests: New file.
65250         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65251         * lib/filenamecat.c: Remove test code.
65252
65253 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65254
65255         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65256
65257         * lib/strerror.c: Include <string.h> always, to test interface,
65258         and to remove the need for the dummy.
65259         Include intprops.h to compute width instead of doing it ourselves
65260         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65261         (strerror): Define it to return NULL if there's no system strerror.
65262         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65263         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65264         ancient pre-strerror Unix systems well any more.  Saying "unknown
65265         system error" is enough.
65266         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65267         simpler strerror.c implementation.
65268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65269         Simplify the tests to reflect the simpler strerror implementation.
65270         * modules/strerror (Depends-on): Add intprops.
65271
65272 2007-10-09  Eric Blake  <ebb9@byu.net>
65273
65274         Silence test-fpending.
65275         * modules/fpending-tests (Files): Add wrapper script.
65276         * tests/test-fpending.sh: New file.
65277
65278 2007-10-09  Bruno Haible  <bruno@clisp.org>
65279
65280         * MODULES.html.sh (func_module): Don't create a hyperlink for
65281         function names like 'printf_frexp'.
65282         (Misc): Add crc, memxor.
65283         (Characteristics of floating types): New section.
65284         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65285         isnanf-nolibm, signbit, trunc, truncf, truncl.
65286         (Enhancements for ISO C 99 functions): New subsection Input/output.
65287         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65288         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65289         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65290         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65291         (Enhancements for POSIX:2001 functions): Add chdir-long.
65292         (File system functions): Add areadlink, chdir-safer, read-file.
65293         Remove cycle-check.
65294         (File system as inode set): New section.
65295         (Date and time): Add gethrxtime.
65296         (Multithreading): Add openmp.
65297         (Internationalization functions): Add localename.
65298         (Unicode string functions): Add unistr/u*-mbsnlen.
65299         (Support for maintaining and releasing projects): Add git-version-gen.
65300         (Lone files): Remove directories.
65301
65302 2007-10-08  Ben Pfaff  <blp@gnu.org>
65303
65304         * lib/xmalloca.h: Fix typo in comment.
65305
65306 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65307
65308         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65309         when avoiding problems with integer overflow.  Use a portable test
65310         instead.
65311
65312 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65313
65314         * modules/dummy (License): Change to LGPLv2+.
65315         * modules/float (License): Likewise
65316         * modules/realloc (License): Likewise
65317         * modules/stdlib (License): Likewise
65318
65319 2007-10-07  Bruno Haible  <bruno@clisp.org>
65320
65321         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65322         * floor.c (TWO_MANT_DIG): Likewise.
65323         * ceil.c (TWO_MANT_DIG): Likewise.
65324         Reported by Ben Pfaff.
65325
65326 2007-10-07  Bruno Haible  <bruno@clisp.org>
65327
65328         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65329         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65330         * lib/frexp.c (FUNC): Likewise.
65331         * lib/printf-frexp.h (printf_frexp): Likewise.
65332         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65333         * lib/printf-frexp.c (FUNC): Likewise.
65334         Suggested by Jim Meyering.
65335
65336 2007-10-07  Jim Meyering  <meyering@redhat.com>
65337
65338         Make xnanosleep's integer overflow test more robust.
65339         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65340         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65341
65342 2007-10-07  Bruno Haible  <bruno@clisp.org>
65343
65344         * NEWS: Mention the license change.
65345
65346         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65347         abbreviations in the modules files.
65348
65349         Change copyright notice from GPLv2+ to GPLv3+.
65350         * README: Change copyright notice.
65351         * MODULES.html.sh: Likewise.
65352         * build-aux/bootstrap.conf: Likewise.
65353         * build-aux/config.libpath: Likewise.
65354         * build-aux/csharpcomp.sh.in: Likewise.
65355         * build-aux/csharpexec.sh.in: Likewise.
65356         * build-aux/install-reloc: Likewise.
65357         * build-aux/javacomp.sh.in: Likewise.
65358         * build-aux/javaexec.sh.in: Likewise.
65359         * build-aux/ldd.sh.in: Likewise.
65360         * build-aux/reloc-ldflags: Likewise.
65361         * build-aux/relocatable.sh.in: Likewise.
65362         * build-aux/x-to-1.in: Likewise.
65363         * check-module: Likewise.
65364         * config/srclistvars.sh: Likewise.
65365         * gnulib-tool: Likewise.
65366         * lib/acl-internal.h: Likewise.
65367         * lib/acl.c: Likewise.
65368         * lib/acl.h: Likewise.
65369         * lib/acl_entries.c: Likewise.
65370         * lib/areadlink-with-size.c: Likewise.
65371         * lib/areadlink.c: Likewise.
65372         * lib/areadlink.h: Likewise.
65373         * lib/argmatch.c: Likewise.
65374         * lib/argmatch.h: Likewise.
65375         * lib/argp-ba.c: Likewise.
65376         * lib/argp-eexst.c: Likewise.
65377         * lib/argp-fmtstream.c: Likewise.
65378         * lib/argp-fmtstream.h: Likewise.
65379         * lib/argp-fs-xinl.c: Likewise.
65380         * lib/argp-help.c: Likewise.
65381         * lib/argp-namefrob.h: Likewise.
65382         * lib/argp-parse.c: Likewise.
65383         * lib/argp-pin.c: Likewise.
65384         * lib/argp-pv.c: Likewise.
65385         * lib/argp-pvh.c: Likewise.
65386         * lib/argp-xinl.c: Likewise.
65387         * lib/argp.h: Likewise.
65388         * lib/at-func.c: Likewise.
65389         * lib/atanl.c: Likewise.
65390         * lib/backupfile.c: Likewise.
65391         * lib/backupfile.h: Likewise.
65392         * lib/basename.c: Likewise.
65393         * lib/binary-io.h: Likewise.
65394         * lib/byteswap.in.h: Likewise.
65395         * lib/c-stack.c: Likewise.
65396         * lib/c-stack.h: Likewise.
65397         * lib/c-strcasestr.c: Likewise.
65398         * lib/c-strcasestr.h: Likewise.
65399         * lib/c-strstr.c: Likewise.
65400         * lib/c-strstr.h: Likewise.
65401         * lib/c-strtod.c: Likewise.
65402         * lib/calloc.c: Likewise.
65403         * lib/canon-host.c: Likewise.
65404         * lib/canon-host.h: Likewise.
65405         * lib/canonicalize-lgpl.c: Likewise.
65406         * lib/canonicalize.c: Likewise.
65407         * lib/canonicalize.h: Likewise.
65408         * lib/ceil.c: Likewise.
65409         * lib/ceilf.c: Likewise.
65410         * lib/ceill.c: Likewise.
65411         * lib/chdir-long.c: Likewise.
65412         * lib/chdir-long.h: Likewise.
65413         * lib/chdir-safer.c: Likewise.
65414         * lib/chdir-safer.h: Likewise.
65415         * lib/chown.c: Likewise.
65416         * lib/classpath.c: Likewise.
65417         * lib/classpath.h: Likewise.
65418         * lib/clean-temp.c: Likewise.
65419         * lib/clean-temp.h: Likewise.
65420         * lib/cloexec.c: Likewise.
65421         * lib/close-stream.c: Likewise.
65422         * lib/closein.c: Likewise.
65423         * lib/closein.h: Likewise.
65424         * lib/closeout.c: Likewise.
65425         * lib/closeout.h: Likewise.
65426         * lib/concat-filename.c: Likewise.
65427         * lib/copy-file.c: Likewise.
65428         * lib/copy-file.h: Likewise.
65429         * lib/count-one-bits.h: Likewise.
65430         * lib/crc.c: Likewise.
65431         * lib/crc.h: Likewise.
65432         * lib/creat-safer.c: Likewise.
65433         * lib/csharpcomp.c: Likewise.
65434         * lib/csharpcomp.h: Likewise.
65435         * lib/csharpexec.c: Likewise.
65436         * lib/csharpexec.h: Likewise.
65437         * lib/cycle-check.c: Likewise.
65438         * lib/cycle-check.h: Likewise.
65439         * lib/diacrit.c: Likewise.
65440         * lib/diacrit.h: Likewise.
65441         * lib/diffseq.h: Likewise.
65442         * lib/dirchownmod.c: Likewise.
65443         * lib/dirent.in.h: Likewise.
65444         * lib/dirfd.c: Likewise.
65445         * lib/dirfd.h: Likewise.
65446         * lib/dirname.c: Likewise.
65447         * lib/dirname.h: Likewise.
65448         * lib/dummy.c: Likewise.
65449         * lib/dup-safer.c: Likewise.
65450         * lib/dup2.c: Likewise.
65451         * lib/eealloc.h: Likewise.
65452         * lib/error.c: Likewise.
65453         * lib/error.h: Likewise.
65454         * lib/euidaccess.c: Likewise.
65455         * lib/exclude.c: Likewise.
65456         * lib/exclude.h: Likewise.
65457         * lib/execute.c: Likewise.
65458         * lib/execute.h: Likewise.
65459         * lib/exitfail.c: Likewise.
65460         * lib/exitfail.h: Likewise.
65461         * lib/expl.c: Likewise.
65462         * lib/fatal-signal.c: Likewise.
65463         * lib/fatal-signal.h: Likewise.
65464         * lib/fbufmode.c: Likewise.
65465         * lib/fbufmode.h: Likewise.
65466         * lib/fchdir.c: Likewise.
65467         * lib/fchmodat.c: Likewise.
65468         * lib/fchownat.c: Likewise.
65469         * lib/fcntl--.h: Likewise.
65470         * lib/fcntl-safer.h: Likewise.
65471         * lib/fcntl.in.h: Likewise.
65472         * lib/fd-safer.c: Likewise.
65473         * lib/fflush.c: Likewise.
65474         * lib/file-has-acl.c: Likewise.
65475         * lib/file-set.c: Likewise.
65476         * lib/file-type.c: Likewise.
65477         * lib/file-type.h: Likewise.
65478         * lib/fileblocks.c: Likewise.
65479         * lib/filemode.c: Likewise.
65480         * lib/filemode.h: Likewise.
65481         * lib/filename.h: Likewise.
65482         * lib/filenamecat.c: Likewise.
65483         * lib/filenamecat.h: Likewise.
65484         * lib/findprog.c: Likewise.
65485         * lib/findprog.h: Likewise.
65486         * lib/float.in.h: Likewise.
65487         * lib/floor.c: Likewise.
65488         * lib/floorf.c: Likewise.
65489         * lib/floorl.c: Likewise.
65490         * lib/fopen-safer.c: Likewise.
65491         * lib/fopen.c: Likewise.
65492         * lib/fpending.c: Likewise.
65493         * lib/fpending.h: Likewise.
65494         * lib/fprintf.c: Likewise.
65495         * lib/fprintftime.h: Likewise.
65496         * lib/fpucw.h: Likewise.
65497         * lib/fpurge.c: Likewise.
65498         * lib/fpurge.h: Likewise.
65499         * lib/freadable.c: Likewise.
65500         * lib/freadable.h: Likewise.
65501         * lib/freadahead.c: Likewise.
65502         * lib/freadahead.h: Likewise.
65503         * lib/freading.c: Likewise.
65504         * lib/freading.h: Likewise.
65505         * lib/free.c: Likewise.
65506         * lib/freopen.c: Likewise.
65507         * lib/frexp.c: Likewise.
65508         * lib/frexpl.c: Likewise.
65509         * lib/fseek.c: Likewise.
65510         * lib/fseterr.c: Likewise.
65511         * lib/fseterr.h: Likewise.
65512         * lib/fstatat.c: Likewise.
65513         * lib/fstrcmp.c: Likewise.
65514         * lib/fstrcmp.h: Likewise.
65515         * lib/fsusage.c: Likewise.
65516         * lib/fsusage.h: Likewise.
65517         * lib/ftell.c: Likewise.
65518         * lib/ftello.c: Likewise.
65519         * lib/fts-cycle.c: Likewise.
65520         * lib/fts.c: Likewise.
65521         * lib/fts_.h: Likewise.
65522         * lib/full-read.c: Likewise.
65523         * lib/full-read.h: Likewise.
65524         * lib/full-write.c: Likewise.
65525         * lib/full-write.h: Likewise.
65526         * lib/fwritable.c: Likewise.
65527         * lib/fwritable.h: Likewise.
65528         * lib/fwriteerror.c: Likewise.
65529         * lib/fwriteerror.h: Likewise.
65530         * lib/fwriting.c: Likewise.
65531         * lib/fwriting.h: Likewise.
65532         * lib/gcd.c: Likewise.
65533         * lib/gcd.h: Likewise.
65534         * lib/getcwd.c: Likewise.
65535         * lib/getdate.h: Likewise.
65536         * lib/getdate.y: Likewise.
65537         * lib/getdomainname.c: Likewise.
65538         * lib/getdomainname.h: Likewise.
65539         * lib/getgroups.c: Likewise.
65540         * lib/gethostname.c: Likewise.
65541         * lib/gethrxtime.c: Likewise.
65542         * lib/gethrxtime.h: Likewise.
65543         * lib/getloadavg.c: Likewise.
65544         * lib/getndelim2.c: Likewise.
65545         * lib/getndelim2.h: Likewise.
65546         * lib/getnline.c: Likewise.
65547         * lib/getnline.h: Likewise.
65548         * lib/getopt.c: Likewise.
65549         * lib/getopt.in.h: Likewise.
65550         * lib/getopt1.c: Likewise.
65551         * lib/getopt_int.h: Likewise.
65552         * lib/getpagesize.h: Likewise.
65553         * lib/getsubopt.c: Likewise.
65554         * lib/gettime.c: Likewise.
65555         * lib/getugroups.c: Likewise.
65556         * lib/getugroups.h: Likewise.
65557         * lib/getusershell.c: Likewise.
65558         * lib/gl_anyavltree_list1.h: Likewise.
65559         * lib/gl_anyavltree_list2.h: Likewise.
65560         * lib/gl_anyhash_list1.h: Likewise.
65561         * lib/gl_anyhash_list2.h: Likewise.
65562         * lib/gl_anylinked_list1.h: Likewise.
65563         * lib/gl_anylinked_list2.h: Likewise.
65564         * lib/gl_anyrbtree_list1.h: Likewise.
65565         * lib/gl_anyrbtree_list2.h: Likewise.
65566         * lib/gl_anytree_list1.h: Likewise.
65567         * lib/gl_anytree_list2.h: Likewise.
65568         * lib/gl_anytree_oset.h: Likewise.
65569         * lib/gl_anytreehash_list1.h: Likewise.
65570         * lib/gl_anytreehash_list2.h: Likewise.
65571         * lib/gl_array_list.c: Likewise.
65572         * lib/gl_array_list.h: Likewise.
65573         * lib/gl_array_oset.c: Likewise.
65574         * lib/gl_array_oset.h: Likewise.
65575         * lib/gl_avltree_list.c: Likewise.
65576         * lib/gl_avltree_list.h: Likewise.
65577         * lib/gl_avltree_oset.c: Likewise.
65578         * lib/gl_avltree_oset.h: Likewise.
65579         * lib/gl_avltreehash_list.c: Likewise.
65580         * lib/gl_avltreehash_list.h: Likewise.
65581         * lib/gl_carray_list.c: Likewise.
65582         * lib/gl_carray_list.h: Likewise.
65583         * lib/gl_linked_list.c: Likewise.
65584         * lib/gl_linked_list.h: Likewise.
65585         * lib/gl_linkedhash_list.c: Likewise.
65586         * lib/gl_linkedhash_list.h: Likewise.
65587         * lib/gl_list.c: Likewise.
65588         * lib/gl_list.h: Likewise.
65589         * lib/gl_oset.c: Likewise.
65590         * lib/gl_oset.h: Likewise.
65591         * lib/gl_rbtree_list.c: Likewise.
65592         * lib/gl_rbtree_list.h: Likewise.
65593         * lib/gl_rbtree_oset.c: Likewise.
65594         * lib/gl_rbtree_oset.h: Likewise.
65595         * lib/gl_rbtreehash_list.c: Likewise.
65596         * lib/gl_rbtreehash_list.h: Likewise.
65597         * lib/gl_sublist.c: Likewise.
65598         * lib/gl_sublist.h: Likewise.
65599         * lib/group-member.c: Likewise.
65600         * lib/group-member.h: Likewise.
65601         * lib/hard-locale.c: Likewise.
65602         * lib/hard-locale.h: Likewise.
65603         * lib/hash-pjw.c: Likewise.
65604         * lib/hash-pjw.h: Likewise.
65605         * lib/hash-triple.c: Likewise.
65606         * lib/hash.c: Likewise.
65607         * lib/hash.h: Likewise.
65608         * lib/human.c: Likewise.
65609         * lib/human.h: Likewise.
65610         * lib/i-ring.c: Likewise.
65611         * lib/i-ring.h: Likewise.
65612         * lib/idcache.c: Likewise.
65613         * lib/imaxabs.c: Likewise.
65614         * lib/imaxdiv.c: Likewise.
65615         * lib/inet_pton.c: Likewise.
65616         * lib/inet_pton.h: Likewise.
65617         * lib/intprops.h: Likewise.
65618         * lib/inttostr.c: Likewise.
65619         * lib/inttostr.h: Likewise.
65620         * lib/inttypes.in.h: Likewise.
65621         * lib/isapipe.c: Likewise.
65622         * lib/isdir.c: Likewise.
65623         * lib/isnan.c: Likewise.
65624         * lib/isnan.h: Likewise.
65625         * lib/isnanf.c: Likewise.
65626         * lib/isnanf.h: Likewise.
65627         * lib/isnanl-nolibm.h: Likewise.
65628         * lib/isnanl.c: Likewise.
65629         * lib/isnanl.h: Likewise.
65630         * lib/javacomp.c: Likewise.
65631         * lib/javacomp.h: Likewise.
65632         * lib/javaexec.c: Likewise.
65633         * lib/javaexec.h: Likewise.
65634         * lib/javaversion.c: Likewise.
65635         * lib/javaversion.h: Likewise.
65636         * lib/javaversion.java: Likewise.
65637         * lib/lbrkprop.h: Likewise.
65638         * lib/lchmod.h: Likewise.
65639         * lib/lchown.c: Likewise.
65640         * lib/ldexpl.c: Likewise.
65641         * lib/linebreak.c: Likewise.
65642         * lib/linebreak.h: Likewise.
65643         * lib/linebuffer.c: Likewise.
65644         * lib/linebuffer.h: Likewise.
65645         * lib/locale.in.h: Likewise.
65646         * lib/logl.c: Likewise.
65647         * lib/long-options.c: Likewise.
65648         * lib/long-options.h: Likewise.
65649         * lib/lstat.c: Likewise.
65650         * lib/lstat.h: Likewise.
65651         * lib/math.in.h: Likewise.
65652         * lib/mbchar.c: Likewise.
65653         * lib/mbchar.h: Likewise.
65654         * lib/mbfile.h: Likewise.
65655         * lib/mbiter.h: Likewise.
65656         * lib/mbscasecmp.c: Likewise.
65657         * lib/mbscasestr.c: Likewise.
65658         * lib/mbschr.c: Likewise.
65659         * lib/mbscspn.c: Likewise.
65660         * lib/mbslen.c: Likewise.
65661         * lib/mbsncasecmp.c: Likewise.
65662         * lib/mbsnlen.c: Likewise.
65663         * lib/mbspbrk.c: Likewise.
65664         * lib/mbspcasecmp.c: Likewise.
65665         * lib/mbsrchr.c: Likewise.
65666         * lib/mbssep.c: Likewise.
65667         * lib/mbsspn.c: Likewise.
65668         * lib/mbsstr.c: Likewise.
65669         * lib/mbstok_r.c: Likewise.
65670         * lib/mbswidth.c: Likewise.
65671         * lib/mbswidth.h: Likewise.
65672         * lib/mbuiter.h: Likewise.
65673         * lib/memcasecmp.c: Likewise.
65674         * lib/memcasecmp.h: Likewise.
65675         * lib/memchr.c: Likewise.
65676         * lib/memcmp.c: Likewise.
65677         * lib/memcoll.c: Likewise.
65678         * lib/memcoll.h: Likewise.
65679         * lib/memcpy.c: Likewise.
65680         * lib/memrchr.c: Likewise.
65681         * lib/mkancesdirs.c: Likewise.
65682         * lib/mkdir-p.c: Likewise.
65683         * lib/mkdir-p.h: Likewise.
65684         * lib/mkdir.c: Likewise.
65685         * lib/mkdirat.c: Likewise.
65686         * lib/mkdtemp.c: Likewise.
65687         * lib/mkstemp-safer.c: Likewise.
65688         * lib/mkstemp.c: Likewise.
65689         * lib/modechange.c: Likewise.
65690         * lib/modechange.h: Likewise.
65691         * lib/mountlist.c: Likewise.
65692         * lib/mountlist.h: Likewise.
65693         * lib/mpsort.c: Likewise.
65694         * lib/nanosleep.c: Likewise.
65695         * lib/obstack.c: Likewise.
65696         * lib/obstack.h: Likewise.
65697         * lib/open-safer.c: Likewise.
65698         * lib/open.c: Likewise.
65699         * lib/openat-die.c: Likewise.
65700         * lib/openat-priv.h: Likewise.
65701         * lib/openat-proc.c: Likewise.
65702         * lib/openat.c: Likewise.
65703         * lib/openat.h: Likewise.
65704         * lib/pagealign_alloc.c: Likewise.
65705         * lib/pagealign_alloc.h: Likewise.
65706         * lib/physmem.c: Likewise.
65707         * lib/physmem.h: Likewise.
65708         * lib/pipe-safer.c: Likewise.
65709         * lib/pipe.c: Likewise.
65710         * lib/pipe.h: Likewise.
65711         * lib/posixtm.c: Likewise.
65712         * lib/posixtm.h: Likewise.
65713         * lib/posixver.c: Likewise.
65714         * lib/printf-frexp.c: Likewise.
65715         * lib/printf-frexp.h: Likewise.
65716         * lib/printf-frexpl.c: Likewise.
65717         * lib/printf-frexpl.h: Likewise.
65718         * lib/printf.c: Likewise.
65719         * lib/progname.c: Likewise.
65720         * lib/progname.h: Likewise.
65721         * lib/progreloc.c: Likewise.
65722         * lib/putenv.c: Likewise.
65723         * lib/quote.c: Likewise.
65724         * lib/quote.h: Likewise.
65725         * lib/quotearg.c: Likewise.
65726         * lib/quotearg.h: Likewise.
65727         * lib/raise.c: Likewise.
65728         * lib/readline.c: Likewise.
65729         * lib/readline.h: Likewise.
65730         * lib/readlink.c: Likewise.
65731         * lib/readtokens.c: Likewise.
65732         * lib/readtokens.h: Likewise.
65733         * lib/readtokens0.c: Likewise.
65734         * lib/readtokens0.h: Likewise.
65735         * lib/readutmp.c: Likewise.
65736         * lib/readutmp.h: Likewise.
65737         * lib/realloc.c: Likewise.
65738         * lib/relocwrapper.c: Likewise.
65739         * lib/rename-dest-slash.c: Likewise.
65740         * lib/rename.c: Likewise.
65741         * lib/rmdir.c: Likewise.
65742         * lib/rpmatch.c: Likewise.
65743         * lib/safe-read.c: Likewise.
65744         * lib/safe-read.h: Likewise.
65745         * lib/safe-write.c: Likewise.
65746         * lib/safe-write.h: Likewise.
65747         * lib/same-inode.h: Likewise.
65748         * lib/same.c: Likewise.
65749         * lib/same.h: Likewise.
65750         * lib/save-cwd.c: Likewise.
65751         * lib/save-cwd.h: Likewise.
65752         * lib/savedir.c: Likewise.
65753         * lib/savedir.h: Likewise.
65754         * lib/savewd.c: Likewise.
65755         * lib/savewd.h: Likewise.
65756         * lib/search.in.h: Likewise.
65757         * lib/setenv.c: Likewise.
65758         * lib/setenv.h: Likewise.
65759         * lib/settime.c: Likewise.
65760         * lib/sh-quote.c: Likewise.
65761         * lib/sh-quote.h: Likewise.
65762         * lib/sig2str.c: Likewise.
65763         * lib/sig2str.h: Likewise.
65764         * lib/signal.in.h: Likewise.
65765         * lib/signbitd.c: Likewise.
65766         * lib/signbitf.c: Likewise.
65767         * lib/signbitl.c: Likewise.
65768         * lib/sigprocmask.c: Likewise.
65769         * lib/sincosl.c: Likewise.
65770         * lib/sleep.c: Likewise.
65771         * lib/sprintf.c: Likewise.
65772         * lib/sqrtl.c: Likewise.
65773         * lib/stat-time.h: Likewise.
65774         * lib/stdio--.h: Likewise.
65775         * lib/stdio-safer.h: Likewise.
65776         * lib/stdlib--.h: Likewise.
65777         * lib/stdlib-safer.h: Likewise.
65778         * lib/stdlib.in.h: Likewise.
65779         * lib/stpcpy.c: Likewise.
65780         * lib/stpncpy.c: Likewise.
65781         * lib/strchrnul.c: Likewise.
65782         * lib/strcspn.c: Likewise.
65783         * lib/strerror.c: Likewise.
65784         * lib/strftime.c: Likewise.
65785         * lib/strftime.h: Likewise.
65786         * lib/striconveh.c: Likewise.
65787         * lib/striconveh.h: Likewise.
65788         * lib/striconveha.c: Likewise.
65789         * lib/striconveha.h: Likewise.
65790         * lib/stripslash.c: Likewise.
65791         * lib/strnlen1.c: Likewise.
65792         * lib/strnlen1.h: Likewise.
65793         * lib/strtod.c: Likewise.
65794         * lib/strtoimax.c: Likewise.
65795         * lib/strtok_r.c: Likewise.
65796         * lib/strtol.c: Likewise.
65797         * lib/strtoll.c: Likewise.
65798         * lib/strtoul.c: Likewise.
65799         * lib/strtoull.c: Likewise.
65800         * lib/sysexits.in.h: Likewise.
65801         * lib/tempname.c: Likewise.
65802         * lib/tempname.h: Likewise.
65803         * lib/timespec.h: Likewise.
65804         * lib/tls.c: Likewise.
65805         * lib/tls.h: Likewise.
65806         * lib/tmpdir.c: Likewise.
65807         * lib/tmpdir.h: Likewise.
65808         * lib/tmpfile-safer.c: Likewise.
65809         * lib/tmpfile.c: Likewise.
65810         * lib/trigl.c: Likewise.
65811         * lib/trigl.h: Likewise.
65812         * lib/trim.c: Likewise.
65813         * lib/trim.h: Likewise.
65814         * lib/trunc.c: Likewise.
65815         * lib/truncf.c: Likewise.
65816         * lib/truncl.c: Likewise.
65817         * lib/tsearch.c: Likewise.
65818         * lib/unicodeio.c: Likewise.
65819         * lib/unicodeio.h: Likewise.
65820         * lib/unistd--.h: Likewise.
65821         * lib/unistd-safer.h: Likewise.
65822         * lib/unistdio/ulc-fprintf.c: Likewise.
65823         * lib/unistdio/ulc-vfprintf.c: Likewise.
65824         * lib/unlinkdir.c: Likewise.
65825         * lib/unlinkdir.h: Likewise.
65826         * lib/unlocked-io.h: Likewise.
65827         * lib/unsetenv.c: Likewise.
65828         * lib/userspec.c: Likewise.
65829         * lib/utime.c: Likewise.
65830         * lib/utimecmp.c: Likewise.
65831         * lib/utimecmp.h: Likewise.
65832         * lib/utimens.c: Likewise.
65833         * lib/verify.h: Likewise.
65834         * lib/verror.c: Likewise.
65835         * lib/verror.h: Likewise.
65836         * lib/version-etc-fsf.c: Likewise.
65837         * lib/version-etc.c: Likewise.
65838         * lib/version-etc.h: Likewise.
65839         * lib/vfprintf.c: Likewise.
65840         * lib/vprintf.c: Likewise.
65841         * lib/vsprintf.c: Likewise.
65842         * lib/w32spawn.h: Likewise.
65843         * lib/wait-process.c: Likewise.
65844         * lib/wait-process.h: Likewise.
65845         * lib/wcwidth.c: Likewise.
65846         * lib/write-any-file.c: Likewise.
65847         * lib/xalloc-die.c: Likewise.
65848         * lib/xalloc.h: Likewise.
65849         * lib/xasprintf.c: Likewise.
65850         * lib/xgetcwd.c: Likewise.
65851         * lib/xgetcwd.h: Likewise.
65852         * lib/xgetdomainname.c: Likewise.
65853         * lib/xgetdomainname.h: Likewise.
65854         * lib/xgethostname.c: Likewise.
65855         * lib/xmalloc.c: Likewise.
65856         * lib/xmalloca.c: Likewise.
65857         * lib/xmalloca.h: Likewise.
65858         * lib/xmemcoll.c: Likewise.
65859         * lib/xnanosleep.c: Likewise.
65860         * lib/xreadlink.c: Likewise.
65861         * lib/xreadlink.h: Likewise.
65862         * lib/xsetenv.c: Likewise.
65863         * lib/xsetenv.h: Likewise.
65864         * lib/xstriconv.c: Likewise.
65865         * lib/xstriconv.h: Likewise.
65866         * lib/xstrndup.c: Likewise.
65867         * lib/xstrndup.h: Likewise.
65868         * lib/xstrtod.c: Likewise.
65869         * lib/xstrtod.h: Likewise.
65870         * lib/xstrtol-error.c: Likewise.
65871         * lib/xstrtol.c: Likewise.
65872         * lib/xstrtol.h: Likewise.
65873         * lib/xtime.h: Likewise.
65874         * lib/xvasprintf.c: Likewise.
65875         * lib/xvasprintf.h: Likewise.
65876         * lib/yesno.c: Likewise.
65877         * lib/yesno.h: Likewise.
65878         * posix-modules: Likewise.
65879         * tests/test-alloca-opt.c: Likewise.
65880         * tests/test-arcfour.c: Likewise.
65881         * tests/test-arctwo.c: Likewise.
65882         * tests/test-argmatch.c: Likewise.
65883         * tests/test-argp-2.sh: Likewise.
65884         * tests/test-argp.c: Likewise.
65885         * tests/test-arpa_inet.c: Likewise.
65886         * tests/test-array_list.c: Likewise.
65887         * tests/test-array_oset.c: Likewise.
65888         * tests/test-atexit.c: Likewise.
65889         * tests/test-avltree_list.c: Likewise.
65890         * tests/test-avltree_oset.c: Likewise.
65891         * tests/test-avltreehash_list.c: Likewise.
65892         * tests/test-base64.c: Likewise.
65893         * tests/test-binary-io.c: Likewise.
65894         * tests/test-byteswap.c: Likewise.
65895         * tests/test-c-ctype.c: Likewise.
65896         * tests/test-c-strcasecmp.c: Likewise.
65897         * tests/test-c-strcasestr.c: Likewise.
65898         * tests/test-c-strncasecmp.c: Likewise.
65899         * tests/test-c-strstr.c: Likewise.
65900         * tests/test-canonicalize-lgpl.c: Likewise.
65901         * tests/test-canonicalize.c: Likewise.
65902         * tests/test-carray_list.c: Likewise.
65903         * tests/test-ceilf.c: Likewise.
65904         * tests/test-ceill.c: Likewise.
65905         * tests/test-count-one-bits.c: Likewise.
65906         * tests/test-crc.c: Likewise.
65907         * tests/test-dirname.c: Likewise.
65908         * tests/test-fbufmode.c: Likewise.
65909         * tests/test-fcntl.c: Likewise.
65910         * tests/test-fflush.c: Likewise.
65911         * tests/test-floorf.c: Likewise.
65912         * tests/test-floorl.c: Likewise.
65913         * tests/test-fopen.c: Likewise.
65914         * tests/test-fprintf-posix.c: Likewise.
65915         * tests/test-fprintf-posix.h: Likewise.
65916         * tests/test-fpurge.c: Likewise.
65917         * tests/test-freadable.c: Likewise.
65918         * tests/test-freadahead.c: Likewise.
65919         * tests/test-freading.c: Likewise.
65920         * tests/test-freopen.c: Likewise.
65921         * tests/test-frexp.c: Likewise.
65922         * tests/test-frexpl.c: Likewise.
65923         * tests/test-fseek.c: Likewise.
65924         * tests/test-fseeko.c: Likewise.
65925         * tests/test-fseterr.c: Likewise.
65926         * tests/test-fstrcmp.c: Likewise.
65927         * tests/test-ftell.c: Likewise.
65928         * tests/test-ftello.c: Likewise.
65929         * tests/test-fwritable.c: Likewise.
65930         * tests/test-fwriting.c: Likewise.
65931         * tests/test-getaddrinfo.c: Likewise.
65932         * tests/test-getpass.c: Likewise.
65933         * tests/test-gettimeofday.c: Likewise.
65934         * tests/test-hmac-md5.c: Likewise.
65935         * tests/test-hmac-sha1.c: Likewise.
65936         * tests/test-iconv.c: Likewise.
65937         * tests/test-iconvme.c: Likewise.
65938         * tests/test-inttypes.c: Likewise.
65939         * tests/test-isnan.c: Likewise.
65940         * tests/test-isnanf.c: Likewise.
65941         * tests/test-isnanl-nolibm.c: Likewise.
65942         * tests/test-isnanl.c: Likewise.
65943         * tests/test-isnanl.h: Likewise.
65944         * tests/test-ldexpl.c: Likewise.
65945         * tests/test-linked_list.c: Likewise.
65946         * tests/test-linkedhash_list.c: Likewise.
65947         * tests/test-locale.c: Likewise.
65948         * tests/test-localename.c: Likewise.
65949         * tests/test-lock.c: Likewise.
65950         * tests/test-lseek.c: Likewise.
65951         * tests/test-malloca.c: Likewise.
65952         * tests/test-math.c: Likewise.
65953         * tests/test-mbscasecmp.c: Likewise.
65954         * tests/test-mbscasestr1.c: Likewise.
65955         * tests/test-mbscasestr2.c: Likewise.
65956         * tests/test-mbscasestr3.c: Likewise.
65957         * tests/test-mbscasestr4.c: Likewise.
65958         * tests/test-mbschr.c: Likewise.
65959         * tests/test-mbscspn.c: Likewise.
65960         * tests/test-mbsncasecmp.c: Likewise.
65961         * tests/test-mbspbrk.c: Likewise.
65962         * tests/test-mbspcasecmp.c: Likewise.
65963         * tests/test-mbsrchr.c: Likewise.
65964         * tests/test-mbsspn.c: Likewise.
65965         * tests/test-mbsstr1.c: Likewise.
65966         * tests/test-mbsstr2.c: Likewise.
65967         * tests/test-mbsstr3.c: Likewise.
65968         * tests/test-md5.c: Likewise.
65969         * tests/test-memmem.c: Likewise.
65970         * tests/test-netinet_in.c: Likewise.
65971         * tests/test-open.c: Likewise.
65972         * tests/test-printf-frexp.c: Likewise.
65973         * tests/test-printf-frexpl.c: Likewise.
65974         * tests/test-printf-posix.c: Likewise.
65975         * tests/test-printf-posix.h: Likewise.
65976         * tests/test-rbtree_list.c: Likewise.
65977         * tests/test-rbtree_oset.c: Likewise.
65978         * tests/test-rbtreehash_list.c: Likewise.
65979         * tests/test-read-file.c: Likewise.
65980         * tests/test-rijndael.c: Likewise.
65981         * tests/test-search.c: Likewise.
65982         * tests/test-signbit.c: Likewise.
65983         * tests/test-sleep.c: Likewise.
65984         * tests/test-snprintf-posix.c: Likewise.
65985         * tests/test-snprintf-posix.h: Likewise.
65986         * tests/test-snprintf.c: Likewise.
65987         * tests/test-sprintf-posix.c: Likewise.
65988         * tests/test-sprintf-posix.h: Likewise.
65989         * tests/test-stat-time.c: Likewise.
65990         * tests/test-stdbool.c: Likewise.
65991         * tests/test-stdint.c: Likewise.
65992         * tests/test-stdio.c: Likewise.
65993         * tests/test-stdlib.c: Likewise.
65994         * tests/test-stpncpy.c: Likewise.
65995         * tests/test-strcasestr.c: Likewise.
65996         * tests/test-striconv.c: Likewise.
65997         * tests/test-striconveh.c: Likewise.
65998         * tests/test-striconveha.c: Likewise.
65999         * tests/test-string.c: Likewise.
66000         * tests/test-sys_select.c: Likewise.
66001         * tests/test-sys_socket.c: Likewise.
66002         * tests/test-sys_stat.c: Likewise.
66003         * tests/test-sys_time.c: Likewise.
66004         * tests/test-sysexits.c: Likewise.
66005         * tests/test-time.c: Likewise.
66006         * tests/test-tls.c: Likewise.
66007         * tests/test-trunc.c: Likewise.
66008         * tests/test-truncf.c: Likewise.
66009         * tests/test-truncl.c: Likewise.
66010         * tests/test-unistd.c: Likewise.
66011         * tests/test-vasnprintf-posix.c: Likewise.
66012         * tests/test-vasnprintf-posix2.c: Likewise.
66013         * tests/test-vasnprintf.c: Likewise.
66014         * tests/test-vasprintf-posix.c: Likewise.
66015         * tests/test-vasprintf.c: Likewise.
66016         * tests/test-verify.c: Likewise.
66017         * tests/test-vfprintf-posix.c: Likewise.
66018         * tests/test-vprintf-posix.c: Likewise.
66019         * tests/test-vsnprintf-posix.c: Likewise.
66020         * tests/test-vsnprintf.c: Likewise.
66021         * tests/test-vsprintf-posix.c: Likewise.
66022         * tests/test-wchar.c: Likewise.
66023         * tests/test-wctype.c: Likewise.
66024         * tests/test-wcwidth.c: Likewise.
66025         * tests/test-xstrtol.c: Likewise.
66026         * tests/test-xvasprintf.c: Likewise.
66027         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66028         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66029         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66030         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66031         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66032         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66033         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66034         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66035         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66036         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66037         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66038         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66039         * tests/uniname/test-uninames.c: Likewise.
66040         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66041         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66042         * tests/unistdio/test-u16-printf1.h: Likewise.
66043         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66044         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66045         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66046         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66047         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66048         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66049         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66050         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66051         * tests/unistdio/test-u32-printf1.h: Likewise.
66052         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66053         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66054         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66055         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66056         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66057         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66058         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66059         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66060         * tests/unistdio/test-u8-printf1.h: Likewise.
66061         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66062         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66063         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66064         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66065         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66066         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66067         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66068         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66069         * tests/unistdio/test-ulc-printf1.h: Likewise.
66070         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66071         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66072         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66073         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66074         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66075         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66076         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66077         * tests/uniwidth/test-u16-width.c: Likewise.
66078         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66079         * tests/uniwidth/test-u32-width.c: Likewise.
66080         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66081         * tests/uniwidth/test-u8-width.c: Likewise.
66082         * tests/uniwidth/test-uc_width.c: Likewise.
66083         * config/srclist-update: Likewise.
66084         (fixlicense): Update to GPLv3+.
66085
66086         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66087         * tests/test-tsearch.c: Change copyright notice.
66088
66089         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66090         * lib/c-strcaseeq.h: Change copyright notice.
66091         * lib/streq.h: Likewise.
66092         * lib/uniconv.h: Likewise.
66093         * lib/uniconv/u-conv-from-enc.h: Likewise.
66094         * lib/uniconv/u-conv-to-enc.h: Likewise.
66095         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66096         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66097         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66098         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66099         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66100         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66101         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66102         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66103         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66104         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66105         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66106         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66107         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66108         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66109         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66110         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66111         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66112         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66113         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66114         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66115         * lib/uniname.h: Likewise.
66116         * lib/uniname/uniname.c: Likewise.
66117         * lib/unistdio.h: Likewise.
66118         * lib/unistdio/u-asnprintf.h: Likewise.
66119         * lib/unistdio/u-asprintf.h: Likewise.
66120         * lib/unistdio/u-printf-args.c: Likewise.
66121         * lib/unistdio/u-printf-args.h: Likewise.
66122         * lib/unistdio/u-printf-parse.h: Likewise.
66123         * lib/unistdio/u-snprintf.h: Likewise.
66124         * lib/unistdio/u-sprintf.h: Likewise.
66125         * lib/unistdio/u-vasprintf.h: Likewise.
66126         * lib/unistdio/u-vsnprintf.h: Likewise.
66127         * lib/unistdio/u-vsprintf.h: Likewise.
66128         * lib/unistdio/u16-asnprintf.c: Likewise.
66129         * lib/unistdio/u16-asprintf.c: Likewise.
66130         * lib/unistdio/u16-printf-parse.c: Likewise.
66131         * lib/unistdio/u16-snprintf.c: Likewise.
66132         * lib/unistdio/u16-sprintf.c: Likewise.
66133         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66134         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66135         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66136         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66137         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66138         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66139         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66140         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66141         * lib/unistdio/u16-vasnprintf.c: Likewise.
66142         * lib/unistdio/u16-vasprintf.c: Likewise.
66143         * lib/unistdio/u16-vsnprintf.c: Likewise.
66144         * lib/unistdio/u16-vsprintf.c: Likewise.
66145         * lib/unistdio/u32-asnprintf.c: Likewise.
66146         * lib/unistdio/u32-asprintf.c: Likewise.
66147         * lib/unistdio/u32-printf-parse.c: Likewise.
66148         * lib/unistdio/u32-snprintf.c: Likewise.
66149         * lib/unistdio/u32-sprintf.c: Likewise.
66150         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66151         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66152         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66153         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66154         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66155         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66156         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66157         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66158         * lib/unistdio/u32-vasnprintf.c: Likewise.
66159         * lib/unistdio/u32-vasprintf.c: Likewise.
66160         * lib/unistdio/u32-vsnprintf.c: Likewise.
66161         * lib/unistdio/u32-vsprintf.c: Likewise.
66162         * lib/unistdio/u8-asnprintf.c: Likewise.
66163         * lib/unistdio/u8-asprintf.c: Likewise.
66164         * lib/unistdio/u8-printf-parse.c: Likewise.
66165         * lib/unistdio/u8-snprintf.c: Likewise.
66166         * lib/unistdio/u8-sprintf.c: Likewise.
66167         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66168         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66169         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66170         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66171         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66172         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66173         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66174         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66175         * lib/unistdio/u8-vasnprintf.c: Likewise.
66176         * lib/unistdio/u8-vasprintf.c: Likewise.
66177         * lib/unistdio/u8-vsnprintf.c: Likewise.
66178         * lib/unistdio/u8-vsprintf.c: Likewise.
66179         * lib/unistdio/ulc-asnprintf.c: Likewise.
66180         * lib/unistdio/ulc-asprintf.c: Likewise.
66181         * lib/unistdio/ulc-printf-parse.c: Likewise.
66182         * lib/unistdio/ulc-snprintf.c: Likewise.
66183         * lib/unistdio/ulc-sprintf.c: Likewise.
66184         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66185         * lib/unistdio/ulc-vasprintf.c: Likewise.
66186         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66187         * lib/unistdio/ulc-vsprintf.c: Likewise.
66188         * lib/unistr.h: Likewise.
66189         * lib/unistr/u-cpy-alloc.h: Likewise.
66190         * lib/unistr/u-cpy.h: Likewise.
66191         * lib/unistr/u-endswith.h: Likewise.
66192         * lib/unistr/u-move.h: Likewise.
66193         * lib/unistr/u-set.h: Likewise.
66194         * lib/unistr/u-startswith.h: Likewise.
66195         * lib/unistr/u-stpcpy.h: Likewise.
66196         * lib/unistr/u-stpncpy.h: Likewise.
66197         * lib/unistr/u-strcat.h: Likewise.
66198         * lib/unistr/u-strcpy.h: Likewise.
66199         * lib/unistr/u-strcspn.h: Likewise.
66200         * lib/unistr/u-strdup.h: Likewise.
66201         * lib/unistr/u-strlen.h: Likewise.
66202         * lib/unistr/u-strncat.h: Likewise.
66203         * lib/unistr/u-strncpy.h: Likewise.
66204         * lib/unistr/u-strnlen.h: Likewise.
66205         * lib/unistr/u-strpbrk.h: Likewise.
66206         * lib/unistr/u-strspn.h: Likewise.
66207         * lib/unistr/u-strstr.h: Likewise.
66208         * lib/unistr/u-strtok.h: Likewise.
66209         * lib/unistr/u16-check.c: Likewise.
66210         * lib/unistr/u16-chr.c: Likewise.
66211         * lib/unistr/u16-cmp.c: Likewise.
66212         * lib/unistr/u16-cpy-alloc.c: Likewise.
66213         * lib/unistr/u16-cpy.c: Likewise.
66214         * lib/unistr/u16-endswith.c: Likewise.
66215         * lib/unistr/u16-mblen.c: Likewise.
66216         * lib/unistr/u16-mbsnlen.c: Likewise.
66217         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66218         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66219         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66220         * lib/unistr/u16-mbtouc.c: Likewise.
66221         * lib/unistr/u16-mbtoucr.c: Likewise.
66222         * lib/unistr/u16-move.c: Likewise.
66223         * lib/unistr/u16-next.c: Likewise.
66224         * lib/unistr/u16-prev.c: Likewise.
66225         * lib/unistr/u16-set.c: Likewise.
66226         * lib/unistr/u16-startswith.c: Likewise.
66227         * lib/unistr/u16-stpcpy.c: Likewise.
66228         * lib/unistr/u16-stpncpy.c: Likewise.
66229         * lib/unistr/u16-strcat.c: Likewise.
66230         * lib/unistr/u16-strchr.c: Likewise.
66231         * lib/unistr/u16-strcmp.c: Likewise.
66232         * lib/unistr/u16-strcpy.c: Likewise.
66233         * lib/unistr/u16-strcspn.c: Likewise.
66234         * lib/unistr/u16-strdup.c: Likewise.
66235         * lib/unistr/u16-strlen.c: Likewise.
66236         * lib/unistr/u16-strmblen.c: Likewise.
66237         * lib/unistr/u16-strmbtouc.c: Likewise.
66238         * lib/unistr/u16-strncat.c: Likewise.
66239         * lib/unistr/u16-strncmp.c: Likewise.
66240         * lib/unistr/u16-strncpy.c: Likewise.
66241         * lib/unistr/u16-strnlen.c: Likewise.
66242         * lib/unistr/u16-strpbrk.c: Likewise.
66243         * lib/unistr/u16-strrchr.c: Likewise.
66244         * lib/unistr/u16-strspn.c: Likewise.
66245         * lib/unistr/u16-strstr.c: Likewise.
66246         * lib/unistr/u16-strtok.c: Likewise.
66247         * lib/unistr/u16-to-u32.c: Likewise.
66248         * lib/unistr/u16-to-u8.c: Likewise.
66249         * lib/unistr/u16-uctomb-aux.c: Likewise.
66250         * lib/unistr/u16-uctomb.c: Likewise.
66251         * lib/unistr/u32-check.c: Likewise.
66252         * lib/unistr/u32-chr.c: Likewise.
66253         * lib/unistr/u32-cmp.c: Likewise.
66254         * lib/unistr/u32-cpy-alloc.c: Likewise.
66255         * lib/unistr/u32-cpy.c: Likewise.
66256         * lib/unistr/u32-endswith.c: Likewise.
66257         * lib/unistr/u32-mblen.c: Likewise.
66258         * lib/unistr/u32-mbsnlen.c: Likewise.
66259         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66260         * lib/unistr/u32-mbtouc.c: Likewise.
66261         * lib/unistr/u32-mbtoucr.c: Likewise.
66262         * lib/unistr/u32-move.c: Likewise.
66263         * lib/unistr/u32-next.c: Likewise.
66264         * lib/unistr/u32-prev.c: Likewise.
66265         * lib/unistr/u32-set.c: Likewise.
66266         * lib/unistr/u32-startswith.c: Likewise.
66267         * lib/unistr/u32-stpcpy.c: Likewise.
66268         * lib/unistr/u32-stpncpy.c: Likewise.
66269         * lib/unistr/u32-strcat.c: Likewise.
66270         * lib/unistr/u32-strchr.c: Likewise.
66271         * lib/unistr/u32-strcmp.c: Likewise.
66272         * lib/unistr/u32-strcpy.c: Likewise.
66273         * lib/unistr/u32-strcspn.c: Likewise.
66274         * lib/unistr/u32-strdup.c: Likewise.
66275         * lib/unistr/u32-strlen.c: Likewise.
66276         * lib/unistr/u32-strmblen.c: Likewise.
66277         * lib/unistr/u32-strmbtouc.c: Likewise.
66278         * lib/unistr/u32-strncat.c: Likewise.
66279         * lib/unistr/u32-strncmp.c: Likewise.
66280         * lib/unistr/u32-strncpy.c: Likewise.
66281         * lib/unistr/u32-strnlen.c: Likewise.
66282         * lib/unistr/u32-strpbrk.c: Likewise.
66283         * lib/unistr/u32-strrchr.c: Likewise.
66284         * lib/unistr/u32-strspn.c: Likewise.
66285         * lib/unistr/u32-strstr.c: Likewise.
66286         * lib/unistr/u32-strtok.c: Likewise.
66287         * lib/unistr/u32-to-u16.c: Likewise.
66288         * lib/unistr/u32-to-u8.c: Likewise.
66289         * lib/unistr/u32-uctomb.c: Likewise.
66290         * lib/unistr/u8-check.c: Likewise.
66291         * lib/unistr/u8-chr.c: Likewise.
66292         * lib/unistr/u8-cmp.c: Likewise.
66293         * lib/unistr/u8-cpy-alloc.c: Likewise.
66294         * lib/unistr/u8-cpy.c: Likewise.
66295         * lib/unistr/u8-endswith.c: Likewise.
66296         * lib/unistr/u8-mblen.c: Likewise.
66297         * lib/unistr/u8-mbsnlen.c: Likewise.
66298         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66299         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66300         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66301         * lib/unistr/u8-mbtouc.c: Likewise.
66302         * lib/unistr/u8-mbtoucr.c: Likewise.
66303         * lib/unistr/u8-move.c: Likewise.
66304         * lib/unistr/u8-next.c: Likewise.
66305         * lib/unistr/u8-prev.c: Likewise.
66306         * lib/unistr/u8-set.c: Likewise.
66307         * lib/unistr/u8-startswith.c: Likewise.
66308         * lib/unistr/u8-stpcpy.c: Likewise.
66309         * lib/unistr/u8-stpncpy.c: Likewise.
66310         * lib/unistr/u8-strcat.c: Likewise.
66311         * lib/unistr/u8-strchr.c: Likewise.
66312         * lib/unistr/u8-strcmp.c: Likewise.
66313         * lib/unistr/u8-strcpy.c: Likewise.
66314         * lib/unistr/u8-strcspn.c: Likewise.
66315         * lib/unistr/u8-strdup.c: Likewise.
66316         * lib/unistr/u8-strlen.c: Likewise.
66317         * lib/unistr/u8-strmblen.c: Likewise.
66318         * lib/unistr/u8-strmbtouc.c: Likewise.
66319         * lib/unistr/u8-strncat.c: Likewise.
66320         * lib/unistr/u8-strncmp.c: Likewise.
66321         * lib/unistr/u8-strncpy.c: Likewise.
66322         * lib/unistr/u8-strnlen.c: Likewise.
66323         * lib/unistr/u8-strpbrk.c: Likewise.
66324         * lib/unistr/u8-strrchr.c: Likewise.
66325         * lib/unistr/u8-strspn.c: Likewise.
66326         * lib/unistr/u8-strstr.c: Likewise.
66327         * lib/unistr/u8-strtok.c: Likewise.
66328         * lib/unistr/u8-to-u16.c: Likewise.
66329         * lib/unistr/u8-to-u32.c: Likewise.
66330         * lib/unistr/u8-uctomb-aux.c: Likewise.
66331         * lib/unistr/u8-uctomb.c: Likewise.
66332         * lib/unitypes.h: Likewise.
66333         * lib/uniwidth.h: Likewise.
66334         * lib/uniwidth/cjk.h: Likewise.
66335         * lib/uniwidth/u16-strwidth.c: Likewise.
66336         * lib/uniwidth/u16-width.c: Likewise.
66337         * lib/uniwidth/u32-strwidth.c: Likewise.
66338         * lib/uniwidth/u32-width.c: Likewise.
66339         * lib/uniwidth/u8-strwidth.c: Likewise.
66340         * lib/uniwidth/u8-width.c: Likewise.
66341         * lib/uniwidth/width.c: Likewise.
66342
66343 2007-10-07  Bruno Haible  <bruno@clisp.org>
66344
66345         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66346         The file is still under LGPL (see modules/inttypes).
66347
66348 2007-10-06  Bruno Haible  <bruno@clisp.org>
66349
66350         * modules/trunc (Dependencies): Add 'extensions'.
66351         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66352         Reported by Ben Pfaff <blp@gnu.org>.
66353
66354 2007-10-06  Bruno Haible  <bruno@clisp.org>
66355
66356         * modules/freopen-tests: New file.
66357         * tests/test-freopen.c: New file.
66358
66359         * modules/fopen-tests: New file.
66360         * tests/test-fopen.c: New file.
66361
66362         * modules/fopen: New file.
66363         * lib/fopen.c: New file.
66364         * m4/fopen.m4: New file.
66365         * modules/freopen: New file.
66366         * lib/freopen.c: New file.
66367         * m4/freopen.m4: New file.
66368         * lib/stdio.in.h (fopen, freopen): New declarations.
66369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66370         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66371         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66372         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66373         * doc/functions/fopen.texi: Mention the 'fopen' module.
66374         * doc/functions/freopen.texi: Mention the 'freopen' module.
66375
66376 2007-10-06  Bruno Haible  <bruno@clisp.org>
66377
66378         * modules/open-tests: New file.
66379         * tests/test-open.c: New file.
66380
66381         * modules/open: New file.
66382         * lib/open.c: New file.
66383         * m4/open.m4: New file.
66384         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66385         lib/open.c does.
66386         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66388         macros.
66389         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66390         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66391         REPLACE_OPEN.
66392         * doc/functions/open.texi: Mention the 'open' module.
66393
66394 2007-10-04  Bruno Haible  <bruno@clisp.org>
66395
66396         * modules/ceill-tests: New file.
66397         * tests/test-ceill.c: New file.
66398
66399         * modules/ceill: New file.
66400         * lib/ceill.c: Replace entire file.
66401         * m4/ceill.m4: New file.
66402         * lib/math.in.h (ceill): Replace declaration.
66403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66404         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66405         * doc/functions/ceill.texi: Mention the 'ceill' module.
66406         * modules/mathl (Files): Remove lib/ceill.c.
66407         (Depends-on): Add ceill.
66408
66409 2007-10-04  Bruno Haible  <bruno@clisp.org>
66410
66411         * modules/ceilf-tests: New file.
66412         * tests/test-ceilf.c: New file.
66413
66414         * modules/ceilf: New file.
66415         * lib/ceil.c: New file.
66416         * lib/ceilf.c: New file.
66417         * m4/ceilf.m4: New file.
66418         * lib/math.in.h (ceilf): New declaration.
66419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66420         HAVE_DECL_CEILF.
66421         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66422         HAVE_DECL_CEILF.
66423         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66424
66425 2007-10-04  Bruno Haible  <bruno@clisp.org>
66426
66427         * modules/floorl-tests: New file.
66428         * tests/test-floorl.c: New file.
66429
66430         * modules/floorl: New file.
66431         * lib/floorl.c: Replace entire file.
66432         * m4/floorl.m4: New file.
66433         * lib/math.in.h (floorl): Replace declaration.
66434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66435         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66436         * doc/functions/floorl.texi: Mention the 'floorl' module.
66437         * modules/mathl (Files): Remove lib/floorl.c.
66438         (Depends-on): Add floorl.
66439
66440 2007-10-04  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/floorf-tests: New file.
66443         * tests/test-floorf.c: New file.
66444
66445         * modules/floorf: New file.
66446         * lib/floor.c: New file.
66447         * lib/floorf.c: New file.
66448         * m4/floorf.m4: New file.
66449         * lib/math.in.h (floorf): New declaration.
66450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66451         HAVE_DECL_FLOORF.
66452         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66453         HAVE_DECL_FLOORF.
66454         * doc/functions/floorf.texi: Mention the 'floorf' module.
66455
66456 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66457             Bruno Haible  <bruno@clisp.org>
66458
66459         Advertise for the Git server instead of the CVS server.
66460         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66461         repository instead of the CVS one.
66462         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66463         about all VCS systems generically.
66464         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66465
66466 2007-10-04  Bruno Haible  <bruno@clisp.org>
66467
66468         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66469         means.
66470         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66471
66472 2007-10-04  Bruno Haible  <bruno@clisp.org>
66473
66474         * modules/truncl-tests: New file.
66475         * tests/test-truncl.c: New file.
66476
66477         * modules/truncl: New file.
66478         * lib/truncl.c: New file.
66479         * m4/truncl.m4: New file.
66480         * lib/math.in.h (truncl): New declaration.
66481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66482         HAVE_DECL_TRUNCL.
66483         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66484         HAVE_DECL_TRUNCL.
66485         * doc/functions/truncl.texi: Mention the 'truncl' module.
66486
66487 2007-10-04  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/truncf-tests: New file.
66490         * tests/test-truncf.c: New file.
66491
66492         * modules/truncf: New file.
66493         * lib/trunc.c: Make paramerizable through USE_* macros.
66494         * lib/truncf.c: New file.
66495         * m4/truncf.m4: New file.
66496         * lib/math.in.h (truncf): New declaration.
66497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66498         HAVE_DECL_TRUNCF.
66499         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66500         HAVE_DECL_TRUNCF.
66501         * doc/functions/truncf.texi: Mention the 'truncf' module.
66502
66503 2007-10-03  Bruno Haible  <bruno@clisp.org>
66504
66505         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66506         augmentation also for tests modules.
66507         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66508         * modules/atexit-tests (Makefile.am): Likewise.
66509         * modules/binary-io-tests (Makefile.am): Likewise.
66510         * modules/c-strcase-tests (Makefile.am): Likewise.
66511         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66512         * modules/canonicalize-tests (Makefile.am): Likewise.
66513         * modules/closein-tests (Makefile.am): Likewise.
66514         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66515         * modules/freadahead-tests (Makefile.am): Likewise.
66516         * modules/fseek-tests (Makefile.am): Likewise.
66517         * modules/fseeko-tests (Makefile.am): Likewise.
66518         * modules/ftell-tests (Makefile.am): Likewise.
66519         * modules/ftello-tests (Makefile.am): Likewise.
66520         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66521         * modules/isnanl-tests (Makefile.am): Likewise.
66522         * modules/lseek-tests (Makefile.am): Likewise.
66523         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66524         * modules/mbscasestr-tests (Makefile.am): Likewise.
66525         * modules/mbschr-tests (Makefile.am): Likewise.
66526         * modules/mbscspn-tests (Makefile.am): Likewise.
66527         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66528         * modules/mbspbrk-tests (Makefile.am): Likewise.
66529         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66530         * modules/mbsrchr-tests (Makefile.am): Likewise.
66531         * modules/mbsspn-tests (Makefile.am): Likewise.
66532         * modules/mbsstr-tests (Makefile.am): Likewise.
66533         * modules/printf-posix-tests (Makefile.am): Likewise.
66534         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66535         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66536         * modules/tsearch-tests (Makefile.am): Likewise.
66537         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66538         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66539         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66540         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66541         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66542         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66543         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66544         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66545         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66546         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66547         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66548         * modules/xstrtol-tests (Makefile.am): Likewise.
66549         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66550         * modules/yesno-tests (Makefile.am): Likewise.
66551
66552 2007-10-03  Bruno Haible  <bruno@clisp.org>
66553
66554         * modules/trunc-tests: New file.
66555         * tests/test-trunc.c: New file.
66556
66557         * modules/trunc: New file.
66558         * lib/trunc.c: New file.
66559         * m4/trunc.m4: New file.
66560         * lib/math.in.h (trunc): New declaration.
66561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66562         HAVE_DECL_TRUNC.
66563         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66564         HAVE_DECL_TRUNC.
66565         * doc/functions/trunc.texi: Mention the 'trunc' module.
66566
66567 2007-10-03  Bruno Haible  <bruno@clisp.org>
66568
66569         * tests/test-fpending.c: New file, mostly copied
66570         from coreutils/lib/t-fpending.c.
66571         * modules/fpending-tests: New file.
66572
66573 2007-10-03  Bruno Haible  <bruno@clisp.org>
66574
66575         Port the stdio extensions to QNX (untested).
66576         * lib/fseterr.c (fseterr): Add support for QNX.
66577         * lib/fbufmode.c (fbufmode): Likewise.
66578         * lib/freadable.c (freadable): Likewise.
66579         * lib/fwritable.c (fwritable): Likewise.
66580         * lib/freading.c (freading): Likewise.
66581         * lib/fwriting.c (fwriting): Likewise.
66582         * lib/freadahead.c (freadahed): Likewise.
66583         * lib/fpurge.c (fpurge): Likewise.
66584         * lib/fseeko.c (rpl_fseeko): Likewise.
66585
66586 2007-10-03  Bruno Haible  <bruno@clisp.org>
66587             Jim Meyering  <jim@meyering.net>
66588             Eric Blake  <ebb9@byu.net>
66589
66590         * doc/relocatable.texi: Use @command instead of @program.
66591
66592 2007-10-02  Jim Meyering  <jim@meyering.net>
66593
66594         Perform one more "_.h" -> ".in.h" substitution.
66595         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66596         instead of unistd_.h here, too.
66597
66598 2007-10-01  Bruno Haible  <bruno@clisp.org>
66599
66600         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66601         Needed for the alloca-opt module.
66602
66603 2007-09-30  Bruno Haible  <bruno@clisp.org>
66604
66605         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66606         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66607         alloca_.h.
66608         * lib/argz.in.h: Renamed from lib/argz_.h.
66609         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66610         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66611         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66612         byteswap_.h.
66613         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66614         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66615         dirent_.h.
66616         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66617         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66618         fcntl_.h.
66619         * lib/float.in.h: Renamed from lib/float_.h.
66620         * modules/float (Files, Makefile.am): Use float.in.h instead of
66621         float_.h.
66622         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66623         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66624         fnmatch_.h.
66625         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66626         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66627         getopt_.h.
66628         * lib/glob.in.h: Renamed from lib/glob_.h.
66629         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66630         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66631         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66632         iconv_.h.
66633         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66634         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66635         inttypes_.h.
66636         * lib/locale.in.h: Renamed from lib/locale_.h.
66637         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66638         locale_.h.
66639         * lib/math.in.h: Renamed from lib/math_.h.
66640         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66641         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66642         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66643         of netinet_in_.h. Add dependency.
66644         * lib/poll.in.h: Renamed from lib/poll_.h.
66645         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66646         * lib/search.in.h: Renamed from lib/search_.h.
66647         * modules/search (Files, Makefile.am): Use search.in.h instead of
66648         search_.h.
66649         * lib/signal.in.h: Renamed from lib/signal_.h.
66650         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66651         _signal.h.
66652         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66653         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66654         stdbool_.h.
66655         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66656         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66657         stdint_.h.
66658         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66659         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66660         stdio_.h.
66661         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66662         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66663         stdlib_.h.
66664         * lib/string.in.h: Renamed from lib/string_.h.
66665         * modules/string (Files, Makefile.am): Use string.in.h instead of
66666         string_.h.
66667         * doc/gnulib-tool.texi (Initial import): Update.
66668         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66669         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66670         of sys_select_.h. Add dependency.
66671         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66672         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66673         of sys_socket_.h.
66674         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66675         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66676         sys_stat_.h.
66677         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66678         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66679         sys_time_.h.
66680         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66681         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66682         sysexits_.h.
66683         * lib/time.in.h: Renamed from lib/time_.h.
66684         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66685         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66686         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66687         unistd_.h.
66688         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66689         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66690         wchar_.h.
66691         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66692         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66693         wctype_.h.
66694         * build-aux/bootstrap (slurp): Update.
66695         * lib/.cppi-disable: Update.
66696
66697 2007-09-30  Bruno Haible  <bruno@clisp.org>
66698
66699         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66700         Needed on BeOS.
66701
66702 2007-09-30  Bruno Haible  <bruno@clisp.org>
66703
66704         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66705
66706 2007-09-29  Bruno Haible  <bruno@clisp.org>
66707
66708         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66709
66710 2007-09-29  Bruno Haible  <bruno@clisp.org>
66711
66712         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66713         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66714         * build-aux/install-reloc: Compile also areadlink.c.
66715         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66716
66717 2007-09-29  Bruno Haible  <bruno@clisp.org>
66718
66719         * gnulib-tool (func_emit_initmacro_done): Indentation.
66720
66721 2007-09-29  Bruno Haible  <bruno@clisp.org>
66722
66723         * README: Add CVS checkout update instructions.
66724         Info from Bob Proulx <bob@proulx.com>.
66725
66726 2007-09-28  Eric Blake  <ebb9@byu.net>
66727
66728         Provide move-if-change.
66729         * build-aux/move-if-change: New file, based on best practice
66730         rather than any canonical upstream location.
66731
66732 2007-09-28  Jim Meyering  <jim@meyering.net>
66733
66734         Fix canonicalize loop-detection corner case.
66735         Do not attempt to stat the symlink values stored via seen_triple.
66736         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66737         on linux-2.6.18, (but not 2.6.22).
66738         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66739         triple_compare.  The former compares dev,ino,filename, while the latter
66740         would actually stat dirname(filename) when dev and ino were equal.
66741         * lib/hash-triple.c: Install <string.h>.
66742         (STREQ): Define.
66743         (triple_compare_ino_str): New function.
66744         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66745
66746 2007-09-28  Eric Blake  <ebb9@byu.net>
66747
66748         Enforce that AC_REPLACE_FUNCS files exist.
66749         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66750         override check for typos.
66751
66752         Fix test-closein on Solaris 10.
66753         * tests/test-closein.c (main): Don't assume stdin can be inherited
66754         closed on all systems.
66755         * tests/test-closein.sh: Likewise.
66756         Reported by Piotr Tarnowski.
66757
66758 2007-09-28  Jim Meyering  <jim@meyering.net>
66759
66760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66761
66762 2007-09-27  Jim Meyering  <jim@meyering.net>
66763
66764         canonicalize: Avoid a false-positive cycle failure.
66765         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66766         Sort.  Remove cycle-check.
66767         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66768         not cycle-check.h.
66769         (seen_triple): New function.
66770         (canonicalize_filename_mode): Use it instead of cycle-check.
66771         * tests/test-canonicalize.c: Add a test for this bug.
66772         * tests/test-canonicalize.sh: Set up and run the test.
66773
66774         New module, file-set, from coreutils.
66775         * modules/file-set: Define it.
66776         * lib/file-set.c, lib/file-set.h: Implement.
66777
66778         New module, hash-triple, from coreutils.
66779         * modules/hash-triple: Define it.
66780         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66781
66782 2007-09-25  Eric Blake  <ebb9@byu.net>
66783
66784         Fix strerror on Interix.
66785         * lib/string_.h (strerror): Declare replacement.
66786         * doc/functions/strerror.texi (strerror): Document the Interix
66787         shortcoming.
66788         * modules/string (Makefile.am): Support new hooks.
66789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66790         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66791         gl_FUNC_STRERROR_SEPARATE.
66792         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66793         * lib/strerror.c (rpl_strerror): Provide replacement.
66794         * modules/strerror (Depends-on): Add string.
66795         (configure.ac): Detect use of module.
66796         * tests/test-strerror.c: New file.
66797         * modules/strerror-tests: New test module.
66798         * modules/argp (Depends-on): Add strerror.
66799         * modules/error (Depends-on): Likewise.
66800         Reported by Martin Koeppe.
66801
66802 2007-09-24  Bruno Haible  <bruno@clisp.org>
66803
66804         * README: Update git instructions.
66805
66806 2007-09-24  Eric Blake  <ebb9@byu.net>
66807
66808         Revert fpending breakage from 2007-09-08.
66809         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66810         __fpending.c.
66811
66812 2007-09-24  Jim Meyering  <jim@meyering.net>
66813
66814         filenamecat.c: Add a test.
66815         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66816         showing how the function works when DIR is the empty string.
66817
66818 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66819
66820         * tests/test-canonicalize.sh: Turn on executable bit.
66821
66822 2007-09-19  Eric Blake  <ebb9@byu.net>
66823
66824         * README: Update CVS instructions.
66825
66826 2007-09-18  Bruno Haible  <bruno@clisp.org>
66827
66828         * modules/areadlink: New file.
66829         * lib/areadlink.h (areadlink): New declaration.
66830         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66831
66832 2007-09-17  Jim Meyering  <jim@meyering.net>
66833
66834         * lib/savewd.c (ESTALE) [!defined]: Define.
66835         Reported to be required on Interix by Martin Koeppe.
66836
66837 2007-09-17  Bruno Haible  <bruno@clisp.org>
66838
66839         * gnulib-tool (func_version): Use $version.
66840
66841 2007-09-16  Bruno Haible  <bruno@clisp.org>
66842
66843         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66844         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66845         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66846         Reported by Greg Schafer <gschafer@zip.com.au>.
66847
66848 2007-09-15  Bruno Haible  <bruno@clisp.org>
66849
66850         * gnulib-tool (sed): Try a little harder to make bash understand the
66851         alias.
66852         Reported by Bruce Korb <bruce.korb@gmail.com>.
66853
66854 2007-09-13  Eric Blake  <ebb9@byu.net>
66855
66856         * ChangeLog: Remove conflict markers.
66857
66858 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66859
66860         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66861         Reported by Bruno Haible <bruno@clisp.org>.
66862
66863 2007-09-12  Bruno Haible  <bruno@clisp.org>
66864
66865         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66866         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66867         is not defined.
66868
66869 2007-09-12  Eric Blake  <ebb9@byu.net>
66870
66871         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66872         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66873         Autoconf definition.
66874         * modules/euidaccess (Depends-on): Add extensions, for
66875         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66876         * modules/fnmatch (Depends-on): Likewise.
66877         * modules/getaddrinfo (Depends-on): Likewise.
66878         * modules/getdelim (Depends-on): Likewise.
66879         * modules/getline (Depends-on): Likewise.
66880         * modules/getsubopt (Depends-on): Likewise.
66881         * modules/gettext (Depends-on): Likewise.
66882         * modules/group-member (Depends-on): Likewise.
66883         * modules/mbchar (Depends-on): Likewise.
66884         * modules/memmem (Depends-on): Likewise.
66885         * modules/mempcpy (Depends-on): Likewise.
66886         * modules/memrchr (Depends-on): Likewise.
66887         * modules/pagealign_alloc (Depends-on): Likewise.
66888         * modules/readutmp (Depends-on): Likewise.
66889         * modules/stpcpy (Depends-on): Likewise.
66890         * modules/stpncpy (Depends-on): Likewise.
66891         * modules/strchrnul (Depends-on): Likewise.
66892         * modules/strndup (Depends-on): Likewise.
66893         * modules/strsep (Depends-on): Likewise.
66894         * modules/strverscmp (Depends-on): Likewise.
66895         * modules/vasprintf (Depends-on): Likewise.
66896         * modules/wcwidth (Depends-on): Likewise.
66897         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66898         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66899         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66901         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66902         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66903         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66904         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66905         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66906         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66908         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66909         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66910         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66911         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66912         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66913         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66914         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66917         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66918         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66919         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66920         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66921         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66923         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66924         so that lock.m4 can be used in gettext without extensions module.
66925
66926 2007-09-11  Bruno Haible  <bruno@clisp.org>
66927
66928         * m4/isc-posix.m4: Remove file.
66929         Suggested by Eric Blake.
66930
66931 2007-09-11  Eric Blake  <ebb9@byu.net>
66932
66933         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66934
66935 2007-09-10  Bruno Haible  <bruno@clisp.org>
66936
66937         * posix-modules: Fix typo in error message.
66938         Reported by Matt <mkraai@beckman.com>.
66939
66940 2007-09-09  Bruno Haible  <bruno@clisp.org>
66941
66942         * doc/functions/getdelim.texi: Update list of platforms lacking the
66943         function.
66944         * doc/functions/getline.texi: Likewise.
66945
66946 2007-09-09  Jim Meyering  <jim@meyering.net>
66947
66948         * lib/hash.c (hash_initialize): Detect calloc failure.
66949         Reported by Bruno Haible.
66950
66951 2007-09-09  Bruno Haible  <bruno@clisp.org>
66952
66953         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66954         malloc or realloc fails.
66955
66956 2007-09-09  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/getcwd (Depends-on): Add malloc-posix.
66959         * modules/glob (Depends-on): Likewise.
66960         * modules/putenv (Depends-on): Likewise.
66961         * modules/strdup (Depends-on): Likewise.
66962         * modules/getdelim (Depends-on): Add realloc-posix.
66963         * modules/read-file (Depends-on): Likewise.
66964
66965 2007-09-09  Bruno Haible  <bruno@clisp.org>
66966
66967         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66968         (gl_FUNC_MALLOC_POSIX): Require it.
66969         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66970         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66971         * modules/realloc (Files): Add m4/malloc.m4.
66972         * modules/calloc (Files): Likewise.
66973
66974 2007-09-09  Bruno Haible  <bruno@clisp.org>
66975
66976         * modules/malloc-posix: New file.
66977         * modules/malloc (Depends-on): Add malloc-posix.
66978         * lib/malloc.c: Include errno.h.
66979         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66980         and a POSIX-compatible malloc into a single function. Set ENOMEM
66981         when returning NULL.
66982         * m4/malloc.m4: New file.
66983         * doc/functions/malloc.texi: Mention the malloc-posix module.
66984         * lib/stdlib_.h (malloc): New declaration.
66985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66986         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66987         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66988         and HAVE_MALLOC_POSIX.
66989
66990 2007-09-09  Bruno Haible  <bruno@clisp.org>
66991
66992         * modules/realloc-posix: New file.
66993         * modules/realloc (Depends-on): Add realloc-posix.
66994         * lib/realloc.c: Include errno.h.
66995         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66996         and a POSIX-compatible realloc into a single function. Set ENOMEM
66997         when returning NULL.
66998         * m4/realloc.m4: New file.
66999         * doc/functions/realloc.texi: Mention the realloc-posix module.
67000         * lib/stdlib_.h (realloc): New declaration.
67001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67002         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67003         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67004         and HAVE_REALLOC_POSIX.
67005
67006 2007-09-09  Bruno Haible  <bruno@clisp.org>
67007
67008         * modules/calloc-posix: New file.
67009         * modules/calloc (Depends-on): Add calloc-posix.
67010         * lib/calloc.c: Include errno.h.
67011         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67012         and a POSIX-compatible calloc into a single function. Set ENOMEM
67013         when returning NULL.
67014         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67015         * doc/functions/calloc.texi: Mention the calloc-posix module.
67016         * lib/stdlib_.h (calloc): New declaration.
67017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67018         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67019         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67020         and HAVE_CALLOC_POSIX.
67021
67022 2007-09-09  Bruno Haible  <bruno@clisp.org>
67023
67024         Allow for modules to show an arbitrary notice.
67025         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67026         * gnulib-tool: New option --extract-notice.
67027         (func_usage): Document it.
67028         (sed_extract_prog): Update.
67029         (func_get_notice): New function.
67030         (func_modules_notice): New function.
67031         (func_import, func_create_testdir): Invoke it.
67032         Suggested by Jim Meyering.
67033
67034 2007-09-09  Bruno Haible  <bruno@clisp.org>
67035
67036         * gnulib-tool: New options --verbose, --quiet.
67037         (func_usage): Document them.
67038         (verbose): New variable.
67039         (func_execute_command): New function.
67040         (func_import): Don't show the module list and the file list if
67041         $verbose < 0.
67042         (func_create_testdir): Likewise. Use func_execute_command.
67043         (func_create_megatestdir): Use func_execute_command.
67044
67045 2007-09-08  Bruno Haible  <bruno@clisp.org>
67046
67047         * gnulib-tool (func_import): Prefer rsync over wget when available,
67048         for fetching the PO files.
67049
67050 2007-09-08  Bruno Haible  <bruno@clisp.org>
67051
67052         * posix-modules: New file. Portions copied from gnulib-tool.
67053         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67054
67055 2007-09-08  Jim Meyering  <jim@meyering.net>
67056
67057         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67058         * lib/fpending.h: Rename from __fpending.h.
67059         * lib/fpending.c: Rename from __fpending.c.
67060         Include "fpending.h", not "__fpending.h".
67061         * lib/__fpending.h, lib/__fpending.c: Remove files.
67062         * modules/fpending (Files): Reflect new file names.
67063         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67064
67065 2007-09-08  Bruno Haible  <bruno@clisp.org>
67066
67067         * m4/inttypes-h.m4: Remove stub file.
67068
67069 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67070
67071         * doc/headers/stdint.texi: Discuss #include_next issue.
67072
67073 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67074
67075         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67076
67077 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67078
67079         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67080         in variable name.
67081
67082 2007-09-03  Jim Meyering  <jim@meyering.net>
67083
67084         New module: git-version-gen.
67085         * modules/git-version-gen: New file.
67086
67087         Import changes from coreutils for bootstrap script.
67088
67089         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67090
67091         bootstrap: uses rsync to download the .po files
67092         * build-aux/bootstrap (po_download_command_format): New global.
67093         (download_po_files): Use rsync.
67094         (update_po_files): Don't remove .po files after download,
67095         so future rsync runs can take advantage of the copies.
67096
67097         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67098
67099         Solve the unnecessary-.po-file-regeneration problem once and for all.
67100         * build-aux/bootstrap (download_po_files): New function, renamed from
67101         get_translations.  Now, downloads, but doesn't update LINGUAS.
67102         (update_po_files): New function.
67103
67104         bootstrap: Ignore more.
67105         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67106         uniwidth to e.g., lib/.gitignore.
67107         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67108
67109         * build-aux/bootstrap: New setting: vc_ignore.
67110         (insert_sorted_if_absent): Create $file if absent.
67111         Adapt to new, possibly empty, list: $vc_ignore.
67112
67113         bootstrap: generate more ignorable names
67114         * build-aux/bootstrap (slurp): When generating ignorable names,
67115         also map .sin to .sed, .gperf to .c, and .y to .c.
67116
67117 2007-09-03  Jim Meyering  <jim@meyering.net>
67118
67119         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67120         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67121
67122 2007-09-02  Bruno Haible  <bruno@clisp.org>
67123
67124         Fix mis-recognition of 'mcs' on QNX 6.
67125         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67126         output contains the string "Mono".
67127         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67128         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67129
67130 2007-09-01  Bruno Haible  <bruno@clisp.org>
67131
67132         Fix collision between uniwidth/* and linebreak modules.
67133         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67134         u32_width): Remove declarations.
67135         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67136         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67137         streq3, streq2, streq1, streq0): Remove functions.
67138         (STREQ): Remove macro.
67139         (is_cjk_encoding): Remove function.
67140         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67141         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67142         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67143         * NEWS: Document the change.
67144
67145 2007-09-01  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/streq.h: Add double-inclusion guard.
67148
67149 2007-09-01  Karl Berry  <karl@gnu.org>
67150
67151         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67152
67153 2007-08-28  Jim Meyering  <jim@meyering.net>
67154
67155         Rename mreadlink_with_size to areadlink_with_size.
67156         * NEWS: Document the change.
67157         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67158         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67159         * lib/mreadlink.h: Rename this to...
67160         * lib/areadlink.h: ...this.
67161         * modules/mreadlink-with-size: Rename this to...
67162         * modules/areadlink-with-size: ...this.
67163         * lib/canonicalize.c: Reflect the renaming.
67164         * modules/canonicalize: Likewise.
67165
67166 2007-08-26  Bruno Haible  <bruno@clisp.org>
67167
67168         * gnulib-tool (func_import): When deciding which files to remove,
67169         consider also dangling symbolic links.
67170         Reported by Eric Blake.
67171
67172 2007-08-26  Bruno Haible  <bruno@clisp.org>
67173
67174         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67175
67176 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67177
67178         * lib/readline.c: Don't include getline.h, the prototype is now
67179         found in stdio.h.
67180
67181 2007-08-23  Jim Meyering  <jim@meyering.net>
67182
67183         Getdelim touchup.
67184         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67185         around the funlockfile call, since funlockfile never sets errno.
67186         Don't set errno upon failed realloc.
67187
67188 2007-08-22  Eric Blake  <ebb9@byu.net>
67189
67190         Getline touchups.
67191         * lib/getdelim.c (getdelim): Revert regression that required *n to
67192         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67193         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67194         getdelim, rather than whether implementation is missing.
67195         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67196         * lib/stdio_.h (getline): Also declare if replacement is
67197         required.
67198         * doc/functions/getdelim.texi: New file.
67199         * doc/functions/getline.texi: Likewise.
67200         * doc/gnulib.texi (Function Substitutes): Add new files.
67201         Reported by Bruno Haible.
67202
67203 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67204
67205         * users.txt: Add Guile.
67206
67207 2007-08-22  Eric Blake  <ebb9@byu.net>
67208
67209         * tests/test-getdelim.c (main): Use remove, not unlink.
67210         * tests/test-getline.c (main): Likewise.
67211
67212         Move getline and getdelim into stdio.h, per POSIX 200x.
67213         * modules/getline (Files): Remove getline.h.
67214         (Depends-on): Add stdio.
67215         (configure.ac): Add module indicator.
67216         * modules/getdelim (Files): Remove getdelim.h.
67217         (Depends-on): Add stdio.
67218         (configure.ac): Add module indicator.
67219         * modules/stdio (Makefile.am): Work with new indicators.
67220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67223         * lib/getdelim.h: Delete.
67224         * lib/getline.h: Delete.
67225         * lib/stdio_.h (getdelim, getline): Declare.
67226         * modules/getdelim-tests: New module.
67227         * modules/getline-tests: Likewise.
67228         * tests/test-getdelim.c: New file.
67229         * tests/test-getline.c: Likewise.
67230         * NEWS: Document the change.
67231         * lib/getline.c: Update choice of header.
67232         * lib/csharpcomp.c: Likewise.
67233         * lib/getpass.c: Likewise.
67234         * lib/javacomp.c: Likewise.
67235         * lib/javaversion.c: Likewise.
67236         * lib/yesno.c: Likewise.
67237         * lib/getdelim.c: Likewise.
67238         (getdelim): Set errno on failure, and avoid memory leak.
67239
67240 2007-08-19  Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/closein (Depends-on): Add freadahead.
67243         * lib/closein.c: Include freadahead.h.
67244         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67245         is zero.
67246
67247 2007-08-19  Bruno Haible  <bruno@clisp.org>
67248
67249         * modules/freadahead-tests: New file.
67250         * tests/test-freadahead.sh: New file.
67251         * tests/test-freadahead.c: New file.
67252
67253         * modules/freadahead: New file.
67254         * lib/freadahead.h: New file.
67255         * lib/freadahead.c: New file.
67256         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67257         fbufmode, fpurge, freadable, fwritable.
67258
67259 2007-08-19  Eric Blake  <ebb9@byu.net>
67260
67261         Test yesno in combination with closein.
67262         * lib/yesno.c (yesno): Document use of stdin.
67263         * modules/yesno-tests (Files): New module.
67264         * tests/test-yesno.c (main): New file.
67265         * tests/test-yesno.sh: Likewise.
67266
67267 2007-08-19  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67270         * lib/fseeko.c (rpl_fseeko): Likewise.
67271         * lib/fseterr.c (fseterr): Likewise.
67272
67273 2007-08-19  Bruno Haible  <bruno@clisp.org>
67274
67275         * tests/test-lseek.c (main): Disable a test for BeOS.
67276         * doc/functions/lseek.texi: Document the BeOS bug.
67277
67278 2007-08-19  Bruno Haible  <bruno@clisp.org>
67279             Eric Blake  <ebb9@byu.net>
67280
67281         * lib/lseek.c: Include <sys/stat.h>.
67282         (rpl_lseek): Add workaround code also for Unix platforms.
67283         Needed for BeOS.
67284         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67285         * doc/functions/lseek.texi: Document BeOS definiency.
67286
67287 2007-08-18  Bruno Haible  <bruno@clisp.org>
67288
67289         * modules/fstrcmp-tests: New file.
67290         * tests/test-fstrcmp.c: New file.
67291
67292 2007-08-18  Bruno Haible  <bruno@clisp.org>
67293
67294         * modules/fstrcmp: New file, from GNU gettext with modifications.
67295         * lib/fstrcmp.h: New file, from GNU gettext.
67296         * lib/fstrcmp.c: New file, from GNU gettext.
67297         * MODULES.html.sh (String handling): Add fstrcmp.
67298
67299 2007-08-18  Bruno Haible  <bruno@clisp.org>
67300
67301         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67302         'bool'.
67303         (diag, compareseq): Remove const from the ctxt argument.
67304         (USE_HEURISTIC): Undefine at the end.
67305
67306 2007-08-18  Jim Meyering  <jim@meyering.net>
67307
67308         New file: lib/idcache.h
67309         * NEWS: Mention the addition.
67310         * modules/idcache (Files): Add lib/idcache.h
67311         * lib/idcache.c: Include "idcache.h".
67312         Don't include <sys/types.h>.
67313         Add a FIXME comment.
67314         Move file-scoped "static" declarations to the top.
67315         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67316
67317 2007-08-17  Bruno Haible  <bruno@clisp.org>
67318         and Paul Eggert  <eggert@cs.ucla.edu>
67319
67320         * MODULES.html.sh: Add diffseq.
67321         * modules/diffseq: New file.
67322         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67323         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67324
67325 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         Import changes from coreutils for bootstrap script.
67328
67329         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * build-aux/bootstrap (slurp): Work even in environments where
67332         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67333         current code does not slurp files whose names start with ".", and
67334         this looks like it might be a troublesome area.
67335
67336         2007-07-11  Jim Meyering  <jim@meyering.net>
67337
67338         If there's a GPL vN copyright comment, require that N == 3.
67339
67340         2007-07-08  Jim Meyering  <jim@meyering.net>
67341
67342         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67343         * build-aux/bootstrap (mam_template): Move definition out of loop.
67344
67345         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67346
67347         * build-aux/bootstrap (symlink_to_dir): Rename function from
67348         symlink_to_gnulib.  Add a directory parameter.  Update all
67349         callers.
67350         (cp_mark_as_generated): Also check for -- and link to -- files in
67351         gl/.
67352
67353         2007-07-08  Jim Meyering  <jim@meyering.net>
67354
67355         Adapt to deeper hierarchy in gnulib.
67356         * build-aux/bootstrap (symlink_to_dir): If the destination
67357         directory doesn't exist, create it. This is required at least for
67358         "lib/uniwidth/cjk.h".
67359
67360         2007-05-15  Jim Meyering  <jim@meyering.net>
67361
67362         * build-aux/bootstrap: Now that generated Makefile.am files
67363         are no longer under version control, they must be created at
67364         bootstrap time.
67365
67366 2007-08-14  Ben Pfaff  <blp@gnu.org>
67367
67368         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67369
67370 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67373         given the changes below.
67374         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67375         even on hosts that have padding bits beyond the supported 64.
67376
67377 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67378
67379         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67380         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67381         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67382         depends on it.
67383         (xstrtol_error): Remove.
67384         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67385         but with a different signature.
67386         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67387         * lib/xstrtol-error.c: Include exitfail.h.
67388         (xstrtol_fatal): New function, with a different signature from the
67389         old xstrtol_error, so that the caller need not worry about passing
67390         in an exit status, or about storage management of the option argument.
67391         (xstrtol_error): Now a static function.  Redo signature to
67392         implement xstrtol_fatal.  Output the correct number of hyphens in
67393         front of the option so that the caller need not worry about
67394         storage management.
67395         (N_): New macro.
67396         (_): Remove; not used now.
67397         * modules/xstrtol: Depend on getopt.
67398         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67399         of old STRTOL_FATAL_ERROR macro.
67400         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67401         of test program.
67402         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67403         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67404
67405 2007-08-08  Eric Blake  <ebb9@byu.net>
67406
67407         * lib/xstrtol-error.c: Add missing include.
67408
67409         Move xstrtol messages into gnulib domain, when --pobase is used.
67410         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67411         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67412         * modules/xstrtol (Files): Distribute new file.
67413         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67414         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67415         * tests/test-xstrtol.c: ...into new file.
67416         * tests/test-xstrtoul.c: Also test xstrtoul.
67417         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67418         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67419         * tests/test-xstrtol.sh: Drive the tests.
67420         * tests/test-xstrtoimax.sh: Likewise.
67421         * tests/test-xstrtoumax.sh: Likewise.
67422         * modules/xstrtol-tests: New module.
67423         * modules/xstrtoimax-tests: Likewise.
67424         * modules/xstrtoumax-tests: Likewise.
67425
67426 2007-08-08  Jim Meyering  <jim@meyering.net>
67427
67428         New function: mfile_name_concat.
67429         * lib/filenamecat.c (mfile_name_concat): New function, just like
67430         file_name_concat, but return NULL upon failure rather than exiting
67431         with a diagnostic.
67432         * lib/filenamecat.h: Declare it.
67433
67434 2007-08-07  Bruno Haible  <bruno@clisp.org>
67435
67436         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67437         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67438         warning from gcc.
67439         Reported by Eric Blake.
67440
67441 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67442
67443         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67444         * modules/crypto/arcfour (License): Likewise.
67445         * modules/crypto/des-tests (License): Likewise.
67446         * modules/crypto/gc-arctwo-tests (License): Likewise.
67447         * modules/crypto/gc-des-tests (License): Likewise.
67448         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67449         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67450         * modules/crypto/gc-md2-tests (License): Likewise.
67451         * modules/crypto/gc-md4-tests (License): Likewise.
67452         * modules/crypto/gc-md5-tests (License): Likewise.
67453         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67454         * modules/crypto/gc-rijndael-tests (License): Likewise.
67455         * modules/crypto/gc-sha1-tests (License): Likewise.
67456         * modules/crypto/gc-tests (License): Likewise.
67457         * modules/crypto/hmac-md5 (License): Likewise.
67458         * modules/crypto/hmac-sha1 (License): Likewise.
67459         * modules/crypto/md2-tests (License): Likewise.
67460         * modules/crypto/md4-tests (License): Likewise.
67461         * modules/crypto/md5 (License): Likewise.
67462         * modules/crypto/rijndael (License): Likewise.
67463         * modules/crypto/sha1 (License): Likewise.
67464         * modules/memxor (License): Likewise.
67465
67466 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67467         and Bruno Haible  <bruno@clisp.org>
67468
67469         * NEWS: Describe interface changes to human, xstrtol.
67470         * lib/human.h: Include <xstrtol.h>.
67471         (human_options): Return enum strtol_error, not int.  Remove
67472         bool arg; take int * instead.
67473         * lib/human.c: Don't include "gettext.h".
67474         (_): Remove; no longer used.
67475         Don't include <xstrtol.h>, since human.h does it.
67476         (human_options): Adjust to abovementioned interface changes.
67477         Do not report error to stderr; that's now the caller's
67478         responsibility.
67479         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67480         interface change.
67481         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67482         Str, Argument_type_string.  All uses changed.  Put " argument"
67483         in diagnostics to make them clearer.  Change wording of suffix
67484         message for clarity.
67485         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67486         Argument_type_string.
67487         (STRTOL_FATAL_WARN): Remove; no longer used.
67488         * modules/human (Depends-on): Remove gettext-h.
67489
67490 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67491
67492         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67493
67494 2007-07-31  Bruno Haible  <bruno@clisp.org>
67495
67496         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67497         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67498         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67499
67500 2007-07-31  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67503         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67504
67505 2007-07-30  Bruno Haible  <bruno@clisp.org>
67506
67507         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67508         * modules/c-ctype (License): Likewise.
67509         * modules/c-strcase (License): Likewise.
67510         * modules/check-version (License): Likewise.
67511         * modules/iconv (License): Likewise.
67512         * modules/iconv_open (License): Likewise.
67513         * modules/read-file (License): Likewise.
67514         * modules/striconv (License): Likewise.
67515         * modules/strverscmp (License): Likewise.
67516         * modules/vasprintf (License): Likewise.
67517         * modules/crypto/des (License): Likewise.
67518         * modules/crypto/gc (License): Likewise.
67519         * modules/crypto/gc-arcfour (License): Likewise.
67520         * modules/crypto/gc-arctwo (License): Likewise.
67521         * modules/crypto/gc-des (License): Likewise.
67522         * modules/crypto/gc-hmac-md5 (License): Likewise.
67523         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67524         * modules/crypto/gc-md2 (License): Likewise.
67525         * modules/crypto/gc-md4 (License): Likewise.
67526         * modules/crypto/gc-md5 (License): Likewise.
67527         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67528         * modules/crypto/gc-random (License): Likewise.
67529         * modules/crypto/gc-rijndael (License): Likewise.
67530         * modules/crypto/gc-sha1 (License): Likewise.
67531         * modules/crypto/md2 (License): Likewise.
67532         * modules/crypto/md4 (License): Likewise.
67533
67534 2007-07-30  Jim Meyering  <jim@meyering.net>
67535
67536         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67537         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67538         it has valid stat data.  This bug would cause du not to count the
67539         sizes of inaccessible directories.
67540         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67541         in <http://bugzilla.redhat.com/250077>.
67542
67543 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67544             Bruno Haible  <bruno@clisp.org>
67545
67546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67547         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67548         #include_next, gives a diagnostic about it, but reports no error in
67549         the exit code.
67550         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67551
67552 2007-07-24  Ben Pfaff  <blp@gnu.org>
67553
67554         Improve name: "count-one-bits" is better than "popcount".
67555         * MODULES.html.sh: Update name.
67556         * lib/popcount.h: Renamed lib/count-one-bits.h.
67557         (popcount): Renamed count_one_bits.
67558         (popcountl): Renamed count_one_bits_l.
67559         (popcountll): Renamed count_one_bits_ll.
67560         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67561         * modules/popcount: Renamed module/count-one-bits.
67562         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67563         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67564
67565 2007-07-23  Ben Pfaff  <blp@gnu.org>
67566
67567         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67568         better code generation, and add U to large constants to avoid
67569         warnings, in non-GCC case.
67570         Suggested by Bruno Haible.
67571
67572 2007-07-23  Ben Pfaff  <blp@gnu.org>
67573
67574         * lib/popcount.h: Use verify_true instead of if...abort.
67575         * modules/popcount: Depend on verify module.
67576         Suggested by Jim Meyering.
67577
67578 2007-07-23  Bruno Haible  <bruno@clisp.org>
67579
67580         * gnulib-tool (func_import): Create a .cvsignore file also when the
67581         directory is not yet in CVS but the toplevel directory is. When
67582         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67583         Reported by Karl Berry.
67584
67585 2007-07-22  Ben Pfaff  <blp@gnu.org>
67586
67587         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67588         case.
67589         Suggested by Eric Blake.
67590
67591 2007-07-22  Ben Pfaff  <blp@gnu.org>
67592
67593         New module: popcount.
67594         * MODULES.html.sh: Add popcount.
67595         * modules/popcount: New file.
67596         * modules/popcount-tests: New file.
67597         * tests/test-popcount.c: New file.
67598         * lib/popcount.h: New file.
67599         * m4/popcount.m4: New file.
67600
67601 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         * build-aux/announce-gen: Update to GPLv3.
67604
67605         * build-aux/config.guess: Update from config.
67606
67607 2007-07-21  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67610         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67611
67612 2007-07-20  Jim Meyering  <jim@meyering.net>
67613
67614         * check-module: Diagnose a self-dependency.
67615
67616 2007-07-19  Bruno Haible  <bruno@clisp.org>
67617
67618         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67619         empty.
67620         Reported by Eric Blake.
67621
67622 2007-07-18  Bruno Haible  <bruno@clisp.org>
67623
67624         * gnulib-tool: New options --po-base, --po-domain.
67625         (func_usage): Document them.
67626         (pobase, po_domain): New variables.
67627         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67628         DEFAULT_TEXT_DOMAIN.
67629         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67630         (func_import): Consider pobase and po_domain. Create a po/ directory.
67631         (func_create_testdir): Set pobase and po_domain to empty.
67632         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67633         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67634
67635 2007-07-18  Bruno Haible  <bruno@clisp.org>
67636
67637         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67638         EXTRA_DIST augmentation for files in build-aux/.
67639
67640 2007-07-16  Bruno Haible  <bruno@clisp.org>
67641
67642         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67643         * modules/getdelim (License): Likewise.
67644
67645 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67646
67647         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67648         * modules/d-type (License): Likewise.
67649         * modules/extensions (License): Likewise.
67650         * modules/fnmatch (License): Likewise.
67651         * modules/fseeko (License): Likewise.
67652         * modules/getaddrinfo (License): Likewise.
67653         * modules/getline (License): Likewise.
67654         * modules/getlogin_r (License): Likewise.
67655         * modules/getpass (License): Likewise.
67656         * modules/gettimeofday (License): Likewise.
67657         * modules/glob (License): Likewise.
67658         * modules/inet_ntop (License): Likewise.
67659         * modules/malloc (License): Likewise.
67660         * modules/malloca (License): Likewise.
67661         * modules/memmem (License): Likewise.
67662         * modules/mempcpy (License): Likewise.
67663         * modules/memset (License): Likewise.
67664         * modules/minmax (License): Likewise.
67665         * modules/mktime (License): Likewise.
67666         * modules/netinet_in (License): Likewise.
67667         * modules/pathmax (License): Likewise.
67668         * modules/poll (License): Likewise.
67669         * modules/regex (License): Likewise.
67670         * modules/snprintf (License): Likewise.
67671         * modules/stdbool (License): Likewise.
67672         * modules/stdint (License): Likewise.
67673         * modules/stdio (License): Likewise.
67674         * modules/strcase (License): Likewise.
67675         * modules/strcasestr (License): Likewise.
67676         * modules/strdup (License): Likewise.
67677         * modules/string (License): Likewise.
67678         * modules/strndup (License): Likewise.
67679         * modules/strnlen (License): Likewise.
67680         * modules/strpbrk (License): Likewise.
67681         * modules/strptime (License): Likewise.
67682         * modules/strsep (License): Likewise.
67683         * modules/sys_select (License): Likewise.
67684         * modules/sys_socket (License): Likewise.
67685         * modules/sys_stat (License): Likewise.
67686         * modules/sys_time (License): Likewise.
67687         * modules/time (License): Likewise.
67688         * modules/time_r (License): Likewise.
67689         * modules/timegm (License): Likewise.
67690         * modules/unistd (License): Likewise.
67691         * modules/vsnprintf (License): Likewise.
67692         * modules/wctype (License): Likewise.
67693
67694 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67695
67696         * modules/argz (License): LGPLv2+.
67697
67698 2007-07-15  Karl Berry  <karl@gnu.org>
67699
67700         * doc/gnulib.texi: revise node structure per new fdl.texi.
67701
67702 2007-07-14  Bruno Haible  <bruno@clisp.org>
67703
67704         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67705         the output file.
67706         * lib/uniname/uninames.h: Regenerated.
67707
67708 2007-07-14  Karl Berry  <karl@gnu.org>
67709
67710         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67711         omitting sectioning and index commands.
67712
67713 2007-07-13  Bruno Haible  <bruno@clisp.org>
67714
67715         New gnulib-tool option --more-symlinks.
67716         * gnulib-tool (func_usage): Document --more-symlinks.
67717         (do_copyrights): New variable.
67718         Recognize option --more-symlinks.
67719         (func_import): Don't add a copyright notice transform to
67720         sed_transform_lib_file if do_copyrights is empty.
67721
67722 2007-07-13  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/vasnprintf.c (decimal_point_char): Define also if
67725         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67726         && !NEED_PRINTF_DIRECTIVE_A.
67727         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67728         Gary V. Vaughan <gary@gnu.org>.
67729
67730 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * lib/inttypes_.h: Undo previous change, since it was fixed
67733         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67734
67735 2007-07-13  Bruno Haible  <bruno@clisp.org>
67736
67737         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67738         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67739
67740 2007-07-13  Jim Meyering  <jim@meyering.net>
67741
67742         df: Don't fail for Tru64's "file-on-file mount".
67743         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67744         so we fall through and use statfs instead.  Details here:
67745         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67746         Reported by Albert Chin.
67747
67748 2007-07-13  Bruno Haible  <bruno@clisp.org>
67749
67750         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67751         * modules/configmake (License): Likewise.
67752         * modules/gettext (License): Likewise.
67753         * modules/gettext-h (License): Likewise.
67754         * modules/include_next (License): Likewise.
67755         * modules/link-warning (License): Likewise.
67756         * modules/localcharset (License): Likewise.
67757         * modules/localename (License): Likewise.
67758         * modules/lock (License): Likewise.
67759         * modules/relocatable-lib-lgpl (License): Likewise.
67760         * modules/size_max (License): Likewise.
67761         * modules/vasnprintf (License): Likewise.
67762         * modules/wchar (License): Likewise.
67763         * modules/xsize (License): Likewise.
67764
67765 2007-07-13  Bruno Haible  <bruno@clisp.org>
67766
67767         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67768         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67769
67770 2007-07-12  Bruno Haible  <bruno@clisp.org>
67771
67772         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67773         in the modules files.
67774
67775 2007-07-11  Karl Berry  <karl@gnu.org>
67776
67777         * MODULES.html.sh (func_module): use
67778          sed -e '\|^'"${includefile}"'$|d'
67779          instead of /.../d, to avoid errors on $includefile's containing /.
67780
67781 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67782
67783         * gnulib-tool (func_import): Avoid duplication of --avoid
67784         statements
67785         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67786         names to `_' in variable names.
67787
67788 2007-07-10  Eric Blake  <ebb9@byu.net>
67789
67790         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67791         * NEWS: Document this change.
67792
67793 2007-07-08  Bruno Haible  <bruno@clisp.org>
67794
67795         Update to Unicode 5.0.
67796         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67797         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67798         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67799         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67800         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67801         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67802         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67803         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67804         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67805         U+10A3F, U+1D242..U+1D244.
67806         (nonspacing_table_ind): Update.
67807         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67808         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67809
67810 2007-07-08  Bruno Haible  <bruno@clisp.org>
67811
67812         Update to Unicode 5.0.
67813         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67814         code transform. Extend the name index field of unicode_name_to_code and
67815         unicode_code_to_name from 16 to 24 bits.
67816         * lib/uniname/uniname.c (unicode_character_name,
67817         unicode_name_character): Add the range 0x12xxx to the code transform.
67818         * lib/uniname/uninames.h: Regenerated.
67819         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67820
67821 2007-07-07  Bruno Haible  <bruno@clisp.org>
67822
67823         * modules/wcwidth-tests: New file.
67824         * tests/test-wcwidth.c: New file.
67825
67826         Work around MacOS X wcwidth() bug.
67827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67828         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67829         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67830         original wcwidth in non-UTF-8 locales.
67831         * modules/wcwidth (Depends-on): Add localcharset, streq,
67832         uniwidth/width.
67833         * doc/functions/wcwidth.texi: Update.
67834
67835 2007-07-07  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67838         (wcwidth): New declaration.
67839         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67840         macros.
67841         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67842         here. Prepare for creating <wchar.h> unconditionally.
67843         * modules/wchar (Depends-on): Add link-warning.
67844         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67845         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67846         * lib/wcwidth.h: Remove file.
67847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67848         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67849         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67850         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67851         (Include): Replace wcwidth.h with <wchar.h>.
67852         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67853         * lib/mbchar.h: Don't include wcwidth.h.
67854         * lib/mbswidth.c: Likewise.
67855         * NEWS: Mention the change.
67856
67857 2007-07-07  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67860         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67861         definition with an external declaration.
67862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67863         defined as a function. Remove AC_C_INLINE requirement.
67864         * modules/wcwidth (Files): Add lib/wcwidth.c.
67865         (Makefile.am): Remove redundant statement.
67866
67867 2007-07-07  Bruno Haible  <bruno@clisp.org>
67868
67869         * MODULES.html.sh (Unicode string functions): Add the new modules.
67870
67871         * tests/uniwidth/test-u32-strwidth.c: New file.
67872         * modules/uniwidth/u32-strwidth-tests: New file.
67873
67874         * lib/uniwidth/u32-strwidth.c: New file.
67875         * modules/uniwidth/u32-strwidth: New file.
67876
67877         * tests/uniwidth/test-u16-strwidth.c: New file.
67878         * modules/uniwidth/u16-strwidth-tests: New file.
67879
67880         * lib/uniwidth/u16-strwidth.c: New file.
67881         * modules/uniwidth/u16-strwidth: New file.
67882
67883         * tests/uniwidth/test-u8-strwidth.c: New file.
67884         * modules/uniwidth/u8-strwidth-tests: New file.
67885
67886         * lib/uniwidth/u8-strwidth.c: New file.
67887         * modules/uniwidth/u8-strwidth: New file.
67888
67889         * tests/uniwidth/test-u32-width.c: New file.
67890         * modules/uniwidth/u32-width-tests: New file.
67891
67892         * lib/uniwidth/u32-width.c: New file.
67893         * modules/uniwidth/u32-width: New file.
67894
67895         * tests/uniwidth/test-u16-width.c: New file.
67896         * modules/uniwidth/u16-width-tests: New file.
67897
67898         * lib/uniwidth/u16-width.c: New file.
67899         * modules/uniwidth/u16-width: New file.
67900
67901         * tests/uniwidth/test-u8-width.c: New file.
67902         * modules/uniwidth/u8-width-tests: New file.
67903
67904         * lib/uniwidth/u8-width.c: New file.
67905         * modules/uniwidth/u8-width: New file.
67906
67907         * tests/uniwidth/test-uc_width.c: New file.
67908         * modules/uniwidth/width-tests: New file.
67909
67910         * lib/uniwidth/width.c: New file, from GNU libiconv.
67911         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67912         * modules/uniwidth/width: New file.
67913
67914         * lib/uniwidth.h: New file, from GNU libiconv.
67915         * modules/uniwidth/base: New file.
67916
67917 2007-07-07  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/uniname.h: New file, from GNU gettext.
67920         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67921         * lib/uniname/uninames.h: New file, from GNU gettext.
67922         * lib/uniname/uniname.c: New file, from GNU gettext.
67923         * tests/uniname/test-uninames.sh: New file.
67924         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67925         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67926         * modules/uniname/base: New file.
67927         * modules/uniname/uniname: New file.
67928         * modules/uniname/uniname-tests: New file.
67929         * MODULES.html.sh (Unicode string functions): Add the new modules.
67930
67931 2007-07-06  Bruno Haible  <bruno@clisp.org>
67932
67933         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67934
67935 2007-07-06  Bruno Haible  <bruno@clisp.org>
67936
67937         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67938         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67939         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67940         include <sys/time.h>.
67941         Reported by Eric Blake.
67942
67943 2007-07-06  Eric Blake  <ebb9@byu.net>
67944
67945         Fix testing canonicalize on cygwin.
67946         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67947         Revert patch from 2007-06-19.
67948         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67949         canonicalize module is also in use.
67950         * tests/test-canonicalize.c: New file.
67951         * tests/test-canonicalize.sh: Likewise.
67952         * modules/canonicalize-tests: Likewise.
67953
67954 2007-07-06  Jim Meyering  <jim@meyering.net>
67955
67956         * lib/getugroups.c (getugroups): Detect getgrent failure.
67957         Adjust comment to reflect reality: this function may return -1.
67958
67959 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67960
67961         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67962         the new TP address.
67963         (usage): Fix typo
67964         (gnulib_mk): New variable.
67965
67966 2007-07-05  Jim Meyering  <jim@meyering.net>
67967
67968         Don't let endgrent clobber errno, no matter how improbable.
67969         * lib/getugroups.c (getugroups): Save and restore errno around
67970         endgrent call.
67971
67972         Close the group DB even when failing with 2^31 or more members.
67973         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67974
67975 2007-07-04  Jim Meyering  <jim@meyering.net>
67976
67977         * lib/getugroups.h: New file.
67978         * lib/getugroups.c: Include "getugroups.h".
67979         Remove uses of "register" keyword.
67980         Move local variable, "cp", down into scope where used.
67981         Give "username" parameter the "const" attribute.
67982         * modules/getugroups (Files): Add lib/getugroups.h
67983
67984 2007-07-04  Karl Berry  <karl@gnu.org>
67985
67986         * MODULES.html.sh (func_all_modules): Complete rename of
67987         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67988
67989 2007-07-02  Bruno Haible  <bruno@clisp.org>
67990
67991         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67992         mode, when inttypes.h comes from gnulib.
67993         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67994
67995 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67996
67997         * NEWS: Mention lgpl module name change.
67998
67999         * modules/lgpl-2.1: Renamed from lgpl.
68000
68001         * NEWS: Mention gpl module name change.
68002
68003         * modules/gpl-3.0: New file, based on gpl-2.0.
68004
68005         * modules/gpl-2.0: Renamed from gpl.
68006
68007         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68008         doc/gpl-2.0.texi.
68009
68010 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68013         #define __STDC_LIMIT_MACROS temporarily while including
68014         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68015         Problem reported by Joel E. Denny in
68016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68017
68018 2007-07-01  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/unistdio.h: New file.
68021         * lib/unistdio/u-asnprintf.h: New file.
68022         * lib/unistdio/u-asprintf.h: New file.
68023         * lib/unistdio/u-printf-args.c: New file.
68024         * lib/unistdio/u-printf-args.h: New file.
68025         * lib/unistdio/u-printf-parse.h: New file.
68026         * lib/unistdio/u-snprintf.h: New file.
68027         * lib/unistdio/u-sprintf.h: New file.
68028         * lib/unistdio/u-vasprintf.h: New file.
68029         * lib/unistdio/u-vsnprintf.h: New file.
68030         * lib/unistdio/u-vsprintf.h: New file.
68031         * lib/unistdio/ulc-asnprintf.c: New file.
68032         * lib/unistdio/ulc-asprintf.c: New file.
68033         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68034         * lib/unistdio/ulc-printf-parse.c: New file.
68035         * lib/unistdio/ulc-snprintf.c: New file.
68036         * lib/unistdio/ulc-sprintf.c: New file.
68037         * lib/unistdio/ulc-vasnprintf.c: New file.
68038         * lib/unistdio/ulc-vasprintf.c: New file.
68039         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68040         * lib/unistdio/ulc-vsnprintf.c: New file.
68041         * lib/unistdio/ulc-vsprintf.c: New file.
68042         * lib/unistdio/u8-asnprintf.c: New file.
68043         * lib/unistdio/u8-asprintf.c: New file.
68044         * lib/unistdio/u8-printf-parse.c: New file.
68045         * lib/unistdio/u8-snprintf.c: New file.
68046         * lib/unistdio/u8-sprintf.c: New file.
68047         * lib/unistdio/u8-vasnprintf.c: New file.
68048         * lib/unistdio/u8-vasprintf.c: New file.
68049         * lib/unistdio/u8-vsnprintf.c: New file.
68050         * lib/unistdio/u8-vsprintf.c: New file.
68051         * lib/unistdio/u8-u8-asnprintf.c: New file.
68052         * lib/unistdio/u8-u8-asprintf.c: New file.
68053         * lib/unistdio/u8-u8-snprintf.c: New file.
68054         * lib/unistdio/u8-u8-sprintf.c: New file.
68055         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68056         * lib/unistdio/u8-u8-vasprintf.c: New file.
68057         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68058         * lib/unistdio/u8-u8-vsprintf.c: New file.
68059         * lib/unistdio/u16-asnprintf.c: New file.
68060         * lib/unistdio/u16-asprintf.c: New file.
68061         * lib/unistdio/u16-printf-parse.c: New file.
68062         * lib/unistdio/u16-snprintf.c: New file.
68063         * lib/unistdio/u16-sprintf.c: New file.
68064         * lib/unistdio/u16-vasnprintf.c: New file.
68065         * lib/unistdio/u16-vasprintf.c: New file.
68066         * lib/unistdio/u16-vsnprintf.c: New file.
68067         * lib/unistdio/u16-vsprintf.c: New file.
68068         * lib/unistdio/u16-u16-asnprintf.c: New file.
68069         * lib/unistdio/u16-u16-asprintf.c: New file.
68070         * lib/unistdio/u16-u16-snprintf.c: New file.
68071         * lib/unistdio/u16-u16-sprintf.c: New file.
68072         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68073         * lib/unistdio/u16-u16-vasprintf.c: New file.
68074         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68075         * lib/unistdio/u16-u16-vsprintf.c: New file.
68076         * lib/unistdio/u32-asnprintf.c: New file.
68077         * lib/unistdio/u32-asprintf.c: New file.
68078         * lib/unistdio/u32-printf-parse.c: New file.
68079         * lib/unistdio/u32-snprintf.c: New file.
68080         * lib/unistdio/u32-sprintf.c: New file.
68081         * lib/unistdio/u32-vasnprintf.c: New file.
68082         * lib/unistdio/u32-vasprintf.c: New file.
68083         * lib/unistdio/u32-vsnprintf.c: New file.
68084         * lib/unistdio/u32-vsprintf.c: New file.
68085         * lib/unistdio/u32-u32-asnprintf.c: New file.
68086         * lib/unistdio/u32-u32-asprintf.c: New file.
68087         * lib/unistdio/u32-u32-snprintf.c: New file.
68088         * lib/unistdio/u32-u32-sprintf.c: New file.
68089         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68090         * lib/unistdio/u32-u32-vasprintf.c: New file.
68091         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68092         * lib/unistdio/u32-u32-vsprintf.c: New file.
68093         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68094         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68095         * tests/unistdio/test-ulc-printf1.h: New file.
68096         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68097         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68098         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68099         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68100         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68101         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68102         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68103         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68104         * tests/unistdio/test-u8-asnprintf1.c: New file.
68105         * tests/unistdio/test-u8-asnprintf1.h: New file.
68106         * tests/unistdio/test-u8-printf1.h: New file.
68107         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68108         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68109         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68110         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68111         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68112         * tests/unistdio/test-u8-vasprintf1.c: New file.
68113         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68114         * tests/unistdio/test-u8-vsprintf1.c: New file.
68115         * tests/unistdio/test-u16-asnprintf1.c: New file.
68116         * tests/unistdio/test-u16-asnprintf1.h: New file.
68117         * tests/unistdio/test-u16-printf1.h: New file.
68118         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68119         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68120         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68121         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68122         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68123         * tests/unistdio/test-u16-vasprintf1.c: New file.
68124         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68125         * tests/unistdio/test-u16-vsprintf1.c: New file.
68126         * tests/unistdio/test-u32-asnprintf1.c: New file.
68127         * tests/unistdio/test-u32-asnprintf1.h: New file.
68128         * tests/unistdio/test-u32-printf1.h: New file.
68129         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68130         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68131         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68132         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68133         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68134         * tests/unistdio/test-u32-vasprintf1.c: New file.
68135         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68136         * tests/unistdio/test-u32-vsprintf1.c: New file.
68137         * modules/unistdio/base: New file.
68138         * modules/unistdio/u-printf-args: New file.
68139         * modules/unistdio/ulc-asnprintf: New file.
68140         * modules/unistdio/ulc-asprintf: New file.
68141         * modules/unistdio/ulc-fprintf: New file.
68142         * modules/unistdio/ulc-printf-parse: New file.
68143         * modules/unistdio/ulc-snprintf: New file.
68144         * modules/unistdio/ulc-sprintf: New file.
68145         * modules/unistdio/ulc-vasnprintf: New file.
68146         * modules/unistdio/ulc-vasprintf: New file.
68147         * modules/unistdio/ulc-vfprintf: New file.
68148         * modules/unistdio/ulc-vsnprintf: New file.
68149         * modules/unistdio/ulc-vsprintf: New file.
68150         * modules/unistdio/u8-asnprintf: New file.
68151         * modules/unistdio/u8-asprintf: New file.
68152         * modules/unistdio/u8-printf-parse: New file.
68153         * modules/unistdio/u8-snprintf: New file.
68154         * modules/unistdio/u8-sprintf: New file.
68155         * modules/unistdio/u8-vasnprintf: New file.
68156         * modules/unistdio/u8-vasprintf: New file.
68157         * modules/unistdio/u8-vsnprintf: New file.
68158         * modules/unistdio/u8-vsprintf: New file.
68159         * modules/unistdio/u8-u8-asnprintf: New file.
68160         * modules/unistdio/u8-u8-asprintf: New file.
68161         * modules/unistdio/u8-u8-snprintf: New file.
68162         * modules/unistdio/u8-u8-sprintf: New file.
68163         * modules/unistdio/u8-u8-vasnprintf: New file.
68164         * modules/unistdio/u8-u8-vasprintf: New file.
68165         * modules/unistdio/u8-u8-vsnprintf: New file.
68166         * modules/unistdio/u8-u8-vsprintf: New file.
68167         * modules/unistdio/u16-asnprintf: New file.
68168         * modules/unistdio/u16-asprintf: New file.
68169         * modules/unistdio/u16-printf-parse: New file.
68170         * modules/unistdio/u16-snprintf: New file.
68171         * modules/unistdio/u16-sprintf: New file.
68172         * modules/unistdio/u16-vasnprintf: New file.
68173         * modules/unistdio/u16-vasprintf: New file.
68174         * modules/unistdio/u16-vsnprintf: New file.
68175         * modules/unistdio/u16-vsprintf: New file.
68176         * modules/unistdio/u16-u16-asnprintf: New file.
68177         * modules/unistdio/u16-u16-asprintf: New file.
68178         * modules/unistdio/u16-u16-snprintf: New file.
68179         * modules/unistdio/u16-u16-sprintf: New file.
68180         * modules/unistdio/u16-u16-vasnprintf: New file.
68181         * modules/unistdio/u16-u16-vasprintf: New file.
68182         * modules/unistdio/u16-u16-vsnprintf: New file.
68183         * modules/unistdio/u16-u16-vsprintf: New file.
68184         * modules/unistdio/u32-asnprintf: New file.
68185         * modules/unistdio/u32-asprintf: New file.
68186         * modules/unistdio/u32-printf-parse: New file.
68187         * modules/unistdio/u32-snprintf: New file.
68188         * modules/unistdio/u32-sprintf: New file.
68189         * modules/unistdio/u32-vasnprintf: New file.
68190         * modules/unistdio/u32-vasprintf: New file.
68191         * modules/unistdio/u32-vsnprintf: New file.
68192         * modules/unistdio/u32-vsprintf: New file.
68193         * modules/unistdio/u32-u32-asnprintf: New file.
68194         * modules/unistdio/u32-u32-asprintf: New file.
68195         * modules/unistdio/u32-u32-snprintf: New file.
68196         * modules/unistdio/u32-u32-sprintf: New file.
68197         * modules/unistdio/u32-u32-vasnprintf: New file.
68198         * modules/unistdio/u32-u32-vasprintf: New file.
68199         * modules/unistdio/u32-u32-vsnprintf: New file.
68200         * modules/unistdio/u32-u32-vsprintf: New file.
68201         * modules/unistdio/ulc-asnprintf-tests: New file.
68202         * modules/unistdio/ulc-vasnprintf-tests: New file.
68203         * modules/unistdio/ulc-vasprintf-tests: New file.
68204         * modules/unistdio/ulc-vsnprintf-tests: New file.
68205         * modules/unistdio/ulc-vsprintf-tests: New file.
68206         * modules/unistdio/u8-asnprintf-tests: New file.
68207         * modules/unistdio/u8-vasnprintf-tests: New file.
68208         * modules/unistdio/u8-vasprintf-tests: New file.
68209         * modules/unistdio/u8-vsnprintf-tests: New file.
68210         * modules/unistdio/u8-vsprintf-tests: New file.
68211         * modules/unistdio/u16-asnprintf-tests: New file.
68212         * modules/unistdio/u16-vasnprintf-tests: New file.
68213         * modules/unistdio/u16-vasprintf-tests: New file.
68214         * modules/unistdio/u16-vsnprintf-tests: New file.
68215         * modules/unistdio/u16-vsprintf-tests: New file.
68216         * modules/unistdio/u32-asnprintf-tests: New file.
68217         * modules/unistdio/u32-vasnprintf-tests: New file.
68218         * modules/unistdio/u32-vasprintf-tests: New file.
68219         * modules/unistdio/u32-vsnprintf-tests: New file.
68220         * modules/unistdio/u32-vsprintf-tests: New file.
68221         * MODULES.html.sh (Unicode string functions): Add the new modules.
68222
68223 2007-07-01  Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/sprintf.c (sprintf): Limit the available length estimation,
68226         to avoid address wraparound.
68227         * lib/vsprintf.c (vsprintf): Likewise.
68228         * modules/sprintf-posix (Dependencies): Add stdint.
68229         * modules/vsprintf-posix (Dependencies): Likewise.
68230
68231 2007-07-01  Bruno Haible  <bruno@clisp.org>
68232
68233         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68234         Windows PATH as well. Conservative double-quoting. Comments.
68235
68236 2007-07-01  Bruno Haible  <bruno@clisp.org>
68237             Eric Blake  <ebb9@byu.net>
68238             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68239
68240         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68241         empty components in $PATH, denoting '.'.
68242
68243 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68244
68245         * gnulib-tool: Fix indentation.
68246         (func_create_megatestdir): Likewise.
68247         Report by Bruno Haible.
68248
68249 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68250
68251         Sync from Automake.
68252         * build-aux/gnupload: Fix shell portability issues with for loops.
68253         Report by Karl Berry.
68254
68255 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68256
68257         * build-aux/maint.mk (POURL): Use translationproject.org.
68258
68259 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68260             Bruno Haible  <bruno@clisp.org>
68261
68262         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68263         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68264         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68265         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68266         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68267
68268 2007-06-27  Bruno Haible  <bruno@clisp.org>
68269
68270         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68271         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68272
68273 2007-06-26  Karl Berry  <karl@gnu.org>
68274
68275         * MODULES.html.sh: remove xreadlink-with-size.
68276
68277 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68280         method that I hope also handles the double-include problem noted
68281         by Bruno Haible in
68282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68283
68284 2007-06-23  Bruno Haible  <bruno@clisp.org>
68285
68286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68287         Don't let the 'mostlyclean' target fail if the last subdirectory could
68288         not be removed.
68289         Reported by Karl Berry.
68290
68291 2007-06-23  Bruno Haible  <bruno@clisp.org>
68292
68293         * gnulib-tool (echo): Add a speedier workaround for ksh.
68294         * tests/test-echo.sh: Likewise.
68295
68296 2007-06-23  Bruno Haible  <bruno@clisp.org>
68297
68298         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68299         * tests/test-echo.sh: Likewise.
68300
68301 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68302
68303         * gnulib-tool (IFS): Initialize early, so we don't set it to
68304         empty later.
68305         (self_abspathname): Rewrite algorithm to set it, reindent.
68306         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68307         (func_create_megatestdir): Merge some sed scripts.
68308
68309 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68312         exposed by Sun Studio 11 cc on Solaris 8.
68313
68314 2007-06-22  Bruno Haible  <bruno@clisp.org>
68315
68316         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68317         backslashes.
68318         * tests/test-echo.sh: New file.
68319
68320 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68321
68322         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68323         simplify `sed_replace_build_aux' scripts, they are portable but
68324         echoing them with `echo' is not.
68325         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68326
68327 2007-06-21  Karl Berry  <karl@gnu.org>
68328
68329         * config/srclist.txt: guess we can't handle the licenses via
68330         srclist at the moment.
68331
68332 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         * MODULES.html.sh: Add include_next.
68335         * modules/include_next: New file.
68336
68337 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68340         INCLUDE_NEXT.
68341         (gl_CHECK_NEXT_HEADERS): New macro.
68342         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68343         the obsolescent gl_ABSOLUTE_HEADER.
68344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68345         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68346         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68347         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68348         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68349         * m4/math_h.m4 (gl_MATH_H): Likewise.
68350         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68351         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68352         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68353         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68354         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68355         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68356         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68360         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68361         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68362         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68363         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68364         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68365         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68366         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68367         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68368         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68369         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68370         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68371         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68372         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68373         * lib/float_.h: Likewise.
68374         * lib/inttypes_.h: Likewise.
68375         * lib/math_.h: Likewise.
68376         * lib/search_.h: Likewise.
68377         * lib/signal_.h: Likewise.
68378         * lib/stdint_.h: Likewise.
68379         * lib/stdio_.h: Likewise.
68380         * lib/stdlib_.h: Likewise.
68381         * lib/string_.h: Likewise.
68382         * lib/sys_stat_.h: Likewise.
68383         * lib/sys_time_.h: Likewise.
68384         * lib/time_.h: Likewise.
68385         * lib/unistd_.h: Likewise.
68386         * lib/wchar_.h: Likewise.
68387         * lib/wctype_.h: Likewise.
68388         * lib/dirent_.h: Likewise.
68389         * lib/iconv_.h: Likewise.
68390         * lib/locale_.h: Likewise.
68391         * lib/netinet_in_.h: Likewise.
68392         * lib/sys_select_.h: Likewise.
68393         * lib/sys_socket_.h: Likewise.
68394         * lib/sysexits_.h: Likewise.
68395         * modules/fcntl (Depends-on): Depend on include_next, not
68396         absolute_header.
68397         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68398         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68399         * modules/fchdir: Likewise.
68400         * modules/float: Likewise.
68401         * modules/iconv_open: Likewise.
68402         * modules/inttypes: Likewise.
68403         * modules/locale: Likewise.
68404         * modules/math: Likewise.
68405         * modules/netinet_in: Likewise.
68406         * modules/search: Likewise.
68407         * modules/signal: Likewise.
68408         * modules/stdint: Likewise.
68409         * modules/stdio: Likewise.
68410         * modules/stdlib: Likewise.
68411         * modules/string: Likewise.
68412         * modules/sys_select: Likewise.
68413         * modules/sys_socket: Likewise.
68414         * modules/sys_stat: Likewise.
68415         * modules/sys_time: Likewise.
68416         * modules/sysexits: Likewise.
68417         * modules/time: Likewise.
68418         * modules/unistd: Likewise.
68419         * modules/wchar: Likewise.
68420         * modules/wctype: Likewise.
68421         * modules/sys_stat: Change maintainer to "all".
68422         * modules/unistd: Likewise.
68423
68424 2007-06-20  Karl Berry  <karl@gnu.org>
68425
68426         * config/srclist.txt: track www changes in license files.
68427
68428 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68429
68430         * build-aux/bootstrap: Remove stray dot.
68431         Make sure build_aux settings are honored when linking
68432         gnulib_extra_files.
68433
68434 2007-06-19  Eric Blake  <ebb9@byu.net>
68435
68436         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68437         Allow compilation on cygwin.
68438
68439 2007-06-19  Jim Meyering  <jim@meyering.net>
68440
68441         xreadlink-with-size: Remove module.  No longer used.
68442         Ex-callers now use xreadlink or mreadlink-with-size.
68443         * modules/xreadlink-with-size: Remove module.
68444         * lib/xreadlink-with-size.c: Remove file.
68445         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68446         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68447         just before the function definition *is* accurate.
68448
68449         Eliminate one way canonicalize_filename_mode could exit.
68450         * lib/canonicalize.c (canonicalize_filename_mode):
68451         Use mreadlink_with_size, not xreadlink_with_size.
68452
68453 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         Detect porting problems to FreeBSD/arm, which has time_t wider than
68456         long int.  Original problem reported for GNU diff by Xin Li in
68457         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68458         * modules/getdate (Depends-on): Add intprops, verify.
68459         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68460         is an integer type no wider than long int.
68461
68462 2007-06-18  Jim Meyering  <jim@meyering.net>
68463
68464         New module: mreadlink-with-size.
68465         * MODULES.html.sh: Add mreadlink-with-size.
68466         * modules/mreadlink-with-size: New module
68467         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68468         not xreadlink-with-size.
68469         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68470
68471 2007-06-16  Bruno Haible  <bruno@clisp.org>
68472
68473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68474         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68475         Reported by Gary V. Vaughan <gary@gnu.org>.
68476
68477 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         Revamp lchown so that it lives in unistd.h where it belongs.
68480         * lib/lchown.h: Remove.
68481         * lib/dirchownmod.c: Don't include lib/lchown.h.
68482         * lib/fchownat.c: Likewise.
68483         * lib/openat.c: Likewise.
68484         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68485         does not follow symlinks.
68486         (EOPNOTSUPP): Define if not defined.
68487         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68488         is defined to 0.
68489         (lchown): New decl.
68490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68491         Do not check for lchown decl.
68492         Set REPLACE_LCHOWN.
68493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68494         REPLACE_LCHOWN.
68495         * modules/chown: Make it clear it follows symlinks.
68496         * modules/lchown: Make it clear it doesn't follow symlinks.
68497         (Files): Remove lib/lchown.h
68498         (Depends-on): Add unistd.
68499         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68500         (Include): Include <unistd.h>, not "lchown.h".
68501         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68502         REPLACE_LCHOWN.
68503
68504 2007-06-15  Jim Meyering  <jim@meyering.net>
68505
68506         Change license (GPL to LGPL) of fsusage and dependents.
68507         * modules/fsusage (License): Change to LGPL.
68508         * modules/full-read (License): Likewise.
68509         * modules/full-write (License): Likewise.
68510         * modules/safe-read (License): Likewise.
68511         * modules/safe-write (License): Likewise.
68512
68513 2007-06-14  Ben Pfaff  <blp@gnu.org>
68514
68515         Missing part of allocsa -> malloca transition.
68516         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68517         gl_MALLOCA.
68518
68519 2007-06-12  Bruno Haible  <bruno@clisp.org>
68520
68521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68522         to ia64, x86_64, i386.
68523         Reported by Eric Blake.
68524
68525 2007-06-12  Bruno Haible  <bruno@clisp.org>
68526
68527         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68528         cross-compiling to x86_64.
68529
68530 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68531
68532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68533         glitch reported by Ralf Wildenhues in
68534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68535
68536         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68537         Vin Shelton.
68538
68539 2007-06-11  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68542         replacement string.
68543         Reported by Eric Blake.
68544
68545 2007-06-10  Bruno Haible  <bruno@clisp.org>
68546
68547         Prepare vasnprintf code for use with Unicode strings.
68548         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68549         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68550         TYPE_U32_STRING.
68551         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68552         a_u32_string variants.
68553         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68554         * lib/printf-args.c: Don't include config.h and the specification
68555         header if PRINTF_FETCHARGS is already defined.
68556         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68557         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68558         TYPE_U16_STRING, TYPE_U32_STRING.
68559         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68560         u16_directive, u16_directives, u32_directive, u32_directives): New
68561         types.
68562         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68563         New declarations.
68564         * lib/printf-parse.c: Don't include config.h and the specification
68565         header if PRINTF_PARSE is already defined. Eliminate the set of
68566         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68567         them now. Include c-ctype.h.
68568         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68569         directive and CHAR_T_ONLY_ASCII.
68570         * lib/vasnprintf.c: Don't include config.h and the specification header
68571         if VASNPRINTF is already defined.
68572         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68573         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68574         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68575         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68576         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68577         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68578         code accordingly.
68579         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68580         pad_ourselves also in this case, with the 'c' and 's' directives, and
68581         with a different notion of "width".
68582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68583
68584 2007-06-10  Bruno Haible  <bruno@clisp.org>
68585
68586         * modules/unistr/u32-mbsnlen: New file.
68587         * lib/unistr/u32-mbsnlen.c: New file.
68588
68589         * modules/unistr/u16-mbsnlen: New file.
68590         * lib/unistr/u16-mbsnlen.c: New file.
68591
68592         * modules/unistr/u8-mbsnlen: New file.
68593         * lib/unistr/u8-mbsnlen.c: New file.
68594
68595         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68596         declarations.
68597
68598 2007-06-10  Bruno Haible  <bruno@clisp.org>
68599
68600         * lib/string_.h (mbsnlen): New declaration.
68601         * lib/mbsnlen.c: New file.
68602         * m4/mbsnlen.m4: New file.
68603         * modules/mbsnlen: New file.
68604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68605         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68606         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68607
68608 2007-06-10  Bruno Haible  <bruno@clisp.org>
68609
68610         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68611
68612 2007-06-10  Bruno Haible  <bruno@clisp.org>
68613
68614         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68615         * lib/mbuiter.h: Likewise.
68616
68617 2007-06-10  Bruno Haible  <bruno@clisp.org>
68618
68619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68620         declaration.
68621
68622 2007-06-10  Karl Berry  <karl@gnu.org>
68623
68624         * config/srclist.txt: remove gettext entries, Bruno prefers
68625         to update individually.
68626
68627 2007-06-10  Bruno Haible  <bruno@clisp.org>
68628
68629         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68630         'maxlen'. Ensure only length + width bytes are allocated, not
68631         length + 1 + width.
68632
68633 2007-06-09  Bruno Haible  <bruno@clisp.org>
68634
68635         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68636         (CHAR_T): Remove macro.
68637         (VASNPRINTF): Update.
68638
68639 2007-06-09  Bruno Haible  <bruno@clisp.org>
68640
68641         * MODULES.html.sh (Unicode string functions): Add the new modules.
68642
68643         * modules/uniconv/u32-conv-to-enc: New file.
68644         * lib/uniconv/u32-conv-to-enc.c: New file.
68645         * modules/uniconv/u32-conv-to-enc-tests: New file.
68646         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68647
68648         * modules/uniconv/u16-conv-to-enc: New file.
68649         * lib/uniconv/u16-conv-to-enc.c: New file.
68650         * lib/uniconv/u-conv-to-enc.h: New file.
68651         * modules/uniconv/u16-conv-to-enc-tests: New file.
68652         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68653
68654         * modules/uniconv/u8-conv-to-enc: New file.
68655         * lib/uniconv/u8-conv-to-enc.c: New file.
68656         * modules/uniconv/u8-conv-to-enc-tests: New file.
68657         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68658
68659         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68660         u32_conv_to_encoding): New declarations.
68661
68662 2007-06-09  Bruno Haible  <bruno@clisp.org>
68663
68664         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68665
68666 2007-06-09  Bruno Haible  <bruno@clisp.org>
68667
68668         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68669         * modules/malloca: Renamed from modules/allocsa, updated.
68670         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68671         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68672         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68673         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68674         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68675         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68676         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68677         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68678         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68679         * modules/c-strcasestr (Depends-on): Update.
68680         * lib/c-strcasestr.c: Update.
68681         * modules/c-strstr (Depends-on): Update.
68682         * lib/c-strstr.c: Update.
68683         * modules/canonicalize-lgpl (Depends-on): Update.
68684         * lib/canonicalize-lgpl.c: Update.
68685         * modules/clean-temp (Depends-on): Update.
68686         * lib/clean-temp.c: Update.
68687         * modules/csharpcomp (Depends-on): Update.
68688         * lib/csharpcomp.c: Update.
68689         * modules/csharpexec (Depends-on): Update.
68690         * lib/csharpexec.c: Update.
68691         * modules/javacomp (Depends-on): Update.
68692         * lib/javacomp.c: Update.
68693         * modules/javaexec (Depends-on): Update.
68694         * lib/javaexec.c: Update.
68695         * modules/mbscasestr (Depends-on): Update.
68696         * lib/mbscasestr.c: Update.
68697         * modules/mbsstr (Depends-on): Update.
68698         * lib/mbsstr.c: Update.
68699         * modules/setenv (Depends-on): Update.
68700         * lib/setenv.c: Update.
68701         * modules/strcasestr (Depends-on): Update.
68702         * lib/strcasestr.c: Update.
68703         * modules/striconveha (Depends-on): Update.
68704         * lib/striconveha.c: Update.
68705         * modules/relocatable-prog-wrapper (Files): Update.
68706         * lib/relocwrapper.c: Update.
68707         * build-aux/install-reloc: Update.
68708         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68709
68710 2007-06-08  Bruno Haible  <bruno@clisp.org>
68711
68712         Port to uClibc.
68713         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68714         * lib/fpurge.c (fpurge): Likewise.
68715         * lib/freading.c (freading): Likewise.
68716         * lib/fseeko.c (rpl_fseeko): Likewise.
68717         * lib/fseterr.c (fseterr): Likewise.
68718         * lib/fwriting.c (fwriting): Likewise.
68719         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68720
68721 2007-06-08  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68724         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68725         * modules/gettext (Files): Add m4/intlmacosx.m4.
68726
68727 2007-06-07  Bruno Haible  <bruno@clisp.org>
68728
68729         * modules/localename-tests: New file.
68730         * tests/test-localename.c: New file.
68731
68732         New module 'localename'.
68733         * lib/localename.h: New file.
68734         * lib/localename.c: New file, from GNU gettext.
68735         * m4/localename.m4: New file.
68736         * modules/localename: New file.
68737
68738 2007-06-07  Bruno Haible  <bruno@clisp.org>
68739
68740         Work around the lack of <wchar.h> on some builds of uClibc.
68741         * doc/headers/wchar.texi: Update.
68742         * lib/wchar_.h: Include <wchar.h> only if it exists.
68743         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68744         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68745         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68746         doesn't exist.
68747         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68748         * modules/mbfile (Depends-on): Add wchar.
68749         * modules/mbiter (Depends-on): Likewise.
68750         * modules/mbuiter (Depends-on): Likewise.
68751         Reported by Simon Josefsson.
68752
68753 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         Work around problem reported by Steven M. Schweda in
68756         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68757         Tru64 5.1B with the Compaq compiler environment installed declares
68758         an 'isblank' function but does not define it in the C library.
68759         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68760         * lib/regex_internal.h (isblank): Likewise.
68761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68762         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68763
68764 2007-06-05  Bruno Haible  <bruno@clisp.org>
68765
68766         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68767         ia64.
68768         * modules/printf-safe: New file.
68769         * modules/fprintf-posix (Depends-on): Add printf-safe.
68770         * modules/printf-posix (Depends-on): Likewise.
68771         * modules/snprintf-posix (Depends-on): Likewise.
68772         * modules/sprintf-posix (Depends-on): Likewise.
68773         * modules/vasnprintf-posix (Depends-on): Likewise.
68774         * modules/vasprintf-posix (Depends-on): Likewise.
68775         * modules/vfprintf-posix (Depends-on): Likewise.
68776         * modules/vprintf-posix (Depends-on): Likewise.
68777         * modules/vsnprintf-posix (Depends-on): Likewise.
68778         * modules/vsprintf-posix (Depends-on): Likewise.
68779         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68780         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68781         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68782         "no" on i386, x86_64, ia64.
68783         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68784         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68785         on i386, x86_64, ia64.
68786         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68787         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68788         on i386, x86_64, ia64.
68789         * tests/test-vasnprintf-posix.c: Include float.h.
68790         (LDBL80_WORDS): New macro.
68791         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68792         on i386, x86_64, ia64.
68793         * tests/test-vasprintf-posix.c: Include float.h.
68794         (LDBL80_WORDS): New macro.
68795         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68796         on i386, x86_64, ia64.
68797         * tests/test-snprintf-posix.c: Include float.h.
68798         * tests/test-sprintf-posix.c: Likewise.
68799         * tests/test-vsnprintf-posix.c: Likewise.
68800         * tests/test-vsprintf-posix.c: Likewise.
68801
68802 2007-06-05  Bruno Haible  <bruno@clisp.org>
68803
68804         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68805         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68806         non-IEEE numbers on i386, x86_64, ia64.
68807         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68808         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68809         * tests/test-isnanl.h: Include float.h.
68810         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68811
68812 2007-06-05  Bruno Haible  <bruno@clisp.org>
68813
68814         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68815         also the %a / %A. Handle the %a / %A code before this extra handling.
68816
68817 2007-06-05  Bruno Haible  <bruno@clisp.org>
68818
68819         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68820         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68821
68822 2007-06-05  Bruno Haible  <bruno@clisp.org>
68823
68824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68825         typo in variable name.
68826
68827 2007-06-05  Eric Blake  <ebb9@byu.net>
68828
68829         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68830         Reported by Simon Josefsson.
68831
68832 2007-06-04  Bruno Haible  <bruno@clisp.org>
68833
68834         Avoid test failures on some PowerPC platforms.
68835         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68836         Define differently for PowerPC.
68837         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68838         Reported by Gary V. Vaughan <gary@gnu.org>.
68839
68840 2007-06-02  Bruno Haible  <bruno@clisp.org>
68841
68842         Fix test-stdint failure on FreeBSD/ia64.
68843         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68844         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68845         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68846         * doc/headers/stdint.texi: Update.
68847
68848 2007-06-01  Bruno Haible  <bruno@clisp.org>
68849
68850         * tests/test-binary-io.c (main): Pass a third argument to open().
68851         Reported by Gary V. Vaughan <gary@gnu.org>.
68852
68853 2007-06-01  Bruno Haible  <bruno@clisp.org>
68854
68855         * doc/functions/frexpl.texi: Update for mingw.
68856
68857 2007-06-01  Bruno Haible  <bruno@clisp.org>
68858
68859         * tests/test-lseek.c (main): Disable test of errno for invalid third
68860         argument.
68861         * doc/functions/lseek.texi: Update.
68862         Reported by Gary V. Vaughan <gary@gnu.org>.
68863
68864 2007-05-28  Bruno Haible  <bruno@clisp.org>
68865
68866         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68867
68868 2007-05-31  Eric Blake  <ebb9@byu.net>
68869
68870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68871         cross compiling.
68872
68873 2007-05-30  Eric Blake  <ebb9@byu.net>
68874         and Bruno Haible  <bruno@clisp.org>
68875
68876         Work around mingw test failures exposed by m4-1.4.9b.
68877         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68878         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68879         moment.
68880
68881 2007-05-30  Bruno Haible  <bruno@clisp.org>
68882
68883         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68884         assuming that they are closed. Needed on HP-UX 11.
68885
68886 2007-05-29  Bruno Haible  <bruno@clisp.org>
68887
68888         Fix a problem with #include_next.
68889         * lib/dirent_.h: Split the double-inclusion guard.
68890         * lib/fcntl_.h: Likewise.
68891         * lib/float_.h: Likewise.
68892         * lib/iconv_.h: Likewise.
68893         * lib/inttypes_.h: Likewise.
68894         * lib/locale_.h: Likewise.
68895         * lib/math_.h: Likewise.
68896         * lib/netinet_in_.h: Likewise.
68897         * lib/search_.h: Likewise.
68898         * lib/signal_.h: Likewise.
68899         * lib/stdint_.h: Likewise.
68900         * lib/stdio_.h: Likewise.
68901         * lib/stdlib_.h: Likewise.
68902         * lib/string_.h: Likewise.
68903         * lib/sys_select_.h: Likewise.
68904         * lib/sys_socket_.h: Likewise.
68905         * lib/sys_stat_.h: Likewise.
68906         * lib/sys_time_.h: Likewise.
68907         * lib/sysexits_.h: Likewise.
68908         * lib/time_.h: Likewise.
68909         * lib/unistd_.h: Likewise.
68910         * lib/wchar_.h: Likewise.
68911         * lib/wctype_.h: Likewise.
68912
68913 2007-05-29  Bruno Haible  <bruno@clisp.org>
68914
68915         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68916         for the moment.
68917
68918 2007-05-29  Bruno Haible  <bruno@clisp.org>
68919
68920         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68921         invocation.
68922         Reported by Eric Blake.
68923
68924 2007-05-29  Bruno Haible  <bruno@clisp.org>
68925
68926         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68927         compiling case.
68928
68929 2007-05-29  Eric Blake  <ebb9@byu.net>
68930             Bruno Haible  <bruno@clisp.org>
68931
68932         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68933         cross compiles.
68934
68935 2007-05-28  Eric Blake  <ebb9@byu.net>
68936
68937         * modules/closein-tests (test_closein_LDADD): Support test on
68938         cygwin with libtool.
68939
68940 2007-05-28  Bruno Haible  <bruno@clisp.org>
68941
68942         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68943         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68944         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68945         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68946         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68947         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68948         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68949         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68950         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68951
68952 2007-05-28  Eric Blake  <ebb9@byu.net>
68953
68954         Unconditionally include <config.h> in unit tests.
68955         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68956         * tests/test-allocsa.c, tests/test-arcfour.c,
68957         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68958         tests/test-array_list.c, tests/test-array_oset.c,
68959         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68960         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68961         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68962         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68963         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68964         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68965         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68966         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68967         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68968         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68969         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68970         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68971         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68972         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68973         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68974         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68975         test-md5.c, test-memmem.c, test-printf-posix.c,
68976         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68977         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68978         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68979         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68980         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68981         test-vasnprintf-posix2.c, test-vasnprintf.c,
68982         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68983         test-vfprintf-posix.c, test-vprintf-posix.c,
68984         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68985         test-xvasprintf.c: Likewise.
68986
68987 2007-05-28  Bruno Haible  <bruno@clisp.org>
68988
68989         * gnulib-tool (func_import): Remember the --with-tests command-line
68990         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68991         Reported by Eric Blake.
68992
68993 2007-05-28  Bruno Haible  <bruno@clisp.org>
68994
68995         * modules/ftell-tests: New file.
68996         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68997         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68998
68999         * lib/ftell.c: New file.
69000         * modules/ftell: New file.
69001         * m4/ftell.m4: New file.
69002         * doc/functions/ftell.texi: Update.
69003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69004         REPLACE_FTELL.
69005         * lib/stdio_.h (rpl_ftell): New declaration.
69006         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69007         REPLACE_FTELL.
69008
69009 2007-05-28  Eric Blake  <ebb9@byu.net>
69010
69011         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69012
69013 2007-05-28  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/fseek-tests: New file.
69016         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69017         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69018
69019         * lib/fseek.c: New file.
69020         * modules/fseek: New file.
69021         * m4/fseek.m4: New file.
69022         * doc/functions/fseek.texi: Update.
69023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69024         REPLACE_FSEEK.
69025         * lib/stdio_.h (rpl_fseek): New declaration.
69026         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69027         REPLACE_FSEEK.
69028
69029 2007-05-28  Bruno Haible  <bruno@clisp.org>
69030
69031         * lib/stdio_.h (fflush): More comments.
69032
69033 2007-05-28  Bruno Haible  <bruno@clisp.org>
69034
69035         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69036         runtime test.
69037
69038 2007-05-28  Eric Blake  <ebb9@byu.net>
69039
69040         Improve lseek module.
69041         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69042         * lib/unistd_.h (lseek): Scale back link warning message.
69043         * tests/test-lseek.c: Beef up test.
69044         * tests/test-lseek.sh: Exercise more facets of lseek.
69045         Reported by Bruno Haible.
69046
69047 2007-05-28  Bruno Haible  <bruno@clisp.org>
69048
69049         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69050         to define.
69051
69052 2007-05-27  Bruno Haible  <bruno@clisp.org>
69053
69054         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69055
69056 2007-05-27  Bruno Haible  <bruno@clisp.org>
69057
69058         * modules/openmp: New file.
69059         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69060         Noah Misch.
69061
69062 2007-05-26  Bruno Haible  <bruno@clisp.org>
69063
69064         * modules/chdir-long (Depends-on): Add fchdir.
69065         * modules/chdir-safer (Depends-on): Likewise.
69066         * modules/fts (Depends-on): Likewise.
69067         * modules/fts-lgpl (Depends-on): Likewise.
69068         * modules/openat (Depends-on): Likewise.
69069         * modules/savewd (Depends-on): Likewise.
69070
69071 2007-05-24  Eric Blake  <ebb9@byu.net>
69072
69073         Fix lseek on mingw.
69074         * modules/lseek: New module.
69075         * m4/lseek.m4: New file.
69076         * lib/lseek.c: New file.
69077         * modules/lseek-tests: New file.
69078         * tests/test-lseek.c: New file.
69079         * tests/test-lseek.sh: New file.
69080         * MODULES.html.sh: Document lseek module.
69081         * modules/fflush (Depends-on): Add lseek, fseeko.
69082         * modules/fseeko (Depends-on): Likewise.
69083         * modules/ftello (Depends-on): Likewise.
69084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69085         broken.
69086         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69087         broken.
69088         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69089         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69090         * lib/ftello.c (rpl_ftello): Likewise.
69091         * tests/test-fseeko.c (main): Test this.
69092         * tests/test-fseeko.sh: Likewise.
69093         * tests/test-ftello.c (main): Likewise.
69094         * tests/test-ftello.sh: Likewise.
69095         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69096         implies replacing fseek.
69097         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69098         HAVE_FTELLO.
69099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69100         * modules/unistd (Makefile.am): Likewise.
69101         * lib/unistd_.h (lseek): Declare a replacement.
69102         * doc/functions/lseek.texi (lseek): Document this fix.
69103         * doc/functions/fseek.texi (fseek): Likewise.
69104         * doc/functions/ftell.texi (ftell): Likewise.
69105
69106 2007-05-24  Bruno Haible  <bruno@clisp.org>
69107
69108         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69109         in the printed representation of a NaN.
69110         * tests/test-vasprintf-posix.c (test_function): Likewise.
69111         * tests/test-snprintf-posix.h (test_function): Likewise.
69112         * tests/test-sprintf-posix.h (test_function): Likewise.
69113         Reported by Eric Blake.
69114
69115 2007-05-23  Eric Blake  <ebb9@byu.net>
69116
69117         Fix fseeko/ftello on cygwin 1.5.24.
69118         * doc/functions/fseeko.texi (fseeko): Document the fix.
69119         * doc/functions/ftello.texi (ftello): Document the fix.
69120         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69121         * doc/functions/stdout.text (stdout): New file.
69122         * doc/functions/stderr.text (stderr): New file.
69123         * doc/gnulib.texi (Function Substitutes): Use new files.
69124         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69125         prior to 1.7.0.
69126         * tests/test-ftello.c (main): Likewise for ftello.
69127         * tests/test-fseeko.sh: New file.
69128         * tests/test-ftello.sh: New file.
69129         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69130         with seekable stdin.
69131         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69133         (gl_REPLACE_FSEEKO): New macro.
69134         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69135         * modules/fseeko (Files): Distribute fseeko.c.
69136         * modules/ftello (Files): Distribute ftello.c.
69137         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69138         mode.
69139         * lib/ftello.c (rpl_ftello): New file.
69140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69141         fseeko, ftello.
69142         (gl_STDIN_LARGE_OFFSET): New macro.
69143         * modules/stdio (Makefile.am): Perform the replacement.
69144         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69145
69146 2007-05-23  Bruno Haible  <bruno@clisp.org>
69147
69148         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69149         GNULIB_POSIXCHECK is defined.
69150
69151 2007-05-21  Bruno Haible  <bruno@clisp.org>
69152
69153         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69154         Check also the output for NaN arguments. When cross-compiling, guess
69155         no on IRIX.
69156         * lib/vasnprintf.c: Update comments.
69157         * tests/test-vasnprintf-posix.c (strisnan): New function.
69158         (test_function): Use it.
69159         * tests/test-vasprintf-posix.c (strisnan): New function.
69160         (test_function): Use it.
69161         * tests/test-snprintf-posix.h (strisnan): New function.
69162         (test_function): Use it.
69163         * tests/test-sprintf-posix.h (strisnan): New function.
69164         (test_function): Use it.
69165         Reported by Eric Blake.
69166
69167 2007-05-20  Bruno Haible  <bruno@clisp.org>
69168
69169         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69170         numbers that fails on BeOS.
69171         * doc/functions/frexpl.texi: Update.
69172
69173 2007-05-20  Jim Meyering  <jim@meyering.net>
69174
69175         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69176         forced upon us by glibc-2.6.
69177
69178 2007-05-20  Bruno Haible  <bruno@clisp.org>
69179
69180         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69181         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69182         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69183         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69184         NEED_PRINTF_INFINITE.
69185         (is_infinitel): New function.
69186         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69188         gl_PREREQ_VASNPRINTF_INFINITE.
69189         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69191         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69192         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69193         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69194         gl_PREREQ_VASNPRINTF_INFINITE.
69195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69197         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69198         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69199         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69201         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69202         * doc/functions/fprintf.texi: Update.
69203         * doc/functions/printf.texi: Update.
69204         * doc/functions/snprintf.texi: Update.
69205         * doc/functions/sprintf.texi: Update.
69206         * doc/functions/vfprintf.texi: Update.
69207         * doc/functions/vprintf.texi: Update.
69208         * doc/functions/vsnprintf.texi: Update.
69209         * doc/functions/vsprintf.texi: Update.
69210
69211 2007-05-20  Bruno Haible  <bruno@clisp.org>
69212
69213         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69214         was not found in libc.
69215         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69216
69217 2007-05-20  Bruno Haible  <bruno@clisp.org>
69218
69219         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69220         printed as "-nan" instead of "nan".
69221         * tests/test-vasprintf-posix.c (test_function): Likewise.
69222         * tests/test-snprintf-posix.h (test_function): Likewise.
69223         * tests/test-sprintf-posix.h (test_function): Likewise.
69224         Needed for HP-UX 11.
69225
69226 2007-05-20  Jim Meyering  <jim@meyering.net>
69227
69228         Fix buggy test for the fchownat-deref bug.
69229         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69230         symlink required for the run-test.  Without it, this test would
69231         always declare that fchownat doesn't work, and client code would
69232         unnecessarily use the replacement function with fixed libc.
69233         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69234         Reported by Greg Schafer.
69235
69236 2007-05-19  Bruno Haible  <bruno@clisp.org>
69237
69238         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69239         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69240         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69241         Needed for IRIX 6.5 and Solaris 2.5.1.
69242
69243 2007-05-19  Bruno Haible  <bruno@clisp.org>
69244
69245         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69246         (test_function): Skip tests involving -0.0 on platforms where
69247         -0.0 = 0.0.
69248         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69249         (test_function): Skip tests involving -0.0 on platforms where
69250         -0.0 = 0.0.
69251         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69252         (test_function): Skip tests involving -0.0 on platforms where
69253         -0.0 = 0.0.
69254         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69255         (test_function): Skip tests involving -0.0 on platforms where
69256         -0.0 = 0.0.
69257         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69258         tests.
69259         * tests/test-printf-posix.h (test_function): Likewise.
69260         * tests/test-printf-posix.output: Remove all -0.0 related results.
69261         Needed for IRIX 6.5.
69262
69263 2007-05-19  Bruno Haible  <bruno@clisp.org>
69264
69265         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69266         printed as "nan0x7fffffff" instead of "nan".
69267         * tests/test-vasprintf-posix.c (test_function): Likewise.
69268         * tests/test-snprintf-posix.h (test_function): Likewise.
69269         * tests/test-sprintf-posix.h (test_function): Likewise.
69270         * tests/test-fprintf-posix.h (NaN): Remove macro.
69271         (test_function): Remove all NaN related tests.
69272         * tests/test-printf-posix.h (NaN): Remove macro.
69273         (test_function): Remove all NaN related tests.
69274         * tests/test-printf-posix.output: Remove all NaN related results.
69275         Needed for IRIX 6.5.
69276
69277 2007-05-19  Bruno Haible  <bruno@clisp.org>
69278
69279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69280         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69281
69282 2007-05-19  Bruno Haible  <bruno@clisp.org>
69283
69284         * lib/float_.h: New file.
69285         * m4/float_h.m4: New file.
69286         * modules/float: New file.
69287         * modules/isnanl (Dependencies): Add float.
69288         * modules/isnanl-nolibm (Dependencies): Likewise.
69289         * modules/mathl (Dependencies): Likewise.
69290         * modules/printf-frexpl (Dependencies): Likewise.
69291         * modules/signbit (Dependencies): Likewise.
69292         * modules/vasnprintf (Dependencies): Likewise.
69293         * doc/headers/float.texi: Update.
69294
69295 2007-05-19  Jim Meyering  <jim@meyering.net>
69296
69297         * lib/utimens.c (gl_futimens): Rename from futimens,
69298         now that glibc-2.6 declares futimens.
69299         * lib/utimens.h: Likewise.
69300
69301 2007-05-19  Bruno Haible  <bruno@clisp.org>
69302
69303         Avoid test failures on mingw.
69304         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69305         * tests/test-printf-posix.sh: Likewise.
69306         * tests/test-vfprintf-posix.sh: Likewise.
69307         * tests/test-vprintf-posix.sh: Likewise.
69308
69309 2007-05-19  Bruno Haible  <bruno@clisp.org>
69310
69311         Fix *printf result for NaN, Inf, -0.0 on mingw.
69312         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69313         * lib/vasnprintf.c: Include math.h and isnan.h.
69314         (is_infinite_or_zero): New function.
69315         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69316         values in the %f, %F, %e, %E, %g, %G directives.
69317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69319         gl_PRINTF_INFINITE and test its result. Invoke
69320         gl_PREREQ_VASNPRINTF_INFINITE.
69321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69328         * doc/functions/fprintf.texi: Update.
69329         * doc/functions/printf.texi: Update.
69330         * doc/functions/snprintf.texi: Update.
69331         * doc/functions/sprintf.texi: Update.
69332         * doc/functions/vfprintf.texi: Update.
69333         * doc/functions/vprintf.texi: Update.
69334         * doc/functions/vsnprintf.texi: Update.
69335         * doc/functions/vsprintf.texi: Update.
69336
69337 2007-05-19  Bruno Haible  <bruno@clisp.org>
69338
69339         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69340         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69341         Instead of multiplying with 10^k, set extra_zeroes to k.
69342         (scale10_round_long_double): Remove function.
69343
69344 2007-05-18  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69347         introduced on 2007-05-06.
69348
69349 2007-05-18  Bruno Haible  <bruno@clisp.org>
69350
69351         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69352         %g directives.
69353         * tests/test-vasprintf-posix.c (test_function): Likewise.
69354         * tests/test-snprintf-posix.h (test_function): Likewise.
69355         * tests/test-sprintf-posix.h (test_function): Likewise.
69356
69357 2007-05-18  Bruno Haible  <bruno@clisp.org>
69358
69359         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69360         (strmatch): New function.
69361         (test_function): Test the %f directive on numbers of various exponents.
69362         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69363         (strmatch): New function.
69364         (test_function): Test the %f directive on numbers of various exponents.
69365         * tests/test-snprintf-posix.h (strmatch): New function.
69366         (test_function): Test the %f directive on numbers of various exponents.
69367         * tests/test-sprintf-posix.h (strmatch): New function.
69368         (test_function): Test the %f directive on numbers of various exponents.
69369         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69370         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69371         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69372         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69373
69374 2007-05-18  Bruno Haible  <bruno@clisp.org>
69375
69376         Add support for 'long double' number output.
69377         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69378         * lib/vasnprintf.c: Include math.h and float+.h.
69379         (mp_limb_t): New type.
69380         (GMP_LIMB_BITS): New macro.
69381         (mp_twolimb_t): New type.
69382         (GMP_TWOLIMB_BITS): New macro.
69383         (mpn_t): New type.
69384         (multiply, divide, convert_to_decimal, decode_long_double,
69385         scale10_round_long_double, scale10_round_decimal_long_double,
69386         floorlog10l): New functions.
69387         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69388         for the %f, %F, %e, %E, %g, %G directives.
69389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69391         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69392         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69400         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69401         * modules/snprintf-posix (Depends-on): Likewise.
69402         * modules/sprintf-posix (Depends-on): Likewise.
69403         * modules/vasnprintf-posix (Depends-on): Likewise.
69404         * modules/vasprintf-posix (Depends-on): Likewise.
69405         * modules/vfprintf-posix (Depends-on): Likewise.
69406         * modules/vsnprintf-posix (Depends-on): Likewise.
69407         * modules/vsprintf-posix (Depends-on): Likewise.
69408         * modules/vasnprintf (Files): Add lib/float+.h.
69409         * doc/functions/fprintf.texi: Update.
69410         * doc/functions/printf.texi: Update.
69411         * doc/functions/snprintf.texi: Update.
69412         * doc/functions/sprintf.texi: Update.
69413         * doc/functions/vfprintf.texi: Update.
69414         * doc/functions/vprintf.texi: Update.
69415         * doc/functions/vsnprintf.texi: Update.
69416         * doc/functions/vsprintf.texi: Update.
69417
69418 2007-05-18  Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69421
69422 2007-05-18  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69425         for printing 64-bit integers. Needed for mingw.
69426
69427 2007-05-18  Bruno Haible  <bruno@clisp.org>
69428
69429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69430         gl_FUNC_FREXPL_WORKS.
69431         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69432
69433 2007-05-18  Bruno Haible  <bruno@clisp.org>
69434
69435         * modules/frexpl-nolibm-tests: New file.
69436
69437         * modules/frexpl-nolibm: New file.
69438         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69439
69440 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69443         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69444         GCC 4.2, which otherwise issues a lot of warnings.
69445         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69446         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69447         Likewise.
69448         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69449         * modules/iconv_open (iconv.h): Likewise.
69450         * modules/locale (locale.h): Likewise.
69451         * modules/netinet_in (netinet/in.h): Likewise.
69452         * modules/sys_select (sys_select.h): Likewise.
69453         * modules/sys_socket (sys/socket.h): Likewise.
69454         * modules/sys_stat (sys/stat.h): Likewise.
69455         * modules/sysexits (sysexits.h): Likewise.
69456         * modules/unistd (unistd.h): Likewise.
69457
69458 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69459
69460         * modules/closein-tests (Makefile.am): Distribute
69461         `test-closein.sh'.
69462
69463 2007-05-17  Bruno Haible  <bruno@clisp.org>
69464
69465         * tests/test-printf-posix.output: Renamed from
69466         tests/test-fprintf-posix.out.
69467         * modules/fprintf-posix-tests: Update.
69468         * modules/printf-posix-tests: Update.
69469         * modules/vfprintf-posix-tests: Update.
69470         * modules/vprintf-posix-tests: Update.
69471         * tests/test-fprintf-posix.sh: Update.
69472         * tests/test-printf-posix.sh: Update.
69473         * tests/test-vfprintf-posix.sh: Update.
69474         * tests/test-vprintf-posix.sh: Update.
69475         Reported by Ralf Wildenhues.
69476
69477 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69480         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69481         GCC 4.2, which otherwise issues a lot of warnings.
69482         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69483         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69484         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69485         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69486         it should no longer be needed.
69487         * lib/string_.h: Likewise.
69488         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69489         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69490         * modules/inttypes (inttypes.h): Likewise.
69491         * modules/math (math.h): Likewise.
69492         * modules/search (search.h): Likewise.
69493         * modules/signal (signal.h): Likewise.
69494         * modules/stdint (stdint.h): Likewise.
69495         * modules/stdio (stdio.h): Likewise.
69496         * modules/stdlib (stdlib.h): Likewise.
69497         * modules/string (string.h): Likewise.
69498         * modules/sys_time (sys/time.h): Likewise.
69499         * modules/time (time.h): Likewise.
69500         * modules/wchar (wchar.h): Likewise.
69501         * modules/wctype (wtype.h): Likewise.
69502
69503 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69504
69505         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69506
69507 2007-05-13  Bruno Haible  <bruno@clisp.org>
69508
69509         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69510         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69511         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69512         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69513         (gl_PREREQ_STRTOK_R): Don't require it here.
69514
69515 2007-05-13  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69518         when used in C++ mode.
69519
69520 2007-05-12  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/linebuffer.h: Tweak doc.
69523         * lib/linebuffer.c: Likewise.
69524
69525 2007-05-12  James Youngman  <jay@gnu.org>
69526
69527         * lib/linebuffer.c (readlinebuffer_delim): New function,
69528         like readlinebuffer, but use a caller-specified delimiter.
69529         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69530         as the delimiter.
69531         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69532
69533 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69534
69535         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69536         * modules/openat (Files): Remove openat-die.c.
69537         (Depends-on): Add openat-die.
69538         * modules/openat-die: New module.
69539
69540 2007-05-06  Bruno Haible  <bruno@clisp.org>
69541
69542         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69543         Update with info about Cygwin.
69544         * doc/functions/fprintf.texi: Update.
69545         * doc/functions/printf.texi: Update.
69546         * doc/functions/snprintf.texi: Update.
69547         * doc/functions/sprintf.texi: Update.
69548         * doc/functions/vfprintf.texi: Update.
69549         * doc/functions/vprintf.texi: Update.
69550         * doc/functions/vsnprintf.texi: Update.
69551         * doc/functions/vsprintf.texi: Update.
69552         Reported by Eric Blake.
69553
69554 2007-05-06  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69557         padding ourselves for the floating-point directives.
69558         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69561         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69562         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69570         * tests/test-snprintf-posix.h (test_function): Also check the width
69571         and some flags in the %f directive.
69572         * tests/test-sprintf-posix.h (test_function): Likewise.
69573         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69574         * tests/test-vasprintf-posix.c (test_function): Likewise.
69575         * doc/functions/fprintf.texi: Update.
69576         * doc/functions/printf.texi: Update.
69577         * doc/functions/snprintf.texi: Update.
69578         * doc/functions/sprintf.texi: Update.
69579         * doc/functions/vfprintf.texi: Update.
69580         * doc/functions/vprintf.texi: Update.
69581         * doc/functions/vsnprintf.texi: Update.
69582         * doc/functions/vsprintf.texi: Update.
69583
69584 2007-05-06  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69587         pass the ' flag character to sprintf or snprintf.
69588         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69591         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69592         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69597         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69600         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69601         flag.
69602         * tests/test-sprintf-posix.h (test_function): Likewise.
69603         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69604         * tests/test-vasprintf-posix.c (test_function): Likewise.
69605         * doc/functions/fprintf.texi: Update.
69606         * doc/functions/printf.texi: Update.
69607         * doc/functions/snprintf.texi: Update.
69608         * doc/functions/sprintf.texi: Update.
69609         * doc/functions/vfprintf.texi: Update.
69610         * doc/functions/vprintf.texi: Update.
69611         * doc/functions/vsnprintf.texi: Update.
69612         * doc/functions/vsprintf.texi: Update.
69613
69614 2007-05-01  Bruno Haible  <bruno@clisp.org>
69615
69616         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69617
69618 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69619
69620         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69621         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69622
69623 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69626         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69628
69629 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69630
69631         * lib/argp-help.c (struct hol_entry): New member `ord'.
69632         (HOL_ENTRY_PTRCMP): Use ord for comparison
69633         (hol_sort): Initialize ord.
69634
69635 2007-05-01  Bruno Haible  <bruno@clisp.org>
69636
69637         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69638         Reported by Eric Blake.
69639         * doc/gnulib.texi (Function Substitutes): Update.
69640
69641 2007-05-01  Bruno Haible  <bruno@clisp.org>
69642
69643         * doc/functions.texi: Remove file, now redundant through
69644         doc/functions/*.texi.
69645
69646 2007-05-01  Bruno Haible  <bruno@clisp.org>
69647
69648         * modules/argp (Depends-on): Add sleep.
69649
69650 2007-05-01  Bruno Haible  <bruno@clisp.org>
69651
69652         * modules/sleep-tests: New file.
69653         * tests/test-sleep.c: New file.
69654
69655         * modules/sleep: New file.
69656         * lib/sleep.c: New file.
69657         * m4/sleep.m4: New file.
69658         * lib/unistd_.h (sleep): New declaration.
69659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69660         HAVE_SLEEP.
69661         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69662         * doc/functions/sleep.texi: Document the sleep module.
69663
69664 2007-05-01  Bruno Haible  <bruno@clisp.org>
69665
69666         * lib/sigprocmask.h: Remove file.
69667         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69668         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69669         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69670         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69671         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69672         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69673         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69674         HAVE_SIGSET_T as a shell variable.
69675         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69676         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69677         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69678         (Depends-on): Add signal. Remove verify.
69679         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69680         (Include): Mention <signal.h> instead of sigprocmask.h.
69681         * NEWS: Mention the change.
69682         * lib/fatal-signal.c: Don't include sigprocmask.h.
69683
69684 2007-05-01  Bruno Haible  <bruno@clisp.org>
69685
69686         * modules/signal: New file.
69687         * lib/signal_.h: New file.
69688         * m4/signal_h.m4: New file.
69689
69690 2007-05-01  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69693         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69694         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69695         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69696
69697 2007-05-01  Bruno Haible  <bruno@clisp.org>
69698
69699         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69700         configure time.
69701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69702         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69703         * modules/sys_stat (Makefile.am): Substitute their values into
69704         sys/stat.h.
69705
69706 2007-05-01  Bruno Haible  <bruno@clisp.org>
69707
69708         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69709         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69710         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69711
69712 2007-05-01  Bruno Haible  <bruno@clisp.org>
69713
69714         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69715         'assert' module here.
69716
69717 2007-05-01  Bruno Haible  <bruno@clisp.org>
69718
69719         * doc/functions/*.texi: New files.
69720         * doc/functions/google-ranking.txt: New file.
69721         * doc/gnulib.texi (Function Substitutes): New chapter.
69722         (ctime, inet_ntoa): Remove sections.
69723         * doc/ctime.texi: Remove file.
69724         * doc/inet_ntoa.texi: Remove file.
69725         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69726         dependencies.
69727         (%.info): New rule, specifying a --reference-limit.
69728
69729 2007-05-01  Bruno Haible  <bruno@clisp.org>
69730
69731         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69732
69733 2007-05-01  Bruno Haible  <bruno@clisp.org>
69734
69735         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69736         the portability of 'mkdir' to mingw systems.
69737
69738 2007-05-01  Bruno Haible  <bruno@clisp.org>
69739
69740         * doc/headers/google-ranking.txt: New file.
69741
69742 2007-04-30  Eric Blake  <ebb9@byu.net>
69743
69744         Prefer fseeko to fseek.
69745         * modules/getpass (Depends-on): Add fseeko.
69746         * lib/getpass.c (getpass): Use fseeko, not fseek.
69747
69748 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69749
69750         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69751         assumes the sorting is stable, while most qsort implementations
69752         are not.  Use argument addresses to ensure they never compare as
69753         equal.
69754
69755         * tests/test-argp-2.sh (usage-indent test): Fix output
69756         (func_compare): Restore diff options
69757         * tests/test-argp.c: Restore #include "progname.h"
69758
69759 2007-04-29  Bruno Haible  <bruno@clisp.org>
69760
69761         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69762         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69763         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69765         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69766         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69767         (TESTS, check_PROGRAMS): Add test-snprintf.
69768         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69769         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69770         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69771         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69772         assertions that fail on HP-UX, OSF/1, or IRIX.
69773         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69774
69775 2007-04-29  Bruno Haible  <bruno@clisp.org>
69776
69777         * MODULES.html.sh (posix_functions): Remove 'contents'.
69778
69779 2007-04-29  Karl Berry  <karl@gnu.org>
69780
69781         * config/srclist.txt (gendocs_template_min): new entry.
69782
69783 2007-04-29  Bruno Haible  <bruno@clisp.org>
69784
69785         Work around fpurge bug on BSD systems.
69786         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69787         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69788         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69789         fpurge to rpl_fpurge if the system already has this function.
69790         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69791         the case where the system already has this function. Correct invariants
69792         on BSD systems.
69793         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69794         BSD systems.
69795
69796 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69797
69798         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69799         proposed by Sven Verdoolaege.
69800
69801         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69802         options.
69803         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69804         (usage and help tests): Update
69805
69806 2007-04-29  Bruno Haible  <bruno@clisp.org>
69807
69808         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69809         Print more information in case of failure. Disable a test on BeOS.
69810
69811 2007-04-29  Bruno Haible  <bruno@clisp.org>
69812
69813         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69814         This helps debugging on systems on which no gdb is available.
69815
69816 2007-04-29  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/freading.h: Improve comments.
69819         * lib/fwriting.h: Likewise.
69820         * tests/test-freading.c (main): Don't check freading immediately after
69821         repositioning. Needed for glibc.
69822
69823 2007-04-29  Bruno Haible  <bruno@clisp.org>
69824
69825         * lib/freading.c (freading): Trivial simplification.
69826
69827 2007-04-28  Bruno Haible  <bruno@clisp.org>
69828
69829         * tests/test-fwriting.c (main): Also test the interaction between
69830         fflush and fwriting.
69831         * modules/fwriting-tests (Depends-on): Add fflush.
69832
69833         * tests/test-freading.c (main): Also test the interaction between
69834         fflush and freading.
69835         * modules/freading-tests (Depends-on): Add fflush.
69836
69837 2007-04-28  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69840         fseeko and ftello.
69841         Suggested by Eric Blake.
69842
69843 2007-04-28  Jim Meyering  <jim@meyering.net>
69844
69845         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69846         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69847         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69848
69849 2007-04-27  Eric Blake  <ebb9@byu.net>
69850
69851         * doc/headers/assert.texi (assert.h): Document assert module use.
69852
69853 2007-04-27  Bruno Haible  <bruno@clisp.org>
69854
69855         * doc/headers/*.texi: New files.
69856         * doc/gnulib.texi (Header File Substitutes): New chapter.
69857         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69858         dependencies.
69859         (standards.info ,standards.html, standards.dvi): Update dependencies.
69860         (mostlyclean, clean): New targets.
69861
69862 2007-04-27  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69865         * modules/sysexits (Files, Makefile.am): Update.
69866
69867         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69868         * modules/sys_socket (Files, Makefile.am): Update.
69869
69870         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69871         * modules/sys_stat (Files, Makefile.am): Update.
69872
69873 2007-04-27  Eric Blake  <ebb9@byu.net>
69874
69875         * lib/freading.h: Improve comments.
69876         * lib/fwriting.h: Likewise.
69877         * lib/fflush.c: Likewise.
69878
69879         Fix closein for mingw.
69880         * modules/closein-tests: Add tests for closein.
69881         * tests/test-closein.c: New file.
69882         * tests/test-closein.sh: Likewise.
69883         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69884         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69885
69886 2007-04-27  Bruno Haible  <bruno@clisp.org>
69887
69888         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69889         version is < 6.
69890         * lib/math_.h [__DECC]: Likewise.
69891         * lib/stdio_.h [__DECC]: Likewise.
69892         * lib/stdlib_.h [__DECC]: Likewise.
69893         * lib/string_.h [__DECC]: Likewise.
69894         * lib/time_.h [__DECC]: Likewise.
69895         * lib/wchar_.h [__DECC]: Likewise.
69896         * lib/wctype_.h [__DECC]: Likewise.
69897
69898 2007-04-27  Bruno Haible  <bruno@clisp.org>
69899
69900         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69901
69902 2007-04-27  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/fflush.c: Add comments.
69905         * modules/fpurge-tests (Depends-on): Add fflush.
69906         * modules/freadable-tests (Depends-on): Likewise.
69907         * modules/fwritable-tests (Depends-on): Likewise.
69908
69909 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69910
69911         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69912         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69913         Report by Bruno Haible <bruno@clisp.org>.
69914
69915 2007-04-26  Eric Blake  <ebb9@byu.net>
69916
69917         Fix fflush on mingw.
69918         * modules/fflush (Depends-on): Add freading.
69919         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69920         but unread data.
69921
69922 2007-04-26  Eric Blake  <ebb9@byu.net>
69923         and Bruno Haible  <bruno@clisp.org>
69924
69925         Implement freading and fwriting.
69926         * lib/freading.c: New file.
69927         * lib/freading.h: Likewise.
69928         * m4/freading.m4: Likewise.
69929         * modules/freading: Likewise.
69930         * modules/freading-tests: Likewise.
69931         * tests/test-freading.c: Likewise.
69932         * lib/fwriting.c: New file.
69933         * lib/fwriting.h: Likewise.
69934         * m4/fwriting.m4: Likewise.
69935         * modules/fwriting: Likewise.
69936         * modules/fwriting-tests: Likewise.
69937         * tests/test-fwriting.c: Likewise.
69938         * MODULES.html.sh (File stream based Input/Output): Mention them.
69939
69940 2007-04-26  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69943         'long' when we assume it.
69944         Suggested by Eric Blake.
69945
69946 2007-04-26  Bruno Haible  <bruno@clisp.org>
69947
69948         Ensure fseeko, ftello are declared on glibc systems.
69949         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69950         * modules/fseeko (configure.ac-early): Likewise.
69951         * modules/ftello (configure.ac-early): Likewise.
69952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69953         AC_FUNC_FSEEKO for this.
69954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69955         (gl_CHECK_FSEEKO): Remove macro.
69956
69957 2007-04-26  Bruno Haible  <bruno@clisp.org>
69958
69959         * tests/test-fflush.c (main): Also check the ftell result after
69960         fflush and fseek/fseeko.
69961         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69962         file descriptor position cache in the stream.
69963         * lib/fseeko.c (rpl_fseeko): Likewise.
69964
69965 2007-04-26  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/fflush-tests (Depends-on): Add fseeko.
69968
69969 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69970             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69971
69972         * lib/argz_.h: ensure error_t definition is obtained in same
69973         mechanism system argz.h would have.
69974         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69975         argz facilities are known bad.  Err on the side of caution if
69976         cross-compiling.
69977
69978 2007-04-25  Eric Blake  <ebb9@byu.net>
69979
69980         * lib/fpurge.c (includes): Use stdlib.h for free.
69981         * tests/test-fflush.c (main): Also test fflush-fseeko.
69982
69983 2007-04-25  Bruno Haible  <bruno@clisp.org>
69984
69985         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69986         * lib/fseeko.c: New file.
69987         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69988         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69989         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69990         gl_FUNC_FSEEKO.
69991         (gl_FUNC_FSEEKO): Invoke it.
69992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69993         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69994         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69995
69996 2007-04-25  Bruno Haible  <bruno@clisp.org>
69997
69998         * modules/fflush (Depends-on): Add ftello.
69999
70000 2007-04-25  Bruno Haible  <bruno@clisp.org>
70001
70002         * modules/ftello-tests: New file.
70003         * tests/test-ftello.c: New file.
70004
70005         * modules/ftello: New file.
70006         * m4/ftello.m4: New file.
70007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70008         HAVE_FTELLO.
70009         * lib/stdio_.h (ftello): New declaration.
70010         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70011         HAVE_FTELLO.
70012
70013 2007-04-25  Bruno Haible  <bruno@clisp.org>
70014
70015         * modules/fseeko-tests: New file.
70016         * tests/test-fseeko.c: New file.
70017
70018         * modules/fseeko: New file.
70019         * m4/fseeko.m4: New file.
70020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70021         HAVE_FSEEKO.
70022         * lib/stdio_.h (fseeko): New declaration.
70023         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70024         HAVE_FSEEKO.
70025
70026 2007-04-25  Bruno Haible  <bruno@clisp.org>
70027
70028         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70029
70030 2007-04-25  Bruno Haible  <bruno@clisp.org>
70031
70032         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70033         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70034         * tests/test-unistd.c: Likewise.
70035         * tests/test-fcntl.c: Likewise.
70036
70037 2007-04-23  Eric Blake  <ebb9@byu.net>
70038
70039         * lib/fflush.c: Fix missing include.
70040         Reported by Bruno Haible.
70041
70042 2007-04-23  Bruno Haible  <bruno@clisp.org>
70043
70044         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70045         Reported by Eric Blake.
70046
70047 2007-04-23  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70050
70051 2007-04-23  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70054
70055 2007-04-23  Bruno Haible  <bruno@clisp.org>
70056
70057         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70058         Needed on HP-UX 11.
70059
70060 2007-04-16  Eric Blake  <ebb9@byu.net>
70061
70062         Make fflush rely on fpurge.
70063         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70064         open coding all variants.
70065         * modules/fflush (Depends-on): Add fpurge and unistd.
70066         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70068
70069         Fix --with-tests compilation on cygwin.
70070         * modules/argmatch-tests (Makefile.am): List gnulib library first
70071         in LDADD.
70072         * modules/argp-tests (Makefile.am): Likewise.
70073         * modules/array-list-tests (Makefile.am): Likewise.
70074         * modules/array-oset-tests (Makefile.am): Likewise.
70075         * modules/avltree-list-tests (Makefile.am): Likewise.
70076         * modules/avltree-oset-tests (Makefile.am): Likewise.
70077         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70078         * modules/carray-list-tests (Makefile.am): Likewise.
70079         * modules/dirname-tests (Makefile.am): Likewise.
70080         * modules/frexp-tests (Makefile.am): Likewise.
70081         * modules/isnanl-tests (Makefile.am): Likewise.
70082         * modules/linked-list-tests (Makefile.am): Likewise.
70083         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70084         * modules/lock-tests (Makefile.am): Likewise.
70085         * modules/rbtree-list-tests (Makefile.am): Likewise.
70086         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70087         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70088         * modules/tls-tests (Makefile.am): Likewise.
70089         * modules/tsearch-tests (Makefile.am): Likewise.
70090         * modules/xvasprintf-tests (Makefile.am): Likewise.
70091
70092         Fix fpurge for cygwin.
70093         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70094         value.
70095         * modules/fpurge-tests (Depends-on): Clean up trash.
70096
70097 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70098
70099         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70100
70101         * m4/autobuild.m4: Re-indent.
70102
70103 2007-04-13  Bruno Haible  <bruno@clisp.org>
70104
70105         * modules/fpurge-tests: New file.
70106         * tests/test-fpurge.c: New file.
70107
70108         * modules/fpurge: New file.
70109         * lib/fpurge.h: New file.
70110         * lib/fpurge.c: New file.
70111         * m4/fpurge.m4: New file.
70112
70113 2007-04-13  Bruno Haible  <bruno@clisp.org>
70114
70115         * modules/fbufmode-tests: New file.
70116         * tests/test-fbufmode.c: New file.
70117
70118         * modules/fbufmode: New file.
70119         * lib/fbufmode.h: New file.
70120         * lib/fbufmode.c: New file.
70121         * m4/fbufmode.m4: New file.
70122
70123 2007-04-13  Bruno Haible  <bruno@clisp.org>
70124
70125         * modules/fwritable-tests: New file.
70126         * tests/test-fwritable.c: New file.
70127
70128         * modules/fwritable: New file.
70129         * lib/fwritable.h: New file.
70130         * lib/fwritable.c: New file.
70131         * m4/fwritable.m4: New file.
70132
70133 2007-04-13  Bruno Haible  <bruno@clisp.org>
70134
70135         * modules/freadable-tests: New file.
70136         * tests/test-freadable.c: New file.
70137
70138         * modules/freadable: New file.
70139         * lib/freadable.h: New file.
70140         * lib/freadable.c: New file.
70141         * m4/freadable.m4: New file.
70142
70143 2007-04-13  Bruno Haible  <bruno@clisp.org>
70144
70145         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70146         MOSTLYCLEANFILES.
70147
70148 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70151         gzip bootstrap.conf to avoid dragging in i18n machinery.
70152         (gnulib_tool_option): Use it.
70153
70154 2007-04-13  Bruno Haible  <bruno@clisp.org>
70155
70156         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70157         %F directives.
70158         * tests/test-vasprintf-posix.c (test_function): Likewise.
70159         * tests/test-snprintf-posix.h (test_function): Likewise.
70160         * tests/test-sprintf-posix.h (test_function): Likewise.
70161         * tests/test-fprintf-posix.h (test_function): Likewise.
70162         * tests/test-printf-posix.h (test_function): Likewise.
70163         * tests/test-fprintf-posix.out: Likewise.
70164
70165 2007-04-13  Bruno Haible  <bruno@clisp.org>
70166
70167         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70168         * modules/tls-tests (configure.ac): Likewise.
70169         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70170
70171 2007-04-13  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/tls.c (glthread_tls_get): Fix return type.
70174         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70175
70176 2007-04-12  Eric Blake  <ebb9@byu.net>
70177
70178         * modules/gettime (Depends-on): Remove gettime.
70179         Reported by Dmitry V. Levin.
70180
70181 2007-04-12  Bruno Haible  <bruno@clisp.org>
70182
70183         * modules/fflush (Include): Mention <stdio.h>.
70184         * modules/strtoimax (Include): Mention <inttypes.h>.
70185         * modules/strtoumax (Include): Likewise.
70186
70187 2007-04-12  Eric Blake  <ebb9@byu.net>
70188
70189         * .cvsignore: New file.
70190         * .gitignore: Likewise.
70191
70192 2007-04-12  Bruno Haible  <bruno@clisp.org>
70193
70194         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70195         not before, since $(LDADD) often contains libgnu.a.
70196         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70197         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70198         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70199         Needed on Cygwin.
70200
70201 2007-04-12  Eric Blake  <ebb9@byu.net>
70202
70203         Work around glibc's failure to flush stdin on fclose.
70204         * lib/closein.c (close_stdin): Flush stdin before closing.
70205
70206         Work around glibc's failure to reset seekable stdin on exit.
70207         * modules/closein: New module.
70208         * lib/closein.c: New file.
70209         * lib/closein.h: Likewise.
70210         * m4/closein.m4: Likewise.
70211         * MODULES.html.sh (File stream based Input/Output): Document it.
70212
70213 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70214
70215         * gnulib-tool: Rename generated 'autobuild' script to
70216         'do-autobuild' in --create-megatestdir output.
70217
70218         * doc/gnulib.texi (Build robot for gnulib): Fix.
70219
70220 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70221
70222         * modules/sysexits (Depends-on): Add absolute-header.
70223
70224 2007-04-12  Eric Blake  <ebb9@byu.net>
70225
70226         No need to preserve errno on success.
70227         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70228         Reported by Bruno Haible.
70229
70230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70231
70232         * MODULES.html.sh (Support for maintaining and releasing
70233         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70234
70235 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70236
70237         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70238
70239 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70240
70241         * modules/autobuild: New module.
70242
70243         * m4/autobuild.m4: New file.
70244
70245 2007-04-11  Bruno Haible  <bruno@clisp.org>
70246
70247         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70248         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70260         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70267         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70268         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70269         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70270         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70271         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70273         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70274         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70275         Reported by Eric Blake.
70276
70277 2007-04-11  Bruno Haible  <bruno@clisp.org>
70278
70279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70280
70281 2007-04-10  Bruno Haible  <bruno@clisp.org>
70282
70283         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70284         for NaN and Infinity. Needed on FreeBSD 6.1.
70285         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70286         regarding results for "%010a" of Infinity and NaN.
70287         * tests/test-vasprintf-posix.c (test_function): Likewise.
70288         * tests/test-snprintf-posix.h (test_function): Likewise.
70289         * tests/test-sprintf-posix.h (test_function): Likewise.
70290         * tests/test-fprintf-posix.h (test_function): Likewise.
70291         * tests/test-printf-posix.h (test_function): Likewise.
70292         * tests/test-fprintf-posix.out: Likewise.
70293
70294 2007-04-10  Bruno Haible  <bruno@clisp.org>
70295
70296         * modules/locale-tests: New file.
70297         * tests/test-locale.c: New file.
70298
70299         * modules/locale: New file.
70300         * lib/locale_.h: New file.
70301         * m4/locale_h.m4: New file.
70302
70303 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70304             Bruno Haible  <bruno@clisp.org>
70305
70306         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70307         be determined, test for availability of the copysignf, copysign,
70308         copysignl functions.
70309         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70310         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70311         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70312
70313 2007-04-09  Eric Blake  <ebb9@byu.net>
70314
70315         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70316         * modules/stdio (Makefile.am): Support fflush.
70317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70318         * modules/fflush: New file.
70319         * lib/fflush.c: Likewise.
70320         * m4/fflush.m4: Likewise.
70321         * modules/fflush-tests: New test.
70322         * tests/test-fflush.c: Likewise.
70323         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70324
70325 2007-04-06  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70328         (VASNPRINTF): Use signbit for faster determination whether to print a
70329         minus sign.
70330         * modules/vasnprintf (Files): Remove lib/float+.h.
70331         * modules/fprintf-posix (Depends-on): Add signbit.
70332         * modules/snprintf-posix (Depends-on): Likewise.
70333         * modules/sprintf-posix (Depends-on): Likewise.
70334         * modules/vasnprintf-posix (Depends-on): Likewise.
70335         * modules/vasprintf-posix (Depends-on): Likewise.
70336         * modules/vfprintf-posix (Depends-on): Likewise.
70337         * modules/vsnprintf-posix (Depends-on): Likewise.
70338         * modules/vsprintf-posix (Depends-on): Likewise.
70339
70340 2007-04-06  Bruno Haible  <bruno@clisp.org>
70341
70342         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70343         * tests/test-frexpl.c (main): Likewise.
70344         * tests/test-ldexpl.c (main): Likewise.
70345         * modules/frexp-tests (Depends-on): Add signbit.
70346         * modules/frexpl-tests (Depdends-on): Likewise.
70347         * modules/ldexpl-tests (Depdends-on): Likewise.
70348
70349 2007-04-06  Bruno Haible  <bruno@clisp.org>
70350
70351         * modules/signbit-tests: New file.
70352         * tests/test-signbit.c: New file.
70353
70354         * modules/signbit: New file.
70355         * lib/signbitf.c: New file.
70356         * lib/signbitd.c: New file.
70357         * lib/signbitl.c: New file.
70358         * m4/signbit.m4: New file.
70359         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70360         (signbit): New macro.
70361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70362         REPLACE_SIGNBIT.
70363         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70364         REPLACE_FREXPL into math.h.
70365
70366 2007-04-06  Bruno Haible  <bruno@clisp.org>
70367
70368         * modules/isnanf-nolibm-tests: New file.
70369         * tests/test-isnanf.c: New file.
70370
70371         * modules/isnanf-nolibm: New file.
70372         * lib/isnanf.h: New file.
70373         * lib/isnanf.c: New file.
70374         * lib/isnan.c: Consider the USE_FLOAT macro.
70375         * m4/isnanf.m4: New file.
70376
70377 2007-04-06  Bruno Haible  <bruno@clisp.org>
70378
70379         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70380         (Link): New section.
70381
70382         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70383
70384 2007-04-06  Bruno Haible  <bruno@clisp.org>
70385
70386         Assume the 'long double' type.
70387         * m4/longdouble.m4: Remove file.
70388         * config/srclist.txt: Don't mention longdouble.m4.
70389         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70390         * lib/float+.h: Likewise.
70391         * lib/frexp.c: Likewise.
70392         * lib/printf-args.h: Likewise.
70393         * lib/printf-args.c: Likewise.
70394         * lib/printf-frexp.c: Likewise.
70395         * lib/printf-parse.c: Likewise.
70396         * lib/vasnprintf.c: Likewise.
70397         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70398         * m4/intl.m4: Likewise.
70399         * m4/isnanl.m4: Likewise.
70400         * m4/printf.m4: Likewise.
70401         * m4/printf-frexpl.m4: Likewise.
70402         * m4/vasnprintf.m4: Likewise.
70403         * modules/allocsa (Files): Remove m4/longdouble.m4.
70404         * modules/gettext (Files): Likewise.
70405         * modules/relocatable-prog-wrapper (Files): Likewise.
70406         * modules/vasnprintf (Files): Likewise.
70407         * modules/isnanl (Files): Likewise.
70408         (Include): Simplify.
70409         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70410         (Include): Simplify.
70411         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70412         (Include): Simplify.
70413         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70415         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70417         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70418         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70419         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70420         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70421         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70422         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70423         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70424         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70425         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70426         * tests/test-isnanl.c: Likewise.
70427         * tests/test-snprintf-posix.h: Likewise.
70428         * tests/test-sprintf-posix.h: Likewise.
70429         * tests/test-vasnprintf-posix.c: Likewise.
70430         * tests/test-vasnprintf-posix2.c: Likewise.
70431         * tests/test-vasprintf-posix.c: Likewise.
70432
70433 2007-04-06  Bruno Haible  <bruno@clisp.org>
70434
70435         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70436         * lib/math_.h [__DECC]: Include the overridden include file through
70437         #include_next, outside the double-inclusion guard.
70438         * lib/stdio_.h [__DECC]: Likewise.
70439         * lib/stdlib_.h [__DECC]: Likewise.
70440         * lib/string_.h [__DECC]: Likewise.
70441         * lib/time_.h [__DECC]: Likewise.
70442         * lib/wchar_.h [__DECC]: Likewise.
70443         * lib/wctype_.h [__DECC]: Likewise.
70444         * lib/inttypes_.h [__DECC]: Likewise.
70445         Reported by Albert Chin <china@thewrittenword.com> in
70446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70447
70448 2007-04-04  Eric Blake  <ebb9@byu.net>
70449
70450         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70451         1.5.x.
70452
70453 2007-04-04  Bruno Haible  <bruno@clisp.org>
70454
70455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70456         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70457
70458 2007-04-04  Bruno Haible  <bruno@clisp.org>
70459
70460         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70461         results for "%010a" of Infinity and NaN.
70462         * tests/test-vasprintf-posix.c (test_function): Likewise.
70463         * tests/test-snprintf-posix.h (test_function): Likewise.
70464         * tests/test-sprintf-posix.h (test_function): Likewise.
70465         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70466         * tests/test-printf-posix.h (test_function): Likewise.
70467         * tests/test-fprintf-posix.out: Update.
70468         Needed for FreeBSD 6.1.
70469
70470 2007-04-04  Bruno Haible  <bruno@clisp.org>
70471
70472         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70473         directly used by the gnulib modules nor by gnulib-tool.
70474
70475 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         * DEPENDENCIES: Give overall description of version dependency
70478         desirability.  Use more-typical names for apps.
70479         Add shell, coreutils, diffutils, grep, tar, gzip.
70480
70481 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70482
70483         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70484
70485 2007-04-04  Karl Berry  <karl@gnu.org>
70486
70487         * MODULES.html.sh (func_module): missing '.
70488
70489 2007-04-03  Bruno Haible  <bruno@clisp.org>
70490
70491         * modules/argmatch-tests (Makefile.am): New variable
70492         test_argmatch_LDADD.
70493         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70494         * modules/array-list-tests (Makefile.am): New variable
70495         test_array_list_LDADD.
70496         * modules/array-oset-tests (Makefile.am): New variable
70497         test_array_oset_LDADD.
70498         * modules/avltree-list-tests (Makefile.am): New variable
70499         test_avltree_list_LDADD.
70500         * modules/avltree-oset-tests (Makefile.am): New variable
70501         test_avltree_oset_LDADD.
70502         * modules/avltreehash-list-tests (Makefile.am): New variable
70503         test_avltreehash_list_LDADD.
70504         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70505         test_canonicalize_lgpl_LDADD.
70506         * modules/carray-list-tests (Makefile.am): New variable
70507         test_carray_list_LDADD.
70508         * modules/dirname-tests (Makefile.am): New variable
70509         test_dirname_LDADD.
70510         * modules/linked-list-tests (Makefile.am): New variable
70511         test_linked_list_LDADD.
70512         * modules/linkedhash-list-tests (Makefile.am): New variable
70513         test_linkedhash_list_LDADD.
70514         * modules/rbtree-list-tests (Makefile.am): New variable
70515         test_rbtree_list_LDADD.
70516         * modules/rbtree-oset-tests (Makefile.am): New variable
70517         test_rbtree_oset_LDADD.
70518         * modules/rbtreehash-list-tests (Makefile.am): New variable
70519         test_rbtreehash_list_LDADD.
70520         * modules/xvasprintf-tests (Makefile.am): New variable
70521         test_xvasprintf_LDADD.
70522         Reported by Eric Blake.
70523
70524 2007-04-03  Eric Blake  <ebb9@byu.net>
70525
70526         * DEPENDENCIES: Weaken m4 requirements.
70527
70528 2007-04-03  Bruno Haible  <bruno@clisp.org>
70529
70530         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70531         * modules/isnanl-tests (configure.ac): Likewise.
70532
70533 2007-04-03  Ben Pfaff  <blp@gnu.org>
70534
70535         * modules/iconv_open: Add $(srcdir)/ to source directory
70536         references in Makefile fragments that call gperf, to fix VPATH
70537         builds.
70538
70539 2007-04-03  Bruno Haible  <bruno@clisp.org>
70540
70541         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70542         * lib/ldexpl.c: Undo last change.
70543
70544 2007-04-03  Bruno Haible  <bruno@clisp.org>
70545
70546         * modules/printf-frexpl (Depends-on): Undo last change.
70547         (Files): Add m4/ldexpl.m4.
70548
70549 2007-04-03  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70552         * modules/isnanl (Link): New section.
70553
70554         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70555         * modules/frexp (Link): New section.
70556
70557         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70558         * modules/frexpl (Link): New section.
70559
70560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70561         * modules/ldexpl (Link): New section.
70562
70563 2007-04-03  Bruno Haible  <bruno@clisp.org>
70564
70565         * modules/TEMPLATE-EXTENDED: New file.
70566         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70567
70568 2007-04-03  Bruno Haible  <bruno@clisp.org>
70569
70570         * DEPENDENCIES: New file.
70571         Suggested by Simon Josefsson.
70572
70573 2007-04-03  Bruno Haible  <bruno@clisp.org>
70574
70575         * doc/gnulib.texi: Escape @.
70576
70577 2007-04-03  James Youngman  <jay@gnu.org>
70578         and Paul Eggert  <eggert@cs.ucla.edu>
70579
70580         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70581         birthtime on all systems that have birthtime, not just those which
70582         use st_birthtimensec rather than st_birthtim.  Putting zero in
70583         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70584         that the birth time is not available for files on an NFS mount.
70585
70586 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70587
70588         * modules/memxor: Move back from crypto/, suggested by Bruno.
70589         * modules/crypto/hmac-sha1: Fix memxor dependency.
70590
70591         * modules/crypto/gc: Moved from ../.
70592
70593 2007-04-02  Eric Blake  <ebb9@byu.net>
70594
70595         * lib/ldexpl.c (includes): Avoid libm.
70596
70597         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70598
70599 2007-04-02  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70602         on IRIX.
70603
70604 2007-04-02  Bruno Haible  <bruno@clisp.org>
70605
70606         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70607         x86 or x86_64 platforms running MacOS X.
70608         Reported by Ryan Schmidt <@ryandesign.com>.
70609
70610 2007-04-02  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70613         i386.
70614
70615 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70616
70617         * modules/crypto/arcfour: Moved from ../.
70618         * modules/crypto/arcfour-tests: Moved from ../.
70619         * modules/crypto/arctwo: Moved from ../.
70620         * modules/crypto/arctwo-tests: Moved from ../.
70621         * modules/crypto/des: Moved from ../.
70622         * modules/crypto/des-tests: Moved from ../.
70623         * modules/crypto/gc-arcfour: Moved from ../.
70624         * modules/crypto/gc-arcfour-tests: Moved from ../.
70625         * modules/crypto/gc-arctwo: Moved from ../.
70626         * modules/crypto/gc-arctwo-tests: Moved from ../.
70627         * modules/crypto/gc-des: Moved from ../.
70628         * modules/crypto/gc-des-tests: Moved from ../.
70629         * modules/crypto/gc-hmac-md5: Moved from ../.
70630         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70631         * modules/crypto/gc-hmac-sha1: Moved from ../.
70632         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70633         * modules/crypto/gc-md2: Moved from ../.
70634         * modules/crypto/gc-md2-tests: Moved from ../.
70635         * modules/crypto/gc-md4: Moved from ../.
70636         * modules/crypto/gc-md4-tests: Moved from ../.
70637         * modules/crypto/gc-md5: Moved from ../.
70638         * modules/crypto/gc-md5-tests: Moved from ../.
70639         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70640         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70641         * modules/crypto/gc-random: Moved from ../.
70642         * modules/crypto/gc-rijndael: Moved from ../.
70643         * modules/crypto/gc-rijndael-tests: Moved from ../.
70644         * modules/crypto/gc-sha1: Moved from ../.
70645         * modules/crypto/gc-sha1-tests: Moved from ../.
70646         * modules/crypto/gc-tests: Moved from ../.
70647         * modules/crypto/hmac-md5: Moved from ../.
70648         * modules/crypto/hmac-md5-tests: Moved from ../.
70649         * modules/crypto/hmac-sha1: Moved from ../.
70650         * modules/crypto/hmac-sha1-tests: Moved from ../.
70651         * modules/crypto/md2: Moved from ../.
70652         * modules/crypto/md2-tests: Moved from ../.
70653         * modules/crypto/md4: Moved from ../.
70654         * modules/crypto/md4-tests: Moved from ../.
70655         * modules/crypto/md5: Moved from ../.
70656         * modules/crypto/md5-tests: Moved from ../.
70657         * modules/crypto/memxor: Moved from ../.
70658         * modules/crypto/rijndael: Moved from ../.
70659         * modules/crypto/rijndael-tests: Moved from ../.
70660         * modules/crypto/sha1: Moved from ../.
70661
70662 2007-03-30  James Youngman  <jay@gnu.org>
70663
70664         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70665         rename() to change the ctime of a file (because ctime is unaffected
70666         by rename on jfs2 on AIX 5.1).
70667         (main): Start by doing cleanup, in case a previous run failed leaving
70668         test files behind.
70669
70670 2007-03-31  Bruno Haible  <bruno@clisp.org>
70671
70672         Support old proprietary implementations of iconv.
70673         * modules/iconv_open: New file.
70674         * lib/iconv_.h: New file.
70675         * m4/iconv_h.m4: New file.
70676         * lib/iconv_open.c: New file.
70677         * lib/iconv_open-aix.gperf: New file.
70678         * lib/iconv_open-hpux.gperf: New file.
70679         * lib/iconv_open-irix.gperf: New file.
70680         * lib/iconv_open-osf.gperf: New file.
70681         * m4/iconv_open.m4: New file.
70682         * modules/linebreak (Depends-on): Add iconv_open.
70683         * modules/striconv (Depends-on): Likewise.
70684         * modules/striconveh (Depends-on): Likewise.
70685         * modules/unicodeio (Depends-on): Likewise.
70686         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70687         (iconv_t)(-1).
70688         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70689         conversion if cd is (iconv_t)(-1).
70690         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70691         is not possible.
70692
70693 2007-03-31  Bruno Haible  <bruno@clisp.org>
70694
70695         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70696         work on Solaris either. Protect also second use of "autodetect_jp".
70697
70698 2007-03-31  Bruno Haible  <bruno@clisp.org>
70699
70700         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70701         the function is not present.
70702
70703 2007-03-31  Bruno Haible  <bruno@clisp.org>
70704
70705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70706         the function is not present.
70707
70708 2007-03-31  Bruno Haible  <bruno@clisp.org>
70709
70710         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70711         a bug in HP-UX iconv_open().
70712
70713 2007-03-31  Bruno Haible  <bruno@clisp.org>
70714
70715         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70716         (Mathematics <math.h>): New section, add fpieee.
70717         (Input/output <stdio.h>): Add fseterr.
70718         (Mathematics <math.h>): New section, add printf-frexp.
70719         (Container data structures): Add sublist.
70720         (Core language properties): Add fpucw, inline.
70721         (Functions for greatest-width integer types <inttypes.h>): Add
70722         imaxabs, imaxdiv, inttypes.
70723         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70724         isnanl-nolibm, ldexp.
70725         (Mathematics <math.h>): New section, add printf-frexpl.
70726         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70727         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70728         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70729         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70730         (Unicode string functions): Add unistr/u*-mbtoucr.
70731         (Java): Add javacomp-script, javaexec-script.
70732         (C#): Add csharpcomp-script, csharpexec-script.
70733         (Support for building libraries and executables): Add havelib,
70734         relocatable-*.
70735         (Support for maintaining and releasing projects): Renamed from
70736         'Support for maintaining and release projects'. Add announce-gen.
70737
70738 2007-03-31  Bruno Haible  <bruno@clisp.org>
70739
70740         * README: Talk primarily about git.
70741         (git and CVS): Renamed from CVS.
70742         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70743         gnulib is available through git.
70744         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70745
70746 2007-03-30  Bruno Haible  <bruno@clisp.org>
70747
70748         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70749         * lib/poll_.h: Likewise.
70750         * lib/stat_.h: Likewise.
70751         * lib/sys_time_.h: Likewise.
70752         * lib/sysexit_.h: Likewise.
70753         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70754         * lib/stdbool_.h: Likewise.
70755         * lib/byteswap_.h: Add double-inclusion guard.
70756
70757 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70758
70759         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70760
70761 2007-03-30  Karl Berry  <karl@gnu.org>
70762
70763         * config/srclist-update: double space after USA in the license
70764         substitution, since that's how it's usually (?) written.
70765
70766 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70769         reported by Bruno Haible.
70770
70771 2007-03-29  Bruno Haible  <bruno@clisp.org>
70772
70773         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70774         a bug in AIX iconv().
70775
70776 2007-03-29  Bruno Haible  <bruno@clisp.org>
70777
70778         * modules/ldexpl-tests: New file.
70779         * tests/test-ldexpl.c: New file.
70780
70781 2007-03-29  Bruno Haible  <bruno@clisp.org>
70782
70783         * lib/ldexpl.c: Include fpucw.h.
70784         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70785         multiplication.
70786         * modules/ldexpl (Depends-on): Add fpucw.
70787
70788 2007-03-29  Bruno Haible  <bruno@clisp.org>
70789
70790         * modules/ldexpl: New file.
70791         * m4/ldexpl.m4: New file.
70792         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70793         set.
70794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70795         REPLACE_LDEXPL.
70796         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70797         REPLACE_LDEXPL.
70798         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70799         gl_FUNC_LDEXPL_WORKS.
70800         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70801         * modules/mathl (Files): Remove lib/ldexpl.c.
70802         (Depends-on): Add ldexpl.
70803
70804 2007-03-29  Bruno Haible  <bruno@clisp.org>
70805
70806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70807
70808 2007-03-29  Bruno Haible  <bruno@clisp.org>
70809
70810         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70811         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70812         and possibly also HP-UX.
70813         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70814         work on AIX, IRIX, HP-UX, OSF/1.
70815         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70816         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70817         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70818         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70819         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70820         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70821
70822 2007-03-29  Bruno Haible  <bruno@clisp.org>
70823
70824         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70825
70826 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70829         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70830
70831 2007-03-29  Eric Blake  <ebb9@byu.net>
70832
70833         * lib/acl-internal.h: Remove redundant include.
70834         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70835         Cygwin when a file is locked.
70836
70837 2007-03-29  Bruno Haible  <bruno@clisp.org>
70838
70839         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70840         file.
70841         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70842
70843 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70846         try to remove a parent directory if the child couldn't be removed
70847         (except for the first rmdir, which could fail because the child
70848         doesn't exist).  Problem reported by Jeff Blaine in
70849         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70850
70851 2007-03-28  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/striconveh.c (utf8conv_carefully): New function.
70854         (mem_cd_iconveh_internal): Invoke it.
70855
70856 2007-03-28  Bruno Haible  <bruno@clisp.org>
70857
70858         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70859         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70860         input.
70861         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70862         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70863         unistr/u8-uctomb.
70864
70865 2007-03-28  Bruno Haible  <bruno@clisp.org>
70866
70867         * modules/unistr/u8-mbtoucr: New file.
70868         * lib/unistr/u8-mbtoucr.c: New file.
70869         * modules/unistr/u16-mbtoucr: New file.
70870         * lib/unistr/u16-mbtoucr.c: New file.
70871         * modules/unistr/u16-mbtoucr: New file.
70872         * lib/unistr/u16-mbtoucr.c: New file.
70873         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70874
70875 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70876             Bruno Haible  <bruno@clisp.org>
70877
70878         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70879         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70880         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70881
70882         * m4/stdio_h.m4: Add stubs for vasprintf too.
70883
70884         * modules/stdio: Support vasprintf in sed command.
70885
70886         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70887         vasprintf.h.  Add stdio module indicator.
70888
70889         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70890         vasprintf.h.
70891
70892         * lib/vasprintf.h: File removed.
70893
70894         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70895         * lib/vasprintf.c: Ditto.
70896         * lib/xvasprintf.c: Ditto.
70897         * tests/test-vasprintf-posix.c: Ditto.
70898         * tests/test-vasprintf.c: Ditto.
70899
70900 2007-03-27  Bruno Haible  <bruno@clisp.org>
70901
70902         Make vasnprintf multithread-safe.
70903         * lib/vasnprintf.c (decimal_point_char): New function.
70904         (VASNPRINTF): Use it.
70905         Suggested by Simon Josefsson.
70906
70907 2007-03-27  Eric Blake  <ebb9@byu.net>
70908
70909         Support sub-second birthtime on cygwin.
70910         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70911         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70912         (get_stat_birthtime): Also work with st_birthtim.
70913
70914 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70917         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70918         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70919         (get_stat_birthtime_ns): Simplify compile-time tests.
70920         (get_stat_birthtime): Change the API to look like
70921         get_stat_mtime etc., except return a negative tv_nsec on error.
70922         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70923         Don't check for "spare" fields.
70924         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70925         or for struct stat.st_birthtime, as these tests aren't used.
70926         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70927
70928 2007-03-27  Bruno Haible  <bruno@clisp.org>
70929
70930         * lib/stat-time.h: Include <sys/stat.h>.
70931
70932 2007-03-27  James Youngman  <jay@gnu.org>
70933
70934         * lib/stat-time.h (get_stat_birthtime): New function for
70935           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70936         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70937           and its variants.
70938         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70939         * modules/stat-time-test: New file.
70940         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70941
70942 2007-03-26  Bruno Haible  <bruno@clisp.org>
70943
70944         Better support of signalling NaNs.
70945         * lib/atanl.c: Include isnanl.h.
70946         (atanl): Perform test for NaN at the beginning of the function and
70947         through a call to isnanl.
70948         * lib/cosl.c: Include isnanl.h.
70949         (cosl): Perform test for NaN at the beginning of the function and
70950         through a call to isnanl.
70951         * lib/ldexpl.c: Include isnanl.h.
70952         (ldexpl): Perform test for NaN through a call to isnanl.
70953         * lib/logl.c: Include isnanl.h.
70954         (logl): Perform test for NaN at the beginning of the function and
70955         through a call to isnanl.
70956         * lib/sinl.c: Include isnanl.h.
70957         (sinl): Perform test for NaN at the beginning of the function and
70958         through a call to isnanl.
70959         * lib/sqrtl.c: Include isnanl.h.
70960         (sqrtl): Perform test for NaN at the beginning of the function and
70961         through a call to isnanl.
70962         * lib/tanl.c: Include isnanl.h.
70963         (tanl): Perform test for NaN at the beginning of the function and
70964         through a call to isnanl.
70965         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70966         * modules/mathl (Depends-on): Add isnanl.
70967
70968 2007-03-26  Eric Blake  <ebb9@byu.net>
70969
70970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70971         regression in logic sense of previous patch.
70972
70973 2007-03-26  Bruno Haible  <bruno@clisp.org>
70974
70975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70976         unportable shell command "if ! ...".
70977         Reported by Ralf Wildenhues.
70978
70979 2007-03-25  Bruno Haible  <bruno@clisp.org>
70980
70981         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70982         <sysexits.h> file, and only add EX_CONFIG.
70983         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70984         absolute file name and whether it is sufficient. Substitute also
70985         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70986         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70987         ABSOLUTE_SYSEXITS_H into sysexits.h.
70988
70989 2007-03-25  Bruno Haible  <bruno@clisp.org>
70990
70991         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70992         hints is NULL.
70993
70994 2007-03-25  Bruno Haible  <bruno@clisp.org>
70995
70996         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70997         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70998
70999 2007-03-25  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/vasnprintf.c: Include langinfo.h.
71002         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71003         multithread-safe.
71004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71005         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71008         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71010         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71011         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71012         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71013         Reported by Simon Josefsson.
71014
71015 2007-03-25  Bruno Haible  <bruno@clisp.org>
71016
71017         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71018         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71019         * modules/vasnprintf (Depends-on): Add stdint.
71020
71021 2007-03-25  Bruno Haible  <bruno@clisp.org>
71022
71023         * modules/fpieee: New file.
71024         * m4/fpieee.m4: New file.
71025         * modules/isnan-nolibm (Depends-on): Add fpieee.
71026         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71027         * modules/isnanl (Depends-on): Add fpieee.
71028
71029 2007-03-25  Bruno Haible  <bruno@clisp.org>
71030
71031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71032
71033 2007-03-25  Bruno Haible  <bruno@clisp.org>
71034
71035         Avoid test failures on IRIX 6.5.
71036         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71037         (main): Use it.
71038         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71039         macros.
71040         (main): Use them.
71041
71042 2007-03-25  Bruno Haible  <bruno@clisp.org>
71043
71044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71045         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71046         exists but doesn't work.
71047         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71048         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71050         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71051         math.h.
71052
71053 2007-03-25  Bruno Haible  <bruno@clisp.org>
71054
71055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71056         returns inf. Needed on IRIX 6.5.
71057
71058 2007-03-25  Bruno Haible  <bruno@clisp.org>
71059
71060         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71061         (main): Use isnanl instead of x != x idiom.
71062         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71063
71064         * tests/test-frexp.c: Include isnan.h.
71065         (main): Use isnan instead of x != x idiom.
71066         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71067
71068 2007-03-25  Bruno Haible  <bruno@clisp.org>
71069
71070         * tests/test-frexp.c (NaN): New function/macro.
71071         (main): Use it instead of 0.0 / 0.0.
71072         * tests/test-isnan.c (NaN): New function/macro.
71073         (main): Use it instead of 0.0 / 0.0.
71074         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71075         (test_function): Use it instead of 0.0 / 0.0.
71076         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71077         (test_function): Use it instead of 0.0 / 0.0.
71078         * tests/test-snprintf-posix.h (NaN): New function/macro.
71079         (test_function): Use it instead of 0.0 / 0.0.
71080         * tests/test-sprintf-posix.h (NaN): New function/macro.
71081         (test_function): Use it instead of 0.0 / 0.0.
71082         * tests/test-fprintf-posix.h (NaN): New function/macro.
71083         (test_function): Use it instead of 0.0 / 0.0.
71084         * tests/test-printf-posix.h (NaN): New function/macro.
71085         (test_function): Use it instead of 0.0 / 0.0.
71086
71087         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71088
71089 2007-03-25  Bruno Haible  <bruno@clisp.org>
71090
71091         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71092
71093 2007-03-25  Bruno Haible  <bruno@clisp.org>
71094
71095         * lib/regexec.c (merge_state_with_log): Make static.
71096
71097 2007-03-25  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/trigl.c (kernel_rem_pio2): Make static.
71100
71101 2007-03-25  Bruno Haible  <bruno@clisp.org>
71102
71103         * lib/sincosl.c (sincosl_table): Make static.
71104
71105 2007-03-25  Bruno Haible  <bruno@clisp.org>
71106
71107         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71108         if the compiler does not support C99.
71109
71110 2007-03-25  Bruno Haible  <bruno@clisp.org>
71111
71112         * modules/time (Makefile.am): Ensure all rule action lines start with a
71113         tab.
71114
71115 2007-03-24  Bruno Haible  <bruno@clisp.org>
71116
71117         * modules/tsearch-tests: New file.
71118         * tests/test-tsearch.sh: New file.
71119         * tests/test-tsearch.c: New file, mostly copied from glibc.
71120
71121         * modules/search-tests: New file.
71122         * tests/test-search.c: New file.
71123
71124         * modules/search: New file.
71125         * lib/search_.h: New file, incorporating lib/tsearch.h.
71126         * m4/search_h.m4: New file.
71127         * lib/tsearch.h: Remove file.
71128         * lib/tsearch.c: Include search.h instead of tsearch.h.
71129         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71130         HAVE_TSEARCH.
71131         * modules/tsearch (Files): Remove lib/tsearch.h.
71132         (Depends-on): Add search.
71133         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71134         (Include): Change tsearch.h into search.h.
71135
71136 2007-03-24  Bruno Haible  <bruno@clisp.org>
71137
71138         * modules/fpucw: New file.
71139         * lib/fpucw.h: New file.
71140         * lib/frexp.c: Include fpucw.h.
71141         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71142         (FUNC): Use them.
71143         * lib/printf-frexp.c: Include fpucw.h.
71144         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71145         (FUNC): Use them.
71146         * lib/vasnprintf.c: Include fpucw.h.
71147         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71148         'long double' calculations.
71149         * tests/test-frexpl.c: Include fpucw.h.
71150         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71151         * tests/test-printf-frexpl.c: Include fpucw.h.
71152         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71153         * modules/frexpl (Depends-on): Add fpucw.
71154         * modules/printf-frexpl (Depends-on): Likewise.
71155         * modules/fprintf-posix (Depends-on): Likewise.
71156         * modules/snprintf-posix (Depends-on): Likewise.
71157         * modules/sprintf-posix (Depends-on): Likewise.
71158         * modules/vasnprintf-posix (Depends-on): Likewise.
71159         * modules/vasprintf-posix (Depends-on): Likewise.
71160         * modules/vfprintf-posix (Depends-on): Likewise.
71161         * modules/vsnprintf-posix (Depends-on): Likewise.
71162         * modules/vsprintf-posix (Depends-on): Likewise.
71163         * modules/frexpl-tests (Depends-on): Likewise.
71164         * modules/printf-frexpl-tests (Depends-on): Likewise.
71165
71166 2007-03-24  Bruno Haible  <bruno@clisp.org>
71167
71168         * lib/float+.h: New file.
71169         * lib/isnan.c: Include float+.h.
71170         (SIZE): New macro.
71171         (FUNC): Compare only SIZE bytes of the value.
71172         * lib/vasnprintf.c: Include float+.h.
71173         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71174         SIZEOF_LDBL or SIZEOF_DBL bytes.
71175         * modules/isnan-nolibm (Files): Add lib/float+.h.
71176         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71177         * modules/isnanl (Files): Add lib/float+.h.
71178         * modules/vasnprintf (Files): Add lib/float+.h.
71179
71180 2007-03-24  Bruno Haible  <bruno@clisp.org>
71181
71182         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71183         include isnanl-nolibm.h.
71184
71185 2007-03-24  Bruno Haible  <bruno@clisp.org>
71186
71187         * tests/test-read-file.c (main): Don't produce spurious output for
71188         expected situations. Make the test fail if it encountered unexpected
71189         results.
71190
71191 2007-03-24  Bruno Haible  <bruno@clisp.org>
71192
71193         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71194         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71195
71196 2007-03-24  Bruno Haible  <bruno@clisp.org>
71197
71198         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71199
71200 2007-03-24  Bruno Haible  <bruno@clisp.org>
71201
71202         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71203         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71204
71205         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71206         * modules/utf8-ucs4: Turn into a symbolic link to module
71207         unistr/u8-mbtouc.
71208
71209         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71210         utf8-ucs4-unsafe.
71211         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71212         unistr/u8-mbtouc-unsafe.
71213
71214         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71215         * modules/utf16-ucs4: Turn into a symbolic link to module
71216         unistr/u16-mbtouc.
71217
71218         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71219         utf16-ucs4-unsafe.
71220         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71221         unistr/u16-mbtouc-unsafe.
71222
71223         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71224         * modules/ucs4-utf8: Turn into a symbolic link to module
71225         unistr/u8-ubtomb.
71226
71227         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71228         * modules/ucs4-utf16: Turn into a symbolic link to module
71229         unistr/u16-ubtomb.
71230
71231 2007-03-24  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71234         Enable the function only if HAVE_INLINE.
71235         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71236         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71237         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71238         Enable the function only if HAVE_INLINE.
71239         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71240         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71241         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71242         Enable the function only if HAVE_INLINE.
71243         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71244         Enable the function only if HAVE_INLINE.
71245         * modules/utf8-ucs4: Update.
71246         * modules/utf8-ucs4-unsafe: Update.
71247         * modules/utf16-ucs4: Update.
71248         * modules/utf16-ucs4-unsafe: Update.
71249         * modules/ucs4-utf8: Update.
71250         * modules/ucs4-utf16: Update.
71251
71252 2007-03-24  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/utf8-ucs4.h: Remove file.
71255         * lib/utf8-ucs4-unsafe.h: Remove file.
71256         * lib/utf16-ucs4.h: Remove file.
71257         * lib/utf16-ucs4-unsafe.h: Remove file.
71258         * lib/ucs4-utf8.h: Remove file.
71259         * lib/ucs4-utf16.h: Remove file.
71260         * lib/unistr.h: Include their previous contents.
71261         * m4/utf-ucs4.m4: Remove file.
71262         * m4/ucs4-utf.m4: Remove file.
71263         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71264         (Depends-on): Add unistr/base.
71265         (configure.ac): Remove gl_UTF_UCS4.
71266         (Makefile.am): Update.
71267         (Include): Change to unistr.h.
71268         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71269         (Depends-on): Add unistr/base.
71270         (configure.ac): Remove gl_UTF_UCS4.
71271         (Makefile.am): Update.
71272         (Include): Change to unistr.h.
71273         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71274         (Depends-on): Add unistr/base.
71275         (configure.ac): Remove gl_UTF_UCS4.
71276         (Makefile.am): Update.
71277         (Include): Change to unistr.h.
71278         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71279         (Depends-on): Add unistr/base.
71280         (configure.ac): Remove gl_UTF_UCS4.
71281         (Makefile.am): Update.
71282         (Include): Change to unistr.h.
71283         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71284         (Depends-on): Add unistr/base.
71285         (configure.ac): Remove gl_UCS4_UTF.
71286         (Makefile.am): Update.
71287         (Include): Change to unistr.h.
71288         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71289         (Depends-on): Add unistr/base.
71290         (configure.ac): Remove gl_UCS4_UTF.
71291         (Makefile.am): Update.
71292         (Include): Change to unistr.h.
71293         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71294         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71295         utf8-ucs4-unsafe.h.
71296         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71297         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71298         utf16-ucs4-unsafe.h.
71299         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71300         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71301         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71302         * lib/unistr/u8-strchr.c: Likewise.
71303         * lib/unistr/u8-strrchr.c: Likewise.
71304         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71305         * lib/unistr/u16-strchr.c: Likewise.
71306         * lib/unistr/u16-strrchr.c: Likewise.
71307         * lib/striconveh.c: Update.
71308         * lib/linebreak.c: Update.
71309
71310 2007-03-24  Bruno Haible  <bruno@clisp.org>
71311
71312         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71313         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71314
71315 2007-03-22  Bruno Haible  <bruno@clisp.org>
71316
71317         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71318
71319 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * MODULES.html.sh (File system functions): New module write-any-file.
71322         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71323         * m4/write-any-file.m4: New files.
71324
71325 2007-03-23  Eric Blake  <ebb9@byu.net>
71326
71327         * gnulib-tool: Rearrange space-tab sequences, since some editors
71328         like to eat them.
71329
71330 2007-03-23  Eric Blake  <ebb9@byu.net>
71331
71332         * lib/version-etc.c (version_etc_va): Update license wording to
71333         be more concise.  Recommended by Richard Stallman.
71334
71335 2007-03-22  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/poll.c (MSG_PEEK): New fallback definition.
71338
71339 2007-03-22  Bruno Haible  <bruno@clisp.org>
71340
71341         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71342         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71343         (main): Update.
71344         Fixes a compilation error on BeOS.
71345
71346 2007-03-22  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/frexpl-tests: New file.
71349         * tests/test-frexpl.c: New file.
71350
71351         * modules/frexpl: New file.
71352         * m4/frexpl.m4: New file.
71353         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71354         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71356         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71357         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71358         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71359
71360 2007-03-22  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/frexpl.c: Share code with lib/frexp.c.
71363         * modules/mathl (Files): Add lib/frexp.c.
71364         (Depends-on): Add isnanl-nolibm.
71365
71366 2007-03-22  Bruno Haible  <bruno@clisp.org>
71367
71368         * modules/printf-frexp (Files): Add m4/frexp.m4.
71369         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71370         only if the found frexp function actually works.
71371
71372 2007-03-22  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/frexp.c: Remove older implementation that uses divisions.
71375
71376 2007-03-21  Bruno Haible  <bruno@clisp.org>
71377
71378         * modules/frexp-tests: New file.
71379         * tests/test-frexp.c: New file.
71380
71381         * modules/frexp: New file.
71382         * lib/frexp.c: New file.
71383         * m4/frexp.m4: New file.
71384         * lib/math_.h (frexp): New declaration.
71385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71386         REPLACE_FREXP.
71387         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71388
71389 2007-03-21  Bruno Haible  <bruno@clisp.org>
71390
71391         * modules/isnanl-tests: New file.
71392         * tests/test-isnanl.c: New file.
71393
71394         * modules/isnanl: New file.
71395         * lib/isnanl.h: New file.
71396         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71397         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71398         gl_FUNC_ISNANL_WORKS.
71399         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71400         New macros.
71401
71402 2007-03-21  Bruno Haible  <bruno@clisp.org>
71403
71404         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71405         lib/isnanl.h.
71406         (Include): Update.
71407         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71408         * lib/vasnprintf.c: Update.
71409         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71410         tests/test-isnanl.h, remove tests/test-isnanl.c.
71411         (Makefile.am): Update.
71412         * tests/test-isnanl-nolibm.c: New file.
71413         * tests/test-isnanl.h: New file.
71414         * tests/test-isnanl.c: Remove file.
71415
71416 2007-03-21  Jim Meyering  <jim@meyering.net>
71417
71418         When trying to open ".", treat ESTALE like EACCES.
71419         * lib/savewd.c (savewd_save): Resort to forking not just upon
71420         failure with EACCES, but also when errno is ESTALE.
71421
71422 2007-03-20  Bruno Haible  <bruno@clisp.org>
71423
71424         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71425         Needed on AIX 5.1. Reported by Matthew Woehlke.
71426
71427 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         Suggestions by Bruno Haible:
71430         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71431         our own.
71432         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71433         * modules/acl (Depends-on): Add gettext.
71434
71435 2007-03-19  Bruno Haible  <bruno@clisp.org>
71436
71437         * modules/iconvme: Remove file.
71438         * lib/iconvme.h: Remove file.
71439         * lib/iconvme.c: Remove file.
71440         * m4/iconvme.m4: Remove file.
71441
71442 2007-03-19  Bruno Haible  <bruno@clisp.org>
71443
71444         * doc/relocatable-maint.texi: Break long shell script line.
71445         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71446
71447 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71450         handle file_has_acl.
71451         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71452         * lib/acl.c: Move header inclusions and related macro defns into
71453         lib/acl-internal.h.
71454         (S_ISLNK): Remove defn, since that's now done for us.
71455         (file_has_acl): Move to lib/file-has-acl.c.
71456         Call acl_trivial if available.  This is the crucial part of the fix.
71457         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71458         shared within the library.  Rewrite a bit, partly to make it compatible
71459         with the GNU coding style.
71460         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71461         Remove unnecessary double-quotes.
71462         Don't test for acl_to_text; the build will catch that.
71463         Replace acl_entries if it doesn't exist and it is needed.
71464         Check for -lsec and acl_trivial (as used on Solaris 10).
71465         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71466         lib/file-has-acl.c.
71467         (Depends-on): Add sys_stat, for S_ISLNK.
71468
71469 2007-03-19  Ben Pfaff  <blp@gnu.org>
71470
71471         * doc/gnulib.texi: Fix typos.
71472         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71473
71474 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71477         If size is zero here, buf must be zero.
71478
71479 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71480
71481         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71482         <bruno@clisp.org>.
71483
71484 2007-03-18  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71487         Suggested by Eric Blake.
71488
71489 2007-03-18  Ben Pfaff  <blp@gnu.org>
71490
71491         * doc/relocatable.texi: Recommend using as prefix a directory
71492         that does not exist and will never be created.  Based on
71493         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71494         and others.
71495
71496 2007-03-17  Bruno Haible  <bruno@clisp.org>
71497
71498         * lib/fchownat.c: Include lchown.h.
71499
71500 2007-03-17  Bruno Haible  <bruno@clisp.org>
71501
71502         Fix endless loop when the given allocated size was > INT_MAX.
71503         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71504         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71505         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71506         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71507         * lib/sprintf.c (sprintf): Likewise.
71508
71509 2007-03-17  Bruno Haible  <bruno@clisp.org>
71510
71511         * tests/test-argp-2.sh (func_compare): Output a context diff.
71512
71513 2007-03-17  Bruno Haible  <bruno@clisp.org>
71514
71515         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71516         locale's decimal-point character.
71517
71518 2007-03-17  Bruno Haible  <bruno@clisp.org>
71519
71520         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71521         before comparing it. Needed because on some platforms (e.g. x86) a
71522         'long double' occupies less bytes than sizeof (long double).
71523
71524 2007-03-17  Bruno Haible  <bruno@clisp.org>
71525
71526         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71527         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71528         * tests/test-getaddrinfo.c (simple): Likewise.
71529         * tests/test-read-file.c (main): Likewise.
71530
71531 2007-03-17  Bruno Haible  <bruno@clisp.org>
71532
71533         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71534
71535 2007-03-17  Bruno Haible  <bruno@clisp.org>
71536
71537         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71538         unused variable.
71539
71540 2007-03-17  Bruno Haible  <bruno@clisp.org>
71541
71542         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71543         * tests/test-c-strncasecmp.c: Likewise.
71544
71545 2007-03-17  Bruno Haible  <bruno@clisp.org>
71546
71547         * modules/stdlib (Depends-on): Add unistd.
71548         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71549         Needed for MacOS X 10.3.
71550
71551 2007-03-17  Bruno Haible  <bruno@clisp.org>
71552
71553         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71554
71555 2007-03-17  Bruno Haible  <bruno@clisp.org>
71556
71557         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71558
71559 2007-03-17  Bruno Haible  <bruno@clisp.org>
71560
71561         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71562         to reflect files copied from gnulib (with or without modifications).
71563         Suggested by Jim Meyering.
71564
71565 2007-03-17  Eric Blake  <ebb9@byu.net>
71566
71567         * NEWS: Document stdlib change from 2007-02-18.
71568
71569 2007-03-17  Jim Meyering  <jim@meyering.net>
71570
71571         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71572         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71573         someone uses a name containing shell meta-characters.
71574         Reported by Alfred M. Szmidt.
71575
71576         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71577
71578 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71579
71580         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71581         and copy gettext configuration files only if configure.ac contains
71582         a use of AM_GNU_GETTEXT_VERSION.
71583
71584 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71585
71586         * build-aux/bootstrap (gnulib_name): New variable.
71587         (gnulib_tool_options): Use it.
71588
71589 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71590
71591         * tests/test-des.c: Use new namespace.
71592
71593 2007-03-15  Bruno Haible  <bruno@clisp.org>
71594
71595         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71596         Reported by James Youngman <jay@gnu.org>.
71597
71598 2007-03-15  Bruno Haible  <bruno@clisp.org>
71599
71600         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71601         declared prototype. Needed with cc on OSF/1 5.1.
71602
71603 2007-03-15  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71606         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71607         (struct gl_list_implementation): Add dispose_fn argument to the
71608         'create_empty', 'create' methods.
71609         (struct gl_list_impl_base): Add field 'dispose_fn'.
71610         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71611         argument.
71612         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71613         dispose_fn argument.
71614         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71615         dispose_fn on the dropped values.
71616         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71617         dispose_fn argument.
71618         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71619         dropped values.
71620         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71621         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71622         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71623         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71624         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71625         argument.
71626         (gl_tree_list_free): Call dispose_fn on the dropped values.
71627         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71628         the dropped values.
71629         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71630         Add dispose_fn argument.
71631         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71632         Call dispose_fn on the dropped values.
71633         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71634         Add dispose_fn argument.
71635         (gl_sublist_create): Initialize the 'dispose_fn' field.
71636         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71637         * tests/test-array_list.c (main): Update.
71638         * tests/test-carray_list.c (main): Update.
71639         * tests/test-avltree_list.c (main): Update.
71640         * tests/test-rbtree_list.c (main): Update.
71641         * tests/test-avltreehash_list.c (main): Update.
71642         * tests/test-rbtreehash_list.c (main): Update.
71643         * tests/test-linked_list.c (main): Update.
71644         * tests/test-linkedhash_list.c (main): Update.
71645         * tests/test-array_oset.c (main): Update.
71646
71647 2007-03-15  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71650         (gl_oset_create_empty): Add dispose_fn argument.
71651         (struct gl_oset_implementation): Add dispose_fn argument to
71652         'create_empty' method.
71653         (struct gl_oset_impl_base): Add dispose_fn field.
71654         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71655         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71656         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71657         values.
71658         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71659         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71660         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71661         dropped value.
71662         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71663         dropped value.
71664         * tests/test-array_oset.c (main): Update.
71665         * tests/test-avltree_oset.c (main): Update.
71666         * tests/test-rbtree_oset.c (main): Update.
71667         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71668
71669 2007-03-13  Bruno Haible  <bruno@clisp.org>
71670
71671         * tests/test-stdbool.c (i): Update after last patch.
71672
71673 2007-03-12  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71676         the iswprint macro. Needed on Solaris 2.5.1.
71677
71678 2007-03-12  Bruno Haible  <bruno@clisp.org>
71679
71680         * tests/test-printf-frexp.c (main): Declare x as volatile.
71681
71682 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71683
71684         * doc/gnulib.texi (Build robot for gnulib): New section.
71685
71686 2007-03-12  Jim Meyering  <jim@meyering.net>
71687
71688         * build-aux/bootstrap: New file.
71689         * build-aux/bootstrap.conf: New file, from coreutils.
71690
71691 2007-03-11  Bruno Haible  <bruno@clisp.org>
71692
71693         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71694
71695 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71696
71697         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71698         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71699         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71700
71701 2007-03-11  Bruno Haible  <bruno@clisp.org>
71702
71703         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71704         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71705
71706 2007-03-11  Bruno Haible  <bruno@clisp.org>
71707
71708         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71709         formula. Needed for SunPRO C 5.0.
71710
71711 2007-03-11  Bruno Haible  <bruno@clisp.org>
71712
71713         * modules/long-options (Depends-on): Add getopt.
71714
71715 2007-03-11  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/modechange (Depends-on): Add stdbool.
71718
71719 2007-03-11  Bruno Haible  <bruno@clisp.org>
71720
71721         * modules/i-ring (Depends-on): Add stdbool.
71722
71723 2007-03-11  Bruno Haible  <bruno@clisp.org>
71724
71725         * modules/gc-des (Depends-on): Add stdbool.
71726
71727 2007-03-11  Bruno Haible  <bruno@clisp.org>
71728
71729         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71730
71731 2007-03-11  Bruno Haible  <bruno@clisp.org>
71732
71733         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71734
71735 2007-03-11  Bruno Haible  <bruno@clisp.org>
71736
71737         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71738
71739 2007-03-11  Bruno Haible  <bruno@clisp.org>
71740
71741         * lib/vasnprintf.c (sprintf): Undefine.
71742
71743 2007-03-11  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71746         initializers in SunPRO C and Compaq C compilers.
71747
71748 2007-03-11  Bruno Haible  <bruno@clisp.org>
71749
71750         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71751         decrementing code ANSI C compliant.
71752
71753 2007-03-11  Bruno Haible  <bruno@clisp.org>
71754
71755         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71756         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71757
71758 2007-03-11  Bruno Haible  <bruno@clisp.org>
71759
71760         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71761         <stdbool.h> substitute doesn't pass.
71762
71763 2007-03-11  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71766
71767 2007-03-11  Bruno Haible  <bruno@clisp.org>
71768
71769         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71770         script, for submission to autobuild.josefsson.org.
71771
71772 2007-03-10  Bruno Haible  <bruno@clisp.org>
71773
71774         * modules/canonicalize-lgpl-tests: New file.
71775         * tests/test-canonicalize-lgpl.sh: New file.
71776         * tests/test-canonicalize-lgpl.c: New file.
71777
71778         * modules/c-strcase-tests: New file.
71779         * tests/test-c-strcase.sh: New file.
71780         * tests/test-c-strcasecmp.c: New file.
71781         * tests/test-c-strncasecmp.c: New file.
71782
71783         * modules/atexit-tests: New file.
71784         * tests/test-atexit.sh: New file.
71785         * tests/test-atexit.c: New file.
71786
71787 2007-03-10  Bruno Haible  <bruno@clisp.org>
71788
71789         * tests/test-binary-io.sh: Use temporary filenames that are not so
71790         likely to clash with those of other tests (in a parallel make).
71791         * tests/test-binary-io.c: Likewise.
71792
71793 2007-03-10  Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71796         fallback; use #error instead.
71797         Suggested by Simon Josefsson.
71798
71799 2007-03-10  Bruno Haible  <bruno@clisp.org>
71800
71801         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71802         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71803         first and the last.
71804
71805 2007-03-10  Bruno Haible  <bruno@clisp.org>
71806
71807         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71808
71809 2007-03-10  Bruno Haible  <bruno@clisp.org>
71810
71811         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71812         "make distcheck".
71813         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71814         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71815         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71816
71817 2007-03-10  Bruno Haible  <bruno@clisp.org>
71818
71819         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71820         variable.
71821         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71822         variable.
71823
71824 2007-03-09  Eric Blake  <ebb9@byu.net>
71825         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71826
71827         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71828         types are not being provided by gnulib.
71829         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71830         types are supported.
71831
71832 2007-03-10  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/stdio_.h (__attribute__): New macro.
71835         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71836         vsprintf): Specify __attribute__ __format__ for GCC.
71837         Suggested by Eric Blake.
71838
71839 2007-03-09  Bruno Haible  <bruno@clisp.org>
71840
71841         * modules/printf-posix-tests: New file.
71842         * tests/test-printf-posix.sh: New file.
71843         * tests/test-printf-posix.c: New file.
71844
71845         * modules/printf-posix: New file.
71846         * lib/printf.c: New file.
71847         * m4/printf-posix-rpl.m4: New file.
71848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71849         REPLACE_PRINTF.
71850         * lib/stdio_.h (printf): New declaration.
71851         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71852         ____strfmon____): New macros.
71853         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71854         REPLACE_PRINTF.
71855
71856 2007-03-09  Bruno Haible  <bruno@clisp.org>
71857
71858         * tests/test-vasnprintf-posix2.sh: New file.
71859         * tests/test-vasnprintf-posix2.c: New file.
71860         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71861         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71862         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71863
71864         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71865         a locale dependent decimal point, rather than always '.'.
71866
71867 2007-03-09  Eric Blake  <ebb9@byu.net>
71868
71869         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71870         spite of platforms like Tandem/NSK that define it to -1.
71871
71872 2007-03-08  Bruno Haible  <bruno@clisp.org>
71873
71874         * modules/vprintf-posix-tests: New file.
71875         * tests/test-vprintf-posix.sh: New file.
71876         * tests/test-vprintf-posix.c: New file.
71877         * tests/test-printf-posix.h: New file.
71878
71879         * modules/vprintf-posix: New file.
71880         * lib/vprintf.c: New file.
71881         * m4/vprintf-posix.m4: New file.
71882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71883         REPLACE_VPRINTF.
71884         * lib/stdio_.h (vprintf): New declaration.
71885         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71886         REPLACE_VPRINTF.
71887
71888 2007-03-08  Bruno Haible  <bruno@clisp.org>
71889
71890         * modules/fprintf-posix-tests: New file.
71891         * tests/test-fprintf-posix.sh: New file.
71892         * tests/test-fprintf-posix.c: New file.
71893
71894         * modules/fprintf-posix: New file.
71895         * lib/fprintf.c: New file.
71896         * m4/fprintf-posix.m4: New file.
71897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71898         REPLACE_FPRINTF.
71899         * lib/stdio_.h (fprintf): New declaration.
71900         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71901         REPLACE_FPRINTF.
71902
71903 2007-03-08  Bruno Haible  <bruno@clisp.org>
71904
71905         * modules/vfprintf-posix-tests: New file.
71906         * tests/test-vfprintf-posix.sh: New file.
71907         * tests/test-vfprintf-posix.c: New file.
71908         * tests/test-fprintf-posix.h: New file.
71909         * tests/test-fprintf-posix.out: New file.
71910
71911         * modules/vfprintf-posix: New file.
71912         * lib/vfprintf.c: New file.
71913         * m4/vfprintf-posix.m4: New file.
71914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71915         REPLACE_VFPRINTF.
71916         * lib/stdio_.h (vfprintf): New declaration.
71917         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71918         REPLACE_VFPRINTF.
71919
71920 2007-03-08  Bruno Haible  <bruno@clisp.org>
71921
71922         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71923
71924 2007-03-08  Bruno Haible  <bruno@clisp.org>
71925
71926         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71927         instead of 'expr' invocations.
71928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71930         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71933         Suggested by Paul Eggert.
71934
71935 2007-03-08  Bruno Haible  <bruno@clisp.org>
71936
71937         * modules/fseterr-tests: New file.
71938         * tests/test-fseterr.c: New file.
71939
71940         * modules/fseterr: New file.
71941         * lib/fseterr.h: New file.
71942         * lib/fseterr.c: New file.
71943
71944 2007-03-08  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71947         * lib/getopt_.h: Likewise.
71948         * lib/mbswidth.h: Likewise.
71949         * lib/setenv.h: Likewise.
71950         * lib/vasnprintf.h: Likewise.
71951         * lib/vasprintf.h: Likewise.
71952         * lib/verror.h: Likewise.
71953         * lib/xsetenv.h: Likewise.
71954         * lib/xvasprintf.h: Likewise.
71955
71956 2007-03-08  Jim Meyering  <jim@meyering.net>
71957
71958         * users.txt: Add parted.
71959
71960         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71961
71962 2007-03-07  Bruno Haible  <bruno@clisp.org>
71963
71964         * m4/printf.m4: Make the shell script snippets copy&pastable.
71965
71966 2007-03-02  Bruno Haible  <bruno@clisp.org>
71967
71968         * lib/netinet_in_.h: New file.
71969         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71970         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71971         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71972         (Depends-on): Add absolute-header.
71973         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71974         into netinet/in.h.
71975
71976 2007-03-03  Bruno Haible  <bruno@clisp.org>
71977
71978         * lib/sys_select_.h: New file.
71979         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71980         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71981         * modules/sys_select (Files): Add lib/sys_select_.h.
71982         (Depends-on): Add absolute-header.
71983         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71984         into sys/select.h.
71985
71986 2007-03-02  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71989         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71990         values.
71991         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71992         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71993         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71994         * modules/sys_socket (Depends-on): Add absolute-header.
71995         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71996         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71997         (Include): Remove requirement of inclusion of <sys/types.h>.
71998
71999 2007-03-02  Bruno Haible  <bruno@clisp.org>
72000
72001         * lib/byteswap_.h (bswap_32): Fix formula.
72002
72003 2007-03-06  Bruno Haible  <bruno@clisp.org>
72004
72005         * modules/sprintf-posix-tests: New file.
72006         * tests/test-sprintf-posix.c: New file.
72007
72008         * modules/sprintf-posix: New file.
72009         * lib/sprintf.c: New file.
72010         * m4/sprintf-posix.m4: New file.
72011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72012         REPLACE_SPRINTF.
72013         * lib/stdio_.h (sprintf): New declaration.
72014         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72015         REPLACE_SPRINTF.
72016
72017 2007-03-06  Bruno Haible  <bruno@clisp.org>
72018
72019         * modules/vsprintf-posix-tests: New file.
72020         * tests/test-vsprintf-posix.c: New file.
72021         * tests/test-sprintf-posix.h: New file.
72022
72023         * modules/vsprintf-posix: New file.
72024         * lib/vsprintf.c: New file.
72025         * m4/vsprintf-posix.m4: New file.
72026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72027         REPLACE_VSPRINTF.
72028         * lib/stdio_.h (vsprintf): New declaration.
72029         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72030         REPLACE_VSPRINTF.
72031
72032 2007-03-06  Bruno Haible  <bruno@clisp.org>
72033
72034         * modules/vsnprintf (Depend-on): Remove minmax.
72035
72036 2007-03-06  Bruno Haible  <bruno@clisp.org>
72037
72038         * modules/snprintf-posix-tests: New file.
72039         * tests/test-snprintf-posix.c: New file.
72040
72041         * modules/snprintf-posix: New file.
72042         * m4/snprintf-posix.m4: New file.
72043         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72044         gl_FUNC_SNPRINTF.
72045         (gl_FUNC_SNPRINTF): Invoke it.
72046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72047         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72048         is set.
72049         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72050
72051 2007-03-06  Bruno Haible  <bruno@clisp.org>
72052
72053         * modules/vsnprintf-posix-tests: New file.
72054         * tests/test-vsnprintf-posix.c: New file.
72055         * tests/test-snprintf-posix.h: New file.
72056
72057         * modules/vsnprintf-posix: New file.
72058         * m4/vsnprintf-posix.m4: New file.
72059         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72060         gl_FUNC_VSNPRINTF.
72061         (gl_FUNC_VSNPRINTF): Invoke it.
72062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72063         * lib/stdio_.h (vsnprintf): Define as a replacement if
72064         REPLACE_VSNPRINTF is set.
72065         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72066
72067 2007-03-06  Bruno Haible  <bruno@clisp.org>
72068
72069         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72071
72072 2007-03-06  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72075         (asinl): Declare also if HAVE_DECL_ASINL is set.
72076         (atanl): Declare also if HAVE_DECL_ATANL is set.
72077         (ceill): Declare also if HAVE_DECL_CEILL is set.
72078         (cosl): Declare also if HAVE_DECL_COSL is set.
72079         (expl): Declare also if HAVE_DECL_EXPL is set.
72080         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72081         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72082         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72083         (logl): Declare also if HAVE_DECL_LOGL is set.
72084         (sinl): Declare also if HAVE_DECL_SINL is set.
72085         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72086         (tanl): Declare also if HAVE_DECL_TANL is set.
72087         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72090         declaration of frexpl, ldexpl.
72091         * modules/printf-frexpl (Depends-on): Add math.
72092         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72093
72094 2007-03-05  Bruno Haible  <bruno@clisp.org>
72095
72096         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72097         frexpl and ldexpl are declared.
72098         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72099
72100 2007-03-05  Bruno Haible  <bruno@clisp.org>
72101
72102         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72103         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72104
72105 2007-03-05  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/stdio_.h: Include <stddef.h>.
72108
72109 2007-03-05  Bruno Haible  <bruno@clisp.org>
72110
72111         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72112
72113 2007-03-05  Bruno Haible  <bruno@clisp.org>
72114
72115         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72116         NetBSD 4, from Ralf Wildenhues.
72117
72118 2007-03-04  Bruno Haible  <bruno@clisp.org>
72119
72120         * lib/vasprintf.h: Update #if logic for the case when the functions
72121         exist but are overridden.
72122
72123 2007-03-04  Bruno Haible  <bruno@clisp.org>
72124
72125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72126         implementations: glibc-2.4 and MacOS X 10.3.
72127         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72128         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72129         * tests/test-vasprintf-posix.c (test_function): Likewise.
72130
72131 2007-03-04  Bruno Haible  <bruno@clisp.org>
72132
72133         * modules/vasprintf-posix-tests: New file.
72134         * tests/test-vasprintf-posix.c: New file.
72135
72136         * modules/vasprintf-posix: New file.
72137         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72138         defined.
72139         * m4/vasprintf-posix.m4: New file.
72140         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72141         gl_FUNC_VASPRINTF.
72142         (gl_FUNC_VASPRINTF): Invoke it.
72143         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72144         here.
72145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72146
72147 2007-03-04  Bruno Haible  <bruno@clisp.org>
72148
72149         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72150         REPLACE_GETTIMEOFDAY.
72151         * modules/sys_time (Makefile.am): Likewise.
72152         * m4/sys_time_h.m4: Likewise.
72153         * m4/gettimeofday.m4: Likewise.
72154
72155 2007-03-04  Bruno Haible  <bruno@clisp.org>
72156
72157         * modules/vasnprintf-posix-tests: New file.
72158         * tests/test-vasnprintf-posix.c: New file.
72159
72160         * modules/vasnprintf-posix: New file.
72161         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72162         printf-frexpl.h.
72163         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72164         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72165         REPLACE_VASNPRINTF is defined.
72166         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72167         gl_FUNC_VASNPRINTF.
72168         (gl_FUNC_VASNPRINTF): Invoke it.
72169         * m4/vasnprintf-posix.m4: New file.
72170         * m4/printf.m4: New file.
72171
72172 2007-03-04  Bruno Haible  <bruno@clisp.org>
72173
72174         Compile progreloc.c only if --enable-relocatable is specified.
72175         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72176         if --enable-relocatable was specified.
72177         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72178         lib_SOURCES.
72179
72180 2007-03-04  Jim Meyering  <jim@meyering.net>
72181
72182         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72183         Use it consistently, rather than enumerating errno constants.
72184
72185 2007-03-04  Bruno Haible  <bruno@clisp.org>
72186
72187         * modules/xvasprintf-tests: New file.
72188         * tests/test-xvasprintf.c: New file.
72189
72190         * modules/vasprintf-tests: New file.
72191         * tests/test-vasprintf.c: New file.
72192
72193         * modules/vasnprintf-tests: New file.
72194         * tests/test-vasnprintf.c: New file.
72195
72196         * modules/vsnprintf-tests: New file.
72197         * tests/test-vsnprintf.c: New file.
72198
72199         * modules/snprintf-tests: New file.
72200         * tests/test-snprintf.c: New file.
72201
72202 2007-03-04  Bruno Haible  <bruno@clisp.org>
72203
72204         Compile relocatable.c only if --enable-relocatable is specified.
72205         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72206         gl_RELOCATABLE_LIBRARY.
72207         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72208         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72209         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72210         gl_RELOCATABLE_LIBRARY.
72211         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72212         (Makefile.am): Remove lib_SOURCES.
72213         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72214         gl_RELOCATABLE_LIBRARY.
72215         (Makefile.am): Remove lib_SOURCES.
72216         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72217         always.
72218         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72219         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72220
72221 2007-03-04  Bruno Haible  <bruno@clisp.org>
72222
72223         * modules/argmatch-tests: New file.
72224         * tests/test-argmatch.c: New file.
72225
72226         * tests/test-allocsa.c (main): Halve the number of loop runs.
72227
72228         * modules/alloca-opt-tests: New file.
72229         * tests/test-alloca-opt.c: New file.
72230
72231 2007-03-04  Jim Meyering  <jim@meyering.net>
72232
72233         Work around difference between Linux ACLs and Solaris 10 ZFS.
72234         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72235         for EINVAL.
72236
72237 2007-03-03  Bruno Haible  <bruno@clisp.org>
72238
72239         * modules/relocatable-prog (Depends-on): Add back progreloc's
72240         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72241
72242 2007-03-03  Bruno Haible  <bruno@clisp.org>
72243
72244         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72245         * modules/relocatable-lib: New file.
72246
72247 2007-03-03  Bruno Haible  <bruno@clisp.org>
72248
72249         * modules/relocatable-prog: Renamed from modules/relocatable.
72250         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72251
72252 2007-03-03  Bruno Haible  <bruno@clisp.org>
72253
72254         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72255         m4/relocatable-lib.m4.
72256         (Depends-on): Remove 'relocatable'.
72257         (configure.ac): Add gl_RELOCATABLE_NOP.
72258
72259 2007-03-03  Bruno Haible  <bruno@clisp.org>
72260
72261         * modules/relocatable-prog-wrapper: New file.
72262         * modules/relocatable (Depends-on): Add it. Remove all other
72263         dependencies except progname.
72264         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72265
72266         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72267         (gl_FUNC_STRERROR): Nop.
72268         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72269
72270         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72271         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72272
72273         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72274         (gl_FUNC_READLINK): Update.
72275
72276         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72277
72278 2007-03-03  Bruno Haible  <bruno@clisp.org>
72279
72280         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72281         * modules/xreadlink (Depends-on): Add unistd.
72282         * modules/xreadlink-with-size (Depends-on): Likewise.
72283
72284 2007-03-03  Bruno Haible  <bruno@clisp.org>
72285
72286         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72287         extracted from gt_FUNC_SETENV.
72288         (gt_FUNC_SETENV): Remove macro.
72289         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72290         remove gt_FUNC_SETENV.
72291
72292 2007-03-03  Bruno Haible  <bruno@clisp.org>
72293
72294         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72295         ENABLE_RELOCATABLE here.
72296         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72297
72298 2007-03-03  Bruno Haible  <bruno@clisp.org>
72299
72300         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72301         * tests/test-rbtreehash_list.c: Include progname.h.
72302         (main): Call set_program_name.
72303
72304         * modules/rbtree-oset-tests (Depends-on): Add progname.
72305         * tests/test-rbtree_oset.c: Include progname.h.
72306         (main): Call set_program_name.
72307
72308         * modules/rbtree-list-tests (Depends-on): Add progname.
72309         * tests/test-rbtree_list.c: Include progname.h.
72310         (main): Call set_program_name.
72311
72312         * modules/linked-list-tests (Depends-on): Add progname.
72313         * tests/test-linked_list.c: Include progname.h.
72314         (main): Call set_program_name.
72315
72316 2007-03-03  Bruno Haible  <bruno@clisp.org>
72317
72318         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72319         All uses of __restrict changed to _Restrict_.
72320         * lib/glob_.h (__restrict): Remove macro.
72321
72322 2007-03-02  Bruno Haible  <bruno@clisp.org>
72323
72324         * modules/gettext (configure.ac): Require gettext infrastructure
72325         from version 0.16.1.
72326
72327 2007-03-02  Bruno Haible  <bruno@clisp.org>
72328
72329         * modules/linkedhash-list-tests (Depends-on): Add progname.
72330         * tests/test-linkedhash_list.c: Include progname.h.
72331         (main): Call set_program_name.
72332
72333         * modules/carray-list-tests (Depends-on): Add progname.
72334         * tests/test-carray_list.c: Include progname.h.
72335         (main): Call set_program_name.
72336
72337         * modules/avltreehash-list-tests (Depends-on): Add progname.
72338         * tests/test-avltreehash_list.c: Include progname.h.
72339         (main): Call set_program_name.
72340
72341         * modules/avltree-oset-tests (Depends-on): Add progname.
72342         * tests/test-avltree_oset.c: Include progname.h.
72343         (main): Call set_program_name.
72344
72345         * modules/avltree-list-tests (Depends-on): Add progname.
72346         * tests/test-avltree_list.c: Include progname.h.
72347         (main): Call set_program_name.
72348
72349         * modules/array-oset-tests (Depends-on): Add progname.
72350         * tests/test-array_oset.c: Include progname.h.
72351         (main): Call set_program_name.
72352
72353         * modules/array-list-tests (Depends-on): Add progname.
72354         * tests/test-array_list.c: Include progname.h.
72355         (main): Call set_program_name.
72356
72357         * modules/argp-tests (Depends-on): Add progname.
72358         * tests/test-argp.c: Include argp.h first. Include progname.h.
72359         (main): Call set_program_name.
72360
72361 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72362
72363         * doc/gnulib-tool.texi (Initial import): Reword description of
72364         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72365         limited effect even if defined after the first system include.
72366
72367 2007-03-01  Bruno Haible  <bruno@clisp.org>
72368
72369         * build-aux/config.libpath: Update to libtool-1.5.22.
72370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72371
72372 2007-03-01  Bruno Haible  <bruno@clisp.org>
72373
72374         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72375         foo_CFLAGS.
72376         Reported by Ralf Wildenhues.
72377
72378 2007-03-01  Bruno Haible  <bruno@clisp.org>
72379
72380         * build-aux/install-reloc: Remove object files left over by some
72381         compilers.
72382         Reported by Ralf Wildenhues.
72383
72384 2007-03-01  Bruno Haible  <bruno@clisp.org>
72385
72386         * build-aux/install-reloc: Break long lines.
72387
72388 2007-03-01  Bruno Haible  <bruno@clisp.org>
72389
72390         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72391         Reported by Ralf Wildenhues.
72392
72393 2007-03-01  Bruno Haible  <bruno@clisp.org>
72394
72395         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72396         include ordering constraints.
72397
72398 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72399
72400         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72402         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72403         as another example.
72404         * lib/time_.h: Fix misspelling.
72405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72406         Require gl_HEADER_TIME_H_DEFAULTS.
72407         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72408         * m4/time_r.m4 (gl_TIME_R): Likewise.
72409         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72410
72411 2007-03-01  Bruno Haible  <bruno@clisp.org>
72412
72413         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72414         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72415
72416 2007-03-01  Jim Meyering  <jim@meyering.net>
72417
72418         * modules/xreadlink (Maintainer): Add my name.
72419         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72420
72421 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72422             Bruno Haible  <bruno@clisp.org>
72423
72424         * build-aux/install-reloc: Compile also c-ctype.c.
72425         * build-aux/relocatable.sh.in: New file.
72426         * doc/relocatable.texi: New file.
72427         * doc/relocatable-maint.texi: New file.
72428         * doc/gnulib.texi: Include relocatable-maint.texi.
72429         * lib/progreloc.c: Include unistd.h unconditionally.
72430         * lib/relocwrapper.c: Include unistd.h unconditionally.
72431         Include c-ctype.h.
72432         (add_dotbin): Use c_tolower.
72433         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72434         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72435         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72436         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72437         to m4/relocatable-lib.m4.
72438         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72439         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72440         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72441         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72442         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72443         * modules/relocatable: New file.
72444         * modules/relocatable-lib: New file.
72445         * modules/relocatable-script: New file.
72446
72447 2007-02-28  Bruno Haible  <bruno@clisp.org>
72448
72449         Import --enable-relocatable infrastructure.
72450         * build-aux/config.libpath: New file, from GNU gettext.
72451         * build-aux/install-reloc: New file, from GNU gettext.
72452         * build-aux/reloc-ldflags: New file, from GNU gettext.
72453         * lib/relocatable.h: New file, from GNU gettext.
72454         * lib/relocatable.c: New file, from GNU gettext.
72455         * lib/relocwrapper.c: New file, from GNU gettext.
72456         * m4/relocatable.m4: New file, from GNU gettext.
72457
72458 2007-02-28  Bruno Haible  <bruno@clisp.org>
72459
72460         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72461
72462         * modules/xreadlink: New file, from GNU gettext with modifications.
72463         * lib/xreadlink.c: New file, from GNU gettext.
72464         * lib/xreadlink.h: Add comments.
72465         (xreadlink): New declaration.
72466
72467         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72468         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72469         lib/xreadlink-with-size.c.
72470         (configure.ac): Remove gl_XREADLINK invocation.
72471         (Makefile.am): Augment lib_SOURCES.
72472         * m4/xreadlink.m4: Remove file.
72473         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72474         (xreadlink_with_size): Renamed from xreadink.
72475         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72476         * modules/canonicalize (Depends-on): Replace xreadlink with
72477         xreadlink-with-size.
72478         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72479
72480 2007-02-25  Jim Meyering  <jim@meyering.net>
72481
72482         * build-aux/announce-gen: When complaining about excess arguments,
72483         list them.
72484
72485 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72486
72487         * README: Document signed integer overflow situation more
72488         accurately.
72489
72490 2007-02-25  Bruno Haible  <bruno@clisp.org>
72491
72492         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72493         'a' or 'A' conversion.
72494
72495 2007-02-25  Bruno Haible  <bruno@clisp.org>
72496
72497         * modules/filename: Renamed from modules/pathname.
72498         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72499         lib/concatpath.c with lib/concat-filename.c.
72500         (Makefile.am): Update.
72501         (Include): Replace pathname.h with filename.h.
72502         * lib/filename.h: Renamed from lib/pathname.h.
72503         (concatenated_filename): Renamed from concatenated_pathname.
72504         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72505         (concatenated_filename): Renamed from concatenated_pathname.
72506         * lib/findprog.c: Include filename.h instead of pathname.h.
72507         (find_in_path): Update.
72508         * lib/javacomp.c: Include filename.h instead of pathname.h.
72509         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72510         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72511         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72512         is_oldgcj_14_13_usable, is_javac_usable): Update.
72513         * lib/javaexec.c: Include filename.h instead of pathname.h.
72514         (execute_java_class): Update.
72515         * modules/findprog: Update.
72516         * modules/javacomp: Update.
72517         * modules/javaexec: Update.
72518         * MODULES.html.sh (File system functions): Add 'filename', remove
72519         'pathname'.
72520
72521 2007-02-25  Bruno Haible  <bruno@clisp.org>
72522
72523         * modules/printf-frexpl-tests: New file.
72524         * tests/test-printf-frexpl.c: New file.
72525
72526         * modules/printf-frexpl: New file.
72527         * lib/printf-frexpl.h: New file.
72528         * lib/printf-frexpl.c: New file.
72529         * m4/printf-frexpl.m4: New file.
72530
72531 2007-02-25  Bruno Haible  <bruno@clisp.org>
72532
72533         * modules/printf-frexp-tests: New file.
72534         * tests/test-printf-frexp.c: New file.
72535
72536         * modules/printf-frexp: New file.
72537         * lib/printf-frexp.h: New file.
72538         * lib/printf-frexp.c: New file.
72539         * m4/printf-frexp.m4: New file.
72540
72541 2007-02-25  Bruno Haible  <bruno@clisp.org>
72542
72543         Assume automake >= 1.10 for the tests.
72544         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72545         * modules/arctwo-tests: Likewise.
72546         * modules/argp-tests: Likewise.
72547         * modules/avltree-list-tests: Likewise.
72548         * modules/avltree-oset-tests: Likewise.
72549         * modules/avltreehash-list-tests: Likewise.
72550         * modules/carray-list-tests: Likewise.
72551         * modules/crc-tests: Likewise.
72552         * modules/des-tests: Likewise.
72553         * modules/gc-arcfour-tests: Likewise.
72554         * modules/gc-arctwo-tests: Likewise.
72555         * modules/gc-des-tests: Likewise.
72556         * modules/gc-hmac-md5-tests: Likewise.
72557         * modules/gc-hmac-sha1-tests: Likewise.
72558         * modules/gc-md2-tests: Likewise.
72559         * modules/gc-md4-tests: Likewise.
72560         * modules/gc-md5-tests: Likewise.
72561         * modules/gc-pbkdf2-sha1-tests: Likewise.
72562         * modules/gc-rijndael-tests: Likewise.
72563         * modules/gc-sha1-tests: Likewise.
72564         * modules/gc-tests: Likewise.
72565         * modules/getaddrinfo-tests: Likewise.
72566         * modules/hmac-md5-tests: Likewise.
72567         * modules/hmac-sha1-tests: Likewise.
72568         * modules/linked-list-tests: Likewise.
72569         * modules/linkedhash-list-tests: Likewise.
72570         * modules/lock-tests: Likewise.
72571         * modules/md2-tests: Likewise.
72572         * modules/md4-tests: Likewise.
72573         * modules/md5-tests: Likewise.
72574         * modules/rbtree-list-tests: Likewise.
72575         * modules/rbtree-oset-tests: Likewise.
72576         * modules/rbtreehash-list-tests: Likewise.
72577         * modules/read-file-tests: Likewise.
72578         * modules/rijndael-tests: Likewise.
72579         * modules/stdint-tests: Likewise.
72580         * modules/tls-tests: Likewise.
72581
72582 2007-02-24  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72585         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72586         function; instead check whether isnan with a double argument links.
72587         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72588         function; instead check whether isnan with a 'long double' argument
72589         links.
72590         Reported by Eric Blake <ebb9@byu.net>.
72591
72592 2007-02-24  Bruno Haible  <bruno@clisp.org>
72593
72594         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72595         defined.
72596         * lib/isnanl.c: Remove all code. Just include isnan.c.
72597         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72598
72599 2007-02-25  Jim Meyering  <jim@meyering.net>
72600
72601         Avoid conflicting types for 'unsetenv' on FreeBSD.
72602         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72603         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72604         in stdlib.h.
72605
72606 2007-02-24  Bruno Haible  <bruno@clisp.org>
72607
72608         * modules/isnanl-nolibm-tests: New file.
72609         * tests/test-isnanl.c: New file.
72610
72611         * modules/isnanl-nolibm: New file.
72612         * lib/isnanl.h: New file.
72613         * lib/isnanl.c: New file.
72614         * m4/isnanl.m4: New file.
72615
72616 2007-02-24  Bruno Haible  <bruno@clisp.org>
72617
72618         * modules/isnan-nolibm-tests: New file.
72619         * tests/test-isnan.c: New file.
72620
72621         * modules/isnan-nolibm: New file.
72622         * lib/isnan.h: New file.
72623         * lib/isnan.c: New file.
72624         * m4/isnan.m4: New file.
72625
72626 2007-02-24  Bruno Haible  <bruno@clisp.org>
72627
72628         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72629         assume that an exponent fits in 20 bits.
72630
72631 2007-02-24  Jim Meyering  <jim@meyering.net>
72632
72633         * m4/regex.m4: Update the description of the configure-time option,
72634         --without-included-regex, to state accurately what the defaults are,
72635         and perhaps to give people an idea why using this option is risky.
72636
72637 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72638
72639         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72640         loops on small arguments.  This attempts to avoid the problem
72641         Bruno Haible reported for AIX 4.3.2 in
72642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72643
72644 2007-02-23  Bruno Haible  <bruno@clisp.org>
72645
72646         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72647         Needed for help2man.
72648
72649 2007-02-23  Karl Berry  <karl@gnu.org>
72650
72651         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72652         exists, foo.h should be cvs-ignored, not committed.
72653
72654 2007-02-23  Eric Blake  <ebb9@byu.net>
72655
72656         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72657         * lib/stat-time.h (includes): Likewise.
72658         * lib/utimecmp.c (includes): Likewise.
72659         * lib/utimens.h (includes): Likewise.
72660         * lib/getdate.y (includes): Also include "timespec.h" for use
72661         internal to the module.
72662         * modules/utimens (Depends-on): Revert yesterday's patch.
72663         * modules/nanosleep (Depends-on): Add missing dependency.
72664
72665 2007-02-22  Bruno Haible  <bruno@clisp.org>
72666
72667         * lib/glob.c: Don't include getlogin_r.h.
72668
72669 2007-02-22  Jim Meyering  <jim@meyering.net>
72670
72671         * modules/utimens (Depends-on): Add timespec, required for
72672         utimens.h's inclusion of timespec.h.
72673
72674 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72677         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72678         Schwab in
72679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72680         I'll try to think of a better way to fix the Solaris problem.
72681
72682         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72683         like glibc; on Solaris 10, it fails with errno == EINVAL.
72684         POSIX says the behavior is unspecified if the first argument is NULL,
72685         so play it safe and never pass NULL to the system getcwd.
72686
72687 2007-02-21  Jim Meyering  <jim@meyering.net>
72688
72689         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72690         of gettimeofday.  It would conflict with the one now always
72691         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72692         an IRIX 6.5 build failure.
72693
72694 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         Minor fixups to port to Solaris 10 with Sun C 5.8.
72697         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72698         * modules/getcwd (Depends-on): Add dirfd.
72699         * lib/putenv.c (putenv): #undef it.
72700         (rpl_putenv): New decl.
72701         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72702
72703 2007-02-20  Bruno Haible  <bruno@clisp.org>
72704
72705         * modules/stdio-tests: New file.
72706         * tests/test-stdio.c: New file.
72707
72708         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72709         (Depends-on): Add stdio.
72710         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72711         (Include): Use <stdio.h> instead of vsnprintf.h.
72712         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72713         HAVE_DECL_VSNPRINTF.
72714         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72715
72716         * modules/snprintf (Files): Remove lib/snprintf.h.
72717         (Depends-on): Add stdio.
72718         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72719         (Include): Use <stdio.h> instead of snprintf.h.
72720         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72721         HAVE_DECL_SNPRINTF.
72722         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72723         * lib/getaddrinfo.c: Likewise.
72724
72725         * modules/stdio: New file.
72726         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72727         * lib/snprintf.h: Remove file.
72728         * lib/vsnprintf.h: Remove file.
72729         * lib/.cppi-disable: Remove snprintf.h.
72730         * m4/stdio_h.m4: New file.
72731         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72732
72733 2007-02-20  Jim Meyering  <jim@meyering.net>
72734
72735         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72736         used by e.g., mingw.  From Bruno Haible.
72737
72738 2007-02-19  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72741         warnings.
72742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72743
72744 2007-02-19  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72747         from mingw users.
72748
72749 2007-02-19  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72752         warnings.
72753         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72754
72755 2007-02-19  Jim Meyering  <jim@meyering.net>
72756
72757         Don't use FD after a successful "fdopendir (fd)".
72758         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72759         Reset it by calling dirfd on the just-obtained DIR*.
72760
72761         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72762         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72763
72764 2007-02-18  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/readlink.c: Include <unistd.h>.
72767         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72768         HAVE_READLINK.
72769         * modules/readlink (Depends-on): Add unistd.
72770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72771         (Include): Add <unistd.h>.
72772
72773         * lib/getlogin_r.h: Remove file.
72774         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72775         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72776         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72777         HAVE_DECL_GETLOGIN_R.
72778         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72780         (Include): Use <unistd.h> instead of getlogin_r.h.
72781
72782         * lib/getcwd.h: Remove file.
72783         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72784         * lib/xgetcwd.c: Likewise.
72785         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72786         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72787         * modules/getcwd (Files): Remove lib/getcwd.h.
72788         (Depends-on): Add unistd.
72789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72790         (Include): Use <unistd.h> instad of getcwd.h.
72791
72792         * lib/ftruncate.c: Include <unistd.h> first.
72793         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72794         Set HAVE_FTRUNCATE.
72795         * modules/ftruncate (Depends-on): Add unistd.
72796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72797
72798         * lib/fchdir.c: Include <unistd.h> first.
72799         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72801         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72802         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72803         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72804
72805         * lib/dup2.c: Include <unistd.h> first.
72806         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72807         HAVE_DUP2.
72808         * modules/dup2 (Depends-on): Add unistd.
72809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72810
72811         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72812         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72813         REPLACE_CHOWN. Don't define chown as a macro here.
72814         * modules/chown (Depends-on): Add unistd.
72815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72816
72817         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72818         Add definition for GL_LINK_WARNING.
72819         (chown, dup2): New declarations.
72820         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72821         link warning.
72822         (ftruncate): New declaration.
72823         (getcwd): New declaration, taken from old getcwd.h.
72824         (getlogin_r): New declaration, taken from old getlogin_r.h.
72825         (readlink): New declaration.
72826         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72827         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72828         (gl_PREREQ_UNISTD): Remove macro.
72829         (gl_UNISTD_MODULE_INDICATOR): New macro.
72830         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72831         many new variables. Don't set UNISTD_H.
72832         * modules/unistd (Description): Change.
72833         (Depends-on): Add link-warning.
72834         (configure.ac): Update.
72835         (Makefile.am): Create unistd.h always. Substitute many new variables
72836         into it.
72837
72838 2007-02-18  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72841         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72842         HAVE_GETSUBOPT.
72843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72844         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72845         * lib/getsubopt.h: Remove file.
72846         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72847         (Depends-on): Add stdlib.
72848         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72849         (Includes): Use <stdlib.h> instead of getsubopt.h.
72850         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72851         Set HAVE_GETSUBOPT.
72852         * lib/getsubopt.c: Don't include getsubopt.h.
72853
72854 2007-02-18  Bruno Haible  <bruno@clisp.org>
72855
72856         * modules/fchdir (Depends-on): Add dup2.
72857
72858 2007-02-18  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/stdlib_.h: Handle glibc's special invocation convention
72861         specially.
72862
72863 2007-02-18  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/stdlib-tests: New file.
72866         * tests/test-stdlib.c: New file.
72867
72868         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72869         (Depends-on): Add stdlib.
72870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72871         (Includes): Use <stdlib.h> instead of mkstemp.h.
72872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72873         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72874         * lib/mkstemp.c: Don't include mkstemp.h.
72875         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72876         * lib/stdlib--.h: Don't include mkstemp.h.
72877
72878         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72879         (Depends-on): Add stdlib.
72880         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72881         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72882         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72883         HAVE_MKDTEMP.
72884         * lib/mkdtemp.c: Don't include mkdtemp.h.
72885         * lib/clean-temp.c: Don't include mkdtemp.h.
72886
72887         * modules/exit (Files): Remove lib/exit.h.
72888         (Depends-on): Add stdlib.
72889         (Makefile.am): Remove lib_SOURCES.
72890         (Include): Use <stdlib.h> instead of exit.h.
72891         * lib/argmatch.c: Don't include exit.h.
72892         * lib/execute.c: Likewise.
72893         * lib/pagealign_alloc.c: Likewise.
72894         * lib/pipe.c: Likewise.
72895         * lib/wait-process.c: Likewise.
72896         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72897         * lib/exitfail.c: Likewise.
72898         * lib/savewd.c: Likewise.
72899         * lib/xsetenv.c: Likewise.
72900
72901         * modules/stdlib: New file.
72902         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72903         and extra comments about mkstemp().
72904         * lib/exit.h: Remove file.
72905         * lib/mkdtemp.h: Remove file.
72906         * lib/mkstemp.h: Remove file.
72907         * m4/stdlib_h.m4: New file.
72908         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72909
72910 2007-02-18  Bruno Haible  <bruno@clisp.org>
72911
72912         * modules/math-tests: New file.
72913         * tests/test-math.c: New file.
72914
72915         * modules/math: New file.
72916         * modules/mathl (Files): Remove lib/mathl.h.
72917         (Depends-on): Add math.
72918         (Makefile.am): Don't mention mathl.h.
72919         (Include): Use <math.h> instead of mathl.h.
72920         * lib/math_.h: New file.
72921         * lib/mathl.h: Remove file.
72922         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72923         mathl.h.
72924         * lib/asinl.c: Likewise.
72925         * lib/atanl.c: Likewise.
72926         * lib/ceill.c: Likewise.
72927         * lib/cosl.c: Likewise.
72928         * lib/expl.c: Likewise.
72929         * lib/floorl.c: Likewise.
72930         * lib/frexpl.c: Likewise.
72931         * lib/ldexpl.c: Likewise.
72932         * lib/logl.c: Likewise.
72933         * lib/sincosl.c: Likewise.
72934         * lib/sinl.c: Likewise.
72935         * lib/sqrtl.c: Likewise.
72936         * lib/tanl.c: Likewise.
72937         * lib/trigl.c: Likewise.
72938         * m4/math_h.m4: New file.
72939         * MODULES.html.sh (Mathematics): Add math.
72940
72941 2007-02-17  Bruno Haible  <bruno@clisp.org>
72942
72943         * modules/wctype-tests: New file.
72944         * tests/test-wctype.c: New file.
72945
72946         * modules/wchar-tests: New file.
72947         * tests/test-wchar.c: New file.
72948
72949         * modules/unistd-tests: New file.
72950         * tests/test-unistd.c: New file.
72951
72952         * modules/time-tests: New file.
72953         * tests/test-time.c: New file.
72954
72955         * modules/sysexits-tests: New file.
72956         * tests/test-sysexits.c: New file.
72957
72958         * modules/sys_time-tests: New file.
72959         * tests/test-sys_time.c: New file.
72960
72961         * modules/sys_stat-tests: New file.
72962         * tests/test-sys_stat.c: New file.
72963
72964         * modules/sys_socket-tests: New file.
72965         * tests/test-sys_socket.c: New file.
72966
72967         * modules/sys_select-tests: New file.
72968         * tests/test-sys_select.c: New file.
72969
72970         * modules/string-tests: New file.
72971         * tests/test-string.c: New file.
72972
72973         * modules/stdbool-tests: New file.
72974         * tests/test-stdbool.c: New file.
72975
72976         * modules/netinet_in-tests: New file.
72977         * tests/test-netinet_in.c: New file.
72978
72979         * modules/inttypes-tests: New file.
72980         * tests/test-inttypes.c: New file.
72981
72982         * modules/fcntl-tests: New file.
72983         * tests/test-fcntl.c: New file.
72984
72985         * modules/byteswap-tests: New file.
72986         * tests/test-byteswap.c: New file.
72987
72988         * modules/arpa_inet-tests: New file.
72989         * tests/test-arpa_inet.c: New file.
72990
72991 2007-02-17  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72994         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72995         if the corresponding module is not enabled. Emit link warnings if
72996         the function is used nevertheless.
72997         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72998         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72999         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73000         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73001         * modules/inttypes (Depends-on): Add link-warning.
73002         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73003         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73004         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73005         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73006         * modules/imaxdiv (configure.ac): Likewise.
73007         * modules/strtoimax (configure.ac): Likewise.
73008         * modules/strtoumax (configure.ac): Likewise.
73009
73010 2007-02-17  Bruno Haible  <bruno@clisp.org>
73011
73012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73013         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73014         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73015         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73016
73017 2007-02-17  Bruno Haible  <bruno@clisp.org>
73018
73019         * modules/link-warning: New file.
73020         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73021         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73022         * modules/string (Depends-on): Add link-warning.
73023         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73024         string.h.
73025         * MODULES.html.sh (Support for building libraries and executables): Add
73026         link-warning.
73027
73028 2007-02-17  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73031         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73032         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73033         long lines.
73034
73035 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73036             Bruno Haible  <bruno@clisp.org>
73037
73038         * modules/tmpfile: New file.
73039         * lib/tmpfile.c: New file.
73040         * m4/tmpfile.m4: New file.
73041         * MODULES.html.sh (func_all_modules): New section "Input/output".
73042
73043 2007-02-15  Bruno Haible  <bruno@clisp.org>
73044
73045         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73046         (supports_delete_on_close): New function.
73047         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73048
73049 2007-02-14  Bruno Haible  <bruno@clisp.org>
73050
73051         * modules/mbspcasecmp-tests: New file.
73052         * tests/test-mbspcasecmp.sh: New file.
73053         * tests/test-mbspcasecmp.c: New file.
73054
73055         New module mbspcasecmp.
73056         * modules/mbspcasecmp: New file.
73057         * lib/mbspcasecmp.c: New file.
73058         * lib/string_.h (strncasecmp): Change warning message.
73059         (mbspcasecmp): New declaration.
73060         * m4/mbspcasecmp.m4: New file.
73061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73062         GNULIB_MBSPCASECMP.
73063         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73064         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73065
73066 2007-02-14  Bruno Haible  <bruno@clisp.org>
73067
73068         * modules/mbsncasecmp-tests: New file.
73069         * tests/test-mbsncasecmp.sh: New file.
73070         * tests/test-mbsncasecmp.c: New file.
73071
73072         New module mbsncasecmp.
73073         * modules/mbsncasecmp: New file.
73074         * lib/mbsncasecmp.c: New file.
73075         * lib/string_.h (mbsncasecmp): New declaration.
73076         * m4/mbsncasecmp.m4: New file.
73077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73078         GNULIB_MBSNCASECMP.
73079         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73080         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73081
73082 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73083
73084         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73085         Verify that it doesn't overlap with our flags.
73086         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73087         do not have the desired effect in multibyte locales; instead, use
73088         mbscasecmp.
73089         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73090         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73091         we don't require GNU fnmatch ourselves (if our users require it, they
73092         should do so explicitly).
73093
73094         Fix regex code so it doesn't rely on strcasecmp.
73095         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73096         Otherwise, include gnulib's langinfo.h.
73097         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73098         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73099         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73100         * modules/regex (FILES): Remove m4/codeset.m4.
73101         (Depends-on): Add localcharset.  Remove strcase.
73102
73103 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73104
73105         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73106         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73107
73108 2007-02-13  Bruno Haible  <bruno@clisp.org>
73109
73110         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73112
73113 2007-02-12  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73116         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73117         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73118         time warning rather than a link error.
73119
73120 2007-02-12  Bruno Haible  <bruno@clisp.org>
73121
73122         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73125
73126 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73129         args, not 2.
73130
73131 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         New module 'time', so that apps can include <time.h> as per
73134         POSIX and GNU instead of separate include files like time_r.h
73135         and timegm.h.  This implementation tries out a simpler approach
73136         for replacing decls in standard include files (as compared to
73137         the string module), somewhat as an experiment.
73138
73139         * config/srclist.txt: Comment out mktime.c for now.
73140         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73141         since it doesn't apply any more.  Use generic wording instead.
73142         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73143         'time'.
73144         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73145         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73146         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73147         Don't include <sys/types.h>; no longer needed since we assume C89.
73148         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73149         * lib/strftime.c: Likewise.
73150         * lib/time_r.c: Likewise.
73151         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73152         * lib/nanosleep.c: Include <time.h> first, to check interface.
73153         * lib/strptime.c: Likewise.
73154         * lib/time_r.c: Likewise.
73155         * lib/timegm.c: Likewise.
73156         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73157         needed.
73158         * lib/timegm.c: Don't include timegm.h; no longer needed.
73159         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73160         time.h now handles any problems in that area.
73161         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73162         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73163         that time.h defines struct timespec.
73164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73165         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73166         handles that.
73167         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73168         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73169         needed.  Set REPLACE_LOCALTIME.
73170         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73171         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73172         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73173         nanosleep; time_h.m4 now does that.  Don't require
73174         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73175         module handles this now.
73176         * modules/getdate (Depends-on): Remove timespec.  Add time.
73177         * modules/nanosleep (Depends-on): Likewise.
73178         * modules/stat-time (Depends-on): Likewise.
73179         * modules/nanosleep (Include): Include time.h, not timespec.h.
73180         * modules/strptime (Files): Remove lib/strptime.h.
73181         (Depends-on): Add extensions, time.
73182         (Include): Include time.h, not strptime.h.
73183         * modules/time_r (Files): Remove lib/time_r.h.
73184         (Depends-on): Add time.
73185         (Include): Include time.h, not time_r.h.
73186         * modules/timegm: Likewise.
73187         * modules/timespec (Description): Now does timespec-related decls
73188         of our own, instead of struct timespec itself.
73189         (Depends-on): Add time; remove extensions.
73190         (Maintainer): Add self.
73191         * modules/utimecmp (Depends-on): Add time; remove timespec.
73192         * modules/utimens (Depends-on): Likewise.
73193         * modules/xnanosleep (Depends-on): Likewise.
73194
73195 2007-02-11  Bruno Haible  <bruno@clisp.org>
73196
73197         * lib/c-strstr.c: Include allocsa.h.
73198         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73199         * lib/c-strcasestr.c: Include allocsa.h.
73200         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73201         * lib/strcasestr.c: Include allocsa.h.
73202         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73203         * lib/mbsstr.c: Include allocsa.h.
73204         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73205         allocsa/freesa instead of malloc/free.
73206         * lib/mbscasestr.c: Include allocsa.h.
73207         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73208         allocsa/freesa instead of malloc/free.
73209         * modules/c-strstr (Depends-on): Add allocsa.
73210         * modules/c-strcasestr (Depends-on): Likewise.
73211         * modules/strcasestr (Depends-on): Likewise.
73212         * modules/mbsstr (Depends-on): Likewise.
73213         * modules/mbscasestr (Depends-on): Likewise.
73214
73215 2007-02-11  Bruno Haible  <bruno@clisp.org>
73216
73217         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73218
73219         * modules/mbsspn-tests: New file.
73220         * tests/test-mbsspn.sh: New file.
73221         * tests/test-mbsspn.c: New file.
73222
73223 2007-02-11  Bruno Haible  <bruno@clisp.org>
73224
73225         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73226
73227         * modules/mbspbrk-tests: New file.
73228         * tests/test-mbspbrk.sh: New file.
73229         * tests/test-mbspbrk.c: New file.
73230
73231 2007-02-11  Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73234         unneeded cast.
73235
73236         * modules/mbscspn-tests: New file.
73237         * tests/test-mbscspn.sh: New file.
73238         * tests/test-mbscspn.c: New file.
73239
73240 2007-02-11  Bruno Haible  <bruno@clisp.org>
73241
73242         * modules/mbscasecmp-tests: New file.
73243         * tests/test-mbscasecmp.sh: New file.
73244         * tests/test-mbscasecmp.c: New file.
73245
73246 2007-02-11  Bruno Haible  <bruno@clisp.org>
73247
73248         Ensure O(n) worst-case complexity of mbscasestr.
73249         * lib/mbscasestr.c: Include stdbool.h.
73250         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73251         functions.
73252         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73253         the bookkeeping indicates that it's worth it.
73254         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73255
73256         * modules/mbscasestr-tests: New file.
73257         * tests/test-mbscasestr1.c: New file.
73258         * tests/test-mbscasestr2.sh: New file.
73259         * tests/test-mbscasestr2.c: New file.
73260         * tests/test-mbscasestr3.sh: New file.
73261         * tests/test-mbscasestr3.c: New file.
73262         * tests/test-mbscasestr4.sh: New file.
73263         * tests/test-mbscasestr4.c: New file.
73264         * m4/locale-tr.m4: New file.
73265
73266 2007-02-11  Bruno Haible  <bruno@clisp.org>
73267
73268         Ensure O(n) worst-case complexity of mbsstr.
73269         * lib/mbsstr.c: Include stdbool.h.
73270         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73271         functions.
73272         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73273         bookkeeping indicates that it's worth it.
73274         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73275
73276         * modules/mbsstr-tests: New file.
73277         * tests/test-mbsstr1.c: New file.
73278         * tests/test-mbsstr2.sh: New file.
73279         * tests/test-mbsstr2.c: New file.
73280         * tests/test-mbsstr3.sh: New file.
73281         * tests/test-mbsstr3.c: New file.
73282         * m4/locale-fr.m4: New file.
73283
73284 2007-02-11  Bruno Haible  <bruno@clisp.org>
73285
73286         * lib/mbsrchr.c (mbsrchr): Fix bug.
73287
73288         * modules/mbsrchr-tests: New file.
73289         * tests/test-mbsrchr.sh: New file.
73290         * tests/test-mbsrchr.c: New file.
73291
73292 2007-02-11  Bruno Haible  <bruno@clisp.org>
73293
73294         * lib/mbschr.c (mbschr): Fix bug.
73295
73296         * modules/mbschr-tests: New file.
73297         * tests/test-mbschr.sh: New file.
73298         * tests/test-mbschr.c: New file.
73299         * m4/locale-zh.m4: New file.
73300
73301 2007-02-11  Bruno Haible  <bruno@clisp.org>
73302
73303         Support for copying multibyte string iterators.
73304         * lib/mbiter.h: Include <string.h>.
73305         (mbiter_multi_copy): New function.
73306         (mbi_copy): New macro.
73307         * lib/mbuiter.h: Include <string.h>.
73308         (mbuiter_multi_copy): New function.
73309         (mbui_copy): New macro.
73310
73311 2007-02-11  Bruno Haible  <bruno@clisp.org>
73312
73313         New module mbslen.
73314         * modules/mbslen: New file.
73315         * lib/mbslen.c: New file.
73316         * lib/string_.h (mbslen): New declaration.
73317         * m4/mbslen.m4: New file.
73318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73319         GNULIB_MBSLEN.
73320         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73321         * MODULES.html.sh (Internationalization functions): Add mbslen.
73322
73323 2007-02-11  Bruno Haible  <bruno@clisp.org>
73324
73325         Ensure O(n) worst-case complexity of strcasestr substitute.
73326         * lib/strcasestr.c: Include stdbool.h.
73327         (knuth_morris_pratt): New function.
73328         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73329         bookkeeping indicates that it's worth it.
73330         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73331
73332         * modules/strcasestr-tests: New file.
73333         * tests/test-strcasestr.c: New file.
73334
73335 2007-02-11  Bruno Haible  <bruno@clisp.org>
73336
73337         Ensure O(n) worst-case complexity of c_strcasestr.
73338         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73339         (knuth_morris_pratt): New function.
73340         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73341         the bookkeeping indicates that it's worth it.
73342         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73343
73344         * modules/c-strcasestr-tests: New file.
73345         * tests/test-c-strcasestr.c: New file.
73346
73347 2007-02-11  Bruno Haible  <bruno@clisp.org>
73348
73349         Ensure O(n) worst-case complexity of c_strstr.
73350         * lib/c-strstr.c: Include stdbool.h, string.h.
73351         (knuth_morris_pratt): New function.
73352         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73353         bookkeeping indicates that it's worth it.
73354         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73355
73356         * lib/c-strstr.c: Complete rewrite for maintainability.
73357
73358         * modules/c-strstr-tests: New file.
73359         * tests/test-c-strstr.c: New file.
73360
73361 2007-02-11  Bruno Haible  <bruno@clisp.org>
73362
73363         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73364         5.2.1 and earlier, whereby \055 was treated just like the range
73365         delimiter '-'.
73366         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73367
73368 2007-02-08  Bruno Haible  <bruno@clisp.org>
73369
73370         * modules/regex (Depends-on): Add stdbool.
73371         Reported by Dalibor Topic <robilad@kaffe.org>.
73372
73373 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73376         Prefer returning from main to exiting from it.
73377         Remove unnecessary parens after sizeof.
73378
73379 2007-02-05  Bruno Haible  <bruno@clisp.org>
73380
73381         New module mbssep.
73382         * modules/mbssep: New file.
73383         * lib/mbssep.c: New file.
73384         * lib/string_.h (strsep): Add a conditional link warning.
73385         (mbssep): New declaration.
73386         * m4/mbssep.m4: New file.
73387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73388         GNULIB_MBSSEP.
73389         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73390         * MODULES.html.sh (Internationalization functions): Add mbssep.
73391
73392 2007-02-05  Bruno Haible  <bruno@clisp.org>
73393
73394         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73395         Optimize search in case of 1 delimiter.
73396
73397 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73398
73399         * lib/acl.h: Include sys/types.h before sys/acl.h.
73400
73401 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73402
73403         Merge upstream fix for glibc bugzilla #3957:
73404
73405         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73406
73407         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73408         bit for RE_HAT_LISTS_NOT_NEWLINE.
73409         (build_charclass_op): Remove bogus comment.
73410
73411 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73412
73413         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73414
73415 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73418         * lib/memmem.c [!defined _LIBC]: Include config.h.
73419
73420 2007-02-04  Bruno Haible  <bruno@clisp.org>
73421
73422         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73423         warning message.
73424
73425 2007-02-04  Bruno Haible  <bruno@clisp.org>
73426
73427         New module mbstok_r.
73428         * modules/mbstok_r: New file.
73429         * lib/mbstok_r.c: New file.
73430         * lib/string_.h (strtok_r): Change argument names to match the
73431         comments. Add a conditional link warning.
73432         (mbstok_r): New declaration.
73433         * m4/mbstok_r.m4: New file.
73434         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73435         GNULIB_MBSTOK_R.
73436         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73437         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73438
73439 2007-02-04  Bruno Haible  <bruno@clisp.org>
73440
73441         New module mbsspn.
73442         * modules/mbsspn: New file.
73443         * lib/mbsspn.c: New file.
73444         * lib/string_.h (strspn): Add a conditional link warning.
73445         (mbsspn): New declaration.
73446         * m4/mbsspn.m4: New file.
73447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73448         GNULIB_MBSSPN.
73449         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73450         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73451
73452 2007-02-04  Bruno Haible  <bruno@clisp.org>
73453
73454         New module mbspbrk.
73455         * modules/mbspbrk: New file.
73456         * lib/mbspbrk.c: New file.
73457         * lib/string_.h (strpbrk): Add a conditional link warning.
73458         (mbspbrk): New declaration.
73459         * m4/mbspbrk.m4: New file.
73460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73461         GNULIB_MBSPBRK.
73462         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73463         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73464
73465 2007-02-04  Bruno Haible  <bruno@clisp.org>
73466
73467         New module mbscspn.
73468         * modules/mbscspn: New file.
73469         * lib/mbscspn.c: New file.
73470         * lib/string_.h (strcspn): Add a conditional link warning.
73471         (mbscspn): New declaration.
73472         * m4/mbscspn.m4: New file.
73473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73474         GNULIB_MBSCSPN.
73475         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73476         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73477
73478 2007-02-04  Bruno Haible  <bruno@clisp.org>
73479
73480         New module mbscasestr, reduced goal of strcasestr.
73481         * modules/mbscasestr: New file.
73482         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73483         (mbscasestr): Renamed from strcasestr.
73484         * lib/strcasestr.c: Don't include mbuiter.h.
73485         (strcasestr): Remove support for multibyte locales.
73486         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73487         Change the conditional link warning.
73488         (mbscasestr): New declaration.
73489         * m4/mbscasestr.m4: New file.
73490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73491         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73492         REPLACE_STRCASESTR.
73493         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73495         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73496         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73497         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73498         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73499         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73500         (Depends-on): Remove mbuiter.
73501         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73502
73503 2007-02-04  Bruno Haible  <bruno@clisp.org>
73504
73505         Simplify handling of strncasecmp.
73506         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73507         the conditional link warning.
73508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73509         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73510         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73511         * modules/strcase (configure.ac): Don't invoke
73512         gl_STRING_MODULE_INDICATOR.
73513         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73514
73515 2007-02-04  Bruno Haible  <bruno@clisp.org>
73516
73517         New module mbscasecmp, reduced goal of strcasecmp.
73518         * modules/mbscasecmp: New file.
73519         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73520         (mbscasecmp): Renamed from strcasecmp.
73521         * lib/strcasecmp.c: Don't include mbuiter.h.
73522         (strcasecmp): Remove support for multibyte locales.
73523         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73524         Change the conditional link warning.
73525         (mbscasecmp): New declaration.
73526         * m4/mbscasecmp.m4: New file.
73527         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73528         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73529         REPLACE_STRCASECMP.
73530         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73532         GNULIB_MBSCASECMP.
73533         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73534         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73535         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73536         (Depends-on): Remove mbuiter.
73537         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73538
73539 2007-02-04  Bruno Haible  <bruno@clisp.org>
73540
73541         New module mbsstr. Remove module strstr.
73542         * modules/mbsstr: New file.
73543         * modules/strstr: Remove file.
73544         * lib/mbsstr.c: Renamed from lib/strstr.c.
73545         (mbsstr): Renamed from strstr.
73546         * lib/string_.h (strstr): Remove declaration. Change the conditional
73547         link warning.
73548         (mbsstr): New declaration.
73549         * m4/mbsstr.m4: New file.
73550         * m4/strstr.m4: Remove file.
73551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73552         REPLACE_STRSTR.
73553         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73554         Don't initialize GNULIB_STRSTR.
73555         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73556         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73557         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73558         (Support for systems lacking ANSI C 89): Remove strstr.
73559
73560 2007-02-04  Bruno Haible  <bruno@clisp.org>
73561
73562         New module mbsrchr.
73563         * modules/mbsrchr: New file.
73564         * lib/mbsrchr.c: New file.
73565         * lib/string_.h (strrchr): Add a conditional link warning.
73566         (mbsrchr): New declaration.
73567         * m4/mbsrchr.m4: New file.
73568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73569         GNULIB_MBSRCHR.
73570         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73571         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73572
73573 2007-02-04  Bruno Haible  <bruno@clisp.org>
73574
73575         New module mbschr.
73576         * modules/mbschr: New file.
73577         * lib/mbschr.c: New file.
73578         * lib/string_.h (strchr): Add a conditional link warning.
73579         (mbschr): New declaration.
73580         * m4/mbschr.m4: New file.
73581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73582         GNULIB_MBSCHR.
73583         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73584         * MODULES.html.sh (Internationalization functions): Add mbschr.
73585
73586 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73587
73588         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73589
73590         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73591
73592 2007-02-04  Bruno Haible  <bruno@clisp.org>
73593
73594         New module description section 'configure.ac-early'.
73595         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73596         (func_get_autoconf_early_snippet): New function.
73597         (func_import, func_create_testdir): Use it. Remove special cases for
73598         modules 'extensions' and 'lock'.
73599         * modules/extensions (configure.ac-early): Require
73600         gl_USE_SYSTEM_EXTENSIONS.
73601         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73602
73603 2007-02-04  Bruno Haible  <bruno@clisp.org>
73604
73605         Make use of gcj-4.3's -fsource and -ftarget option.
73606         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73607         and if so try the options -fsource and -ftarget.
73608         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73609         source_version, ftarget_option, target_version arguments.
73610         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73611         (is_envjavac_oldgcj_14_14_usable): Renamed from
73612         is_envjavac_gcj_14_14_usable.
73613         (is_envjavac_oldgcj_14_13_usable): Renamed from
73614         is_envjavac_gcj_14_13_usable.
73615         (is_gcj_present): Update.
73616         (is_gcj_43, is_gcj43_usable): New functions.
73617         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73618         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73619         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73620         try the options -fsource and -ftarget.
73621
73622 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73625         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73626         larger value.
73627
73628 2007-02-03  Jim Meyering  <jim@meyering.net>
73629
73630         Give tools a better chance to allocate space for very large buffers.
73631         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73632
73633         Make pwd and readlink work also when run with an unreadable parent dir
73634         on systems with openat support.
73635         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73636         provided getcwd function, even when we have openat support.
73637         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73638
73639 2007-02-02  Bruno Haible  <bruno@clisp.org>
73640
73641         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73642         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73643         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73644         portability problems if one of these functions is only used on specific
73645         platforms.
73646         Reported by Paul Eggert.
73647
73648 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73649
73650         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73651         is causing more trouble than it's curing.
73652         * lib/regex_internal.h (__mempcpy): Remove.
73653         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73654         (and make the code a tad smaller to boot).
73655         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73656
73657 2007-02-02  Jim Meyering  <jim@meyering.net>
73658
73659         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73660         section, not in the Makefile.am: one.
73661
73662 2007-02-02  Eric Blake  <ebb9@byu.net>
73663
73664         * lib/strchrnul.c: Always include config.h first.
73665
73666         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73667         gnulib strstr is not necessary here.
73668
73669 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73670
73671         * m4/socklen.m4: Fix typo.
73672
73673 2007-02-02  Eric Blake  <ebb9@byu.net>
73674
73675         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73676         * modules/netinet_in (Makefile.am): Likewise.
73677
73678 2007-02-01  Bruno Haible  <bruno@clisp.org>
73679
73680         * lib/string_.h (GL_LINK_WARNING): New macro.
73681         (strcasecmp, strstr, strcasestr): If provided by the system,
73682         conditionally define as a macro that leads to a warning instead of to
73683         an error.
73684         (strncasecmp): Conditionally define as a macro that leads to a warning.
73685
73686 2007-02-01  Karl Berry  <karl@gnu.org>
73687
73688         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73689
73690 2007-02-01  Bruno Haible  <bruno@clisp.org>
73691
73692         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73693         renamings.
73694
73695 2007-02-01  Eric Blake  <ebb9@byu.net>
73696
73697         * modules/regex (Depends-on): Revert dependence on mempcpy.
73698         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73699         module's definition of mempcpy.
73700         Reported by Paul Eggert.
73701
73702 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73705         the symbol XYZ before redefining it.  This fixes a problem with
73706         programs that don't use XYZ, when compiled on systems that define
73707         XYZ to something else.
73708
73709 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73712         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73713         writeable to group or other and (2) is intended to have a special
73714         mode bit that is set or cleared.  In such a case, the directory
73715         should be neither group- nor other-writeable until the special
73716         mode bits are right.
73717
73718 2007-01-31  Eric Blake  <ebb9@byu.net>
73719
73720         * modules/mountlist (Depends-on): Add strstr.
73721
73722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73723         bug.
73724         * modules/string (Makefile.am): Remove redundant replacement.
73725         * modules/regex (Depends-on): Add mempcpy.
73726
73727 2007-01-31  Bruno Haible  <bruno@clisp.org>
73728
73729         New module description field 'Link'.
73730         * gnulib-tool (func_usage): Document --extract-link-directive.
73731         (sed_extract_prog): Recognize 'Link' directive.
73732         (func_get_link_directive): New function.
73733         (func_import): Show summary of link directives.
73734         Handle --extract-link-directive option.
73735         * modules/acl (Link): New section.
73736         * modules/clock-time (Link): New section.
73737         * modules/euidaccess (Link): New section.
73738         * modules/gettext (Link): New section.
73739         * modules/iconv (Link): New section.
73740         * modules/lock (Link): New section.
73741         * modules/nanosleep (Link): New section.
73742         * modules/readline (Link): New section.
73743
73744 2007-01-27  Bruno Haible  <bruno@clisp.org>
73745
73746         Enforce the use of gnulib modules for unportable <string.h> functions.
73747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73749         (gl_HEADER_STRING_H_BODY): Require it.
73750         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73751         the symbol XYZ to one that gives a link error.
73752         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73753         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73754         * modules/mempcpy (configure.ac): Likewise.
73755         * modules/memrchr (configure.ac): Likewise.
73756         * modules/stpcpy (configure.ac): Likewise.
73757         * modules/stpncpy (configure.ac): Likewise.
73758         * modules/strcase (configure.ac): Likewise.
73759         * modules/strcasestr (configure.ac): Likewise.
73760         * modules/strchrnul (configure.ac): Likewise.
73761         * modules/strdup (configure.ac): Likewise.
73762         * modules/strndup (configure.ac): Likewise.
73763         * modules/strnlen (configure.ac): Likewise.
73764         * modules/strpbrk (configure.ac): Likewise.
73765         * modules/strsep (configure.ac): Likewise.
73766         * modules/strstr (configure.ac): Likewise.
73767         * modules/strtok_r (configure.ac): Likewise.
73768
73769 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73770
73771         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73772
73773 2007-01-30  Jim Meyering  <jim@meyering.net>
73774
73775         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73776
73777 2007-01-29  Bruno Haible  <bruno@clisp.org>
73778
73779         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73780         * lib/execute.c: Likewise.
73781         * lib/pipe.c: Likewise.
73782         * lib/printf-args.h: Likewise.
73783         * lib/printf-args.c: Likewise.
73784         * lib/printf-parse.c: Likewise.
73785         * lib/vasnprintf.c: Likewise.
73786
73787 2007-01-29  Eric Blake  <ebb9@byu.net>
73788
73789         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73790         declaration.
73791
73792 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * lib/strptime.h (strptime): Use 'restrict' for args where
73795         POSIX requires this.
73796         * lib/strptime.c (strptime): Likewise.
73797         Change license notice from LGPL to GPL, since gnulib-tool will
73798         change this as needed.
73799         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73800         defined.
73801         Include "strptime.h" first, to check interface.
73802         Do not #undef _LIBC and _NL_CURRENT.
73803         Do not include <stdlib.h>; no longer needed.
73804         Include "time_r.h" and declare ptime_locale_status
73805         only if _LIBC is not defined.
73806         (__P): Remove unused macro.
73807         (match_string): Bring back glibc version, but use it only if _LIBC
73808         is defined.
73809         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73810         Remove unnecessary assertion and abort() call.
73811         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73812         * m4/strptime.m4: Fix serial number comment.
73813         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73814         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73815         (Depends-on): Add time_r.
73816
73817 2007-01-29  Bruno Haible  <bruno@clisp.org>
73818
73819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73820         strptime.
73821         * modules/strptime (Depends-on): Add stdbool.
73822         * lib/strptime.h: Include <time.h> always. Add comments.
73823
73824 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73825
73826         * modules/strptime: New file.
73827         * lib/strptime.h: New file.
73828         * lib/strptime.c: New file.
73829         * m4/strptime.m4: New file.
73830
73831 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * MODULES.html.sh: New module mpsort.
73834         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73835
73836         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73837         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73839         All uses changed.
73840         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73841         All uses changed.
73842         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73843         to _Restrict_.
73844         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73845         the parameter matches the prototype.
73846
73847 2007-01-28  Jim Meyering  <jim@meyering.net>
73848
73849         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73850         sys/time.h here, reverting that part of the previous patch:
73851         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73852
73853 2007-01-28  Bruno Haible  <bruno@clisp.org>
73854
73855         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73856         value of $(SYS_TIME_H).
73857         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73858         remove it conditionally, too. [added by Jim Meyering]
73859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73861         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73862         GETTIMEOFDAY_REPLACEMENT to 1.
73863
73864 2007-01-28  Bruno Haible  <bruno@clisp.org>
73865
73866         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73867         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73869         Set UNISTD_H instead of UNISTD_H2.
73870         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73871
73872 2007-01-28  Bruno Haible  <bruno@clisp.org>
73873
73874         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73875         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73876
73877 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73878
73879         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73880         (func_create_testdir): Ensure C locale for `grep' and `tr'
73881         character ranges.
73882         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73883         ACLOCAL_AMFLAGS parsing state machine.
73884
73885 2007-01-27  Bruno Haible  <bruno@clisp.org>
73886
73887         * modules/unistr/base: Update.
73888
73889 2007-01-27  Bruno Haible  <bruno@clisp.org>
73890
73891         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73892         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73893         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73894         modules/unistr/u32-mbtouc.
73895         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73896         * lib/unistr.h: Update.
73897         * lib/linebreak.c: Update.
73898         * modules/unistr/u32-mbtouc: Renamed from
73899         modules/unistr/u32-mbtouc-safe.
73900         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73901         * lib/unistr.h: Update.
73902         * lib/unistr/u32-to-u8.c: Update.
73903         * lib/unistr/u32-to-u16.c: Update.
73904
73905 2007-01-27  Bruno Haible  <bruno@clisp.org>
73906
73907         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73908         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73909         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73910         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73911         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73912         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73913         modules/unistr/u16-mbtouc.
73914         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73915         * lib/unistr.h: Update.
73916         * lib/linebreak.c: Update.
73917         * modules/linebreak: Update.
73918         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73919         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73920         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73921         * modules/unistr/u16-mbtouc: Renamed from
73922         modules/unistr/u16-mbtouc-safe.
73923         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73924         * lib/unistr.h: Update.
73925         * lib/unistr/u16-to-u8.c: Update.
73926         * modules/unistr/u16-to-u8: Update.
73927         * lib/unistr/u16-to-u32.c: Update.
73928         * modules/unistr/u16-to-u32: Update.
73929
73930 2007-01-27  Bruno Haible  <bruno@clisp.org>
73931
73932         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73933         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73934         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73935         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73936         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73937         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73938         modules/unistr/u8-mbtouc.
73939         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73940         * lib/unistr.h: Update.
73941         * lib/striconveh.c: Update.
73942         * modules/striconveh: Update.
73943         * lib/linebreak.c: Update.
73944         * modules/linebreak: Update.
73945         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73946         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73947         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73948         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73949         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73950         * lib/unistr.h: Update.
73951         * lib/striconveh.c: Update.
73952         * modules/striconveh: Update.
73953         * lib/unistr/u8-to-u16.c: Update.
73954         * modules/unistr/u8-to-u16: Update.
73955         * lib/unistr/u8-to-u32.c: Update.
73956         * modules/unistr/u8-to-u32: Update.
73957
73958 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73959
73960         Sync from Libtool.
73961         * lib/argz.c: Do not include strings.h nor memory.h, include
73962         string.h unconditionally.  Patch by Simon Josefsson.
73963
73964 2007-01-27  Bruno Haible  <bruno@clisp.org>
73965
73966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73967         from gl_HEADER_STRING_H_BODY.
73968         (gl_HEADER_STRING_H_BODY): Require it.
73969         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73970         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73971         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73972         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73974         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73977         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73980         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73981         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73982         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73983         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73984
73985 2007-01-27  Bruno Haible  <bruno@clisp.org>
73986
73987         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73988         check_PROGRAMS into noinst_PROGRAMS.
73989         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73990         check_PROGRAMS in this case.
73991         (func_import): Set for_test to false.
73992         (func_create_testdir): Set for_test to true.
73993
73994 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73995             Bruno Haible  <bruno@clisp.org>
73996
73997         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73998         (Depends-on): Add string.
73999         (Includes): Use <string.h> instead of strcasestr.h.
74000         * modules/string (Makefile.am): Also substitute the value of
74001         REPLACE_STRCASESTR.
74002         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74003         assume strcasestr is declared in <string.h> not <strings.h>. Also
74004         set REPLACE_STRCASESTR.
74005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74006         REPLACE_STRCASESTR.
74007         * lib/strcasestr.h: Remove file.
74008         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74009         * lib/string_.h (strcasestr): New declaration.
74010
74011 2007-01-27  Bruno Haible  <bruno@clisp.org>
74012
74013         * lib/string_.h: Use 'extern'.
74014
74015 2007-01-27  Jim Meyering  <jim@meyering.net>
74016
74017         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74018         of set-but-not-used local, "q".
74019
74020         * lib/mempcpy.c: Include <config.h> before <string.h>.
74021         This fixes a compilation error on HP-UX, due to the system's
74022         "restrict"-using mempcpy prototype.
74023
74024 2007-01-26  Bruno Haible  <bruno@clisp.org>
74025
74026         Small optimization.
74027         * lib/javacomp.c: Include c-strstr.h.
74028          (is_envjavac_gcj): Use c_strstr instead of strstr.
74029         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74030
74031 2007-01-26  Bruno Haible  <bruno@clisp.org>
74032
74033         * MODULES.html.sh (Unicode string functions): Add the new modules.
74034
74035         * modules/uniconv/u32-strconv-to-locale: New file.
74036         * lib/uniconv/u32-strconv-to-locale.c: New file.
74037
74038         * modules/uniconv/u16-strconv-to-locale: New file.
74039         * lib/uniconv/u16-strconv-to-locale.c: New file.
74040
74041         * modules/uniconv/u8-strconv-to-locale: New file.
74042         * lib/uniconv/u8-strconv-to-locale.c: New file.
74043
74044         * modules/uniconv/u32-strconv-from-locale: New file.
74045         * lib/uniconv/u32-strconv-from-locale.c: New file.
74046
74047         * modules/uniconv/u16-strconv-from-locale: New file.
74048         * lib/uniconv/u16-strconv-from-locale.c: New file.
74049
74050         * modules/uniconv/u8-strconv-from-locale: New file.
74051         * lib/uniconv/u8-strconv-from-locale.c: New file.
74052
74053         * modules/uniconv/u32-strconv-to-enc: New file.
74054         * lib/uniconv/u32-strconv-to-enc.c: New file.
74055         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74056         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74057
74058         * modules/uniconv/u16-strconv-to-enc: New file.
74059         * lib/uniconv/u16-strconv-to-enc.c: New file.
74060         * lib/uniconv/u-strconv-to-enc.h: New file.
74061         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74062         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74063
74064         * modules/uniconv/u8-strconv-to-enc: New file.
74065         * lib/uniconv/u8-strconv-to-enc.c: New file.
74066         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74067         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74068
74069         * modules/uniconv/u32-strconv-from-enc: New file.
74070         * lib/uniconv/u32-strconv-from-enc.c: New file.
74071         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74072         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74073
74074         * modules/uniconv/u16-strconv-from-enc: New file.
74075         * lib/uniconv/u16-strconv-from-enc.c: New file.
74076         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74077         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74078
74079         * modules/uniconv/u8-strconv-from-enc: New file.
74080         * lib/uniconv/u8-strconv-from-enc.c: New file.
74081         * lib/uniconv/u-strconv-from-enc.h: New file.
74082         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74083         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74084
74085         * modules/uniconv/u32-conv-from-enc: New file.
74086         * lib/uniconv/u32-conv-from-enc.c: New file.
74087         * modules/uniconv/u32-conv-from-enc-tests: New file.
74088         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74089
74090         * modules/uniconv/u16-conv-from-enc: New file.
74091         * lib/uniconv/u16-conv-from-enc.c: New file.
74092         * lib/uniconv/u-conv-from-enc.h: New file.
74093         * modules/uniconv/u16-conv-from-enc-tests: New file.
74094         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74095
74096         * modules/uniconv/u8-conv-from-enc: New file.
74097         * lib/uniconv/u8-conv-from-enc.c: New file.
74098         * modules/uniconv/u8-conv-from-enc-tests: New file.
74099         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74100
74101         * modules/uniconv/base: New file.
74102         * lib/uniconv.h: New file.
74103
74104 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * doc/gnulib-tool.texi (Initial import): Update to match current
74107         behavior with strdup module.
74108         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74109         * lib/memmem.h: Remove; all uses removed.  This is now done
74110         by <string.h>.
74111         * lib/mempcpy.h: Likewise.
74112         * lib/memrchr.h: Likewise.
74113         * lib/stpcpy.h: Likewise.
74114         * lib/stpncpy.h: Likewise.
74115         * lib/strcase.h: Likewise.
74116         * lib/strchrnul.h: Likewise.
74117         * lib/strdup.h: Likewise.
74118         * lib/strndup.h: Likewise.
74119         * lib/strnlen.h: Likewise.
74120         * lib/strpbrk.h: Likewise.
74121         * lib/strsep.h: Likewise.
74122         * lib/strstr.h: Likewise.
74123         * lib/strtok_r.h: Likewise.
74124         * lib/string_.h: New file.
74125         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74126         Rely on <string.h> instead.
74127         * lib/canon-host.c: Likewise.
74128         * lib/chdir-long.c: Likewise.
74129         * lib/concatpath.c: Likewise.
74130         * lib/exclude.c: Likewise.
74131         * lib/fchdir.c: Likewise.
74132         * lib/getaddrinfo.c: Likewise.
74133         * lib/getcwd.c: Likewise.
74134         * lib/getsubopt.c: Likewise.
74135         * lib/glob.c: Likewise.
74136         * lib/hard-locale.c: Likewise.
74137         * lib/iconvme.c: Likewise.
74138         * lib/javacomp.c: Likewise.
74139         * lib/mempcpy.c: Likewise.
74140         * lib/memrchr.c: Likewise.
74141         * lib/regex_internal.h: Likewise.
74142         * lib/stpncpy.c: Likewise.
74143         * lib/strcasecmp.c: Likewise.
74144         * lib/strchrnul.c: Likewise.
74145         * lib/strdup.c: Likewise.
74146         * lib/striconv.c: Likewise.
74147         * lib/striconveh.c: Likewise.
74148         * lib/striconveha.c: Likewise.
74149         * lib/strncasecmp.c: Likewise.
74150         * lib/strndup.c: Likewise.
74151         * lib/strnlen.c: Likewise.
74152         * lib/strsep.c: Likewise.
74153         * lib/strstr.c: Likewise.
74154         * lib/strtok_r.c: Likewise.
74155         * lib/userspec.c: Likewise.
74156         * lib/w32spawn.h: Likewise.
74157         * lib/xstrndup.c: Likewise.
74158         * lib/mountlist.c (strstr): Remove decl.
74159         * m4/string_h.m4: New file.
74160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74163         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74164         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74165         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74166         Set REPLACE_STRCASECMP if necessary.
74167         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74168         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74169         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74171         HAVE_DECL_STRDUP if necessary.
74172         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74173         since gl_FUNC_STRNDUP does that now.
74174         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74175         Check for decl here...
74176         (gl_PREREQ_STRNLEN): ... not here.
74177         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74178         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74179         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74180         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74181         necessary.
74182         * modules/string: New file.
74183         * modules/memmem (Files): Remove special-purpose include file.
74184         (Depends-on): Add string.
74185         (Include): Include <string.h>, not the removed file.
74186         * modules/mempcpy: Likewise.
74187         * modules/memrchr: Likewise.
74188         * modules/stpcpy: Likewise.
74189         * modules/stpncpy: Likewise.
74190         * modules/strcase: Likewise.
74191         * modules/strchrnul: Likewise.
74192         * modules/strdup: Likewise.
74193         * modules/strndup: Likewise.
74194         * modules/strnlen: Likewise.
74195         * modules/strpbrk: Likewise.
74196         * modules/strsep: Likewise.
74197         * modules/strstr: Likewise.
74198         * modules/strtok_r: Likewise.
74199         * tests/test-dirname.c: Don't include "strdup.h", since
74200         <string.h> now suffices.
74201         * tests/test-memmem.c: Don't include "memmem.h", since
74202         <string.h> now suffices.
74203
74204 2007-01-25  Bruno Haible  <bruno@clisp.org>
74205
74206         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74207         *resultp is 0.
74208
74209         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74210         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74211         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74212         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74213
74214         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74215         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74216         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74217         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74218         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74219         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74220
74221 2007-01-24  Bruno Haible  <bruno@clisp.org>
74222
74223         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74224         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74225         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74226         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74227         gl_FUNC_FTS_CORE.
74228         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74229         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74230         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74231         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74232         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74233         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74234         gl_FUNC_FCHOWNAT.
74235         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74236         gl_FUNC_STRFTIME.
74237         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74238         Reported by Ralf Wildenhues.
74239
74240 2007-01-24  Bruno Haible  <bruno@clisp.org>
74241
74242         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74243         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74244         gl_GETADDRINFO.
74245         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74246         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74247         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74248
74249 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74252         Don't use 'exit'; just return from 'main'.
74253         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74254
74255         * lib/fnmatch_.h: Readjust white space and comments to match
74256         glibc, to avoid spurious diffs.
74257
74258 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74259
74260         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74261         2004-12-01 change by Jakub Jelinek, since this code won't compile
74262         if !LIBC.  Problem reported by Bob Proulx.
74263
74264 2007-01-23  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/striconveh.c: Include c-strcaseeq.h.
74267         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74268         * modules/striconveh (Depends-on): Add c-strcaseeq.
74269
74270 2007-01-23  Bruno Haible  <bruno@clisp.org>
74271
74272         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74273
74274         * modules/c-strcaseeq: New file.
74275         * lib/c-strcaseeq.h: New file.
74276
74277         * modules/streq: New file.
74278         * lib/streq.h: New file.
74279
74280 2007-01-23  Bruno Haible  <bruno@clisp.org>
74281
74282         * modules/striconveha-tests: New file.
74283         * tests/test-striconveha.c: New file.
74284
74285         * lib/striconveha.h: Include <stdbool.h>.
74286         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74287         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74288         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74289         (mem_iconveha): New function.
74290         (str_iconveha_notranslit): Renamed from str_iconveha.
74291         (str_iconveha): New function.
74292         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74293         c-strcase.
74294
74295 2007-01-23  Bruno Haible  <bruno@clisp.org>
74296
74297         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74298         encodings without forgiving before trying any encoding with handler.
74299         (str_iconveha): Try all encodings without forgiving before trying any
74300         encoding with handler.
74301
74302 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         Import the following changes from libc.
74305
74306         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74307
74308         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74309
74310         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74311
74312         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74313         normal_bracket label.
74314
74315         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74316
74317         [BZ #361]
74318         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74319         to normal_bracket after fetching the next character.
74320
74321 2007-01-22  Bruno Haible  <bruno@clisp.org>
74322
74323         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74324         argument.
74325         * lib/striconveh.c (iconv_carefully_1): New function.
74326         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74327         argument.
74328         (str_cd_iconveh): Update.
74329         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74330         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74331         * tests/test-striconveh.c (MAGIC): New macro.
74332         (new_offsets): New function.
74333         (main): Test call with and without offsets.
74334
74335 2007-01-22  Bruno Haible  <bruno@clisp.org>
74336
74337         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74338         * modules/sys_select (Makefile.am): Likewise.
74339         * modules/sys_socket (Makefile.am): Likewise.
74340         * modules/sys_time (Makefile.am): Likewise.
74341
74342 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * modules/gettimeofday (License): Change from GPL to LGPL, since
74345         gettimeofday is a library function.
74346
74347 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74348
74349         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74350
74351 2007-01-21  Bruno Haible  <bruno@clisp.org>
74352
74353         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74354
74355 2007-01-21  Bruno Haible  <bruno@clisp.org>
74356
74357         * modules/striconveha: New file.
74358         * lib/striconveha.h: New file.
74359         * lib/striconveha.c: New file.
74360         * MODULES.html.sh (Internationalization functions): Add striconveha.
74361         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74362         string.
74363         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74364
74365 2007-01-21  Bruno Haible  <bruno@clisp.org>
74366
74367         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74368         * lib/striconveh.c (str_iconveh): Likewise.
74369
74370 2007-01-21  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/striconveh.h (mem_iconveh): New declaration.
74373         * lib/striconveh.c (mem_iconveh): New function.
74374         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74375
74376 2007-01-21  Bruno Haible  <bruno@clisp.org>
74377
74378         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74379
74380         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74381         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74382         original result buffer.
74383         (str_cd_iconveh): Update.
74384         * tests/test-striconveh.c (main): Update.
74385
74386         * lib/striconv.h (mem_cd_iconv): Change specification.
74387         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74388         result buffer.
74389         (str_cd_iconv): Update.
74390         * tests/test-striconv.c (main): Update.
74391
74392 2007-01-21  Bruno Haible  <bruno@clisp.org>
74393
74394         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74395
74396 2007-01-20  Jim Meyering  <jim@meyering.net>
74397
74398         * lib/userspec.c (parse_with_separator): If a user or group string
74399         starts with "+", skip the corresponding name-to-ID look-up, since
74400         such a look-up must fail: user and group names may not include "+".
74401
74402 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74403
74404         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74405         since we now assume the sys_time module.
74406         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74407         check for sys/time.h; no longer needed.
74408         * modules/poll (Depends-on): Depend on sys_time.
74409
74410 2007-01-18  Bruno Haible  <bruno@clisp.org>
74411
74412         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74413         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74414
74415         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74416         gettimeofday.
74417
74418         * tests/test-gettimeofday.c: Include <time.h>.
74419         (dummy): Remove variable.
74420
74421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74422         gl_HEADER_SYS_TIME_H.
74423         (gl_HEADER_SYS_TIME_H): New macro.
74424
74425         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74426         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74428         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74429         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74430         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74431         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74432         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74433         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74434         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74435         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74436
74437         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74438         last change; it caused a compilation error when cross-compiling to
74439         Cygwin.
74440
74441 2007-01-18  Jim Meyering  <jim@meyering.net>
74442
74443         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74444         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74445         than the race-prone "test -d sys || mkdir sys".
74446         (configure.ac): Use AC_PROG_MKDIR_P.
74447         * modules/sys_select: Likewise.
74448         * modules/sys_socket: Likewise.
74449         * modules/sys_time: Likewise.
74450
74451 2007-01-18  Eric Blake  <ebb9@byu.net>
74452
74453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74454         replace gettimeofday.
74455         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74456         name, to avoid infinite recursion.
74457
74458 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74461         module sys_time.
74462         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74463         assume timespec.h defines struct timeval.
74464         * lib/settime.c: Likewise.
74465         * lib/utimens.c: Likewise.
74466         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74467         since we now assume the gettimeofday module.
74468         * lib/tempname.c (__gen_tempname): Likewise.
74469         * lib/gettimeofday.h: Remove.
74470         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74471         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74472         Include <time.h>, for 'time()'.
74473         (localtime_buffer_addr): Also use this workaround if
74474         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74475         to simplify the uses.  All uses changed.
74476         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74477         that #undef is inside {}, and 'const' follows type name consistently.
74478         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74479         (gettimeofday): Do not use the maximum possible value for
74480         tv->tv_usec, since that might break usages other than ls.c.
74481         Instead, we'll leave ls.c alone.  This undoes today's patch
74482         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74483         we've never observed the problem but might as well keep the
74484         canary.
74485         * lib/nanosleep.c: Include timespec.h first, for interface check.
74486         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74487         now assume the sys_time module.
74488         * lib/tempname.c: Likewise.
74489         * lib/timespec.h: Likewise.
74490         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74491         needed.
74492         * lib/strftime.c: Likewise.
74493         * lib/timespec.h: Likewise.
74494         * lib/posixtm.c: Include posixtm.h first, for interface check.
74495         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74496         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74497         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74498         * lib/sys_time_.h: New file.
74499         * lib/timespec.h (struct timespec): Use long int, not long.
74500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74501         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74502         Remove obsolescent call to AC_HEADER_TIME.
74503         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74505         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74506         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74507         Likewise.
74508         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74509         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74511         into the sys_time module.  Check for gettimeofday just once.
74512         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74513         for gettimeofday signature to just check the signature.  Merely
74514         compile it, since linking doesn't test signature.  Improve test for
74515         whether gettimeofday.o is actually needed.
74516         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74517         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74518         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74519         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74520         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74521         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74522         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74523         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74524         than worrying about sys/time.h.
74525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74526         Don't bother worrying about TIME_WITH_SYS_TIME.
74527         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74528         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74529         * m4/sys_time_h.m4: New file.
74530         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74531         Don't include sys/time.h.  Return from main rather than exiting.
74532         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74533         all uses changed.
74534         * modules/gethrxtime (Depends-on): Add sys_time.
74535         * modules/gettime (Depends-on): Likewise.
74536         * modules/gettimeofday (Depends-on): Likewise.
74537         * modules/nanosleep (Depends-on): Likewise.
74538         * modules/settime (Depends-on): Likewise.
74539         * modules/tempname (Depends-on): Likewise.
74540         * modules/utimens (Depends-on): Likewise.
74541         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74542         (Include): Change back to <sys/time.h>.
74543         (Maintainer): Add self.
74544         * modules/sys_time: New file.
74545         * modules/tempname (Depends-on): Add gettimeofday.
74546         * tests/test-gettimeofday.c: Include <sys/time.h>
74547         rather than gettimeofday.h.
74548
74549 2007-01-17  Bruno Haible  <bruno@clisp.org>
74550
74551         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74552         the license default to GPL.
74553         (func_create_testdir): Don't complain if a module is LGPL and its
74554         tests module depends on GPLed modules.
74555
74556 2007-01-17  Bruno Haible  <bruno@clisp.org>
74557
74558         * lib/gettimeofday.c (gettimeofday): Add code for the case
74559         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74560         maximum possible value for tv->tv_usec, rather than the minimum one.
74561
74562 2005-10-08  Martin Lambers  <marlam@marlam.de>
74563 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74564 2007-01-16  Bruno Haible  <bruno@clisp.org>
74565
74566         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74567         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74568         gl_FUNC_GETTIMEOFDAY.
74569         (Include): Add gettimeofday.h.
74570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74571         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74572         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74573         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74574         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74575         * lib/gettimeofday.h: New file.
74576         * lib/gettimeofday.c: Include <sys/timeb.h>.
74577         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74578         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74579         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74580         fall back on time().
74581
74582         * tests/test-gettimeofday.c: New file.
74583         * modules/gettimeofday-tests: New file.
74584
74585 2007-01-16  Eric Blake  <ebb9@byu.net>
74586
74587         * modules/fnmatch (Depends-on): Depend on wchar.
74588         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74589         * m4/fnmatch.m4: Likewise.
74590         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74591         * m4/mbchar.m4: Likewise.
74592         * modules/mbswidth (Depends-on): Depend on wchar.
74593         * lib/mbswidth.c: Assume <wchar.h>.
74594         * m4/mbswidth.m4: Likewise.
74595         * modules/quotearg (Depends-on): Depend on wchar.
74596         * lib/quotearg.c: Assume <wchar.h>.
74597         * m4/quotearg.m4: Likewise.
74598         * modules/regex (Depends-on): Depend on wchar.
74599         * lib/regex_internal.h: Assume <wchar.h>.
74600         * m4/regex.m4: Likewise.
74601         * modules/stdint (Depends-on): Depend on wchar.
74602         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74603         * m4/stdint.m4: Likewise.
74604         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74605         * modules/strftime (Depends-on): Depend on wchar.
74606         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74607         * modules/strtol (Depends-on): Depend on wchar.
74608         * lib/strtol.c: Assume <wchar.h>.
74609         * modules/wcwidth (Depends-on): Depend on wchar.
74610         * lib/wcwidth.h: Assume <wchar.h>.
74611         * m4/wcwidth.m4: Likewise.
74612
74613 2007-01-16  Bruno Haible  <bruno@clisp.org>
74614
74615         * modules/csharpexec-script: New, created from...
74616         * modules/csharpexec: ... this.
74617
74618 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74619
74620         * modules/javaexec-script: New, created from...
74621         * modules/javaexec: ... this.
74622
74623 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74624
74625         * modules/poll (Dependencies): Add sys_select.
74626
74627 2007-01-15  Jim Meyering  <jim@meyering.net>
74628
74629         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74630         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74631         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74632         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74633
74634 2007-01-15  Bruno Haible  <bruno@clisp.org>
74635
74636         * modules/striconveh: New file.
74637         * lib/striconveh.h: New file.
74638         * lib/striconveh.c: New file.
74639         * MODULES.html.sh (Internationalization functions): Add striconveh.
74640
74641         * modules/striconveh-tests: New file.
74642         * tests/test-striconveh.c: New file.
74643
74644 2007-01-15  Bruno Haible  <bruno@clisp.org>
74645
74646         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74647         not from GNU libiconv or GNU libc.
74648
74649 2007-01-15  Bruno Haible  <bruno@clisp.org>
74650
74651         * doc/gnulib-intro.texi (Copyright): Explain the different license
74652         terms for module descriptions, autoconf macros, tests, documentation.
74653
74654 2007-01-14  Bruno Haible  <bruno@clisp.org>
74655
74656         * modules/striconv-tests: New file.
74657         * tests/test-striconv.c: New file.
74658
74659 2007-01-14  Bruno Haible  <bruno@clisp.org>
74660
74661         * modules/iconv-tests: New file.
74662         * tests/test-iconv.c: New file.
74663
74664 2007-01-14  Bruno Haible  <bruno@clisp.org>
74665
74666         * gnulib-tool (func_get_license): For test modules, use the license of
74667         the main module.
74668
74669 2007-01-14  Bruno Haible  <bruno@clisp.org>
74670
74671         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74672         if iconv is found to exist.
74673
74674 2007-01-14  Bruno Haible  <bruno@clisp.org>
74675
74676         * modules/c-ctype-tests: New file.
74677         * tests/test-c-ctype.c: New file.
74678
74679 2007-01-14  Bruno Haible  <bruno@clisp.org>
74680
74681         * modules/binary-io-tests: New file.
74682         * tests/test-binary-io.sh: New file.
74683         * tests/test-binary-io.c: New file.
74684
74685 2007-01-14  Bruno Haible  <bruno@clisp.org>
74686
74687         * modules/array-oset-tests: New file.
74688         * tests/test-array_oset.c: New file.
74689
74690 2007-01-14  Bruno Haible  <bruno@clisp.org>
74691
74692         * modules/array-list-tests: New file.
74693         * tests/test-array_list.c: New file.
74694
74695 2007-01-14  Bruno Haible  <bruno@clisp.org>
74696
74697         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74698         and make.
74699         Reported by Simon Josefsson in
74700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74701
74702 2007-01-14  Bruno Haible  <bruno@clisp.org>
74703
74704         * modules/allocsa-tests: New file.
74705         * tests/test-allocsa.c: New file.
74706
74707 2007-01-14  Bruno Haible  <bruno@clisp.org>
74708
74709         * modules/fchdir (Depends-on): Add absolute-header.
74710         * modules/unistd (Depends-on): Likewise.
74711
74712 2006-12-30  Bruno Haible  <bruno@clisp.org>
74713
74714         * modules/fchdir: New file.
74715         * modules/unistd (Files): Add lib/unistd_.h.
74716         (Makefile.am): Generate unistd.h from unistd_.h.
74717         * lib/fchdir.c: New file.
74718         * lib/dirent_.h: New file.
74719         * lib/unistd_.h: New file.
74720         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74721         * m4/fchdir.m4: New file.
74722         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74723         (gl_HEADER_UNISTD): Invoke it.
74724         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74725         function.
74726         * lib/backupfile.c (opendir, closedir): Undefine.
74727         * lib/chown.c (open, close): Undefine.
74728         * lib/clean-temp.c (open, close): Undefine.
74729         * lib/copy-file.c (open, close): Undefine.
74730         * lib/execute.c (open, close): Undefine.
74731         * lib/fsusage.c (open, close): Undefine.
74732         * lib/gc-gnulib.c (open, close): Undefine.
74733         * lib/getcwd.c (opendir, closedir): Undefine.
74734         * lib/glob.c (opendir, closedir): Undefine.
74735         * lib/javacomp.c (open, close): Undefine.
74736         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74737         * lib/openat-proc.c (open, close): Undefine.
74738         * lib/pagealign_alloc.c (open, close): Undefine.
74739         * lib/pipe.c (open, close): Undefine.
74740         * lib/progreloc.c (open, close): Undefine.
74741         * lib/savedir.c (opendir, closedir): Undefine.
74742         * lib/utime.c (open, close): Undefine.
74743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74744
74745 2007-01-10  Bruno Haible  <bruno@clisp.org>
74746
74747         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74748
74749 2007-01-12  Eric Blake  <ebb9@byu.net>
74750
74751         Provide a robust <wchar.h>.  Further simplifications are now
74752         possible in other modules, but not included here.
74753         * modules/wchar: New module.
74754         * m4/wchar.m4: New file.
74755         * lib/wchar_.h: Likewise.
74756         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74757         of the new module.
74758         * MODULES.html.sh (Extended multibyte and wide character utilities):
74759         New section.
74760
74761 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74764         to a reasonable default for memory allocation.
74765         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74766         file system that reports garbage st_size values for symlinks.
74767         Problem reported by Liyang Hu.
74768
74769 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74770
74771         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74772         Emacs .#* auto-save files).
74773
74774 2007-01-11  Bruno Haible  <bruno@clisp.org>
74775
74776         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74777         directory.
74778
74779 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         Use @...@ consistently in lib/wctype_.h.
74782         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74783         on it being set to 1 or 0.
74784         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74785         go back to AC_SUBSTing it.
74786         * modules/wctype (Makefile.am): Undo previous change.
74787
74788 2007-01-10  Eric Blake  <ebb9@byu.net>
74789
74790         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74791         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74792         * modules/wctype (Makefile.am): Likewise.
74793         Reported by Chris McGuire.
74794
74795 2007-01-10  Jim Meyering  <jim@meyering.net>
74796
74797         fts.c: a small readability/maintainability improvement
74798         * lib/fts.c (fts_read): Make this code slightly more readable and
74799         maintainable by hoisting the "sp->fts_cur = p" assignments to
74800         immediately follow the statements that set P.  Derived from
74801         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74802
74803 2007-01-10  Eric Blake  <ebb9@byu.net>
74804
74805         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74806         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74808         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74809         Reported by Chris McGuire.
74810
74811 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74812
74813         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74814         in sed script.
74815
74816 2007-01-09  Bruno Haible  <bruno@clisp.org>
74817
74818         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74819         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74820         variables.
74821         (func_module): Use them.
74822
74823 2007-01-09  Bruno Haible  <bruno@clisp.org>
74824
74825         * modules/unistr/base: New file.
74826         * lib/unistr.h: New file.
74827
74828         * modules/unistr/u8-to-u16: New file.
74829         * lib/unistr/u8-to-u16.c: New file.
74830
74831         * modules/unistr/u8-to-u32: New file.
74832         * lib/unistr/u8-to-u32.c: New file.
74833
74834         * modules/unistr/u16-to-u8: New file.
74835         * lib/unistr/u16-to-u8.c: New file.
74836
74837         * modules/unistr/u16-to-u32: New file.
74838         * lib/unistr/u16-to-u32.c: New file.
74839
74840         * modules/unistr/u32-to-u8: New file.
74841         * lib/unistr/u32-to-u8.c: New file.
74842
74843         * modules/unistr/u32-to-u16: New file.
74844         * lib/unistr/u32-to-u16.c: New file.
74845
74846         * modules/unistr/u8-check: New file.
74847         * modules/unistr/u16-check: New file.
74848         * modules/unistr/u32-check: New file.
74849         * lib/unistr/u8-check.c: New file.
74850         * lib/unistr/u16-check.c: New file.
74851         * lib/unistr/u32-check.c: New file.
74852
74853         * modules/unistr/u8-chr: New file.
74854         * modules/unistr/u16-chr: New file.
74855         * modules/unistr/u32-chr: New file.
74856         * lib/unistr/u8-chr.c: New file.
74857         * lib/unistr/u16-chr.c: New file.
74858         * lib/unistr/u32-chr.c: New file.
74859
74860         * modules/unistr/u8-cmp: New file.
74861         * modules/unistr/u16-cmp: New file.
74862         * modules/unistr/u32-cmp: New file.
74863         * lib/unistr/u8-cmp.c: New file.
74864         * lib/unistr/u16-cmp.c: New file.
74865         * lib/unistr/u32-cmp.c: New file.
74866
74867         * modules/unistr/u8-cpy: New file.
74868         * modules/unistr/u16-cpy: New file.
74869         * modules/unistr/u32-cpy: New file.
74870         * lib/unistr/u8-cpy.c: New file.
74871         * lib/unistr/u16-cpy.c: New file.
74872         * lib/unistr/u32-cpy.c: New file.
74873         * lib/unistr/u-cpy.h: New file.
74874
74875         * modules/unistr/u8-cpy-alloc: New file.
74876         * modules/unistr/u16-cpy-alloc: New file.
74877         * modules/unistr/u32-cpy-alloc: New file.
74878         * lib/unistr/u8-cpy-alloc.c: New file.
74879         * lib/unistr/u16-cpy-alloc.c: New file.
74880         * lib/unistr/u32-cpy-alloc.c: New file.
74881         * lib/unistr/u-cpy-alloc.h: New file.
74882
74883         * modules/unistr/u8-endswith: New file.
74884         * modules/unistr/u16-endswith: New file.
74885         * modules/unistr/u32-endswith: New file.
74886         * lib/unistr/u8-endswith.c: New file.
74887         * lib/unistr/u16-endswith.c: New file.
74888         * lib/unistr/u32-endswith.c: New file.
74889         * lib/unistr/u-endswith.h: New file.
74890
74891         * modules/unistr/u8-mblen: New file.
74892         * modules/unistr/u16-mblen: New file.
74893         * modules/unistr/u32-mblen: New file.
74894         * lib/unistr/u8-mblen.c: New file.
74895         * lib/unistr/u16-mblen.c: New file.
74896         * lib/unistr/u32-mblen.c: New file.
74897
74898         * modules/unistr/u8-mbtouc: New file.
74899         * modules/unistr/u16-mbtouc: New file.
74900         * modules/unistr/u32-mbtouc: New file.
74901         * lib/unistr/u8-mbtouc.c: New file.
74902         * lib/unistr/u16-mbtouc.c: New file.
74903         * lib/unistr/u32-mbtouc.c: New file.
74904
74905         * modules/unistr/u8-mbtouc-safe: New file.
74906         * modules/unistr/u16-mbtouc-safe: New file.
74907         * modules/unistr/u32-mbtouc-safe: New file.
74908         * lib/unistr/u8-mbtouc-safe.c: New file.
74909         * lib/unistr/u16-mbtouc-safe.c: New file.
74910         * lib/unistr/u32-mbtouc-safe.c: New file.
74911
74912         * modules/unistr/u8-move: New file.
74913         * modules/unistr/u16-move: New file.
74914         * modules/unistr/u32-move: New file.
74915         * lib/unistr/u8-move.c: New file.
74916         * lib/unistr/u16-move.c: New file.
74917         * lib/unistr/u32-move.c: New file.
74918         * lib/unistr/u-move.h: New file.
74919
74920         * modules/unistr/u8-next: New file.
74921         * modules/unistr/u16-next: New file.
74922         * modules/unistr/u32-next: New file.
74923         * lib/unistr/u8-next.c: New file.
74924         * lib/unistr/u16-next.c: New file.
74925         * lib/unistr/u32-next.c: New file.
74926
74927         * modules/unistr/u8-prev: New file.
74928         * modules/unistr/u16-prev: New file.
74929         * modules/unistr/u32-prev: New file.
74930         * lib/unistr/u8-prev.c: New file.
74931         * lib/unistr/u16-prev.c: New file.
74932         * lib/unistr/u32-prev.c: New file.
74933
74934         * modules/unistr/u8-set: New file.
74935         * modules/unistr/u16-set: New file.
74936         * modules/unistr/u32-set: New file.
74937         * lib/unistr/u8-set.c: New file.
74938         * lib/unistr/u16-set.c: New file.
74939         * lib/unistr/u32-set.c: New file.
74940         * lib/unistr/u-set.h: New file.
74941
74942         * modules/unistr/u8-startswith: New file.
74943         * modules/unistr/u16-startswith: New file.
74944         * modules/unistr/u32-startswith: New file.
74945         * lib/unistr/u8-startswith.c: New file.
74946         * lib/unistr/u16-startswith.c: New file.
74947         * lib/unistr/u32-startswith.c: New file.
74948         * lib/unistr/u-startswith.h: New file.
74949
74950         * modules/unistr/u8-stpcpy: New file.
74951         * modules/unistr/u16-stpcpy: New file.
74952         * modules/unistr/u32-stpcpy: New file.
74953         * lib/unistr/u8-stpcpy.c: New file.
74954         * lib/unistr/u16-stpcpy.c: New file.
74955         * lib/unistr/u32-stpcpy.c: New file.
74956         * lib/unistr/u-stpcpy.h: New file.
74957
74958         * modules/unistr/u8-stpncpy: New file.
74959         * modules/unistr/u16-stpncpy: New file.
74960         * modules/unistr/u32-stpncpy: New file.
74961         * lib/unistr/u8-stpncpy.c: New file.
74962         * lib/unistr/u16-stpncpy.c: New file.
74963         * lib/unistr/u32-stpncpy.c: New file.
74964         * lib/unistr/u-stpncpy.h: New file.
74965
74966         * modules/unistr/u8-strcat: New file.
74967         * modules/unistr/u16-strcat: New file.
74968         * modules/unistr/u32-strcat: New file.
74969         * lib/unistr/u8-strcat.c: New file.
74970         * lib/unistr/u16-strcat.c: New file.
74971         * lib/unistr/u32-strcat.c: New file.
74972         * lib/unistr/u-strcat.h: New file.
74973
74974         * modules/unistr/u8-strchr: New file.
74975         * modules/unistr/u16-strchr: New file.
74976         * modules/unistr/u32-strchr: New file.
74977         * lib/unistr/u8-strchr.c: New file.
74978         * lib/unistr/u16-strchr.c: New file.
74979         * lib/unistr/u32-strchr.c: New file.
74980
74981         * modules/unistr/u8-strcmp: New file.
74982         * modules/unistr/u16-strcmp: New file.
74983         * modules/unistr/u32-strcmp: New file.
74984         * lib/unistr/u8-strcmp.c: New file.
74985         * lib/unistr/u16-strcmp.c: New file.
74986         * lib/unistr/u32-strcmp.c: New file.
74987
74988         * modules/unistr/u8-strcpy: New file.
74989         * modules/unistr/u16-strcpy: New file.
74990         * modules/unistr/u32-strcpy: New file.
74991         * lib/unistr/u8-strcpy.c: New file.
74992         * lib/unistr/u16-strcpy.c: New file.
74993         * lib/unistr/u32-strcpy.c: New file.
74994         * lib/unistr/u-strcpy.h: New file.
74995
74996         * modules/unistr/u8-strcspn: New file.
74997         * modules/unistr/u16-strcspn: New file.
74998         * modules/unistr/u32-strcspn: New file.
74999         * lib/unistr/u8-strcspn.c: New file.
75000         * lib/unistr/u16-strcspn.c: New file.
75001         * lib/unistr/u32-strcspn.c: New file.
75002         * lib/unistr/u-strcspn.h: New file.
75003
75004         * modules/unistr/u8-strdup: New file.
75005         * modules/unistr/u16-strdup: New file.
75006         * modules/unistr/u32-strdup: New file.
75007         * lib/unistr/u8-strdup.c: New file.
75008         * lib/unistr/u16-strdup.c: New file.
75009         * lib/unistr/u32-strdup.c: New file.
75010         * lib/unistr/u-strdup.h: New file.
75011
75012         * modules/unistr/u8-strlen: New file.
75013         * modules/unistr/u16-strlen: New file.
75014         * modules/unistr/u32-strlen: New file.
75015         * lib/unistr/u8-strlen.c: New file.
75016         * lib/unistr/u16-strlen.c: New file.
75017         * lib/unistr/u32-strlen.c: New file.
75018         * lib/unistr/u-strlen.h: New file.
75019
75020         * modules/unistr/u8-strmblen: New file.
75021         * modules/unistr/u16-strmblen: New file.
75022         * modules/unistr/u32-strmblen: New file.
75023         * lib/unistr/u8-strmblen.c: New file.
75024         * lib/unistr/u16-strmblen.c: New file.
75025         * lib/unistr/u32-strmblen.c: New file.
75026
75027         * modules/unistr/u8-strmbtouc: New file.
75028         * modules/unistr/u16-strmbtouc: New file.
75029         * modules/unistr/u32-strmbtouc: New file.
75030         * lib/unistr/u8-strmbtouc.c: New file.
75031         * lib/unistr/u16-strmbtouc.c: New file.
75032         * lib/unistr/u32-strmbtouc.c: New file.
75033
75034         * modules/unistr/u8-strncat: New file.
75035         * modules/unistr/u16-strncat: New file.
75036         * modules/unistr/u32-strncat: New file.
75037         * lib/unistr/u8-strncat.c: New file.
75038         * lib/unistr/u16-strncat.c: New file.
75039         * lib/unistr/u32-strncat.c: New file.
75040         * lib/unistr/u-strncat.h: New file.
75041
75042         * modules/unistr/u8-strncmp: New file.
75043         * modules/unistr/u16-strncmp: New file.
75044         * modules/unistr/u32-strncmp: New file.
75045         * lib/unistr/u8-strncmp.c: New file.
75046         * lib/unistr/u16-strncmp.c: New file.
75047         * lib/unistr/u32-strncmp.c: New file.
75048
75049         * modules/unistr/u8-strncpy: New file.
75050         * modules/unistr/u16-strncpy: New file.
75051         * modules/unistr/u32-strncpy: New file.
75052         * lib/unistr/u8-strncpy.c: New file.
75053         * lib/unistr/u16-strncpy.c: New file.
75054         * lib/unistr/u32-strncpy.c: New file.
75055         * lib/unistr/u-strncpy.h: New file.
75056
75057         * modules/unistr/u8-strnlen: New file.
75058         * modules/unistr/u16-strnlen: New file.
75059         * modules/unistr/u32-strnlen: New file.
75060         * lib/unistr/u8-strnlen.c: New file.
75061         * lib/unistr/u16-strnlen.c: New file.
75062         * lib/unistr/u32-strnlen.c: New file.
75063         * lib/unistr/u-strnlen.h: New file.
75064
75065         * modules/unistr/u8-strpbrk: New file.
75066         * modules/unistr/u16-strpbrk: New file.
75067         * modules/unistr/u32-strpbrk: New file.
75068         * lib/unistr/u8-strpbrk.c: New file.
75069         * lib/unistr/u16-strpbrk.c: New file.
75070         * lib/unistr/u32-strpbrk.c: New file.
75071         * lib/unistr/u-strpbrk.h: New file.
75072
75073         * modules/unistr/u8-strrchr: New file.
75074         * modules/unistr/u16-strrchr: New file.
75075         * modules/unistr/u32-strrchr: New file.
75076         * lib/unistr/u8-strrchr.c: New file.
75077         * lib/unistr/u16-strrchr.c: New file.
75078         * lib/unistr/u32-strrchr.c: New file.
75079
75080         * modules/unistr/u8-strspn: New file.
75081         * modules/unistr/u16-strspn: New file.
75082         * modules/unistr/u32-strspn: New file.
75083         * lib/unistr/u8-strspn.c: New file.
75084         * lib/unistr/u16-strspn.c: New file.
75085         * lib/unistr/u32-strspn.c: New file.
75086         * lib/unistr/u-strspn.h: New file.
75087
75088         * modules/unistr/u8-strstr: New file.
75089         * modules/unistr/u16-strstr: New file.
75090         * modules/unistr/u32-strstr: New file.
75091         * lib/unistr/u8-strstr.c: New file.
75092         * lib/unistr/u16-strstr.c: New file.
75093         * lib/unistr/u32-strstr.c: New file.
75094         * lib/unistr/u-strstr.h: New file.
75095
75096         * modules/unistr/u8-strtok: New file.
75097         * modules/unistr/u16-strtok: New file.
75098         * modules/unistr/u32-strtok: New file.
75099         * lib/unistr/u8-strtok.c: New file.
75100         * lib/unistr/u16-strtok.c: New file.
75101         * lib/unistr/u32-strtok.c: New file.
75102         * lib/unistr/u-strtok.h: New file.
75103
75104         * modules/unistr/u8-uctomb: New file.
75105         * modules/unistr/u16-uctomb: New file.
75106         * modules/unistr/u32-uctomb: New file.
75107         * lib/unistr/u8-uctomb.c: New file.
75108         * lib/unistr/u16-uctomb.c: New file.
75109         * lib/unistr/u32-uctomb.c: New file.
75110
75111         * MODULES.html.sh (Unicode string functions): Add the new modules.
75112
75113 2007-01-08  Bruno Haible  <bruno@clisp.org>
75114
75115         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75116         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75117         subdirectories.
75118
75119 2007-01-08  Karl Berry  <karl@gnu.org>
75120
75121         * doc/error.texi: mention that main() fns must set program_name
75122         when progname is used.
75123
75124 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75127         WCTYPE_H is empty, for the benefit of builds from non-distclean
75128         directories.  Problem reported by Eric Blake in
75129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75130
75131 2007-01-08  Bruno Haible  <bruno@clisp.org>
75132
75133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75134         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75135         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75136         PROVIDE_CANONICALIZE_FILENAME_MODE.
75137         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75138
75139 2007-01-08  Bruno Haible  <bruno@clisp.org>
75140
75141         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75142         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75143         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75144         * lib/fts.c: Likewise.
75145         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75146
75147 2006-12-25  Bruno Haible  <bruno@clisp.org>
75148
75149         * modules/utf8-ucs4-safe: New file.
75150         * lib/utf8-ucs4-safe.h: New file.
75151         * lib/unistr/utf8-ucs4-safe.c: New file.
75152
75153         * modules/utf16-ucs4-safe: New file.
75154         * lib/utf16-ucs4-safe.h: New file.
75155         * lib/unistr/utf16-ucs4-safe.c: New file.
75156
75157         * MODULES.html.sh (Unicode string functions): Add the new modules.
75158
75159 2007-01-08  Bruno Haible  <bruno@clisp.org>
75160
75161         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75162         (Depends-on): Add unitypes.
75163         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75164         (u8_mbtouc_aux): Move out to separate file.
75165         (u8_mbtouc): Use ucs4_t, uint8_t types.
75166         * lib/unistr/utf8-ucs4.c: New file.
75167
75168         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75169         (Depends-on): Add unitypes.
75170         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75171         (u16_mbtouc_aux): Move out to separate file.
75172         (u16_mbtouc): Use ucs4_t, uint16_t types.
75173         * lib/unistr/utf16-ucs4.c: New file.
75174
75175         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75176         (Depends-on): Add unitypes.
75177         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75178         (u8_uctomb_aux): Move out to separate file.
75179         (u8_uctomb): Use ucs4_t, uint8_t types.
75180         * lib/unistr/ucs4-utf8.c: New file.
75181
75182         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75183         (Depends-on): Add unitypes.
75184         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75185         (u16_uctomb_aux): Move out to separate file.
75186         (u16_uctomb): Use ucs4_t, uint16_t types.
75187         * lib/unistr/ucs4-utf16.c: New file.
75188
75189 2006-12-25  Bruno Haible  <bruno@clisp.org>
75190
75191         * modules/unitypes: New file.
75192         * lib/unitypes.h: New file.
75193         * MODULES.html.sh (func_all_modules): New section "Unicode string
75194         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75195         this section. Add unitypes.
75196
75197 2007-01-08  Bruno Haible  <bruno@clisp.org>
75198
75199         Avoid variable names that conflict with those from libtool.
75200         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75201         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75202         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75203         library_names_spec to acl_library_names_spec, hardcode_* to
75204         acl_hardcode_*.
75205         Reported by Ralf Wildenhues.
75206
75207 2007-01-08  Bruno Haible  <bruno@clisp.org>
75208
75209         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75210         definition.
75211         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75212         definition.
75213         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75214         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75215         definition.
75216         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75217         definition.
75218         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75219         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75220         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75221         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75222         definition.
75223         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75224         definition.
75225         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75226         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75227         GC_USE_<algorithm>.
75228         * lib/gc-libgcrypt.c: Likewise.
75229         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75230         * modules/gc-arctwo (configure.ac): Likewise.
75231         * modules/gc-des (configure.ac): Likewise.
75232         * modules/gc-hmac-md5 (configure.ac): Likewise.
75233         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75234         * modules/gc-md2 (configure.ac): Likewise.
75235         * modules/gc-md4 (configure.ac): Likewise.
75236         * modules/gc-md5 (configure.ac): Likewise.
75237         * modules/gc-random (configure.ac): Likewise.
75238         * modules/gc-rijndael (configure.ac): Likewise.
75239         * modules/gc-sha1 (configure.ac): Likewise.
75240
75241 2007-01-08  Bruno Haible  <bruno@clisp.org>
75242
75243         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75244         macro definition.
75245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75246         definition.
75247         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75248         definition.
75249         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75250         * modules/fcntl-safer (configure.ac): Likewise.
75251         * modules/fopen-safer (configure.ac): Likewise.
75252         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75253         GNULIB_FWRITEERROR macro definition.
75254
75255 2007-01-08  Bruno Haible  <bruno@clisp.org>
75256
75257         * m4/gnulib-common.m4: New file.
75258         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75259         (func_get_filelist): Add m4/gnulib-common.m4.
75260
75261 2007-01-08  Bruno Haible  <bruno@clisp.org>
75262
75263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75264         command.
75265
75266 2007-01-08  Jim Meyering  <jim@meyering.net>
75267
75268         Use a more robust test for a "can't happen" condition.
75269         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75270         narrowed the st_size value.  Presuming the "can't happen" condition
75271         is true, that narrowing could conceivably convert an invalid st_size
75272         value into a valid one.  Instead, use a change based on Matthew
75273         Woehlke's original patch.
75274
75275         Slight readability improvement: use an assert-like macro
75276         in place of literal "abort ()" uses.
75277         * lib/fts.c (fts_assert): Define.
75278         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75279         Use this macro instead of a bare 'abort'.
75280
75281 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75284         simply work around them.
75285         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75286         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75287         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75288         declaring.
75289         Don't bother to define as macros, since the standard doesn't require it.
75290         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75291         longer worry about IRIX 5.3.
75292         (HAVE_WCTYPE_CTMP_BUG): Remove.
75293
75294 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75297         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75298         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75299         Problems reported by Georg Schwarz for IRIX 5.3.
75300
75301         * gnulib-tool (autoconf_minversion): Take the maximum version number
75302         found, not the minimum.  Problem reported by James Youngman.
75303
75304 2007-01-03  Karl Berry  <karl@gnu.org>
75305
75306         * doc/error.texi: new file, explaining interaction with progname.
75307         * doc/gnulib.texi: include it.  Update copyright.
75308
75309 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75310
75311         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75312         AC_CANONICAL_HOST, to improve autobuild outputs.
75313
75314 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75315             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75316
75317         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75318         sockets, server sockets, and other file descriptors.  Count errors
75319         to compute the return value.  Reorder the code a bit to be easier
75320         to follow.  Don't set event bits that were not requested (except
75321         POLLERR and POLLHUP).
75322
75323 2007-01-01  Bruno Haible  <bruno@clisp.org>
75324
75325         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75326
75327 2007-01-03  Jim Meyering  <jim@meyering.net>
75328
75329         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75330
75331 2007-01-02  Bruno Haible  <bruno@clisp.org>
75332
75333         * modules/settime (Include): Require timespec.h.
75334         * modules/nanosleep (Include): Likewise.
75335
75336 2007-01-01  Bruno Haible  <bruno@clisp.org>
75337
75338         * gnulib-tool (func_emit_copyright_notice): Bump year.
75339         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75340
75341 2007-01-01  Bruno Haible  <bruno@clisp.org>
75342
75343         Improve support for OpenBSD.
75344         * build-aux/config.rpath (libname_spec): Export.
75345         (library_names_spec): New variable. Export.
75346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75347         library_names_spec from the config.rpath output. Locate shared library
75348         through the name pattern in library_names_spec.
75349
75350 2007-01-01  Eric Blake  <ebb9@byu.net>
75351
75352         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75353
75354 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75355
75356         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75357         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75358         assume the C locale, and avoid an "eval" that could cause trouble.
75359         Problem with SORT reported by Bob Proulx.
75360
75361         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75362         Define.  Trivial patch from Henning Nielsen Lund, originally
75363         sent to bug-grep@gnu.org today.
75364
75365 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75368         struct stat.  Problem reported by Henning Nielsen Lund.
75369         * lib/acl.c: Include acl.h first, to check interface.  Don't
75370         bother to include sys/types.h and sys/stat.h again.
75371
75372 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         Import the following change from libc; problem reported by
75375         Sven Verdoolaege.
75376
75377         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75378
75379         [BZ #1373]
75380         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75381
75382 2006-12-28  Jim Meyering  <jim@meyering.net>
75383
75384         * build-aux/announce-gen: Do not assume that the package
75385         builds any of tar.gz, tar.bz2, and .xdelta files.
75386         Suggestion from Simon Josefsson.
75387
75388 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75389
75390         * modules/announce-gen: New file.
75391
75392 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75395         handles its gotchas now.
75396         * lib/mbswidth.c: Likewise.
75397         * lib/wcwidth.h: Likewise.
75398         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75399         and iswcntrl; the wctype module does this stuff now.
75400         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75402         * modules/mbchar (Depends-on): Add wctype.
75403         * modules/mbswidth (Depends-on): Likewise.
75404         * modules/wcwidth (Depends-on): Likewise.
75405
75406 2006-12-27  Eric Blake  <ebb9@byu.net>
75407
75408         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75409         module uses more than what <wctype.h> is required to provide.
75410
75411 2006-12-26  Eric Blake  <ebb9@byu.net>
75412
75413         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75414
75415 2006-12-26  Eric Blake  <ebb9@byu.net>
75416
75417         * modules/absolute-header: New module.
75418         * modules/fcntl (Depends-on): Depend on it.
75419         * modules/inttypes (Depends-on): Likewise.
75420         * modules/stdint (Depends-on): Likewise.
75421         * modules/sys_stat (Depends-on): Likewise.
75422         * modules/wctype (Depends-on): Likewise.
75423         * MODULES.html.sh (Support for building libraries and
75424         executables): Document it.
75425
75426 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * gnulib-tool (SED): Remove, undoing previous change.
75429         The problem was that it broke coreutils on Solaris, because
75430         "sed --posix" leaked into a makefile.
75431         (sed): New alias, if 'alias' and GNU sed.
75432
75433 2006-12-24  Jim Meyering  <jim@meyering.net>
75434
75435         Work around an fchownat bug in glibc-2.4:
75436         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75437         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75438         in spite of the -P option.
75439         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75440         New macros.
75441         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75442         * modules/openat (Files): Add lib/fchownat.c.
75443         * lib/openat.c (fchownat): Don't define here.  Move to...
75444         * lib/fchownat.c: ...this new file.
75445
75446 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         Fix bug reported by Bruno Haible in
75449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75450         where quotearg.c didn't compile on Mac OS X 10.2 because it
75451         lacks <wchar.h> and wint_t.
75452         * lib/wctype_.h (__wctype_wint_t): New type.
75453         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75455         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75456         Arg is now of type __wctype_wint_t, not wint_t.
75457         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75458         substitute HAVE_WINT_T.
75459         * modules/wctype (Files): Add m4/wint_t.m4.
75460         (wctype.h): Substitute HAVE_WINT_T.
75461
75462 2006-12-23  Bruno Haible  <bruno@clisp.org>
75463
75464         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75465
75466 2006-12-23  Bruno Haible  <bruno@clisp.org>
75467
75468         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75469         S_ISLNK.
75470         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75471         mingw.
75472
75473 2006-12-22  Bruno Haible  <bruno@clisp.org>
75474
75475         * lib/copy-file.c: Include acl.h.
75476         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75477         Close the file descriptors only after being done with copy_acl.
75478         * modules/copy-file (Depends-on): Add acl.
75479
75480 2006-12-22  Bruno Haible  <bruno@clisp.org>
75481
75482         * gnulib-tool (SED): New variable.
75483         Use $SED instead of sed everywhere.
75484
75485 2006-12-22  Bruno Haible  <bruno@clisp.org>
75486
75487         * modules/no-c++: New file.
75488         * m4/no-c++.m4: New file.
75489         * MODULES.html.sh (Support for building libraries and executables):
75490         Add no-c++.
75491
75492 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75495         Include <limits.h>, and use its INT_MAX to rewrite the
75496         j loop so that it does not overflow 'int'.  Problem reported by
75497         Ralf Wildenhues in
75498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75499         Play it safe by shifting left by 1 rather than multiplying by 2,
75500         as GCC is less likely to optimize this away when the value
75501         is signed (when it assumes overflow leads to undefined behavior).
75502         Also, don't assume time_t uses two's complement.
75503
75504 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         * MODULES.html.sh: New module wctype.
75507         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75508         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75509         <wctype.h>, since the new wctype module should fix this.
75510         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75511         the wctype module should arrange for it.
75512         * lib/regex_internal.h: Likewise.
75513         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75514         since the wctype module should handle this now.
75515         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75516         * modules/fnmatch (Depends-on): Add wctype.
75517         * modules/quotearg (Depends-on): Likewise.
75518         * modules/regex (Depends-on): Likewise.
75519
75520 2006-12-19  Bruno Haible  <bruno@clisp.org>
75521
75522         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75523         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75524
75525 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75526
75527         * modules/savewd (Depends-on): Fix dependency on fcntl.
75528
75529 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75532         conforms to C99, rather than relying on the user's environment
75533         setting of STDINT_H.
75534
75535 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75536         and Eric Blake  <ebb9@byu.net>
75537
75538         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75539         This is more consistent with the other defines here.
75540         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75541         Port to z/OS.  Problem reported by Paul Gilmartin.
75542         Change local vars to use gl_ prefix rather than ac_.
75543         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75544         with other defines.
75545         * modules/double-slash-root: New module.
75546         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75547         (Depends-on): Add double-slash-root.
75548         * MODULES.html.sh (File system functions): Mention new module.
75549
75550 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75553         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75554         This is for the benefit of gzip, which doesn't do i18n.
75555
75556 2006-12-12  Jim Meyering  <jim@meyering.net>
75557
75558         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75559         Reported by Andreas Schwab <schwab@suse.de>.
75560
75561 2006-12-12  Bruno Haible  <bruno@clisp.org>
75562
75563         Merge these changes.
75564         2006-09-05  Bruno Haible  <bruno@clisp.org>
75565         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75566         iconv_alloc succeeded.
75567         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75568         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75569         test for " && dest " at the end - dest is always != NULL there. Call
75570         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75571         with 2xNULL arguments, also to flush the state storage. Handle the
75572         IRIX iconv behaviour. Realloc the final result, to throw away unused
75573         memory.
75574
75575 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75578         and fchmodat unconditionally, since glibc 2.4 has them.
75579         Problem reported by Arkadiusz Miskiewicz.
75580
75581 2006-12-10  Bruno Haible  <bruno@clisp.org>
75582
75583         * gnulib-tool (func_import): Show the include files only for those
75584         modules that are copied and specified.
75585         Reported by Karl Berry.
75586
75587 2006-12-08  Jim Meyering  <jim@meyering.net>
75588
75589         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75590         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75591
75592         * build-aux/announce-gen: Add two new options, both optional:
75593         --bootstrap-tools=TOOL_LIST
75594               a comma-separated list of tools, e.g.,
75595               autoconf,automake,bison,gnulib
75596         --gnulib-snapshot-date=DATE
75597               if gnulib is in the bootstrap tool list,
75598               then report this as the snapshot date.
75599               If not specified, use the current date/time.
75600               If you specify a date here, be sure it's UTC.
75601
75602 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75603
75604         * tests/test-argp-2.sh: Fix test to match actual output.
75605         (func_compare): Fix sed script to be portable.
75606
75607 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75610         workaround for this case.  It is not autoconfigured now; offhand
75611         it's hard to see how to autoconfigure it.
75612
75613 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75616         a directory that is about to be chowned.  Such a directory's
75617         initial file permissions should permit the owner only and this
75618         should not be changed until after the chown, since the group and
75619         other bits would be incorrect if they granted permission before
75620         the chown.
75621
75622         Fix porting problem for iswctype reported by Georg Schwarz in:
75623         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75624         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75625         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75626         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75627         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75628
75629 2006-12-03  Jim Meyering  <jim@meyering.net>
75630
75631         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75632         p->fts_statp may not yet be defined.
75633         (fts_read): Instead, set it in the caller, once p->fts_statp is
75634         sure to be defined, and corresponds to a top-level directory.
75635         This bug made du -x fail.  Here's the coreutils test case:
75636         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75637         Reported by Mike Frysinger.
75638
75639 2006-12-01  Jim Meyering  <jim@meyering.net>
75640
75641         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75642         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75643         Reported by Simon Josefsson.
75644
75645 2006-11-30  Jim Meyering  <jim@meyering.net>
75646
75647         * m4/warning.m4: Use the all-permissive copyright notice
75648         recommended by RMS (rather than LGPL).
75649         * m4/vararrays.m4: Likewise.
75650         * m4/flexmember.m4: Likewise.
75651
75652 2006-11-29  Bruno Haible  <bruno@clisp.org>
75653
75654         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75655         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75656         using +=.
75657         Reported by Simon Josefsson <simon@josefsson.org>.
75658
75659 2006-11-28  James Youngman <jay@gnu.org>
75660
75661         * README: Advise users that they might find the bug-gnulib@gnu.org
75662         and autotools-announce@gnu.org mailing lists useful.
75663
75664 2006-11-28  Bruno Haible  <bruno@clisp.org>
75665
75666         * m4/ptrdiff_max.m4: Remove file.
75667
75668 2006-11-21  Bruno Haible  <bruno@clisp.org>
75669
75670         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75671         _AC_COMPUTE_INT.
75672         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75673         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75674         _AC_COMPUTE_INT.
75675         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75676         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75677         _AC_COMPUTE_INT.
75678         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75679
75680 2006-11-28  Jim Meyering  <jim@meyering.net>
75681
75682         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75683         warning from "gcc -Wshadow" about shadowing the builtin.
75684
75685 2006-11-27  Bruno Haible  <bruno@clisp.org>
75686
75687         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75688         _AC_COMPUTE_INT.
75689         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75690
75691 2006-11-27  Bruno Haible  <bruno@clisp.org>
75692             Paul Eggert  <eggert@cs.ucla.edu>
75693
75694         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75695
75696 2006-11-26  Bruno Haible  <bruno@clisp.org>
75697
75698         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75699         noinst_LTLIBRARIES.
75700
75701 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75702             Bruno Haible  <bruno@clisp.org>
75703
75704         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75705         if compiling with "gcc -ansi".
75706
75707 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         Fix some incompatibilities with gcc -ansi -pedantic.
75710         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75711         if compiling pedantically with GCC, unless it's C99 or later.
75712         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75713         it mishandles gcc -ansi -pedantic as well.
75714         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75715         if gcc -pedantic.
75716         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75717         initializers for struct if -pedantic, unless it's C99 or later.
75718
75719 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75720
75721         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75722         Don't close an fd more than once. Identical atimes indicate
75723         success, not failure.
75724
75725 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75726
75727         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75728
75729 2006-11-23  Jim Meyering  <jim@meyering.net>
75730
75731         * build-aux/announce-gen: New file.  From coreutils.
75732
75733 2006-11-22  Jim Meyering  <jim@meyering.net>
75734
75735         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75736         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75737         (fts_read): Use a temporary to narrow the overused st_size member
75738         before using it in a switch statement.  Reported by Matthew Woehlke.
75739
75740         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75741         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75742
75743 2006-11-20  Bruno Haible  <bruno@clisp.org>
75744
75745         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75746         changequote instead of pairs of brackets.
75747         Reported by Andreas Schwab <schwab@suse.de>.
75748
75749 2006-11-21  Jim Meyering  <jim@meyering.net>
75750
75751         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75752         so as to remain compatible with older compilers.
75753         Patch from Michael Deutschmann.
75754
75755 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75756
75757         * MODULES.html.sh (File system functions): Add openat.
75758
75759         * lib/openat.h (rpl_fstatat): New macro, if
75760         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75761         (fstatat): Define to rpl_fstatat under the same conditions,
75762         unless COMPILING_FSTATAT.
75763         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75764         seems to have the bug.
75765         * lib/fstatat.c: New file.
75766         * modules/openat (Files): Add it.
75767
75768 2006-11-20  Bruno Haible  <bruno@clisp.org>
75769
75770         * Makefile: New file.
75771
75772 2006-11-20  Jim Meyering  <jim@meyering.net>
75773
75774         The beginnings of syntax-related checks for gnulib.
75775         * lib/Makefile: New file.
75776         * lib/t-idcache: New script.  Ensure that the two halves of
75777         idcache.c stay in sync.
75778
75779         * lib/idcache.c: Adjust comments in user- and group- portions to
75780         be more accurate, and to be consistent with one another.
75781
75782 2006-11-20  Jim Meyering  <jim@meyering.net>
75783
75784         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75785         continue using the flexible array member (thus, this module performs
75786         half as many malloc calls), with the addition that...
75787         (getgroup, getuser): Consistently record a non-match via an empty
75788         "name" string, and map an empty string match to a NULL return value.
75789         * modules/idcache (Depends-on): Re-add flexmember.
75790
75791         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75792         (getuidbyname, getgroup, getgidbyname): Likewise.
75793
75794         Use cleaner syntax: NULL rather than 0.
75795         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75796
75797 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75800         It mishandled the case where the group was missing.
75801         Problem reported by Greg Schafer.
75802         * modules/idcache: Likewise.
75803
75804 2006-11-18  Jim Meyering  <jim@meyering.net>
75805
75806         * check-module (%exempt_header): Add exception for some
75807         conditionally-included headers.
75808
75809         * modules/i-ring (Depends-on): Add verify.
75810         (License): Change to LGPL.
75811
75812 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75815         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75816         and inttostr.h.  Use snprintf rather than uinttostr, so that
75817         LGPLed code doesn't depend on GPLed.
75818
75819 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75820
75821         * modules/inline (License): Change from GPL to LGPL.
75822
75823 2006-11-17  Jim Meyering  <jim@meyering.net>
75824
75825         * modules/d-type (License): Switch to LGPL.
75826
75827 2006-11-15  Bruno Haible  <bruno@clisp.org>
75828
75829         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75830
75831 2006-11-15  Eric Blake  <ebb9@byu.net>
75832
75833         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75834         the module dependency.
75835
75836 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75837             Bruno Haible  <bruno@clisp.org>
75838
75839         * gnulib-tool (func_create_testdir): Add license consistency check.
75840
75841 2006-11-15  Eric Blake  <ebb9@byu.net>
75842
75843         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75844         random "(cached)" in configure output.
75845
75846 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75847
75848         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75849         test for conforming inttypes.h is both announced and cached.
75850
75851         * MODULES.html.sh (seen_modules, seen_files): New variables.
75852         (func_module): Rewrite to use a few less gnulib-tool and sed
75853         invocations.  Avoid a couple of quadratic algorithms for ...
75854         (missed_modules, missed_files): ... these, with ...
75855         (func_append, func_tmpdir): ... these new functions, from
75856         gnulib-tool.  Analogously, install traps for cleanup.
75857
75858         * tests/test-gc.c (main): Remove unused variables.
75859         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75860
75861 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75862
75863         * modules/inttostr (License): Change to LGPL.
75864
75865 2006-11-14  Eric Blake  <ebb9@byu.net>
75866
75867         * modules/tempname (License): Change to LGPL.
75868
75869 2006-11-14  Eric Blake  <ebb9@byu.net>
75870
75871         * doc/functions.texi (Function Portability): *printf functions on
75872         Cygwin now understand all POSIX size specifiers.
75873
75874 2006-11-14  Bruno Haible  <bruno@clisp.org>
75875
75876         * modules/c-ctype (License): Change to LGPL.
75877
75878 2006-11-12  Bruno Haible  <bruno@clisp.org>
75879
75880         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75881         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75882         for GNOME libraries, for which the include files are installed in
75883         subdirectories of $prefix/include.
75884
75885 2006-11-12  Bruno Haible  <bruno@clisp.org>
75886
75887         * m4/lib-link.m4: Require at least autoconf-2.54.
75888         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75889         name to underscores for the --with option.
75890
75891 2006-11-13  Bruno Haible  <bruno@clisp.org>
75892
75893         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75894         the tests directory.
75895         Reported by Ralf Wildenhues.
75896
75897 2006-11-13  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75900         (func_emit_initmacro_end): Undo the override here.
75901         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75902         Works around the famous automake error in coreutils.
75903
75904 2006-11-13  Eric Blake  <ebb9@byu.net>
75905
75906         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75907         element, not its node.
75908
75909 2006-11-12  Bruno Haible  <bruno@clisp.org>
75910
75911         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75912         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75913
75914 2006-11-12  Bruno Haible  <bruno@clisp.org>
75915
75916         * gnulib-tool: New option --local-symlink.
75917         (func_usage): Document it.
75918         (lsymbolic): New variable.
75919         (func_import, func_create_testdir): If --symlink was not specified,
75920         test whether --local-symlink was specified and the file comes from
75921         the local_gnulib_dir.
75922
75923 2006-11-12  Bruno Haible  <bruno@clisp.org>
75924
75925         * gnulib-tool (func_ln): New function.
75926         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75927
75928 2006-11-12  Bruno Haible  <bruno@clisp.org>
75929
75930         Finish support for source files in subdirectories.
75931         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75932         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75933         AUTOMAKE_OPTIONS.
75934         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75935
75936 2006-11-12  Bruno Haible  <bruno@clisp.org>
75937
75938         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75939         EXTRA_lib_SOURCES augmentation.
75940         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75941
75942 2006-11-12  Jim Meyering  <jim@meyering.net>
75943
75944         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75945         file descriptors.  This also averts a failure on systems with
75946         native openat support when a traversed directory lacks "x" access.
75947         * lib/fts_.h: Include "i-ring.h"
75948         (struct FTS) [fts_fd_ring]: New member.
75949         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75950         (FCHDIR): Add parentheses.
75951         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75952         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75953         When descending, rather than simply closing the previous
75954         fts_cwd_fd value, push that file descriptor onto the ring.
75955         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75956         (fts_open): Initialize the new fd_ring member.
75957         (fts_close): Clear the ring.
75958         (fts_safe_changedir): When possible, use our new fd_ring to skip
75959         the diropen and fstat and dev/ino comparison that would normally
75960         accompany a virtual `chdir ("..")'.
75961
75962         * modules/fts (Depends-on): Add i-ring.
75963         * modules/i-ring: New module.
75964         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75965         * m4/i-ring.m4: New file.
75966
75967 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75968
75969         * gnulib-tool (func_create_testdir): Fix replacement of
75970         `build-aux' in configure.ac.  Run autotools in gltests
75971         subdirectory.
75972         (func_create_testdir, func_create_megatestdir, test): There is
75973         no need for '--force' in most autotool invocations in a new
75974         tree.  Actually fail the whole test if any of the tools, or the
75975         configure or make stages fail.
75976
75977         Sync from Automake.
75978         * build-aux/gnupload: Revert last change.  Add pointer to upload
75979         instructions of the GNU Maintenance Instructions.
75980         Suggestion by Karl Berry.
75981
75982 2006-11-10  Jim Meyering  <jim@meyering.net>
75983
75984         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75985
75986 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75989         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75990         (bind_textdomain_codeset) [! ENABLE_NLS]:
75991         Evaluate all the arguments.  That way, callers get compatible behavior
75992         if the arguments have side effects.  Also, it avoids some GCC
75993         diagnostics in some cases; Joel E. Denny reported problems when Bison
75994         was configured with --enable-gcc-warnigs.
75995
75996 2006-11-10  Jim Meyering  <jim@meyering.net>
75997
75998         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75999         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76000         account.
76001
76002 2006-11-10  Jim Meyering  <jim@meyering.net>
76003
76004         * modules/inline: New file/module.
76005         * modules/xalloc (Files): Remove m4/inline.m4.
76006         (Depends-on): Add inline, instead.
76007         * modules/oset: Likewise.
76008         * modules/list: Likewise.
76009
76010 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76013         Problem reported by Matthew Woehlke.
76014
76015 2006-11-09  Bruno Haible  <bruno@clisp.org>
76016
76017         * lib/tempname.c (gen_tempname): Remove variant that invokes
76018         __gen_tempname.
76019         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76020         __gen_tempname.
76021
76022 2006-11-08  Bruno Haible  <bruno@clisp.org>
76023
76024         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76025         to 'yes' instead of 'cross-compiling'.
76026
76027 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/quotearg.h (quotearg_free): New decl.
76030         * lib/quotearg.c (quotearg_free): New function.
76031         (slot0, nslots, slotvec0, slotvec):
76032         Now file-scope so that quotearg_free can get at them.
76033
76034 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76035
76036         Sync from Automake.
76037         * build-aux/gnupload: Add missing 'gnu' to example URL.
76038         Report by Karl Berry.
76039
76040 2006-11-08  Bruno Haible  <bruno@clisp.org>
76041
76042         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76043         Suggested by Paul Eggert.
76044
76045 2006-11-08  Jim Meyering  <jim@meyering.net>
76046
76047         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76048         It's already included if !_LIBC.
76049         (fts_safe_changedir): Add a comment.
76050
76051 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76054         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76055         Matthew Woehlke.
76056
76057         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76058         definitions up, to avoid colliding with change below.
76059         (static_inline) [HAVE_INLINE]: New macro.
76060         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76061         Provide extern decls when !HAVE_INLINE.  Do not define unless
76062         static_inline is defined, either by us or by xmalloc.c.  Use
76063         static_inline rather than static inline.
76064         (XCALLOC): Optimize sizeof(T) = 1 case.
76065         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76066
76067 2006-11-07  Bruno Haible  <bruno@clisp.org>
76068
76069         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76070         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76071         AC_C_INLINE.
76072         * modules/xalloc (Files): Add m4/inline.m4.
76073
76074 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76075
76076         * README: Fix typo.
76077         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76078         (Miscellanous Notes): ...from this.
76079
76080 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76083         Mention that offsetof should be used instead of sizeof.
76084         From Bruno Haible.
76085
76086 2006-11-07  Bruno Haible  <bruno@clisp.org>
76087
76088         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76089
76090 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76093         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76094         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76095         (gl_tree_add_before, gl_tree_add_after):
76096         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76097         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76098         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76099         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76100         (gl_linked_add_after, gl_linked_add_at): Likewise.
76101         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76102         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76103         (gl_tree_add_before, gl_tree_add_after): Likewise.
76104         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76105         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76106         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76107
76108 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76109
76110         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76111
76112 2006-11-06  Bruno Haible  <bruno@clisp.org>
76113
76114         * m4/inline.m4: New file.
76115         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76116         * modules/list (Files): Add m4/inline.m4.
76117         * modules/oset (Files): Likewise.
76118
76119 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         * lib/idcache.c: Include <stddef.h>, for offsetof.
76122         (struct userid.name): Change from char * to a flexible array member.
76123         All uses changed.
76124         * modules/idcache (Depends-on): Add flexmember.
76125
76126         * MODULES.html.sh (Core language properties): New module flexmember.
76127         * modules/flexmember, m4/flexmember.m4: New files.
76128
76129         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76130         inline functions that are identical with the old xnmalloc_inline,
76131         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76132         that we can avoid some unnecessary integer multiplications and
76133         divisions in the common case where the element size is known at
76134         compile time.
76135         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76136         needed.
76137         (xnboundedmalloc): Remove.
76138         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76139         arguments, for consistency with rest of this header.
76140         (xcharalloc): Rewrite using XNMALLOC.
76141         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76142         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76143         versions have been moved to lib/xalloc.h and renamed to be the
76144         non-*_inline versions.
76145         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76146         and xnrealloc functions, since those functions are now inline and
76147         now call us.
76148         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76149         renaming described above.
76150         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76151         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76152         captures the dependency in AC_C_INLINE.
76153
76154         New module canonicalize-lgpl, proposed by Charles Wilson in
76155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76156         with a few small changes afterwards.
76157         * MODULES.html.sh (File system functions): New module
76158         canonicalize-lgpl.
76159         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76160         and canonicalize_file_name.
76161         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76162         * modules/canonicalize-lgpl: New files.
76163
76164 2006-11-05  Bruno Haible  <bruno@clisp.org>
76165
76166         * gnulib-tool (func_import, func_create_testdir): Create directories
76167         also for files in subdirectories of lib/.
76168
76169 2006-11-05  Bruno Haible  <bruno@clisp.org>
76170
76171         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76172         ANSI C compliant.
76173
76174 2006-11-03  Bruno Haible  <bruno@clisp.org>
76175
76176         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76177         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76178         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76179         (xnboundedmalloc): New inline function.
76180         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76181         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76182         xmalloc.
76183         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76184         xmalloc.
76185         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76186         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76187         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76188         xmalloc.
76189         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76190         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76191         xmalloc.
76192         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76193         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76194         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76195         xmalloc.
76196         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76197         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76198         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76199         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76200         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76201         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76202         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76203
76204 2006-11-03  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/c-ctype.h [C++]: Define functions without name mangling.
76207         * lib/fwriteerror.h [C++]: Likewise.
76208         * lib/gcd.h [C++]: Likewise.
76209         * lib/linebreak.h [C++]: Likewise.
76210
76211 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76214         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76215         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76216         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76217         Check for functions and headers just once.
76218         Check for declaration of canonicalize_file_name.
76219         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76220
76221 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76222
76223         * gnulib-tool (func_import): Fix typo in actioncmd.
76224
76225 2006-11-02  Bruno Haible  <bruno@clisp.org>
76226
76227         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76228         newline sequence in the Makefile.am snippet as a space, like "make"
76229         does.
76230         Reported by Roger Persson <perrog@gmail.com>.
76231
76232 2006-11-01  Bruno Haible  <bruno@clisp.org>
76233
76234         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76235         already declared in <string.h>.
76236         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76237
76238 2006-11-01  Bruno Haible  <bruno@clisp.org>
76239
76240         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76241         * lib/strcase.h: Include <string.h>.
76242         (strcasecmp): Define to rpl_strcasecmp here.
76243
76244 2006-11-01  Bruno Haible  <bruno@clisp.org>
76245
76246         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76247
76248 2006-11-01  Eric Blake  <ebb9@byu.net>
76249
76250         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76251
76252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76253
76254 2006-10-29  Bruno Haible  <bruno@clisp.org>
76255
76256         Make it compile in C++ mode.
76257         * lib/full-write.c (full_rw): Add a cast.
76258
76259 2006-11-01  Bruno Haible  <bruno@clisp.org>
76260
76261         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76262         be POSIX compliant.
76263         Reported by Roger Persson <perrog@gmail.com>.
76264
76265 2006-11-01  Eric Blake  <ebb9@byu.net>
76266
76267         * lib/getopt_.h: Fix comments.
76268
76269 2006-10-31  Eric Blake  <ebb9@byu.net>
76270
76271         * modules/tmpdir (Depends-on): Add sys_stat.
76272         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76273         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76274         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76275         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76276         tempname.
76277
76278 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         Avoid some C++ diagnostics reported by Bruno Haible.
76281         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76282         xmalloc.
76283         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76284         (struct slotvec): Move to top level.
76285         (quotearg_n_options): Rewrite to avoid xmalloc.
76286         * lib/xalloc.h (xcharalloc): New function.
76287         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76288         [defined __cplusplus]: Add function template that provides result
76289         type propagation.  This part of the change is from Bruno Haible.
76290
76291 2006-10-29  Bruno Haible  <bruno@clisp.org>
76292
76293         Make it compile in C++ mode.
76294         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76295         * lib/strnlen1.c (strnlen1): Cast memchr result.
76296         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76297         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76298         (create_temp_dir): Rename local variable 'template'.
76299         (compile_csharp_using_sscli): Add cast.
76300         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76301         * lib/findprog.c (find_in_path): Likewise.
76302         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76303         * lib/wait-process.c (register_slave_subprocess): Likewise.
76304
76305 2006-10-22  Bruno Haible  <bruno@clisp.org>
76306
76307         * modules/tsearch: New file.
76308         * lib/tsearch.h: New file.
76309         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76310         * m4/tsearch.m4: New file.
76311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76312
76313 2006-10-29  Eric Blake  <ebb9@byu.net>
76314
76315         * lib/arcfour.c: Assume config.h.
76316         * lib/arctwo.c: Likewise.
76317         * lib/base64.c: Likewise.
76318         * lib/check-version.c: Likewise.
76319         * lib/crc.c: Likewise.
76320         * lib/des.c: Likewise.
76321         * lib/gc-gnulib.c: Likewise.
76322         * lib/gc-libgcrypt.c: Likewise.
76323         * lib/gc-pbkdf2-sha1.c: Likewise.
76324         * lib/getaddrinfo.c: Likewise.
76325         * lib/getdelim.c: Likewise.
76326         * lib/getline.c: Likewise.
76327         * lib/hmac-md5.c: Likewise.
76328         * lib/hmac-sha1.c: Likewise.
76329         * lib/iconvme.c: Likewise.
76330         * lib/md2.c: Likewise.
76331         * lib/md4.c: Likewise.
76332         * lib/memxor.c: Likewise.
76333         * lib/read-file.c: Likewise.
76334         * lib/readline.c: Likewise.
76335         * lib/rijndael-alg-fst.c: Likewise.
76336         * lib/rijndael-api-fst.c: Likewise.
76337         * lib/xgetdomainname.c: Likewise.
76338
76339 2006-10-28  Eric Blake  <ebb9@byu.net>
76340
76341         * lib/xstrndup.c: Assume config.h.
76342
76343 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76346         stat-macros.h is now for our own macros, whereas stat_h is for
76347         macros in the <sys/stat.h> name space.
76348         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76349         (STAT_MACROS_H): Remove.
76350         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76351         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76352         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76353         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76354         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76355         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76356         Move these macros to ...
76357         * lib/stat_.h: here.  Don't include stat-macros.h.
76358         * lib/canonicalize.c: Don't include stat-macros.h.
76359         * lib/chown.c: Likewise.
76360         * lib/euidaccess.c: Likewise.
76361         * lib/file-type.c: Likewise.
76362         * lib/filemode.c: Likewise.
76363         * lib/glob.c: Likewise.
76364         * lib/isapipe.c: Likewise.
76365         * lib/lchown.c: Likewise.
76366         * lib/lstat.c: Likewise.
76367         * lib/mkdir-p.c: Likewise.
76368         * lib/rmdir.c: Likewise.
76369         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76370         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76371         unless mkdir isn't declared, to speed up 'configure'.
76372         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76373         would define all the S_* symbols.
76374         * modules/canonicalize (Depends-on):
76375         Depend on sys_stat, not stat-macros.
76376         * modules/chown: Likewise.
76377         * modules/euidaccess: Likewise.
76378         * modules/filemode: Likewise.
76379         * modules/file-type: Likewise.
76380         * modules/glob: Likewise.
76381         * modules/isapipe: Likewise.
76382         * modules/lchown: Likewise.
76383         * modules/lstat: Likewise.
76384         * modules/mkancesdirs: Likewise.
76385         * modules/rmdir: Likewise.
76386         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76387         * modules/modechange: Likewise.
76388         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76389         (configure.ac): Remove gl_STAT_MACROS.
76390         * modules/sys_stat (Depends-on): Remove stat-macros.
76391
76392 2006-10-27  Bruno Haible  <bruno@clisp.org>
76393
76394         * m4/signed.m4: Remove file.
76395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76396         invocation.
76397         * modules/vasnprintf (Files): Remove m4/signed.m4.
76398
76399 2006-10-27  Bruno Haible  <bruno@clisp.org>
76400
76401         Update to GNU gettext 0.16.
76402         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76403         m4/inttypes-h.m4, m4/signed.m4.
76404         * m4/gettext.m4: Update to GNU gettext 0.16.
76405         * m4/intl.m4: New file, from GNU gettext.
76406         * m4/intldir.m4: New file, from GNU gettext.
76407         * config/srclist.txt: Update
76408
76409 2006-10-27  Eric Blake  <ebb9@byu.net>
76410
76411         * MODULES.html.sh: Document tempname.
76412         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76413         dependencies.
76414         (Files): Move lib/tempname.c...
76415         * modules/tempname: ...to this new module.
76416         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76417         (gl_PREREQ_TEMPNAME): Move...
76418         * m4/tempname.m4: ...to this new file.
76419         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76420         * modules/sys_stat (Depends-on): Add stat-macros.
76421         * lib/stat_.h (includes): Pick up stat macros.
76422         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76423         if stat macros are broken.
76424         * lib/tempname.c (includes): No need to include "stat-macros.h".
76425         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76426         (direxists, __path_search) [!_LIBC]: Don't compile these in
76427         gnulib; the tmpdir module covers that.
76428         * lib/tempname.h: New file.
76429
76430 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         * COPYING: Explain how gnulib-tool converts licence headers.
76433         Almost all wording by Eric Blake.
76434
76435 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * lib/mbchar.h (is_basic_table): Make read-only.
76438         * lib/mbchar.c (is_basic_table): Likewise.
76439         Reported by John Darrington.
76440
76441 2006-10-25  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/progname.h (set_program_name): Undefine before defining.
76444
76445 2006-10-25  Bruno Haible  <bruno@clisp.org>
76446
76447         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76448         false for non-gcc C++ compilers.
76449         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76450
76451 2006-10-24  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76454         iconv implementations like Irix iconv.
76455
76456 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * modules/vararrays: New file.
76459         * m4/vararrays.m4: New file, taken from diffutils.
76460         * MODULES.html.sh: New module vararrays.
76461
76462 2006-10-24  Karl Berry  <karl@gnu.org>
76463
76464         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76465         Don't call GNU Unix.
76466
76467 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76468
76469         * users.txt: Add Libtool.
76470
76471         Sync from Libtool:
76472
76473         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76474
76475         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76476         to gnulib's policy of including config.h unconditionally.
76477
76478 2006-10-24  Bruno Haible  <bruno@clisp.org>
76479
76480         * modules/wcwidth (Files): Add m4/wint_t.m4.
76481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76482         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76483
76484 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76485
76486         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76487         to pacify GCC with some -W flags enabled.  Problem reported by
76488         Bruno Haible.
76489
76490 2006-10-24  Jim Meyering  <jim@meyering.net>
76491
76492         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76493         Reported by Karl Berry.
76494
76495 2006-10-23  Bruno Haible  <bruno@clisp.org>
76496
76497         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76498
76499 2006-10-24  Bruno Haible  <bruno@clisp.org>
76500
76501         * lib/gl_list.h: Use C comment style, not C++ comment style.
76502
76503 2006-10-23  Eric Blake  <ebb9@byu.net>
76504
76505         * lib/getaddrinfo.c (includes): Add missing include.
76506
76507 2006-10-23  Bruno Haible  <bruno@clisp.org>
76508             Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         Ability to rename obstack_free.
76511         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76512         obstack_free.
76513         (obstack_free): Invoke the __obstack_free macro.
76514         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76515
76516 2006-10-23  Bruno Haible  <bruno@clisp.org>
76517             Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76520         __argc, __argv from the declaration. (They are defined as macros on
76521         mingw.)
76522
76523 2006-10-22  Bruno Haible  <bruno@clisp.org>
76524
76525         * doc/gnulib-intro.texi: New file.
76526         * doc/gnulib.texi: Include it.
76527
76528 2006-10-21  Bruno Haible  <bruno@clisp.org>
76529
76530         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76531         "Introduction", "Miscellanous Notes", "Particular Modules".
76532
76533 2006-10-21  Bruno Haible  <bruno@clisp.org>
76534
76535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76536         Change mostlyclean-local rule to avoid sh syntax error from bash
76537         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76538
76539 2006-10-23  Jim Meyering  <jim@meyering.net>
76540
76541         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76542         in place of snprintf.
76543
76544         * modules/inttostr (Files): Add lib/uinttostr.c.
76545         * lib/uinttostr.c (inttostr): New file/function.
76546         * lib/inttostr.h (uinttostr): Declare.
76547         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76548         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76549         Add uinttostr.
76550         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76551
76552 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * lib/canonicalize.c (ELOOP): Define if not already defined.
76555         Problem reported by Bruno Haible in
76556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76557
76558 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76561         Problem reported by Perry Smith and Ville Laurikari.
76562
76563         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76564         uses.
76565
76566 2006-10-19  Bruno Haible  <bruno@clisp.org>
76567
76568         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76569         for mingw.
76570
76571 2006-10-19  Bruno Haible  <bruno@clisp.org>
76572
76573         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76574         Needed for mingw.
76575
76576 2006-10-19  Bruno Haible  <bruno@clisp.org>
76577
76578         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76579
76580 2006-10-19  Bruno Haible  <bruno@clisp.org>
76581
76582         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76583         it.
76584
76585 2006-10-19  Bruno Haible  <bruno@clisp.org>
76586
76587         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76588         invocation.
76589
76590 2006-10-19  Bruno Haible  <bruno@clisp.org>
76591
76592         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76593         mountlist by default.
76594
76595 2006-10-16  Bruno Haible  <bruno@clisp.org>
76596
76597         * lib/c-strstr.c: Include c-strstr.h.
76598
76599 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76600
76601         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76602         in a slash.
76603
76604 2006-10-18  Bruno Haible  <bruno@clisp.org>
76605
76606         * lib/lock.h [C++]: Wrap definitions in extern "C".
76607
76608 2006-10-18  Bruno Haible  <bruno@clisp.org>
76609
76610         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76611         gl_LIBOBJS list.
76612
76613 2006-10-18  Bruno Haible  <bruno@clisp.org>
76614
76615         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76616
76617 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * lib/xstrtol.h: Include gettext.h.
76620         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76621         Problem reported by Eric Blake.
76622         * modules/xstrtol (Depends-on): Add gettext-h.
76623
76624 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76625
76626         * lib/strftime.c (advance): New macro.
76627         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76628         incomplete type, so you can't add 0 to it.  Problem and patch
76629         reported by Eelco Dolstra for dietlibc.
76630
76631 2006-10-18  Jim Meyering  <jim@meyering.net>
76632
76633         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76634         type for a local, and rename it: s/up/user_proc/.
76635
76636 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76637
76638         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76639         READ_UTMP_USER_PROCESS.
76640         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76641
76642 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76645         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76646
76647 2006-10-17  Eric Blake  <ebb9@byu.net>
76648
76649         * lib/sigprocmask.c (sigprocmask): Fix typo.
76650
76651         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76652
76653         * modules/clean-temp (Makefile.am): Don't add to make output...
76654         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76655         config.h.
76656
76657 2006-10-17  Bruno Haible  <bruno@clisp.org>
76658
76659         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76660         differently if DEFAULT_TEXT_DOMAIN is set.
76661
76662 2006-10-16  Bruno Haible  <bruno@clisp.org>
76663
76664         * lib/clean-temp.c: Include fwriteerror.h.
76665
76666 2006-10-16  Bruno Haible  <bruno@clisp.org>
76667
76668         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76669
76670 2006-10-16  Bruno Haible  <bruno@clisp.org>
76671
76672         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76673         * lib/sigprocmask.h: Include <sys/types.h>.
76674         (sigset_t): Use the system's definition if present.
76675
76676 2006-10-17  Eric Blake  <ebb9@byu.net>
76677
76678         * lib/xvasprintf.c (includes): Assume config.h.
76679         * lib/xasprintf.c (includes): Likewise.
76680
76681 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76684         at least as wide as intmax_t.
76685
76686 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76687
76688         (Imported from Automake.)
76689         * build-aux/gnupload: Update to version 1.1 of directive file.
76690
76691 2006-10-16  Eric Blake  <ebb9@byu.net>
76692
76693         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76694         match Automake 1.10a.
76695
76696 2006-10-14  Bruno Haible  <bruno@clisp.org>
76697
76698         * modules/sigprocmask: New file.
76699         * lib/sigprocmask.h: New file.
76700         * lib/sigprocmask.c: New file.
76701         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76702         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76703         request sigprocmask.o.
76704         (gl_PREREQ_SIGPROCMASK): New macro.
76705         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76706         (Depends-on): Add sigprocmask.
76707         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76708         gt_SIGNALBLOCKING. Test for 'raise' only once.
76709         * lib/fatal-signal.c: Include sigprocmask.h.
76710         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76711         unblock_fatal_signals): Define always.
76712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76713         sigprocmask.
76714
76715 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         Sync from Automake.
76718         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76719         which incorrectly sets the mode of an existing destination
76720         directory.  In some cases the unpatched install-sh could do the
76721         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76722         system.  We hope this is rare in practice, but it's clearly worth
76723         fixing.  Problem reported by Alex Unleashed in
76724         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76725         Also, don't bother to check for -m bugs unless we're using -m;
76726         suggested by Stepan Kasal.
76727
76728 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76729
76730         Sync from Automake.
76731         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76732         `-c' flag, so they appear at the same position as in %FASTDEP%
76733         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76734         which ignores unknown options only after the first non-option.
76735         Bug report against M4 by Nelson H. F. Beebe.
76736
76737 2006-10-13  Jim Meyering  <jim@meyering.net>
76738
76739         Fix a bug in yesterday's change.
76740         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76741         p->fts_statp->st_dev would be used uninitialized.
76742         Ensures that we always call fts_stat on the very first entry.
76743         Miklos Szeredi reported that find -xdev stopped working.
76744
76745 2006-10-12  Bruno Haible  <bruno@clisp.org>
76746
76747         * gnulib-tool (func_get_automake_snippet): Append an automatically
76748         computed EXTRA_DIST augmentation.
76749         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76750         * modules/alloca-opt (Makefile.am): Likewise.
76751         * modules/allocsa (Makefile.am): Likewise.
76752         * modules/arcfour (Makefile.am): Likewise.
76753         * modules/arctwo (Makefile.am): Likewise.
76754         * modules/argmatch (Makefile.am): Likewise.
76755         * modules/argz (Makefile.am): Likewise.
76756         * modules/atexit (Makefile.am): Likewise.
76757         * modules/backupfile (Makefile.am): Likewise.
76758         * modules/byteswap (Makefile.am): Likewise.
76759         * modules/c-strtod (Makefile.am): Likewise.
76760         * modules/c-strtold (Makefile.am): Likewise.
76761         * modules/calloc (Makefile.am): Likewise.
76762         * modules/canon-host (Makefile.am): Likewise.
76763         * modules/canonicalize (Makefile.am): Likewise.
76764         * modules/chdir-long (Makefile.am): Likewise.
76765         * modules/chdir-safer (Makefile.am): Likewise.
76766         * modules/check-version (Makefile.am): Likewise.
76767         * modules/chown (Makefile.am): Likewise.
76768         * modules/cloexec (Makefile.am): Likewise.
76769         * modules/close-stream (Makefile.am): Likewise.
76770         * modules/closeout (Makefile.am): Likewise.
76771         * modules/crc (Makefile.am): Likewise.
76772         * modules/csharpexec (Makefile.am): Likewise.
76773         * modules/cycle-check (Makefile.am): Likewise.
76774         * modules/des (Makefile.am): Likewise.
76775         * modules/dev-ino (Makefile.am): Likewise.
76776         * modules/dirfd (Makefile.am): Likewise.
76777         * modules/dirname (Makefile.am): Likewise.
76778         * modules/dup2 (Makefile.am): Likewise.
76779         * modules/eealloc (Makefile.am): Likewise.
76780         * modules/error (Makefile.am): Likewise.
76781         * modules/euidaccess (Makefile.am): Likewise.
76782         * modules/exclude (Makefile.am): Likewise.
76783         * modules/exitfail (Makefile.am): Likewise.
76784         * modules/fcntl-safer (Makefile.am): Likewise.
76785         * modules/fcntl (Makefile.am): Likewise.
76786         * modules/file-type (Makefile.am): Likewise.
76787         * modules/fileblocks (Makefile.am): Likewise.
76788         * modules/filemode (Makefile.am): Likewise.
76789         * modules/filenamecat (Makefile.am): Likewise.
76790         * modules/fnmatch (Makefile.am): Likewise.
76791         * modules/fopen-safer (Makefile.am): Likewise.
76792         * modules/fpending (Makefile.am): Likewise.
76793         * modules/fprintftime (Makefile.am): Likewise.
76794         * modules/free (Makefile.am): Likewise.
76795         * modules/fsusage (Makefile.am): Likewise.
76796         * modules/ftruncate (Makefile.am): Likewise.
76797         * modules/fts (Makefile.am): Likewise.
76798         * modules/gc-arcfour (Makefile.am): Likewise.
76799         * modules/gc-des (Makefile.am): Likewise.
76800         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76801         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76802         * modules/gc-md4 (Makefile.am): Likewise.
76803         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76804         * modules/gc-sha1 (Makefile.am): Likewise.
76805         * modules/gc (Makefile.am): Likewise.
76806         * modules/getaddrinfo (Makefile.am): Likewise.
76807         * modules/getcwd (Makefile.am): Likewise.
76808         * modules/getdelim (Makefile.am): Likewise.
76809         * modules/getdomainname (Makefile.am): Likewise.
76810         * modules/getgroups (Makefile.am): Likewise.
76811         * modules/gethostname (Makefile.am): Likewise.
76812         * modules/gethrxtime (Makefile.am): Likewise.
76813         * modules/getline (Makefile.am): Likewise.
76814         * modules/getloadavg (Makefile.am): Likewise.
76815         * modules/getlogin_r (Makefile.am): Likewise.
76816         * modules/getndelim2 (Makefile.am): Likewise.
76817         * modules/getopt (Makefile.am): Likewise.
76818         * modules/getpagesize (Makefile.am): Likewise.
76819         * modules/getpass-gnu (Makefile.am): Likewise.
76820         * modules/getpass (Makefile.am): Likewise.
76821         * modules/getsubopt (Makefile.am): Likewise.
76822         * modules/gettime (Makefile.am): Likewise.
76823         * modules/gettimeofday (Makefile.am): Likewise.
76824         * modules/getugroups (Makefile.am): Likewise.
76825         * modules/getusershell (Makefile.am): Likewise.
76826         * modules/glob (Makefile.am): Likewise.
76827         * modules/group-member (Makefile.am): Likewise.
76828         * modules/hard-locale (Makefile.am): Likewise.
76829         * modules/hash (Makefile.am): Likewise.
76830         * modules/hmac-md5 (Makefile.am): Likewise.
76831         * modules/hmac-sha1 (Makefile.am): Likewise.
76832         * modules/human (Makefile.am): Likewise.
76833         * modules/idcache (Makefile.am): Likewise.
76834         * modules/imaxabs (Makefile.am): Likewise.
76835         * modules/imaxdiv (Makefile.am): Likewise.
76836         * modules/inet_ntop (Makefile.am): Likewise.
76837         * modules/inet_pton (Makefile.am): Likewise.
76838         * modules/intprops (Makefile.am): Likewise.
76839         * modules/inttostr (Makefile.am): Likewise.
76840         * modules/inttypes (Makefile.am): Likewise.
76841         * modules/isapipe (Makefile.am): Likewise.
76842         * modules/javaversion (Makefile.am): Likewise.
76843         * modules/lchmod (Makefile.am): Likewise.
76844         * modules/lchown (Makefile.am): Likewise.
76845         * modules/localcharset (Makefile.am): Likewise.
76846         * modules/long-options (Makefile.am): Likewise.
76847         * modules/lstat (Makefile.am): Likewise.
76848         * modules/malloc (Makefile.am): Likewise.
76849         * modules/mathl (Makefile.am): Likewise.
76850         * modules/mbchar (Makefile.am): Likewise.
76851         * modules/md2 (Makefile.am): Likewise.
76852         * modules/md4 (Makefile.am): Likewise.
76853         * modules/md5 (Makefile.am): Likewise.
76854         * modules/memcasecmp (Makefile.am): Likewise.
76855         * modules/memchr (Makefile.am): Likewise.
76856         * modules/memcmp (Makefile.am): Likewise.
76857         * modules/memcoll (Makefile.am): Likewise.
76858         * modules/memcpy (Makefile.am): Likewise.
76859         * modules/memmem (Makefile.am): Likewise.
76860         * modules/memmove (Makefile.am): Likewise.
76861         * modules/mempcpy (Makefile.am): Likewise.
76862         * modules/memrchr (Makefile.am): Likewise.
76863         * modules/memset (Makefile.am): Likewise.
76864         * modules/memxor (Makefile.am): Likewise.
76865         * modules/mkancesdirs (Makefile.am): Likewise.
76866         * modules/mkdir-p (Makefile.am): Likewise.
76867         * modules/mkdir (Makefile.am): Likewise.
76868         * modules/mkdtemp (Makefile.am): Likewise.
76869         * modules/mkstemp (Makefile.am): Likewise.
76870         * modules/mktime (Makefile.am): Likewise.
76871         * modules/modechange (Makefile.am): Likewise.
76872         * modules/mountlist (Makefile.am): Likewise.
76873         * modules/nanosleep (Makefile.am): Likewise.
76874         * modules/obstack (Makefile.am): Likewise.
76875         * modules/openat (Makefile.am): Likewise.
76876         * modules/pagealign_alloc (Makefile.am): Likewise.
76877         * modules/pathmax (Makefile.am): Likewise.
76878         * modules/physmem (Makefile.am): Likewise.
76879         * modules/poll (Makefile.am): Likewise.
76880         * modules/posixtm (Makefile.am): Likewise.
76881         * modules/posixver (Makefile.am): Likewise.
76882         * modules/putenv (Makefile.am): Likewise.
76883         * modules/quote (Makefile.am): Likewise.
76884         * modules/quotearg (Makefile.am): Likewise.
76885         * modules/raise (Makefile.am): Likewise.
76886         * modules/read-file (Makefile.am): Likewise.
76887         * modules/readline (Makefile.am): Likewise.
76888         * modules/readlink (Makefile.am): Likewise.
76889         * modules/readtokens (Makefile.am): Likewise.
76890         * modules/readutmp (Makefile.am): Likewise.
76891         * modules/realloc (Makefile.am): Likewise.
76892         * modules/regex (Makefile.am): Likewise.
76893         * modules/rename-dest-slash (Makefile.am): Likewise.
76894         * modules/rename (Makefile.am): Likewise.
76895         * modules/rijndael (Makefile.am): Likewise.
76896         * modules/rmdir (Makefile.am): Likewise.
76897         * modules/rpmatch (Makefile.am): Likewise.
76898         * modules/safe-read (Makefile.am): Likewise.
76899         * modules/safe-write (Makefile.am): Likewise.
76900         * modules/same-inode (Makefile.am): Likewise.
76901         * modules/same (Makefile.am): Likewise.
76902         * modules/save-cwd (Makefile.am): Likewise.
76903         * modules/savedir (Makefile.am): Likewise.
76904         * modules/setenv (Makefile.am): Likewise.
76905         * modules/settime (Makefile.am): Likewise.
76906         * modules/sha1 (Makefile.am): Likewise.
76907         * modules/sig2str (Makefile.am): Likewise.
76908         * modules/snprintf (Makefile.am): Likewise.
76909         * modules/stat-macros (Makefile.am): Likewise.
76910         * modules/stat-time (Makefile.am): Likewise.
76911         * modules/stdbool (Makefile.am): Likewise.
76912         * modules/stdint (Makefile.am): Likewise.
76913         * modules/stdlib-safer (Makefile.am): Likewise.
76914         * modules/stpcpy (Makefile.am): Likewise.
76915         * modules/stpncpy (Makefile.am): Likewise.
76916         * modules/strcase (Makefile.am): Likewise.
76917         * modules/strcasestr (Makefile.am): Likewise.
76918         * modules/strchrnul (Makefile.am): Likewise.
76919         * modules/strcspn (Makefile.am): Likewise.
76920         * modules/strdup (Makefile.am): Likewise.
76921         * modules/strerror (Makefile.am): Likewise.
76922         * modules/strftime (Makefile.am): Likewise.
76923         * modules/strndup (Makefile.am): Likewise.
76924         * modules/strnlen (Makefile.am): Likewise.
76925         * modules/strpbrk (Makefile.am): Likewise.
76926         * modules/strsep (Makefile.am): Likewise.
76927         * modules/strstr (Makefile.am): Likewise.
76928         * modules/strtod (Makefile.am): Likewise.
76929         * modules/strtoimax (Makefile.am): Likewise.
76930         * modules/strtok_r (Makefile.am): Likewise.
76931         * modules/strtol (Makefile.am): Likewise.
76932         * modules/strtoll (Makefile.am): Likewise.
76933         * modules/strtoul (Makefile.am): Likewise.
76934         * modules/strtoull (Makefile.am): Likewise.
76935         * modules/strtoumax (Makefile.am): Likewise.
76936         * modules/strverscmp (Makefile.am): Likewise.
76937         * modules/sys_socket (Makefile.am): Likewise.
76938         * modules/sys_stat (Makefile.am): Likewise.
76939         * modules/sysexits (Makefile.am): Likewise.
76940         * modules/time_r (Makefile.am): Likewise.
76941         * modules/timegm (Makefile.am): Likewise.
76942         * modules/timespec (Makefile.am): Likewise.
76943         * modules/tmpfile-safer (Makefile.am): Likewise.
76944         * modules/trim (Makefile.am): Likewise.
76945         * modules/unistd-safer (Makefile.am): Likewise.
76946         * modules/unlinkdir (Makefile.am): Likewise.
76947         * modules/unlocked-io (Makefile.am): Likewise.
76948         * modules/userspec (Makefile.am): Likewise.
76949         * modules/utime (Makefile.am): Likewise.
76950         * modules/utimecmp (Makefile.am): Likewise.
76951         * modules/utimens (Makefile.am): Likewise.
76952         * modules/vasnprintf (Makefile.am): Likewise.
76953         * modules/vasprintf (Makefile.am): Likewise.
76954         * modules/vsnprintf (Makefile.am): Likewise.
76955         * modules/xalloc (Makefile.am): Likewise.
76956         * modules/xgetcwd (Makefile.am): Likewise.
76957         * modules/xnanosleep (Makefile.am): Likewise.
76958         * modules/xreadlink (Makefile.am): Likewise.
76959         * modules/xstrtod (Makefile.am): Likewise.
76960         * modules/xstrtol (Makefile.am): Likewise.
76961         * modules/xstrtold (Makefile.am): Likewise.
76962         * modules/yesno (Makefile.am): Likewise.
76963         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76964
76965 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * modules/error (Makefile.am): Distribute files through
76968         EXTRA_DIST, not lib_SOURCES.
76969
76970 2006-10-12  Eric Blake  <ebb9@byu.net>
76971
76972         * modules/error (Makefile.am): Distribute files in /lib.
76973         * modules/obstack (Makefile.am): Likewise.
76974
76975 2006-10-12  Bruno Haible  <bruno@clisp.org>
76976
76977         * modules/acl (Makefile.am): Distribute all files in lib/ through
76978         EXTRA_DIST.
76979         * modules/arcfour (Makefile.am): Likewise.
76980         * modules/arctwo (Makefile.am): Likewise.
76981         * modules/argmatch (Makefile.am): Likewise.
76982         * modules/argz (Makefile.am): Likewise.
76983         * modules/atexit (Makefile.am): Likewise.
76984         * modules/backupfile (Makefile.am): Likewise.
76985         * modules/c-strtod (Makefile.am): Likewise.
76986         * modules/c-strtold (Makefile.am): Likewise.
76987         * modules/calloc (Makefile.am): Likewise.
76988         * modules/canon-host (Makefile.am): Likewise.
76989         * modules/canonicalize (Makefile.am): Likewise.
76990         * modules/chdir-long (Makefile.am): Likewise.
76991         * modules/chdir-safer (Makefile.am): Likewise.
76992         * modules/check-version (Makefile.am): Likewise.
76993         * modules/chown (Makefile.am): Likewise.
76994         * modules/cloexec (Makefile.am): Likewise.
76995         * modules/close-stream (Makefile.am): Likewise.
76996         * modules/closeout (Makefile.am): Likewise.
76997         * modules/crc (Makefile.am): Likewise.
76998         * modules/cycle-check (Makefile.am): Likewise.
76999         * modules/des (Makefile.am): Likewise.
77000         * modules/dirfd (Makefile.am): Likewise.
77001         * modules/dirname (Makefile.am): Likewise.
77002         * modules/dup2 (Makefile.am): Likewise.
77003         * modules/euidaccess (Makefile.am): Likewise.
77004         * modules/exclude (Makefile.am): Likewise.
77005         * modules/exitfail (Makefile.am): Likewise.
77006         * modules/fcntl-safer (Makefile.am): Likewise.
77007         * modules/file-type (Makefile.am): Likewise.
77008         * modules/fileblocks (Makefile.am): Likewise.
77009         * modules/filemode (Makefile.am): Likewise.
77010         * modules/filenamecat (Makefile.am): Likewise.
77011         * modules/fnmatch (Makefile.am): Likewise.
77012         * modules/fopen-safer (Makefile.am): Likewise.
77013         * modules/fpending (Makefile.am): Likewise.
77014         * modules/fprintftime (Makefile.am): Likewise.
77015         * modules/free (Makefile.am): Likewise.
77016         * modules/fsusage (Makefile.am): Likewise.
77017         * modules/ftruncate (Makefile.am): Likewise.
77018         * modules/fts (Makefile.am): Likewise.
77019         * modules/gc (Makefile.am): Likewise.
77020         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77021         * modules/getaddrinfo (Makefile.am): Likewise.
77022         * modules/getcwd (Makefile.am): Likewise.
77023         * modules/getdelim (Makefile.am): Likewise.
77024         * modules/getdomainname (Makefile.am): Likewise.
77025         * modules/getgroups (Makefile.am): Likewise.
77026         * modules/gethostname (Makefile.am): Likewise.
77027         * modules/gethrxtime (Makefile.am): Likewise.
77028         * modules/getline (Makefile.am): Likewise.
77029         * modules/getloadavg (Makefile.am): Likewise.
77030         * modules/getlogin_r (Makefile.am): Likewise.
77031         * modules/getopt (Makefile.am): Likewise.
77032         * modules/getpass (Makefile.am): Likewise.
77033         * modules/getpass-gnu (Makefile.am): Likewise.
77034         * modules/getsubopt (Makefile.am): Likewise.
77035         * modules/gettime (Makefile.am): Likewise.
77036         * modules/gettimeofday (Makefile.am): Likewise.
77037         * modules/getugroups (Makefile.am): Likewise.
77038         * modules/getusershell (Makefile.am): Likewise.
77039         * modules/glob (Makefile.am): Likewise.
77040         * modules/group-member (Makefile.am): Likewise.
77041         * modules/hard-locale (Makefile.am): Likewise.
77042         * modules/hash (Makefile.am): Likewise.
77043         * modules/hmac-md5 (Makefile.am): Likewise.
77044         * modules/hmac-sha1 (Makefile.am): Likewise.
77045         * modules/human (Makefile.am): Likewise.
77046         * modules/idcache (Makefile.am): Likewise.
77047         * modules/imaxabs (Makefile.am): Likewise.
77048         * modules/imaxdiv (Makefile.am): Likewise.
77049         * modules/inet_ntop (Makefile.am): Likewise.
77050         * modules/inet_pton (Makefile.am): Likewise.
77051         * modules/inttostr (Makefile.am): Likewise.
77052         * modules/isapipe (Makefile.am): Likewise.
77053         * modules/lchown (Makefile.am): Likewise.
77054         * modules/long-options (Makefile.am): Likewise.
77055         * modules/lstat (Makefile.am): Likewise.
77056         * modules/malloc (Makefile.am): Likewise.
77057         * modules/mathl (Makefile.am): Likewise.
77058         * modules/mbchar (Makefile.am): Likewise.
77059         * modules/md2 (Makefile.am): Likewise.
77060         * modules/md4 (Makefile.am): Likewise.
77061         * modules/md5 (Makefile.am): Likewise.
77062         * modules/memcasecmp (Makefile.am): Likewise.
77063         * modules/memchr (Makefile.am): Likewise.
77064         * modules/memcmp (Makefile.am): Likewise.
77065         * modules/memcoll (Makefile.am): Likewise.
77066         * modules/memcpy (Makefile.am): Likewise.
77067         * modules/memmem (Makefile.am): Likewise.
77068         * modules/memmove (Makefile.am): Likewise.
77069         * modules/mempcpy (Makefile.am): Likewise.
77070         * modules/memrchr (Makefile.am): Likewise.
77071         * modules/memset (Makefile.am): Likewise.
77072         * modules/memxor (Makefile.am): Likewise.
77073         * modules/mkancesdirs (Makefile.am): Likewise.
77074         * modules/mkdir (Makefile.am): Likewise.
77075         * modules/mkdir-p (Makefile.am): Likewise.
77076         * modules/mkdtemp (Makefile.am): Likewise.
77077         * modules/mkstemp (Makefile.am): Likewise.
77078         * modules/mktime (Makefile.am): Likewise.
77079         * modules/modechange (Makefile.am): Likewise.
77080         * modules/mountlist (Makefile.am): Likewise.
77081         * modules/nanosleep (Makefile.am): Likewise.
77082         * modules/openat (Makefile.am): Likewise.
77083         * modules/pagealign_alloc (Makefile.am): Likewise.
77084         * modules/physmem (Makefile.am): Likewise.
77085         * modules/poll (Makefile.am): Likewise.
77086         * modules/posixtm (Makefile.am): Likewise.
77087         * modules/posixver (Makefile.am): Likewise.
77088         * modules/putenv (Makefile.am): Likewise.
77089         * modules/quote (Makefile.am): Likewise.
77090         * modules/quotearg (Makefile.am): Likewise.
77091         * modules/raise (Makefile.am): Likewise.
77092         * modules/read-file (Makefile.am): Likewise.
77093         * modules/readline (Makefile.am): Likewise.
77094         * modules/readlink (Makefile.am): Likewise.
77095         * modules/readtokens (Makefile.am): Likewise.
77096         * modules/readutmp (Makefile.am): Likewise.
77097         * modules/realloc (Makefile.am): Likewise.
77098         * modules/regex (Makefile.am): Likewise.
77099         * modules/rename (Makefile.am): Likewise.
77100         * modules/rename-dest-slash (Makefile.am): Likewise.
77101         * modules/rijndael (Makefile.am): Likewise.
77102         * modules/rmdir (Makefile.am): Likewise.
77103         * modules/rpmatch (Makefile.am): Likewise.
77104         * modules/safe-read (Makefile.am): Likewise.
77105         * modules/safe-write (Makefile.am): Likewise.
77106         * modules/same (Makefile.am): Likewise.
77107         * modules/save-cwd (Makefile.am): Likewise.
77108         * modules/savedir (Makefile.am): Likewise.
77109         * modules/setenv (Makefile.am): Likewise.
77110         * modules/settime (Makefile.am): Likewise.
77111         * modules/sha1 (Makefile.am): Likewise.
77112         * modules/sig2str (Makefile.am): Likewise.
77113         * modules/snprintf (Makefile.am): Likewise.
77114         * modules/stdlib-safer (Makefile.am): Likewise.
77115         * modules/stpcpy (Makefile.am): Likewise.
77116         * modules/stpncpy (Makefile.am): Likewise.
77117         * modules/strcase (Makefile.am): Likewise.
77118         * modules/strcasestr (Makefile.am): Likewise.
77119         * modules/strchrnul (Makefile.am): Likewise.
77120         * modules/strcspn (Makefile.am): Likewise.
77121         * modules/strdup (Makefile.am): Likewise.
77122         * modules/strerror (Makefile.am): Likewise.
77123         * modules/strftime (Makefile.am): Likewise.
77124         * modules/strndup (Makefile.am): Likewise.
77125         * modules/strnlen (Makefile.am): Likewise.
77126         * modules/strpbrk (Makefile.am): Likewise.
77127         * modules/strsep (Makefile.am): Likewise.
77128         * modules/strstr (Makefile.am): Likewise.
77129         * modules/strtod (Makefile.am): Likewise.
77130         * modules/strtoimax (Makefile.am): Likewise.
77131         * modules/strtok_r (Makefile.am): Likewise.
77132         * modules/strtol (Makefile.am): Likewise.
77133         * modules/strtoll (Makefile.am): Likewise.
77134         * modules/strtoul (Makefile.am): Likewise.
77135         * modules/strtoull (Makefile.am): Likewise.
77136         * modules/strtoumax (Makefile.am): Likewise.
77137         * modules/strverscmp (Makefile.am): Likewise.
77138         * modules/time_r (Makefile.am): Likewise.
77139         * modules/timegm (Makefile.am): Likewise.
77140         * modules/tmpfile-safer (Makefile.am): Likewise.
77141         * modules/unistd-safer (Makefile.am): Likewise.
77142         * modules/unlinkdir (Makefile.am): Likewise.
77143         * modules/userspec (Makefile.am): Likewise.
77144         * modules/utime (Makefile.am): Likewise.
77145         * modules/utimecmp (Makefile.am): Likewise.
77146         * modules/utimens (Makefile.am): Likewise.
77147         * modules/vasnprintf (Makefile.am): Likewise.
77148         * modules/vasprintf (Makefile.am): Likewise.
77149         * modules/vsnprintf (Makefile.am): Likewise.
77150         * modules/xalloc (Makefile.am): Likewise.
77151         * modules/xgetcwd (Makefile.am): Likewise.
77152         * modules/xnanosleep (Makefile.am): Likewise.
77153         * modules/xreadlink (Makefile.am): Likewise.
77154         * modules/xstrtod (Makefile.am): Likewise.
77155         * modules/xstrtol (Makefile.am): Likewise.
77156         * modules/xstrtold (Makefile.am): Likewise.
77157         * modules/yesno (Makefile.am): Likewise.
77158
77159 2006-10-12  Jim Meyering  <jim@meyering.net>
77160
77161         * m4/getloadavg.m4: Revert the change below.
77162
77163         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77164         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77165         fail with a symlink, which is what coreutils' ./bootstrap now
77166         creates by default.
77167
77168 2006-10-12  Bruno Haible  <bruno@clisp.org>
77169
77170         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77171         mingw.
77172         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77173         MSVC and mingw explicitly.
77174
77175 2006-10-11  Simon Josefsson  <jas@extundo.com>
77176             Bruno Haible  <bruno@clisp.org>
77177
77178         Add support for multiple gnulib-tool invocations in the scope of a
77179         single configure.ac file.
77180         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77181         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77182         with the same contents as the _LIBADD variable.
77183         (func_emit_initmacro_start, func_emit_initmacro_end,
77184         func_emit_initmacro_done): New functions.
77185         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77186         gl_LIBOBJS and gl_LTLIBOBJS.
77187
77188 2006-10-11  Bruno Haible  <bruno@clisp.org>
77189
77190         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77191         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77192         autoreconf. Instead, invoke autopoint explicitly but move back the
77193         *.m4 files from gnulib.
77194
77195 2006-10-11  Bruno Haible  <bruno@clisp.org>
77196
77197         * gnulib-tool (func_usage): Make module names after --create-testdir
77198         optional.
77199         (func_create_testdir): If no module was specified, use nearly all
77200         modules.
77201
77202 2006-10-12  Jim Meyering  <jim@meyering.net>
77203
77204         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77205         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77206         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77207         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77208         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77209         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77210         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77211         (fts_set_stat_required): New function.
77212         (fts_open): Defer the calls to fts_stat, if possible or requested.
77213         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77214         into fts_stat itself.
77215         (fts_read): Perform any required (deferred) fts_stat call.
77216         (fts_build): Likewise, for the directory we're about to open and read.
77217         In the readdir loop, carefully decide whether each entry will require
77218         an eventual call to fts_stat, using dirent.d_type info if available.
77219         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77220         a command line argument into this function.  Update all callers.
77221         Map a return value of FTS_DOT to FTS_D for a command line argument.
77222         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77223         Thanks to Miklos Szeredi for his tenacity and for the initial
77224         bug report about "find" failing on a FUSE-based file system.
77225
77226         * lib/fts.c (fts_open): Use consistent indentation.
77227
77228 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77229
77230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77231         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77232         reported by Jim Meyering.  All uses of cache variables renamed
77233         to match Autoconf's.
77234         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77235         the other one.
77236
77237         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77238         Fix misspelling in diagnostic.
77239
77240 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77243         defined.  Problem reported by Matthew Woehlke.
77244
77245         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77246         Add support for Tandem NonStop R series.
77247         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77248         Use new macro.
77249
77250         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77251         (has_trailing_slash): Omit size arg; all callers changed.
77252         Omit 'inline', since it doesn't help performance and we'd
77253         need to configure it.
77254         Don't count //, ///, etc. as having a trailing slash.
77255         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77256         (rpl_rename_dest_slash): On failure, use rename's errno rather
77257         than (in some cases) an incorrect or junk errno.
77258         Simplify code by removing need to compute length; this does
77259         cause it to make two passes instead of one over the file name,
77260         but it's worth it.
77261
77262         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77263         change, since Autoconf's version may no longer be appropriate now
77264         that we are using CVS Autoconf's version.  Add support for Tandem.
77265
77266 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77267             Bruno Haible  <bruno@clisp.org>
77268
77269         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77270         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77271         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77272         gl_AC_TYPE_LONG_LONG.
77273
77274         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77275         instead of HAVE_LONG_LONG.
77276         * lib/printf-args.c (printf_fetchargs): Likewise.
77277         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77278         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77279         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77280         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77281         gl_AC_TYPE_LONG_LONG.
77282
77283 2006-10-11  Bruno Haible  <bruno@clisp.org>
77284
77285         * m4/longlong.m4: Add comments.
77286         * m4/ulonglong.m4: Likewise.
77287
77288 2006-10-10  Bruno Haible  <bruno@clisp.org>
77289
77290         Make it possible to #define stpcpy, strdup to aliases.
77291         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77292         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77293
77294 2006-10-10  Bruno Haible  <bruno@clisp.org>
77295
77296         Make it possible to #define gcd to an alias.
77297         * lib/gcd.c: Include config.h.
77298
77299 2006-10-10  Bruno Haible  <bruno@clisp.org>
77300
77301         Make it possible to #define c_isascii to an alias.
77302         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77303         defined. Undefine the macros before defining them, to avoid gcc
77304         warnings.
77305         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77306         define NO_C_CTYPE_MACROS early.
77307
77308 2006-10-10  Bruno Haible  <bruno@clisp.org>
77309
77310         Make it possible to #define set_program_name to an alias.
77311         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77312         ENABLE_RELOCATABLE early.
77313
77314 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77317         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77318         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77319         More generally, don't assume that 64-bit signed int is available
77320         if unsigned int is, and vice versa.
77321         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77322         unsigned symbols, not on their signed counterparts.
77323         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77324         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77325         (UINT64_C, UINTMAX_C):
77326         Likewise.
77327         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77328         unsigned counterparts.
77329         (Have_long_long, Unsigned): New macros.
77330         (Int): Renamed from INT.
77331         (strtoimax): Use the new macros.
77332         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77333         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77334         * modules/inttypes (inttypes.h): Substitute
77335         HAVE_UNSIGNED_LONG_LONG_INT.
77336         * modules/stdint (stdint.h): Likewise.
77337         (Files): Add m4/ulonglong.m4.
77338
77339 2006-10-10  Bruno Haible  <bruno@clisp.org>
77340
77341         Fix a gcc -Wshadow warning.
77342         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77343         to 'bucket'.
77344         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77345         gl_linked_indexof_from_to): Likewise.
77346         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77347         Likewise.
77348         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77349         Likewise.
77350         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77351         Reported by Eric Blake.
77352
77353 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77356         for NetBSD.  Problem reported by Bruno Haible.
77357
77358 2006-10-09  Jim Meyering  <jim@meyering.net>
77359
77360         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77361         Patch from Bruno Haible.
77362
77363 2006-10-09  Jim Meyering  <jim@meyering.net>
77364
77365         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77366         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77367         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77368
77369 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         Don't include <config.h> twice; this doesn't work in some cases,
77372         e.g., when config.h has "#define intmax_t long long int" and
77373         we include <config.h>, <inttypes.h>, <config.h> in that order.
77374         Problem reported by Matthew Woehlke in:
77375         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77376         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77377         * lib/fts-cycle.c: Don't include config.h.
77378         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77379         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77380         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77381         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77382         inttypes.h.
77383         * lib/xstrtoumax.c: Likewise.
77384         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77385         __strtol and the like, so that this module is more like its siblings.
77386         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77387         Remove; no longer needed now that we assume gnulib inttypes.h.
77388
77389 2006-10-08  Bruno Haible  <bruno@clisp.org>
77390
77391         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77392         option.
77393
77394 2006-10-07  Jim Meyering  <jim@meyering.net>
77395
77396         * modules/inttypes (inttypes.h): Revert what seems to have been
77397         an inadvertent part of today's change: use "|", not "/" in the
77398         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77399
77400 2006-10-07  Bruno Haible  <bruno@clisp.org>
77401
77402         * modules/sublist: New file.
77403
77404 2006-10-07  Bruno Haible  <bruno@clisp.org>
77405
77406         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77407         * modules/argz (argz.h): Likewise.
77408         * modules/arpa_inet (arpa/inet.h): Likewise.
77409         * modules/byteswap (byteswap.h): Likewise.
77410         * modules/configmake (configmake.h): Likewise.
77411         * modules/fcntl (fcntl.h): Likewise.
77412         * modules/fnmatch (fnmatch.h): Likewise.
77413         * modules/getopt (getopt.h): Likewise.
77414         * modules/glob (glob.h): Likewise.
77415         * modules/inttypes (inttypes.h): Likewise.
77416         * modules/netinet_in (netinet/in.h): Likewise.
77417         * modules/poll (poll.h): Likewise.
77418         * modules/stdbool (stdbool.h): Likewise.
77419         * modules/stdint (stdint.h): Likewise.
77420         * modules/sys_select (sys/select.h): Likewise.
77421         * modules/sys_socket (sys/socket.h): Likewise.
77422         * modules/sys_stat (sys/stat.h): Likewise.
77423         * modules/sysexits (sysexits.h): Likewise.
77424         * modules/unistd (unistd.h): Likewise.
77425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77426         Add a "DO NOT EDIT" comment to the generated file.
77427         (func_import): Likewise for gnulib-comp.m4.
77428
77429 2006-10-07  Bruno Haible  <bruno@clisp.org>
77430
77431         * lib/gl_sublist.h: New file.
77432         * lib/gl_sublist.c: New file.
77433
77434 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77437         name (relative to the original working directory) and the file
77438         name component (relative to the temporary working directory).  All
77439         callers changed.
77440         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77441         * lib/mkdir-p.c (make_dir_parents): Likewise.
77442         * lib/mkdir-p.h (make_dir_parents): Likewise.
77443
77444 2006-10-06  Eric Blake  <ebb9@byu.net>
77445
77446         Define several macros for use by the clean-temp module.
77447         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77448         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77449         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77450
77451         * lib/clean-temp.h (close_stream_temp): New declaration.
77452         * lib/clean-temp.c (includes): Pull in headers according to what
77453         other modules are in use.
77454         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77455
77456 2006-10-06  Bruno Haible  <bruno@clisp.org>
77457
77458         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77459         instead of fopen, fwriteerror.
77460
77461 2006-10-06  Bruno Haible  <bruno@clisp.org>
77462
77463         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77464         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77465         int.
77466         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77467         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77468         Return an error indicator.
77469         Suggested by Eric Blake.
77470
77471 2006-10-06  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77474         Reported by Eric Blake.
77475
77476 2006-10-06  Bruno Haible  <bruno@clisp.org>
77477
77478         * modules/closeout (Description): Mention stderr too.
77479
77480 2006-10-06  Bruno Haible  <bruno@clisp.org>
77481         and Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         * lib/closeout.c (close_stdout): Also close stderr.
77484         * lib/closeout.h: Update comment.
77485
77486 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77489         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77490         * lib/dirchownmod.c: Include lchown.h.
77491         * lib/lchown.c: Don't include files that lchown.h now includes.
77492         Don't declare chown, since lchown.h now does that.
77493         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77494         (lchown): Define to rpl_chown if lchown is declared but
77495         does not exist.  Declare using a prototype if lchown is not
77496         declared.  Add a copyright notice.
77497         * lib/mkstemp.h: Include <unistd.h>.
77498         * lib/openat.c: Include lchown.h.
77499
77500         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77501         we now test for that separately.
77502         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77503         rather than O_NOFOLLOW, when testing whether it's possible to
77504         avoid a race condition reliably.
77505         * lib/savewd.c (savewd_chdir): Likewise.
77506
77507         Remove macros that are no longer needed now that stdint.h is
77508         reliable.
77509         * lib/fsusage.c (UINTMAX_MAX): Remove.
77510         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77511         * lib/utimecmp.c (SIZE_MAX): Remove.
77512
77513         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77514
77515         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77516         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77517         O_NOATIME works.
77518
77519 2006-10-05  Bruno Haible  <bruno@clisp.org>
77520
77521         * lib/gl_list.h (gl_sortedlist_search_from_to,
77522         gl_sortedlist_indexof_from_to): New declarations.
77523         (gl_list_implementation): New fields sortedlist_search_from_to,
77524         sortedlist_indexof_from_to.
77525         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77526         inline functions.
77527         * lib/gl_list.c (gl_sortedlist_search_from_to,
77528         gl_sortedlist_indexof_from_to): New functions.
77529         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77530         function.
77531         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77532         (gl_array_sortedlist_search_from_to): New function.
77533         (gl_array_list_implementation): Update.
77534         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77535         function.
77536         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77537         (gl_carray_sortedlist_search_from_to): New function.
77538         (gl_carray_list_implementation): Update.
77539         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77540         gl_linked_sortedlist_indexof_from_to): New functions.
77541         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77542         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77543         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77544         gl_tree_sortedlist_indexof_from_to): New functions.
77545         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77546         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77547         Update.
77548         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77549         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77550         Update.
77551
77552 2006-10-05  Bruno Haible  <bruno@clisp.org>
77553
77554         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77555         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77556         (struct gl_list_implementation): Add fields search_from_to,
77557         indexof_from_to. Remove fields search, indexof.
77558         (gl_list_search): Use the search_from_to method.
77559         (gl_list_search_from, gl_list_search_from_to): New functions.
77560         (gl_list_indexof): Use the indexof_from_to method.
77561         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77562         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77563         (gl_list_search_from, gl_list_search_from_to): New functions.
77564         (gl_list_indexof): Use the indexof_from_to method.
77565         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77566         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77567         gl_array_indexof. Add start_index, end_index arguments.
77568         (gl_array_search_from_to): Renamed from gl_array_search. Add
77569         start_index, end_index arguments.
77570         (gl_array_remove, gl_array_list_implementation): Update.
77571         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77572         gl_carray_indexof. Add start_index, end_index arguments.
77573         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77574         start_index, end_index arguments.
77575         (gl_carray_remove, gl_carray_list_implementation): Update.
77576         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77577         gl_linked_search. Add start_index, end_index arguments.
77578         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77579         start_index, end_index arguments.
77580         (gl_linked_remove): Update.
77581         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77582         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77583         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77584         field to 'size_t'.
77585         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77586         gl_tree_search. Add start_index, end_index arguments.
77587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77588         start_index, end_index arguments.
77589         (gl_tree_remove): Update.
77590         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77591         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77592         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77593         function.
77594         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77595         gl_tree_search. Add start_index, end_index arguments.
77596         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77597         start_index, end_index arguments.
77598         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77599         Update.
77600         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77601
77602 2006-10-05  Bruno Haible  <bruno@clisp.org>
77603
77604         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77605
77606         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77607         fwriteerror_temp): New declarations.
77608         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77609         (descriptors): New variable.
77610         (cleanup): First, close the descriptors.
77611         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77612         fclose_temp, fwriteerror_temp): New functions.
77613
77614 2006-10-04  Jim Meyering  <jim@meyering.net>
77615
77616         * lib/fts.c (fts_open): Tiny comment change.
77617
77618 2006-10-04  Bruno Haible  <bruno@clisp.org>
77619
77620         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77621         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77622         gl_LOCK_BODY.
77623         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77624         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77625         gl_LOCK_EARLY_BODY.
77626         (gl_LOCK): Require gl_LOCK_BODY.
77627
77628 2006-10-04  Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77631         (gl_oset_search_atleast): New declaration.
77632         (struct gl_oset_implementation): Add field 'search_atleast'.
77633         (gl_oset_search_atleast): New inline function.
77634         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77635         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77636         (gl_array_oset_implementation): Update.
77637         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77638         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77639         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77640
77641 2006-10-04  Bruno Haible  <bruno@clisp.org>
77642
77643         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77644
77645 2006-10-03  Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77648         from gl_avltreehash_list_implementation.
77649
77650 2006-10-03  Bruno Haible  <bruno@clisp.org>
77651
77652         * lib/gl_oset.c (gl_oset_add): Fix return type.
77653
77654 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77655
77656         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77657
77658 2006-10-02  Eric Blake  <ebb9@byu.net>
77659
77660         * modules/strnlen (Depends-on): Add extensions.
77661
77662 2006-10-02  Eric Blake  <ebb9@byu.net>
77663
77664         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77665         definition in 2.60+.
77666
77667 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77668
77669         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77670         checks.
77671
77672 2006-10-02  Bruno Haible  <bruno@clisp.org>
77673
77674         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77675         to the AUTOMAKE_OPTIONS.
77676         Reported by Jim Meyering.
77677
77678 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         Work around bug in Solaris 10 /proc file system:
77681         /proc/self/fd/NNN/.. isn't the parent directory of
77682         the directory whose file descriptor is NNN.  This needs to
77683         be worked around at run time, not compile time, since a
77684         program might be built on Solaris 8, where things work, and
77685         run on Solaris 10.
77686         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77687         to use the following interface instead:
77688         (OPENAT_BUFFER_SIZE): New macro.
77689         (openat_proc_name): New function.
77690         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77691         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77692         Likewise.
77693         * lib/openat-proc.c: New file.
77694         * modules/openat (Files): Add lib/openat-proc.c.
77695         (Depends-on): Add same-inode, stdbool.
77696         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77697
77698 2006-09-29  Bruno Haible  <bruno@clisp.org>
77699
77700         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77701         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77702         argument. Set stdout_closed before testing for ferror, not after.
77703         (fwriteerror, fwriteerror_no_ebadf): New functions.
77704
77705 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77706
77707         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77708
77709 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77710
77711         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77712         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77713
77714 2006-09-28  Jim Meyering  <jim@meyering.net>
77715
77716         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77717         Include <unistd.h>.
77718
77719 2006-09-28  Bruno Haible  <bruno@clisp.org>
77720
77721         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77722         * modules/linkedhash-list (Depends-on): Likewise.
77723         * modules/rbtreehash-list (Depends-on): Likewise.
77724
77725 2006-09-28  Bruno Haible  <bruno@clisp.org>
77726
77727         * lib/strndup.h: Simplify the redefinition of strndup.
77728         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77729         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77730
77731 2006-09-28  Bruno Haible  <bruno@clisp.org>
77732
77733         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77734         * lib/gl_linkedhash_list.c: Likewise.
77735         * lib/gl_rbtreehash_list.c: Likewise.
77736
77737 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77740         getaddrinfo.
77741
77742         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77743         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77744         it causes <stdio_ext.h> to cause a compile-time error.
77745         Problem reported by Nelson H. F. Beebe.
77746         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77747         of HAVE_DECL___PENDING.
77748
77749         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77751         declaration.
77752
77753 2006-09-27  Jim Meyering  <jim@meyering.net>
77754
77755         This file could end up with a definition for a function
77756         named __strndup, rather than rpl_strndup on a system with
77757         incomplete weak_alias support.
77758         * lib/strndup.c (strndup): Rename from __strndup.
77759         Remove #defines that used to map __strndup to strndup.
77760         Don't use K&R prototypes.
77761         Remove LIBC-related code, since this file is not sync'd with glibc.
77762         * lib/strndup.h: Revamp, accordingly.
77763         * m4/strndup.m4: Modernize.
77764
77765 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * modules/savewd (Depends-on): Add 'raise'.
77768         * lib/savewd.c: Include <signal.h>, for 'raise'.
77769
77770 2006-09-26  Jim Meyering  <jim@meyering.net>
77771
77772         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77773         when we detect Darwin 8.7.0's acl_get_file bug.
77774         Rearrange to perform the new (below) run-test while $LIBS
77775         contains any acl-related library.  Set USE_ACL at the end.
77776         (gl_ACL_GET_FILE): New function.
77777
77778 2006-09-26  Eric Blake  <ebb9@byu.net>
77779
77780         * lib/verror.c: Include <config.h> unconditionally.
77781
77782 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * modules/clock-time (Maintainer): Add self.
77785         * modules/getlogin_r (Depends-on): Add extensions.
77786
77787 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77788
77789         * modules/clock-time: New module.
77790         * modules/nanosleep (Depends-on): Add clock-time.
77791         * modules/gethrxtime (Depends-on): Likewise.
77792         * modules/gettime (Depends-on): Likewise.
77793         * modules/settime (Depends-on): Likewise.
77794
77795         * modules/fts-lgpl: Depend on openat.
77796         * modules/mkancesdirs: Depend on savewd.
77797         * modules/mkdir-p: Likewise.
77798
77799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77800
77801         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77802
77803         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77804         `gl_have_arbitrary_file_name_length_limit' to
77805         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77806         actually works between configure runs.
77807
77808 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77809             Bruno Haible  <bruno@clisp.org>
77810
77811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77812
77813 2006-09-25  Jim Meyering  <jim@meyering.net>
77814
77815         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77816         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77817
77818 2006-09-25  Eric Blake  <ebb9@byu.net>
77819
77820         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77821         exec's in 2006-09-18 patch when shuffling fds.
77822
77823 2006-09-25  Bruno Haible  <bruno@clisp.org>
77824
77825         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77826         Reported by Jim Meyering.
77827
77828 2006-09-24  Jim Meyering  <jim@meyering.net>
77829
77830         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77831         compare a pointer against a literal "0".  That caused failures with
77832         at least HP-UX's hpcc.
77833
77834 2006-09-22  Simon Josefsson  <jas@extundo.com>
77835
77836         * modules/gc-sha1:
77837         * modules/gc-md4:
77838         * modules/gc-hmac-sha1:
77839         * modules/gc-hmac-md5:
77840         * modules/gc-des:
77841         * modules/gc-arcfour: Distribute more files.
77842
77843 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77844
77845         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77846         (gl_linked_iterator_from_to): Initialize struct completely.
77847         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77848         (gl_tree_iterator_from_to): Likewise
77849         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77850         * lib/gl_array_list.c [lint] (gl_array_iterator)
77851         (gl_array_iterator_from_to): Likewise.
77852         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77853         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77854         (gl_carray_iterator_from_to): Likewise.
77855
77856         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77857         * lib/md4.c (md4_process_block): Remove unused variable.
77858         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77859         parentheses for clarity.
77860
77861 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77862
77863         * modules/bison-i18n (Depends-on): Add gettext.
77864
77865 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77866
77867         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77868         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77869         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77870         also add missing comma that caused broken test.
77871         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77872         stdlib.h, for `abort'.
77873         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77874         variables.
77875         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77876         include unistd.h if present, for `rmdir'.
77877         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77878         variables.
77879         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77880         in the process include standard headers for prototypes.
77881         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77882         gets declared on GNU/Linux.
77883         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77884         unistd.h, for `rmdir'.
77885         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77886
77887         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77888         always true.
77889         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77890
77891         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77892
77893 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77894
77895         * gnulib-tool (func_version): Create output all at once.  This
77896         may help avoid triggering unnecessary SIGPIPEs, and at any
77897         rate it doesn't hurt.
77898
77899 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77900             Bruno Haible  <bruno@clisp.org>
77901
77902         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77903         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77904         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77905
77906         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77907         (gl_FUNC_VASPRINTF): Invoke it.
77908
77909 2006-09-22  Bruno Haible  <bruno@clisp.org>
77910
77911         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77912         getloadavg.c as first argument.
77913
77914 2006-09-22  Bruno Haible  <bruno@clisp.org>
77915
77916         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77917         at the beginning of the gl_INIT macro.
77918         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77919         gl_GETLOADAVG.
77920
77921 2006-09-22  Bruno Haible  <bruno@clisp.org>
77922
77923         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77924         module.
77925         Suggested by Ralf Wildenhues.
77926
77927 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         Import this patch from libc:
77930
77931         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77932
77933         * lib/regex_internal.c (re_string_reconstruct): Handle
77934         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77935         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77936         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77937         re_string_context_at.
77938
77939         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77940         now requires it.
77941         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77942         gl_REGEX now does it for us.
77943         (gl_REGEX): Add test taken from
77944         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77945
77946         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77947         Check that large offsets work.  Modernize Autoconf usages.
77948         Prefer "yes" to mean a good thing rather than a bad.
77949         Don't put "#define mkstemp" in config.h, as this might interfere
77950         with standard system headers that "#define mkstemp mkstemp64".
77951
77952         * modules/mkstemp (Depends-on): Add extensions, so that
77953         mkstemp is visible on some platforms.
77954         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77955         (Include): Change to "mkstemp.h" from <stdlib.h>.
77956         (Files): Add mkstemp.h.
77957
77958         * lib/mkstemp.h: New file, since some standard headers
77959         #define mkstemp.
77960         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77961         Include "mkstemp.h".
77962         Make the _LIBC code resemble glibc original more,
77963         e.g., use K&R style.
77964         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77965         (mkstemp): Remove, since mkstemp.h does this for us.
77966         * lib/stdlib--.h: Include mkstemp.h.
77967
77968         Import this patch from libc:
77969
77970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77971
77972         * lib/tempname.c (__gen_tempname): Change attempts_min
77973         into a macro.  Use preprocessor to decide how to initialize
77974         attempts [Coverity CID 67].
77975
77976 2006-09-20  Bruno Haible  <bruno@clisp.org>
77977
77978         * lib/mkdtemp.c: Import from libc.
77979         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77980                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77981                 attempts_min into a macro.  Use preprocessor to decide how to
77982                 initialize attempts [Coverity CID 67].
77983         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77984                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77985                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77986
77987 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77988
77989         * gnulib-tool (func_exit): New function, to allow to pass the
77990         exit status portably through the trap.  Use everywhere.
77991         (--help, --version): Signal a write error.
77992         (trap): catch SIGPIPE, for write errors.
77993         Exit at the end of the trap, with the correct exit status.
77994
77995 2006-09-19  Karl Berry  <karl@gnu.org>
77996
77997         * doc/gnulib.texi: note about the license texinfo files.
77998
77999 2006-09-19  Eric Blake  <ebb9@byu.net>
78000
78001         * gnulib-tool: Avoid space-tab.
78002
78003 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78006         that prevented coreutils 6.1 from building.  Problem reported
78007         by Petter Reinholdtsen.
78008
78009 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * gnulib-tool (avoidlist): Fix typo that broke options like
78012         --avoid=lock that are used by coreutils bootstrap.
78013
78014 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78015
78016         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78017         more systematically.
78018
78019 2006-09-18  Jim Meyering  <jim@meyering.net>
78020
78021         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78022
78023 2006-09-18  Bruno Haible  <bruno@clisp.org>
78024
78025         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78026
78027 2006-09-18  Bruno Haible  <bruno@clisp.org>
78028
78029         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78030         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78031         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78032         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78033         * m4/gettext.m4: Require autoconf >= 2.52.
78034         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78035         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78036         of gl_cv_header_inttypes_h.
78037
78038 2006-09-18  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/javaversion.c: Include configmake.h.
78041
78042 2006-09-18  Bruno Haible  <bruno@clisp.org>
78043
78044         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78045         avoid that the while loops be executed in a subshell.
78046
78047 2006-09-18  Bruno Haible  <bruno@clisp.org>
78048
78049         * MODULES.html.sh (func_module): Break long lines.
78050         Suggested by Bruce Korb <bkorb@gnu.org>.
78051
78052 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78053
78054         Speed up by a factor of 1.12.
78055         * gnulib-tool (nl): New variable.
78056         (func_import): Rewrite include directive extraction to only read each
78057         directive once.
78058
78059 2006-09-17  Bruno Haible  <bruno@clisp.org>
78060
78061         * modules/javaversion (Makefile.am): Remove DEFS setting.
78062         (Depends-on): Add configmake, for PKGDATADIR definition.
78063
78064 2006-09-17  Bruno Haible  <bruno@clisp.org>
78065
78066         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78067
78068 2006-09-17  Bruno Haible  <bruno@clisp.org>
78069
78070         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78071         (func_modules_transitive_closure, func_modules_add_dummy,
78072         func_modules_to_filelist, func_import, func_create_testdir,
78073         func_create_megatestdir, ...): Use it wherever possible.
78074         Suggested by Ralf Wildenhues.
78075
78076 2006-09-16  Karl Berry  <karl@gnu.org>
78077
78078         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78079         to avoid sectioning errors.
78080         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78081         [ifinfo]: blank line after @center-ed titles.
78082         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78083         Spell FSF address consistently with others.
78084         (These changes approved by rms.)
78085
78086 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78087
78088         Speed up by a factor of 1.61.
78089         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78090         already checked module names again.
78091
78092 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78093
78094         Speed up by a factor of 1.13.
78095         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78096         for new_files, and the input to func_add_or_update.
78097
78098 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78099
78100         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78101         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78102
78103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * modules/mkancesdirs (Depends-on): Add fcntl.
78106         * modules/savewd: New file.
78107         * MODULES.html.sh (File system functions): Add savewd.
78108
78109         * modules/configmake (Makefile.am): Add support for the
78110         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78111
78112 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * m4/savewd.m4: New file.
78115
78116 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78119         (dirchownmod): New arg FD.  All callers changed.
78120         Use FD rather than opening the directory ourself, as opening is
78121         now the caller's responsibility.
78122         * lib/dirchownmod.h: Likewise.
78123         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78124         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78125         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78126         (test_dir): Remove.
78127         (mkancesdirs): Return length of prefix of FILE that has already
78128         been made, or -2 if there is a child doing the work.  Redo
78129         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78130         ".", and treat ".." specially since it might stray back into
78131         already-created areas.  Use a subprocess if necessary.  New arg
78132         WD; all users changed.  MAKE_DIR function should now return 1
78133         if it creates a directory that is not readable.  Return -2 if
78134         a child process is spun off.
78135         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78136         Adjust signature to match code.
78137         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78138         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78139         all users changed.
78140         * lib/savewd.c, lib/savewd.h: New files.
78141
78142 2006-09-15  Jim Meyering  <jim@meyering.net>
78143
78144         * modules/rename-dest-slash: New module.
78145         * MODULES.html.sh (posix_compat): Add it here.
78146
78147         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78148
78149 2006-09-15  Jim Meyering  <jim@meyering.net>
78150
78151         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78152         file.
78153
78154         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78155
78156 2006-09-15  Jim Meyering  <jim@meyering.net>
78157
78158         * lib/rename-dest-slash.c (has_trailing_slash): Use
78159         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78160         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78161         test before testing whether SRC is a directory.
78162         Suggestions from Bruno Haible.
78163
78164         Avoid a warning about an unused variable.
78165         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78166         into the #ifdef block where it's used.
78167
78168         * lib/rename-dest-slash.c: New file.
78169
78170 2006-09-14  Bruno Haible  <bruno@clisp.org>
78171
78172         * lib/allocsa.c: Include <config.h> unconditionally.
78173         * lib/asnprintf.c: Likewise.
78174         * lib/asprintf.c: Likewise.
78175         * lib/c-strcasecmp.c: Likewise.
78176         * lib/c-strcasestr.c: Likewise.
78177         * lib/c-strncasecmp.c: Likewise.
78178         * lib/c-strstr.c: Likewise.
78179         * lib/classpath.c: Likewise.
78180         * lib/clean-temp.c: Likewise.
78181         * lib/concatpath.c: Likewise.
78182         * lib/copy-file.c: Likewise.
78183         * lib/csharpcomp.c: Likewise.
78184         * lib/csharpexec.c: Likewise.
78185         * lib/execute.c: Likewise.
78186         * lib/fatal-signal.c: Likewise.
78187         * lib/findprog.c: Likewise.
78188         * lib/fwriteerror.c: Likewise.
78189         * lib/gl_array_list.c: Likewise.
78190         * lib/gl_array_oset.c: Likewise.
78191         * lib/gl_avltree_list.c: Likewise.
78192         * lib/gl_avltree_oset.c: Likewise.
78193         * lib/gl_avltreehash_list.c: Likewise.
78194         * lib/gl_carray_list.c: Likewise.
78195         * lib/gl_linked_list.c: Likewise.
78196         * lib/gl_linkedhash_list.c: Likewise.
78197         * lib/gl_list.c: Likewise.
78198         * lib/gl_oset.c: Likewise.
78199         * lib/gl_rbtree_list.c: Likewise.
78200         * lib/gl_rbtree_oset.c: Likewise.
78201         * lib/gl_rbtreehash_list.c: Likewise.
78202         * lib/imaxabs.c: Likewise.
78203         * lib/imaxdiv.c: Likewise.
78204         * lib/javacomp.c: Likewise.
78205         * lib/javaexec.c: Likewise.
78206         * lib/javaversion.c: Likewise.
78207         * lib/linebreak.c: Likewise.
78208         * lib/localcharset.c: Likewise.
78209         * lib/lock.c: Likewise.
78210         * lib/mbchar.c: Likewise.
78211         * lib/mbswidth.c: Likewise.
78212         * lib/mkdtemp.c: Likewise.
78213         * lib/pipe.c: Likewise.
78214         * lib/printf-args.c: Likewise.
78215         * lib/printf-parse.c: Likewise.
78216         * lib/progname.c: Likewise.
78217         * lib/progreloc.c: Likewise.
78218         * lib/readlink.c: Likewise.
78219         * lib/sh-quote.c: Likewise.
78220         * lib/stpcpy.c: Likewise.
78221         * lib/stpncpy.c: Likewise.
78222         * lib/strcasecmp.c: Likewise.
78223         * lib/strcasestr.c: Likewise.
78224         * lib/strcspn.c: Likewise.
78225         * lib/striconv.c: Likewise.
78226         * lib/strncasecmp.c: Likewise.
78227         * lib/strnlen1.c: Likewise.
78228         * lib/strstr.c: Likewise.
78229         * lib/strtok_r.c: Likewise.
78230         * lib/tls.c: Likewise.
78231         * lib/tmpdir.c: Likewise.
78232         * lib/unicodeio.c: Likewise.
78233         * lib/unsetenv.c: Likewise.
78234         * lib/vasnprintf.c: Likewise.
78235         * lib/vasprintf.c: Likewise.
78236         * lib/wait-process.c: Likewise.
78237         * lib/xallocsa.c: Likewise.
78238         * lib/xsetenv.c: Likewise.
78239         * lib/xstriconv.c: Likewise.
78240
78241 2006-09-13  Simon Josefsson  <jas@extundo.com>
78242
78243         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78244         that internally, suggested by Ralf Wildenhues
78245         <Ralf.Wildenhues@gmx.de>.
78246
78247 2006-09-13  Simon Josefsson  <jas@extundo.com>
78248
78249         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78250         @LIBOBJS@.
78251         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78252
78253 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78256         longer worry about uses that don't define HAVE_CONFIG_H.
78257         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78258         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78259         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78260         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78261         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78262         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78263         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78264         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78265         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78266         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78267         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78268         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78269         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78270         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78271         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78272         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78273         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78274         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78275         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78276         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78277         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78278         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78279         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78280         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78281         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78282         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78283         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78284         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78285         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78286         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78287         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78288         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78289         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78290         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78291         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78292         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78293         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78294         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78295         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78296         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78297         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78298         Likewise.
78299
78300 2006-09-13  Eric Blake  <ebb9@byu.net>
78301
78302         * lib/getopt.c: Fix typo in last commit.
78303
78304 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78305
78306         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78307         dgettext.
78308
78309 2006-09-12  Jim Meyering  <jim@meyering.net>
78310
78311         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78312         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78313         Reported by Nelson H. F. Beebe.
78314
78315 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78316
78317         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78318         program_invocation_name and program_invocation_short_name are
78319         initialized.
78320         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78321         and program_invocation_short_name to argp.h, so they are visible
78322         to user programs.
78323         * lib/argp.h: Likewise
78324
78325 2006-09-10  Bruno Haible  <bruno@clisp.org>
78326
78327         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78328         m4/inttypes_h.m4, m4/uintmax_t.m4.
78329
78330 2006-09-10  Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78333         gl_AC_TYPE_UINTMAX_T.
78334
78335 2006-09-10  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78338
78339 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78340
78341         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78342         convention.  Text proposed by Bruno Haible.
78343         (struct argp_option): Document the use of N_() wrappers.
78344
78345         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78346         '\v', and translate the two parts separately, instead of feeding
78347         the whole string to gettext.  This allows to exclude
78348         '\v' from the strings visible to the translator by writing doc
78349         strings as N_("..") "\v" N_("..").
78350
78351 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * config/srclist.txt: Undo latest change; the bug was fixed.
78354
78355 2006-09-09  Bruno Haible  <bruno@clisp.org>
78356
78357         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78358         assignments if building a library without libtool.
78359         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78360         in func_emit_lib_Makefile_am.
78361         (func_import): When building a static library libfoo.a, arrange to
78362         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78363         (func_create_testdir): Likewise.
78364         * modules/gc (configure.ac, Makefile.am): If building statically,
78365         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78366         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78367         * modules/striconv (configure.ac, Makefile.am): Likewise.
78368         Based on a suggestion by Ralf Wildenhues.
78369
78370 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78373         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78374         Also:
78375
78376         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78377         Add year_2050_test to catch glibc bug 2821
78378         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78379
78380         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78381         Prefer #ifdef to #if.
78382
78383         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78384         Return from 'main' instead of calling 'exit'.
78385
78386 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78389         returned the maximum time_t value rather than (time_t) -1.
78390         Problem originally reported by William Bardwell
78391         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78392
78393         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78394         Moved to here ...
78395         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78396         ... from here.
78397
78398 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78401         2821 is fixed.
78402
78403 2006-09-08  Jim Meyering  <jim@meyering.net>
78404
78405         Don't make generated files read-only.  That would bother too many
78406         people.  However, do retain the ability to work when targets are
78407         read-only: remove the destination and temporary files before writing
78408         them (when generated via sed or echo), or by using the -f option for
78409         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78410         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78411         * modules/byteswap, modules/configmake, modules/fcntl:
78412         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78413         * modules/localcharset, modules/netinet_in, modules/poll:
78414         * modules/stdbool, modules/stdint, modules/sys_select:
78415         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78416
78417 2006-09-08  Jim Meyering  <jim@meyering.net>
78418
78419         Avoid new build failure on FreeBSD 6.0.
78420         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78421         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78422         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78423
78424 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78425
78426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78427
78428 2006-09-07  Jim Meyering  <jim@meyering.net>
78429
78430         Fix global typo in last change: use chmod u-w, not chmod u-x.
78431         Spotted by Paul Eggert and Bruce Korb.
78432         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78433         * modules/byteswap, modules/configmake, modules/fcntl:
78434         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78435         * modules/localcharset, modules/netinet_in, modules/poll:
78436         * modules/stdbool, modules/stdint, modules/sys_select:
78437         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78438
78439 2006-09-06  Jim Meyering  <jim@meyering.net>
78440
78441         Make generated files be read-only.
78442         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78443         Ensure that each generated file is now read-only.
78444         * modules/argz: Likewise.
78445         * modules/arpa_inet: Likewise.
78446         * modules/byteswap: Likewise.
78447         * modules/configmake: Likewise.
78448         * modules/fcntl: Likewise.
78449         * modules/fnmatch: Likewise.
78450         * modules/getopt: Likewise.
78451         * modules/glob: Likewise.
78452         * modules/inttypes: Likewise.
78453         * modules/netinet_in: Likewise.
78454         * modules/poll: Likewise.
78455         * modules/stdbool: Likewise.
78456         * modules/stdint: Likewise.
78457         * modules/sys_select: Likewise.
78458         * modules/sys_socket: Likewise.
78459         * modules/sys_stat: Likewise.
78460         * modules/sysexits: Likewise.
78461         * modules/localcharset: Same as above, but continue using temporary
78462         file named "t-$@" (why different?) rather than the "$@-t" used
78463         everywhere else.
78464
78465         * modules/sysexits (Makefile.am): Replace literal occurrences
78466         of "sysexit.h" more readable, and more consistent, "$@".
78467
78468 2006-09-06  Bruno Haible  <bruno@clisp.org>
78469
78470         * modules/striconv: New file.
78471         * modules/xstriconv: New file.
78472         * MODULES.html.sh (Internationalization functions): Add striconv,
78473         xstriconv.
78474
78475 2006-09-06  Bruno Haible  <bruno@clisp.org>
78476
78477         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78478         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78479         not using libtool correctly.
78480
78481 2006-09-06  Bruno Haible  <bruno@clisp.org>
78482
78483         * lib/striconv.h: New file.
78484         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78485         iconvstring.c.
78486         * lib/xstriconv.h: New file.
78487         * lib/xstriconv.c: New file.
78488
78489 2006-09-06  Bruno Haible  <bruno@clisp.org>
78490
78491         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78492         lib_..._LDFLAGS.
78493
78494 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78495
78496         * lib/argz_.h: Sync from Libtool.
78497
78498         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78499                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78500
78501         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78502
78503 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78504
78505         * modules/trim: New file.
78506
78507 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78508
78509         * lib/trim.h: New file.
78510         * lib/trim.c: New file.
78511
78512 2006-09-05  Bruno Haible  <bruno@clisp.org>
78513
78514         * MODULES.html.sh (String handling): Add trim.
78515
78516 2006-09-04  Karl Berry  <karl@gnu.org>
78517
78518         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78519         until next release.
78520
78521 2006-09-03  Bruno Haible  <bruno@clisp.org>
78522
78523         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78524         correctly.
78525
78526 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78529         not gl_GETLOADAVG.  Omit unneeded semicolons.
78530         Problems reported by Ralf Wildenhues in
78531         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78532         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78533         at the end, which is the usual gnulib style.
78534
78535         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78536         of doing all the work ourselves.
78537         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78538         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78539
78540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78543         Problem reported by Ralf Wildenhues in
78544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78545
78546         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78547         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78548
78549 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78550
78551         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78552         yesterday's patch by changing test -n to test -z.
78553
78554 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78557         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78558         the former is now obsolescent.
78559
78560         * modules/chdir-long (Depends-on): Add fcntl.
78561
78562 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78565         obsolescent, and programs should use gnulib instead.
78566         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78567         but with prefixes changed.
78568
78569 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78570
78571         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78572         or stdbool.h, because they might not exist while configuring.
78573
78574         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78575         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78576         does that for us.
78577         (O_DIRECTORY): Remove.
78578
78579 2006-08-31  Eric Blake  <ebb9@byu.net>
78580
78581         * gnulib-tool: Don't let emacs change spaces to TAB.
78582
78583 2006-08-31  Bruno Haible  <bruno@clisp.org>
78584
78585         * gnulib-tool: When calling func_import more than once, do it in a
78586         subshell.
78587         Reported by Eric Blake <ebb9@byu.net>.
78588
78589 2006-08-31  Bruno Haible  <bruno@clisp.org>
78590
78591         * gnulib-tool (nl): Remove variable.
78592         (sed_transform_lib_file): Use more robust test for config-h module.
78593         (func_import): Fix typo in 2006-08-25 patch.
78594
78595 2006-08-31  Bruno Haible  <bruno@clisp.org>
78596
78597         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78598         specified, augment Makefile.am variables instead of assigning them.
78599
78600 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         Work around a bug in both the Linux and SunOS 64-bit kernels:
78603         nanosleep mishandles sleeps for longer than 2**31 seconds.
78604         Problem reported by Frank v Waveren in
78605         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78607         Check for nanosleep bug.
78608         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78609
78610 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         Work around a bug in both the Linux and SunOS 64-bit kernels:
78613         nanosleep mishandles sleeps for longer than 2**31 seconds.
78614         Problem reported by Frank v Waveren in
78615         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78616         * lib/nanosleep.c (BILLION): New constant.
78617         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78618         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78619         implementation.
78620
78621 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * modules/nanosleep (Depends-on): Add gettime.
78624
78625 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78626         and Simon Josefsson  <jas@extundo.com>
78627         and Oskar Liljeblad  <oskar@osk.mine.nu>
78628
78629         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78630         * gnulib-tool (func_import): New license type 'unmodifiable license
78631         text'.
78632         * modules/fdl: Use it.  Longer description.
78633         * module/gpl, module/lgpl: New files.
78634
78635 2006-08-30  Jim Meyering  <jim@meyering.net>
78636
78637         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78638         shadowing the parameter.
78639
78640 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78641
78642         Sync from Libtool:
78643
78644         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78645
78646         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78647         sharing with gnulib.  Report by Eric Blake.
78648
78649 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * modules/isapipe: New file.
78652         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78653
78654 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * modules/configmake (Makefile.am): Add a comment, and omit
78657         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78658         by Bruno Haible.
78659
78660 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * m4/isapipe.m4: New file.
78663
78664 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * lib/isapipe.c, lib/isapipe.h: New files.
78667
78668 2006-08-29  Jim Meyering  <jim@meyering.net>
78669
78670         * modules/configmake (Makefile.am): Make configmake.h depend on
78671         Makefile.  Otherwise, a stale configmake.h could hang around.
78672
78673 2006-08-29  Eric Blake  <ebb9@byu.net>
78674
78675         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78676         resolution of upstream bug 3044.
78677
78678 2006-08-29  Bruno Haible  <bruno@clisp.org>
78679
78680         * modules/localcharset (Depends-on): Add configmake.
78681         (Makefile.am): Remove setting of LIBDIR through DEFS.
78682
78683 2006-08-29  Bruno Haible  <bruno@clisp.org>
78684
78685         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78686         defined.
78687
78688 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * modules/fcntl: New file.
78691         * modules/chdir-safer (Depends-on): Add fcntl.
78692         * modules/fts: Likewise.
78693         * modules/mkdir-p: Likewise.
78694
78695         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78696         This undoes the most recent change, since we're now addressing the
78697         problem in a different way.
78698
78699         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78700         into output, since the output might be called Makefile.am even
78701         if $makefile_name is something different.
78702         (func_import): Use $makefile_am rather than
78703         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78704         empty.
78705
78706         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78707
78708 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78711         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78712         recent change to stdint.m4, since we're now addressing the problem in a
78713         different way.
78714
78715 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * m4/fcntl_h.m4: New file.
78718
78719 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * lib/fcntl_.h: New file.
78722         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78723         the fcntl module.
78724         * lib/dirchownmod.c: Likewise.
78725         * lib/fts.c: Likewise.
78726
78727         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78728         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78729         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78730         just before including <inttypes.h>, to avoid circular inclusion.
78731
78732 2006-08-28  Jim Meyering  <jim@meyering.net>
78733
78734         * doc/visibility.texi: Actually read and correct the grammar of the
78735         sentence affected by yesterday's change.
78736
78737 2006-08-28  Eric Blake  <ebb9@byu.net>
78738
78739         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78740         needs wrapper.
78741
78742 2006-08-28  Eric Blake  <ebb9@byu.net>
78743
78744         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78745
78746 2006-08-28  Eric Blake  <ebb9@byu.net>
78747
78748         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78749
78750 2006-08-28  Bruno Haible  <bruno@clisp.org>
78751
78752         * modules/c-strstr: New file, from GNU gettext.
78753         * MODULES.html.sh (String handling): Add c-strstr.
78754
78755 2006-08-28  Bruno Haible  <bruno@clisp.org>
78756
78757         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78758         macros.
78759         Reported by Eric Blake.
78760
78761 2006-08-28  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78764         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78765         * lib/vasprintf.c: Include errno.h, limits.h.
78766         (EOVERFLOW): New fallback definition.
78767         (vasprintf): Test here whether the string length is > INT_MAX.
78768         * lib/vsnprintf.c: Include errno.h, limits.h.
78769         (EOVERFLOW): New fallback definition.
78770         (vsnprintf): Fix bug when generated string was too long for the buffer.
78771         Test here whether the string length is > INT_MAX.
78772
78773 2006-08-28  Bruno Haible  <bruno@clisp.org>
78774
78775         * lib/inttypes_.h (SCNX*): Remove definitions.
78776         Reported by Eric Blake.
78777
78778 2006-08-28  Bruno Haible  <bruno@clisp.org>
78779
78780         * lib/c-strstr.h: New file, from GNU gettext.
78781         * lib/c-strstr.c: New file, from GNU gettext.
78782
78783 2006-08-28  Bruno Haible  <bruno@clisp.org>
78784
78785         * gnulib-tool: Reorder some statements.
78786
78787 2006-08-28  Bruno Haible  <bruno@clisp.org>
78788
78789         * gnulib-tool: New option --makefile-name.
78790         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78791         $makefile_name.
78792         (func_import): Write $makefile_name to the cache file, and read it from
78793         there unless explicitly specified. Use $makefile_name as file name
78794         instead of Makefile.am. Adjust the recommendations accordingly.
78795
78796 2006-08-28  Bruno Haible  <bruno@clisp.org>
78797
78798         * gnulib-tool (func_verify_module): Check against misapplying patch.
78799
78800 2006-08-28  Bruno Haible  <bruno@clisp.org>
78801
78802         * gnulib-tool (func_relativize, func_relconcat): New functions.
78803         Give an error if --local-dir is given with --update.
78804         Remove trailing slashes from $local_gnulib_dir.
78805         (func_import): Store the relativized $local_gnulib_dir in
78806         gnulib-cache.m4, and read it from there if not specified explicitly.
78807
78808 2006-08-28  Bruno Haible  <bruno@clisp.org>
78809
78810         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78811         is the current directory. Respect also $local_gnulib_dir.
78812
78813 2006-08-28  Bruno Haible  <bruno@clisp.org>
78814             Simon Josefsson  <jas@extundo.com>
78815
78816         BeOS portability.
78817         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78818
78819 2006-08-27  Jim Meyering  <jim@meyering.net>
78820
78821         * doc/visibility.texi: Remove duplicate word: "pointer".
78822
78823 2006-08-26  Bruno Haible  <bruno@clisp.org>
78824
78825         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78826         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78827         (Makefile.am): Create inttypes.h from inttypes_.h.
78828         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78829
78830         * modules/imaxabs: New file.
78831
78832         * modules/imaxdiv: New file.
78833
78834 2006-08-26  Bruno Haible  <bruno@clisp.org>
78835
78836         * m4/inttypes.m4: New file.
78837         * m4/_inttypes_h.m4: Remove file.
78838         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78839         PRI_MACROS_BROKEN.
78840         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78841
78842         * m4/imaxabs.m4: New file.
78843
78844         * m4/imaxdiv.m4: New file.
78845
78846 2006-08-26  Bruno Haible  <bruno@clisp.org>
78847
78848         * lib/inttypes_.h: New file.
78849         * lib/inttypes.h: Remove file.
78850         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78851
78852         * lib/imaxabs.c: New file.
78853
78854         * lib/imaxdiv.c: New file.
78855
78856 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         New config-h module, so that "make" output needn't be cluttered
78859         by -DHAVE_CONFIG_H.
78860         * MODULES.html.sh (Support for building libraries and executables):
78861         Add config-h.
78862         * modules/config-h: New file.
78863         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78864         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78865         the config-h module is used.
78866
78867         New configmake module, so that "make" output needn't be cluttered
78868         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78869         * MODULES.html.sh (Support for building libraries and executables):
78870         Add configmake.
78871         * modules/configmake: New file.
78872
78873 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78874
78875         * m4/config-h.m4: New file.
78876
78877 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * config/srclist.txt: Add elisp-comp.
78880
78881 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * MODULES.html.sh (Support for building libraries and executables):
78884         Add elisp-comp.
78885         * build-aux/elisp-comp: New file.
78886         * modules/elisp-comp: New file.
78887
78888 2006-08-24  Bruno Haible  <bruno@clisp.org>
78889
78890         * gnulib-tool (func_create_testdir): Use non-default values of
78891         sourcebase and m4base.
78892
78893 2006-08-24  Bruno Haible  <bruno@clisp.org>
78894
78895         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78896         HTML structure.
78897
78898 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * modules/openat (Depends-on): Add lchown.
78901
78902 2006-08-23  Bruno Haible  <bruno@clisp.org>
78903
78904         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78905         of gl_LOCK_EARLY instead of gl_LOCK.
78906
78907 2006-08-23  Bruno Haible  <bruno@clisp.org>
78908
78909         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78910         on OSF/1 to no.
78911         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78912
78913 2006-08-23  Bruno Haible  <bruno@clisp.org>
78914
78915         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78916         as unusable.
78917
78918         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78919         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78920         (gl_LOCK): New macro.
78921
78922 2006-08-22  Simon Josefsson  <jas@extundo.com>
78923
78924         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78925         to md5 module.
78926
78927 2006-08-22  Simon Josefsson  <jas@extundo.com>
78928
78929         * MODULES.html.sh: Add "Support for maintaining and release
78930         projects".
78931
78932         * build-aux/gnupload: New file, from coreutils.
78933
78934 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78935
78936         Avoid the need for AC_LIBSOURCES in m4 macros.
78937         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78938         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78939         * modules/check-version (EXTRA_DIST): Add check-version.h.
78940         * modules/crc (EXTRA_DIST): Add crc.h.
78941         * modules/des (EXTRA_DIST): Add des.h.
78942         * modules/gc (EXTRA_DIST): Add gc.h.
78943         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78944         * modules/getline (EXTRA_DIST): Add getline.h.
78945         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78946         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78947         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78948         * modules/md2 (EXTRA_DIST): Add md2.h.
78949         * modules/md4 (EXTRA_DIST): Add md4.h.
78950         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78951         * modules/read-file (EXTRA_DIST): Add read-file.h.
78952         * modules/readline (EXTRA_DIST): Add readline.h.
78953         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78954         rijndael-api-fst.h.
78955
78956 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * m4/rijndael.m4 (gl_ARCFOUR):
78959         * m4/arctwo.m4 (gl_ARCTWO):
78960         * m4/check-version.m4 (gl_CHECK_VERSION):
78961         * m4/crc.m4 (gl_CRC):
78962         * m4/des.m4 (gl_DES):
78963         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78964         * m4/gc.m4 (gl_GC):
78965         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78966         * m4/getline.m4 (gl_FUNC_GETLINE):
78967         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78968         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78969         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78970         * m4/md2.m4 (gl_MD2):
78971         * m4/md4.m4 (gl_MD4):
78972         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78973         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78974         * m4/readline.m4 (gl_FUNC_READLINE):
78975         * m4/rijndael.m4 (gl_RIJNDAEL):
78976         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78977         to get the necessary .h files and whatnot.
78978
78979 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78982         gnulib rather than the other way around.
78983         * config/srclistvars.sh (COREUTILS): Remove.
78984
78985 2006-08-22  Jim Meyering  <jim@meyering.net>
78986
78987         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78988
78989         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78990
78991 2006-08-22  Eric Blake  <ebb9@byu.net>
78992
78993         * modules/regexprops-generic: New file.
78994         * MODULES.html.sh (Support for building documentation): List it.
78995
78996 2006-08-22  Eric Blake  <ebb9@byu.net>
78997
78998         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78999         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79001         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79002
79003 2006-08-22  Bruno Haible  <bruno@clisp.org>
79004
79005         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79006         and lib_LTLIBRARIES like the other lib_* variables.
79007
79008 2006-08-22  Bruno Haible  <bruno@clisp.org>
79009
79010         * build-aux/x-to-1.in: New file, from GNU gettext.
79011
79012 2006-08-22  Bruno Haible  <bruno@clisp.org>
79013
79014         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79015         <utmpx.h> exists.
79016
79017 2006-08-22  Bruno Haible  <bruno@clisp.org>
79018
79019         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79020         <utmpx.h> exists.
79021
79022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79023
79024         BeOS portability.
79025         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79026         exist.
79027         Problem reported by Bruno Haible.
79028
79029 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79030
79031         Avoid the need for AC_LIBSOURCES in m4 macros.
79032         * modules/acl (EXTRA_DIST): Add acl.h.
79033         * modules/argmatch (Files): Add m4/argmatch.m4.
79034         (configure.ac): Add gl_ARGMATCH.
79035         (EXTRA_DIST): Renamed from lib_SOURCES, for
79036         consistency with the other modules.  Remove argmatch.c.
79037         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79038         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79039         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79040         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79041         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79042         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79043         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79044         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79045         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79046         * modules/closeout (EXTRA_DIST): Add closeout.h.
79047         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79048         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79049         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79050         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79051         dirname.h; remove basename.c and stripslash.c.
79052         * modules/exclude (EXTRA_DIST): Add exclude.h.
79053         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79054         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79055         * modules/file-type (EXTRA_DIST): Add file-type.h.
79056         * modules/filemode (EXTRA_DIST): Add filemode.h.
79057         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79058         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79059         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79060         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79061         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79062         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79063         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79064         * modules/getdate (EXTRA_DIST): Add getdate.c.
79065         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79066         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79067         * modules/getpass (EXTRA_DIST): Add getpass.h.
79068         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79069         * modules/group-member (EXTRA_DIST): Add group-member.h.
79070         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79071         * modules/hash (EXTRA_DIST): Add hash.h.
79072         * modules/human (EXTRA_DIST): Add human.h.
79073         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79074         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79075         * modules/lchown (EXTRA_DIST): Add lchown.h.
79076         * modules/long-options (EXTRA_DIST): Add long-options.h.
79077         * modules/lstat (EXTRA_DIST): Add lstat.h.
79078         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79079         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79080         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79081         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79082         * modules/memxor (EXTRA_DIST): Add memxor.h.
79083         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79084         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79085         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79086         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79087         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79088         * modules/physmem (EXTRA_DIST): Add physmem.h.
79089         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79090         * modules/posixver (EXTRA_DIST): Add posixver.h.
79091         * modules/quote (EXTRA_DIST): Add quote.h.
79092         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79093         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79094         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79095         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79096         regex_internal.h regexec.c.
79097         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79098         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79099         * modules/same (EXTRA_DIST): Add same.h.
79100         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79101         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79102         * modules/savedir (EXTRA_DIST): Add savedir.h.
79103         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79104         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79105         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79106         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79107         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79108         * modules/strdup (EXTRA_DIST): Add strdup.h.
79109         * modules/strftime (EXTRA_DIST): Add strftime.h.
79110         * modules/strndup (EXTRA_DIST): Add strndup.h.
79111         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79112         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79113         * modules/time_r (EXTRA_DIST): Add time_r.h.
79114         * modules/timespec (EXTRA_DIST): Add timespec.h.
79115         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79116         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79117         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79118         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79119         * modules/userspec (EXTRA_DIST): Add userspec.h.
79120         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79121         * modules/utimens (EXTRA_DIST): Add utimens.h.
79122         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79123         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79124         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79125         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79126         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79127         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79128         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79129         * modules/yesno (EXTRA_DIST): Add yesno.h.
79130
79131 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79134
79135         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79136         * m4/dev-ino.m4, same-inode.m4: Remove.
79137
79138         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79139         * m4/acl.m4 (AC_FUNC_ACL):
79140         * m4/backupfile.m4 (gl_BACKUPFILE):
79141         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79142         * m4/canon-host.m4 (gl_CANON_HOST):
79143         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79144         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79145         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79146         * m4/cloexec.m4 (gl_CLOEXEC):
79147         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79148         * m4/closeout.m4 (gl_CLOSEOUT):
79149         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79150         * m4/dirname.m4 (gl_DIRNAME):
79151         * m4/exclude.m4 (gl_EXCLUDE):
79152         * m4/exitfail.m4 (gl_EXITFAIL):
79153         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79154         * m4/file-type.m4 (gl_FILE_TYPE):
79155         * m4/filemode.m4 (gl_FILEMODE):
79156         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79157         * m4/fpending.m4 (gl_FUNC_FPENDING):
79158         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79159         * m4/fts.m4 (gl_FUNC_FTS):
79160         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79161         * m4/getdate.m4 (gl_GETDATE):
79162         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79163         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79164         * m4/getpass.m4 (gl_FUNC_GETPASS):
79165         * m4/gettime.m4 (gl_GETTIME):
79166         * m4/getugroups.m4 (gl_GETUGROUPS):
79167         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79168         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79169         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79170         * m4/hash.m4 (gl_HASH):
79171         * m4/idcache.m4 (gl_IDCACHE):
79172         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79173         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79174         * m4/long-options.m4 (gl_LONG_OPTIONS):
79175         * m4/lstat.m4 (gl_FUNC_LSTAT):
79176         * m4/md5.m4 (gl_MD5):
79177         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79178         * m4/memcoll.m4 (gl_MEMCOLL):
79179         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79180         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79181         * m4/memxor.m4 (gl_MEMXOR):
79182         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79183         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79184         * m4/modechange.m4 (gl_MODECHANGE):
79185         * m4/mountlist.m4 (gl_MOUNTLIST):
79186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79187         * m4/openat.m4 (gl_FUNC_OPENAT):
79188         * m4/pathmax.m4 (gl_PATHMAX):
79189         * m4/physmem.m4 (gl_PHYSMEM):
79190         * m4/posixtm.m4 (gl_POSIXTM):
79191         * m4/posixver.m4 (gl_POSIXVER):
79192         * m4/quote.m4 (gl_QUOTE):
79193         * m4/quotearg.m4 (gl_QUOTEARG):
79194         * m4/readtokens.m4 (gl_READTOKENS):
79195         * m4/readutmp.m4 (gl_READUTMP):
79196         * m4/regex.m4 (gl_REGEX):
79197         * m4/safe-read.m4 (gl_SAFE_READ):
79198         * m4/safe-write.m4 (gl_SAFE_WRITE):
79199         * m4/same.m4 (gl_SAME):
79200         * m4/save-cwd.m4 (gl_SAVE_CWD):
79201         * m4/savedir.m4 (gl_SAVEDIR):
79202         * m4/settime.m4 (gl_SETTIME):
79203         * m4/sha1.m4 (gl_SHA1):
79204         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79205         * m4/stat-macros.m4 (gl_STAT_MACROS):
79206         * m4/stat-time.m4 (gl_STAT_TIME):
79207         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79208         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79209         * m4/strdup.m4 (gl_FUNC_STRDUP):
79210         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79211         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79212         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79213         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79214         * m4/time_r.m4 (gl_TIME_R):
79215         * m4/timespec.m4 (gl_TIMESPEC):
79216         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79217         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79218         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79219         * m4/userspec.m4 (gl_USERSPEC):
79220         * m4/utimecmp.m4 (gl_UTIMECMP):
79221         * m4/utimens.m4 (gl_UTIMENS):
79222         * m4/xalloc.m4 (gl_XALLOC):
79223         * m4/xgetcwd.m4 (gl_XGETCWD):
79224         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79225         * m4/xreadlink.m4 (gl_XREADLINK):
79226         * m4/xstrtod.m4 (gl_XSTRTOD):
79227         * m4/yesno.m4 (gl_YESNO):
79228         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79229         to get the necessary .h files and whatnot.
79230
79231 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79232             Bruno Haible  <bruno@clisp.org>
79233
79234         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79235         /bin/sh understanding of '!' conditional negation.
79236
79237 2006-08-21  Jim Meyering  <jim@meyering.net>
79238
79239         * modules/openat (Depends-on): Really alphabetize.
79240
79241         * modules/acl (Depends-on): Add error and quote.
79242
79243         * check-module (find_included_lib_files): Add at-func.c to the
79244         ok-to-include-more-than-once white list.
79245
79246         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79247
79248 2006-08-21  Bruno Haible  <bruno@clisp.org>
79249
79250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79251         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79252         Reported by Martin Lambers <marlam@marlam.de>.
79253
79254 2006-08-21  Bruno Haible  <bruno@clisp.org>
79255
79256         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79257         specify an installation location, don't emit a noinst_LIBRARIES or
79258         noinst_LTLIBRARIES assignment.
79259
79260 2006-08-21  Bruno Haible  <bruno@clisp.org>
79261
79262         BeOS portability.
79263         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79264         BeOS has mbrtowc() but no <wctype.h>.
79265
79266 2006-08-21  Bruno Haible  <bruno@clisp.org>
79267
79268         BeOS portability.
79269         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79270         exist.
79271
79272 2006-08-21  Bruno Haible  <bruno@clisp.org>
79273
79274         BeOS portability.
79275         * lib/mbchar.h: Include <wctype.h> only if it exists.
79276
79277 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         Remove files that are no longer needed by their respective modules.
79280         * m4/obstack.m4: Remove.
79281         * m4/strerror_r.m4: Remove.
79282         * m4/uint32_t.m4: Remove.
79283         * m4/uintptr_t.m4: Remove.
79284         * m4/ullong_max.m4: Remove.
79285         * m4/xstrtoimax.m4: Remove.
79286         * m4/xstrtoumax.m4: Remove.
79287
79288         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79289         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79290         dependencies now capture this.
79291
79292         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79293         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79294         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79295         * m4/human.m4 (gl_HUMAN): Likewise.
79296         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79297         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79298
79299         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79300
79301         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79302         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79303         stdint.
79304         * m4/human.m4 (gl_HUMAN): Likewise.
79305         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79306         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79307         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79308         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79309         * m4/xstrtol (gl_XSTRTOL): Likewise.
79310
79311         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79312         AC_TYPE_LONG_LONG_INT.
79313         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79314         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79315         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79316         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79317
79318         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79319         on stdbool.
79320
79321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79322         (gl_PREREQ_XSTRTOUL): Remove.
79323
79324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79325
79326         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79327         mode.
79328
79329 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         Add and change modules to make it easier for coreutils to use
79332         gnulib-tool.
79333         * modules/backupfile (Files): Remove m4/d-ino.m4.
79334         (Depends-on): Add d-ino.
79335         * modules/cycle-check (Depends-on): Add stdint.
79336         (lib_SOURCES): Add cycle-check.h.
79337         * modules/d-ino: New module.
79338         * modules/d-type: New module.
79339         * modules/error (Files): Remove m4/strerror_r.m4.
79340         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79341         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79342         m4/inttypes_h.m4, m4/uintmax_t.m4.
79343         (Depends-on): Add stdint.
79344         (lib_SOURCES): Add fsusage.h.
79345         * modules/getcwd (Files): Remove d-ino.m4.
79346         (Depends-on): Add d-ino.
79347         * modules/getndelim2 (Depends-on): Add stdint.
79348         * modules/glob (Files): Remove m4/d-type.m4.
79349         (Depends-on): Add d-type.
79350         * modules/host-os: New module.
79351         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79352         m4/inttypes_h.m4, m4/uintmax_t.m4.
79353         * Depends-on: Add stdint.
79354         (lib_SOURCES): Add human.h.
79355         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79356         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79357         m4/uintmax_t.m4, m4/ulonglong.m4.
79358         (Depends-on): Add stdint.
79359         (EXTRA_DIST): Add inttostr.h.
79360         * modules/lchmod: New module.
79361         * modules/link-follow: New module.
79362         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79363         (Depends-on): Add lchmod.
79364         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79365         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79366         (Depends-on): Add stdint.
79367         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79368         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79369         (Depends-on): Add stdint.
79370         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79371         * modules/perl: New module.
79372         * modules/regex (Depends-on): Add stdint.
79373         * modules/rmdir-errno: New module.
79374         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79375         m4/intmax_t.m4.
79376         (Depends-on): Add stdint.
79377         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79378         m4/uintmax_t.m4.
79379         (Depends-on): Add stdint.
79380         * modules/unlink-busy: New module.
79381         * modules/utimecmp (Depends-on): Add stdint.
79382         * modules/uptime: New module.
79383         * modules/winsz-ioctl: New module.
79384         * modules/winsz-termios: New module.
79385         * modules/xnanosleep (Depends-on): Add nanosleep.
79386         * modules/ullong_max: Remove.
79387         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79388         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79389         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79390         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79391         (Depends-on): Add inttypes.
79392         (lib_SOURCES): Add xstrtol.h.
79393         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79394         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79395         * MODULES.html.sh: Move 'assert' into the assert section.
79396         Move 'dummy' into the linking section.
79397         Remove ullong_max.
79398         Add section for compatibility checks for POSIX:2001 functions,
79399         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79400         winsz-ioctl, and winsz-termios into it.
79401         Add lchmod.
79402         Add top-level Misc section and put host-os, perl, and uptime
79403         into it.
79404
79405 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79408         now assume the stdint module.  Do not include inttypes.h.
79409         * lib/fsusage.h: Likewise.
79410         * lib/getndelim2.c: Likewise.
79411         * lib/human.h: Likewise.
79412         * lib/inttostr.h: Likewise.
79413         * lib/obstack.c: Likewise.
79414         * lib/regex_internal.h: Likewise.
79415         * lib/tempname.c: Likewise.
79416         * lib/utimecmp.c: Likewise.
79417         * lib/xstrtol.h: Likewise.
79418
79419         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79420
79421         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79422         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79423         * lib/xtime.h: Likewise.
79424
79425 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * modules/openat (Files): Add lib/fchmodat.c.
79428         Fixes problem reported by Jay Youngman.
79429
79430 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79433         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79434
79435 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79436             Bruno Haible  <bruno@clisp.org>
79437
79438         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79439         and is a script that invokes bison. Tighten the code. Add comments.
79440
79441 2006-08-18  Jim Meyering  <jim@meyering.net>
79442
79443         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79444         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79445         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79446         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79447
79448 2006-08-18  Bruno Haible  <bruno@clisp.org>
79449
79450         * modules/bison-i18n: New file.
79451         * MODULES.html.sh (Internationalization functions): Add it.
79452
79453 2006-08-18  Bruno Haible  <bruno@clisp.org>
79454
79455         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79456         sys/statvfs.h. When getmntinfo was found, check its declaration and
79457         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79458
79459 2006-08-18  Bruno Haible  <bruno@clisp.org>
79460
79461         * m4/bison-i18n.m4: New file, from bison.
79462
79463 2006-08-18  Bruno Haible  <bruno@clisp.org>
79464
79465         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79466         (ME_DUMMY): Treat "kernfs" as a dummy.
79467         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79468
79469 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         Update from coreutils.
79472
79473         2006-08-15  Jim Meyering  <jim@meyering.net>
79474
79475         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79476
79477         2006-01-17  Jim Meyering  <jim@meyering.net>
79478
79479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79480
79481         2006-01-11  Jim Meyering  <jim@meyering.net>
79482
79483         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79484         Check for the lchmod function.
79485
79486 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         Update from coreutils.
79489
79490         * lib/__fpending.h: Add copyright notice.
79491         * lib/fprintftime.h: Likewise.
79492         * lib/savedir.c: Use (C) in copyright notice.
79493         * lib/savedir.h: Likewise.
79494
79495         2006-08-15  Jim Meyering  <jim@meyering.net>
79496
79497         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79498         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79499         in support of the EXPECTED_ERRNO macro.
79500         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79501         definitions.  Instead, define the appropriate symbols and include
79502         "at-func.c".
79503         * lib/mkdirat.c (mkdirat): Likewise.
79504         * lib/fchmodat.c (fchmodat): Likewise.
79505         (ENOSYS): Remove definition.
79506         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79507         it.  Don't include "unistd--.h" -- it wasn't ever used.
79508
79509         2006-01-17  Jim Meyering  <jim@meyering.net>
79510
79511         Rewrite fts.c not to change the current working directory,
79512         by using openat, fstatat, fdopendir, etc..
79513
79514         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79515         (HAVE_OPENAT_SUPPORT): Define.
79516         [_LIBC] (fchdir): Don't undef or define; no longer used.
79517         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79518         Now, this `function' always succeeds, and consumes its file descriptor
79519         parameter -- so callers must not close such FDs.  Update callers.
79520         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79521         (diropen): Add parameter, SP.  Adjust all callers.
79522         Implement using diropen_fd, rather than open.
79523         (fts_open): Initialize new member, fts_cwd_fd.
79524         Remove fts_rft-setting code.
79525         (fts_close): Close fts_cwd_fd, if necessary.
79526         (__opendir2): Define in terms of opendir or opendirat,
79527         depending on whether the FST_NOCHDIR flag is set.
79528         (fts_build): Since fts_safe_changedir consumes its FD, and since
79529         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79530         and close the dup'd file descriptor upon failure.
79531         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79532         (fts_safe_changedir): Tweak semantics to reflect that this function
79533         now calls cwd_advance_fd and hence consumes its FD argument.
79534         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79535         [struct FTS] (fts_rft): Remove now-unused member.
79536         [struct FTS] (fts_cycle.state): Improve comment.
79537
79538         * lib/openat.c (openat_needs_fchdir): New function.
79539         * lib/openat.h (openat_needs_fchdir): Declare it.
79540
79541 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79542
79543         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79544         Problem and fix reported by Pádraig Brady in
79545         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79546
79547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79550
79551 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/memcoll.c (memcoll): Optimize for the common case where the
79554         arguments are bytewise equal.
79555
79556 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * doc/regexprops-generic.texi: Add a copyright notice.
79559
79560 2006-08-15  Bruno Haible  <bruno@clisp.org>
79561
79562         * modules/tmpdir (License): Change to LGPL.
79563
79564 2006-08-15  Bruno Haible  <bruno@clisp.org>
79565
79566         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79567         module.
79568
79569 2006-08-14  Simon Josefsson  <jas@extundo.com>
79570
79571         * config/srclist.txt: Add gnupload.
79572
79573 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79574
79575         Change copyright notice from LGPL 2 to GPL 2, since that's the
79576         standard form used in the gnulib repository.
79577         * tests/test-lock.c: Likewise.
79578         * tests/test-stdint.c: Likewise.
79579         * tests/test-tls.c: Likewise.
79580
79581         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79582         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79583         Add copyright notice.
79584
79585         * check-module: Add copyright notice.  Output a copyright
79586         notice if "--version" is specified.
79587         * modules/COPYING: New file.
79588         * tests/test-getaddrinfo.c: Add copyright notice.
79589         * tests/test-verify.c: Likewise.
79590
79591 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         Change copyright notice from LGPL 2 to GPL 2, since that's the
79594         standard form used in the gnulib repository.
79595         * lib/lock.c: LGPL -> GPL.
79596         * lib/lock.h: Likewise.
79597         * lib/strnlen1.c: Likewise.
79598         * lib/strnlen1.h: Likewise.
79599         * lib/tls.c: Likewise.
79600         * lib/tls.h: Likewise.
79601         * lib/tmpdir.c: Likewise.
79602
79603         * lib/TODO: Remove; this belongs only in coreutils.
79604
79605 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         Add copyright notices to long-enough files that lack them, since
79608         otherwise the files aren't clearly free.  Use the same notice that
79609         getdate.texi already uses.
79610         * doc/alloca-opt.texi: Add copyright notice.
79611         * doc/alloca.texi: Likewise.
79612         * doc/ctime.texi: Likewise.
79613         * doc/functions.texi: Likewise.
79614         * doc/gcd.texi: Likewise.
79615         * doc/gnulib-tool.texi: Likewise.
79616         * doc/inet_ntoa.texi: Likewise.
79617         * doc/visibility.texi: Likewise.
79618
79619         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79620         * doc/quote.texi: Add copyright notice.
79621
79622         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79623         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79624         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79625         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79626         is now obsolete, and give a pointer to the Sun list.
79627         Add copyright notice.
79628
79629 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * config/srclistvars.sh: Add copyright notice.
79632
79633 2006-08-14  Eric Blake  <ebb9@byu.net>
79634
79635         Import the following change from libc:
79636
79637         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79638
79639         Upstream bug 2997.
79640         * lib/misc/error.c: Add space between program name and message if file
79641         name is missing.
79642
79643 2006-08-12  Karl Berry  <karl@gnu.org>
79644
79645         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79646         remove, these originate in gnulib now.
79647
79648 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79649
79650         * doc/Makefile (standards.info standards.html standards.dvi):
79651         Also depend on make-stds.texi.
79652
79653 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79656         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79657
79658         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79659         in wchar_t.  Problem reported by Eric Blake.
79660
79661         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79662         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79663         Also, help the compiler to keep LEN in a register.
79664
79665 2006-08-11  Eric Blake  <ebb9@byu.net>
79666
79667         * users.txt: Sort.  Add tar.
79668
79669 2006-08-11  Bruno Haible  <bruno@clisp.org>
79670
79671         * users.txt: New file.
79672
79673 2006-08-11  Bruno Haible  <bruno@clisp.org>
79674
79675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79676         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79677
79678 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * modules/snprintf (Depends-on): Remove minmax.
79681         (Maintainer): Add self and Bruno.
79682
79683 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79684
79685         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79686         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79687         (EOVERFLOW): Define if the system does not.
79688         Do not include "minmax.h"; it wasn't used.
79689         (snprintf): Don't assume size_t promotes to an unsigned type.
79690         Fix bug when generated string was too long for the buffer: the
79691         buffer's contents are supposed to be the initial prefix of the
79692         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79693         exceeds INT_MAX; do the check ourselves.
79694
79695         Import the following changes from libc:
79696
79697         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79698
79699         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79700         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79701         set wc to the byte which couldn't be converted.
79702         (re_string_reconstruct): Don't clear valid_raw_len before calling
79703         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79704         tip_context using re_string_context_at.
79705
79706         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79707
79708         * lib/posix/regex.h: g++ still cannot handled [restrict].
79709
79710         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79711
79712         * lib/posix/regex.h: Remove special handling for VMS.
79713
79714 2006-08-10  Jim Meyering  <jim@meyering.net>
79715
79716         * modules/same-inode: New module.
79717         * modules/dev-ino: New module.
79718         * modules/cycle-check: Depend on these modules, rather than simply
79719         including their .h files.
79720         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79721         required via m4/cycle-check.m4.
79722         * modules/same: Depend on new same-inode module, rather than
79723         including same-inode.h.
79724         * modules/chdir-safer: New file.
79725
79726         * modules/chown (Depends-on): Add stat-macros.
79727
79728 2006-08-10  Jim Meyering  <jim@meyering.net>
79729
79730         * m4/cycle-check.m4: New file.
79731         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79732         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79733
79734 2006-08-10  Eric Blake  <ebb9@byu.net>
79735
79736         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79737         in from original proposal.
79738
79739 2006-08-10  Eric Blake  <ebb9@byu.net>
79740         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79741
79742         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79743         namespace.
79744
79745 2006-08-10  Bruno Haible  <bruno@clisp.org>
79746
79747         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79748         as well.
79749
79750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         Sync from coreutils.
79753
79754         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79755
79756         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79757         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79758
79759 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * modules/restrict: Remove; no longer needed now that we assume
79762         Autoconf 2.59 or later.
79763         * MODULES.html.sh: Remove 'restrict'.
79764         * modules/argp (Depends-on): Remove 'restrict'.
79765         * modules/base64 (Depends-on): Likewise.
79766         * modules/gc (Depends-on): Likewise.
79767         * modules/getaddrinfo (Depends-on): Likewise.
79768         * modules/glob (Depends-on): Likewise.
79769         * modules/inet_ntop (Depends-on): Likewise.
79770         * modules/inet_pton (Depends-on): Likewise.
79771         * modules/memxor (Depends-on): Likewise.
79772         * modules/regex (Depends-on): Likewise.
79773         * modules/strtok_r (Depends-on): Likewise.
79774         * modules/time_r (Depends-on): Likewise.
79775
79776 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79779         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79780         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79781         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79782         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79783         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79784         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79785         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79786
79787         Merge from coreutils.
79788         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79789         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79790         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79791         * m4/time_r.m4 (gl_TIME_R): Likewise.
79792
79793 2006-08-09  Karl Berry  <karl@gnu.org>
79794
79795         * config/srclist.txt: no more gettext-tools, per Bruno.
79796
79797 2006-08-08  Eric Blake  <ebb9@byu.net>
79798
79799         * modules/verror: New module.
79800         * MODULES.html.sh: Document it.
79801
79802 2006-08-08  Eric Blake  <ebb9@byu.net>
79803
79804         * lib/verror.h, lib/verror.c: New files.
79805
79806 2006-08-08  Eric Blake  <ebb9@byu.net>
79807
79808         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79809         verror_at_line output complies with GNU Coding Standards even when
79810         file is NULL.
79811
79812 2006-08-07  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79815         versions of AIX.
79816         Reported by Ralf Wildenhues.
79817
79818 2006-08-07  Bruno Haible  <bruno@clisp.org>
79819
79820         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79821         in an AC_DEFUN. Needed so that the autoconf snippets can use
79822         AC_REQUIRE.
79823
79824 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79825
79826         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79827         Initialize pkgdata_DATA.
79828         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79829         overriding it.
79830
79831 2006-08-06  Eric Blake  <ebb9@byu.net>
79832
79833         * lib/error.h: Fold in some upstream changes from glibc.
79834         * lib/error.c: Likewise.
79835
79836 2006-08-04  Bruno Haible  <bruno@clisp.org>
79837
79838         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79839         Make the mostlyclean-local rule depend on mostlyclean-generic.
79840         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79841
79842 2006-07-31  Bruno Haible  <bruno@clisp.org>
79843
79844         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79845         <stdlib.h>, <string.h>.
79846
79847 2006-07-30  Bruno Haible  <bruno@clisp.org>
79848
79849         * modules/readlink (License): Change to LGPL.
79850
79851 2006-07-30  Bruno Haible  <bruno@clisp.org>
79852
79853         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79854         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79855         set PKGDATADIR to point to it.
79856
79857 2006-07-30  Bruno Haible  <bruno@clisp.org>
79858
79859         * modules/csharpexec (configure.ac): Comment out macro invocation.
79860         * modules/javaexec (configure.ac): Likewise.
79861         * modules/javacomp-script (configure.ac): Likewise.
79862
79863         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79864
79865 2006-07-30  Bruno Haible  <bruno@clisp.org>
79866
79867         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79868         linked-list.
79869
79870 2006-07-30  Bruno Haible  <bruno@clisp.org>
79871
79872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79873
79874 2006-07-30  Bruno Haible  <bruno@clisp.org>
79875
79876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79877         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79878         get removed.
79879
79880 2006-07-29  Bruno Haible  <bruno@clisp.org>
79881
79882         Make it possible for gnulib-tool to work with locally modified or
79883         augmented gnulib repositories.
79884         * gnulib-tool (func_usage): Document --local-dir option.
79885         (local_gnulib_dir): New variable.
79886         Handle --local-dir option.
79887         (func_lookup_file): New function.
79888         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79889         (func_get_description, func_get_filelist, func_get_description,
79890         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79891         func_get_automake_snippet, func_get_include_directive,
79892         func_get_license, func_get_maintainer): Use func_lookup_file.
79893         (func_import, func_create_testdir): Use func_lookup_file.
79894
79895 2006-07-29  Bruno Haible  <bruno@clisp.org>
79896
79897         * modules/setenv (Depends-on): Add unistd.
79898
79899 2006-07-29  Bruno Haible  <bruno@clisp.org>
79900
79901         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79902
79903 2006-07-29  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79906
79907 2006-07-29  Bruno Haible  <bruno@clisp.org>
79908
79909         * gnulib-tool (import, update): If there is no Makefile.am, look at
79910         aclocal.m4, instead of bailing out.
79911
79912 2006-07-29  Bruno Haible  <bruno@clisp.org>
79913
79914         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79915         Categorize the options by when they are useful.
79916
79917 2006-07-29  Bruno Haible  <bruno@clisp.org>
79918
79919         * gnulib-tool (func_usage): Document option --no-libtool.
79920         Handle option --no-libtool.
79921         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79922         for changed semantics of $libtool variable.
79923         (func_import): Likewise. If libtool is not used, show this through
79924         an option --no-libtool.
79925         (func_create_testdir): Update.
79926
79927 2006-07-29  Bruno Haible  <bruno@clisp.org>
79928
79929         * gnulib-tool (func_import): Extend error message about missing
79930         --doc-base.
79931
79932 2006-07-29  Bruno Haible  <bruno@clisp.org>
79933
79934         * gnulib-tool (func_import): Don't create the $docbase directory if
79935         there is no file to store there.
79936
79937 2006-07-29  Bruno Haible  <bruno@clisp.org>
79938
79939         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79940         relevant, look for configure.ac there, not in the current directory.
79941         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79942
79943 2006-07-29  Bruno Haible  <bruno@clisp.org>
79944
79945         * gnulib-tool (SORT): New variable.
79946         (func_usage): Undocument --assume-autoconf option.
79947         Remove --assume-autoconf option handling.
79948         (autoconf_minversion): Determine from the contents of configure.ac.
79949         (func_import): Remove autoconf_minversion handling.
79950         Suggested by Eric Blake.
79951
79952 2006-07-29  Bruno Haible  <bruno@clisp.org>
79953
79954         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79955
79956 2006-07-29  Bruno Haible  <bruno@clisp.org>
79957
79958         * config/srclist.txt (*setenv.[ch]): Remove rules.
79959
79960 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79961
79962         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79963
79964 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79965
79966         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79967         arpa/inet.h.
79968
79969 2006-07-28  Simon Josefsson  <jas@extundo.com>
79970
79971         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79972         * modules/inet_pton (Depends-on): Likewise.
79973
79974 2006-07-28  Simon Josefsson  <jas@extundo.com>
79975
79976         * m4/netinet_in_h.m4: New file.
79977
79978 2006-07-28  Simon Josefsson  <jas@extundo.com>
79979
79980         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79981         #include's.
79982
79983 2006-07-28  Simon Josefsson  <jas@extundo.com>
79984
79985         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79986         #include's.
79987
79988 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79991         setgid on directories only if they set these bits.
79992         * lib/modechange.h: Remove obsolete comment about masks.
79993
79994 2006-07-28  Eric Blake  <ebb9@byu.net>
79995
79996         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79997         macro expansion.
79998
79999 2006-07-28  Bruno Haible  <bruno@clisp.org>
80000
80001         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80002
80003 2006-07-28  Bruno Haible  <bruno@clisp.org>
80004
80005         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80006
80007 2006-07-28  Bruno Haible  <bruno@clisp.org>
80008
80009         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80010         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80011         Define fallbacks.
80012         Avoids link error on FreeBSD 4.x.
80013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80014
80015         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80016         encoding.
80017         * lib/mbswidth.c (iswcntrl): Likewise.
80018
80019 2006-07-27  Bruno Haible  <bruno@clisp.org>
80020
80021         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80022         test.
80023
80024 2006-07-27  Bruno Haible  <bruno@clisp.org>
80025
80026         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80027         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80028         defined.
80029
80030 2006-07-26  Eric Blake  <ebb9@byu.net>
80031
80032         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80033
80034 2006-07-26  Eric Blake  <ebb9@byu.net>
80035
80036         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80037         like mingw that lack mkstemp.
80038         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80039         avoid compilation warning on mingw.
80040
80041 2006-07-26  Bruno Haible  <bruno@clisp.org>
80042
80043         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80044         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80045         INT_FAST*_MIN, INTPTR_MIN.
80046
80047 2006-07-25  Bruno Haible  <bruno@clisp.org>
80048
80049         * modules/version-etc (Depends-on): Add stdarg.
80050
80051 2006-07-25  Bruno Haible  <bruno@clisp.org>
80052
80053         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80054         complex commands.
80055
80056 2006-07-25  Bruno Haible  <bruno@clisp.org>
80057
80058         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80059         defined in <stdarg.h> or config.h.
80060
80061 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80064         (gl_STDIO_SAFER): Remove.
80065
80066 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * MODULES.html.sh (File stream based Input/Output):
80069         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80070         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80071         * modules/fopen-safer, modules/tmpfile-safer: New files.
80072         * modules/stdio-safer: Remove.
80073
80074 2006-07-24  Bruno Haible  <bruno@clisp.org>
80075
80076         * modules/tmpdir: New file.
80077         * MODULES.html.sh (File system functions): Add it.
80078
80079 2006-07-24  Bruno Haible  <bruno@clisp.org>
80080
80081         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80082         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80083
80084 2006-07-24  Bruno Haible  <bruno@clisp.org>
80085
80086         * modules/clean-temp: New file.
80087
80088 2006-07-24  Bruno Haible  <bruno@clisp.org>
80089
80090         * m4/tmpdir.m4: New file, from GNU gettext.
80091
80092 2006-07-24  Bruno Haible  <bruno@clisp.org>
80093
80094         * lib/tmpdir.h: New file, from GNU gettext.
80095         * lib/tmpdir.c: New file, from GNU gettext.
80096
80097 2006-07-24  Bruno Haible  <bruno@clisp.org>
80098
80099         * lib/clean-temp.h: New file, from GNU gettext.
80100         * lib/clean-temp.c: New file, from GNU gettext.
80101
80102 2006-07-23  Eric Blake  <ebb9@byu.net>
80103
80104         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80105         (Depends-on): Add binary-io.
80106
80107 2006-07-23  Eric Blake  <ebb9@byu.net>
80108
80109         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80110
80111 2006-07-23  Eric Blake  <ebb9@byu.net>
80112
80113         * lib/tmpfile-safer.c: New file.
80114         * lib/stdio-safer.h (fopen_safer): Add prototype.
80115         * lib/stdio--.h (tmpfile): Make safer.
80116
80117 2006-07-23  Bruno Haible  <bruno@clisp.org>
80118
80119         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80120         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80121         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80122         gl_linked_remove_at): Use it.
80123
80124 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80125         and Simon Josefsson <jas@extundo.com>
80126
80127         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80128
80129         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80130
80131 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * modules/close-stream: New file.
80134         * modules/closeout (Description): Make it clear that it exits
80135         with a diagnostic on error.
80136         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80137         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80138
80139 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * m4/close-stream.m4: New file.
80142
80143 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80144
80145         * lib/close-stream.c, lib/close-stream.h: New files.
80146
80147 2006-07-22  Bruno Haible  <bruno@clisp.org>
80148
80149         Merge from GNU gettext 0.15.
80150
80151         2006-05-01  Bruno Haible  <bruno@clisp.org>
80152
80153                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80154
80155         2006-07-22  Bruno Haible  <bruno@clisp.org>
80156
80157                 * modules/javaversion: New file.
80158                 * MODULES.html.sh (Java): Add javaversion.
80159
80160         2006-03-12  Bruno Haible  <bruno@clisp.org>
80161
80162                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80163
80164         2005-12-04  Bruno Haible  <bruno@clisp.org>
80165
80166                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80167                 (untested).
80168
80169         2006-06-21  Bruno Haible  <bruno@clisp.org>
80170
80171                 Avoid warnings from recent versions of mcs.
80172                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80173                 -o, -L, -r any more. Use options documented since mcs-1.0
80174                 instead. Similarly for -g.
80175
80176         2005-12-04  Bruno Haible  <bruno@clisp.org>
80177
80178                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80179                 .resources, not .resource.
80180
80181         2005-07-09  Bruno Haible  <bruno@clisp.org>
80182
80183                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80184                 add a .dll suffix.
80185                 Reported by Mark Junker <mjscod@gmx.de>.
80186
80187         2006-07-22  Bruno Haible  <bruno@clisp.org>
80188
80189                 * modules/gettext: Upgrade to gettext-0.15.
80190                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80191                 m4/visibility.m4.
80192                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80193
80194 2006-07-22  Bruno Haible  <bruno@clisp.org>
80195
80196         Merge from GNU gettext 0.15.
80197
80198         2006-03-25  Bruno Haible  <bruno@clisp.org>
80199
80200                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80201
80202         2006-07-21  Bruno Haible  <bruno@clisp.org>
80203
80204                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80205                 "1.1".
80206
80207         2006-05-09  Bruno Haible  <bruno@clisp.org>
80208
80209                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80210                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80211                 for the conftestver execution.
80212
80213         2006-05-01  Bruno Haible  <bruno@clisp.org>
80214
80215                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80216                 optional target-version argument. Verify that the compiler
80217                 groks source of the specified source-version, or add -source
80218                 option as necessary. Verify that the compiler produces
80219                 bytecode in the specified target-version, or add -target and
80220                 -source options as necessary. Make the result of the test
80221                 available as variable CONF_JAVAC. Also log error output in
80222                 config.log.
80223
80224         2006-03-11  Bruno Haible  <bruno@clisp.org>
80225
80226                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80227
80228         2006-05-09  Bruno Haible  <bruno@clisp.org>
80229
80230                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80231                 CLASSPATH_SEPARATOR to a semicolon.
80232
80233         2006-03-12  Bruno Haible  <bruno@clisp.org>
80234
80235                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80236                 available as variable CONF_JAVA, for subsequent autoconf
80237                 tests. Also log error output in config.log.
80238
80239         2006-07-19  Bruno Haible  <bruno@clisp.org>
80240
80241                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80242                 that getline works on glibc2 systems. Needed to avoid trouble
80243                 in relocatable.c.
80244                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80245
80246         2005-12-04  Bruno Haible  <bruno@clisp.org>
80247
80248                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80249                 launcher (untested).
80250
80251         2005-12-04  Bruno Haible  <bruno@clisp.org>
80252
80253                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80254
80255         2006-07-22  Bruno Haible  <bruno@clisp.org>
80256
80257                 * gettext.m4: Update from GNU gettext-0.15.
80258                 * nls.m4: Likewise.
80259                 * po.m4: Likewise.
80260                 * inttypes-pri.m4: Likewise.
80261                 * inttypes-h.m4: Renamed from inttypes.m4.
80262                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80263
80264 2006-07-22  Bruno Haible  <bruno@clisp.org>
80265
80266         Merge from GNU gettext 0.15.
80267
80268         2005-07-05  Bruno Haible  <bruno@clisp.org>
80269
80270                 * printf-args.c (printf_fetchargs): Work around broken
80271                 definition of wint_t on mingw.
80272
80273         2005-02-12  Bruno Haible  <bruno@clisp.org>
80274
80275                 * xallocsa.h: Add extern "C" for C++.
80276
80277         2006-05-17  Bruno Haible  <bruno@clisp.org>
80278
80279                 Cygwin portability.
80280                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80281
80282         2006-04-30  Bruno Haible  <bruno@clisp.org>
80283
80284                 * progreloc.c: Include <mach-o/dyld.h> if available.
80285                 (find_executable): Use _NSGetExecutablePath when possible.
80286
80287         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80288
80289                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80290                 function.
80291
80292         2005-12-29  Bruno Haible  <bruno@clisp.org>
80293
80294                 * progreloc.c (set_program_name_and_installdir): Fix
80295                 compilation error.
80296
80297         2005-12-04  Bruno Haible  <bruno@clisp.org>
80298
80299                 Cygwin portability.
80300                 * progreloc.c: Include <windows.h> also on Cygwin.
80301                 (find_executable): Add support for Cygwin.
80302                 (set_program_name_and_installdir): Handle also platforms with
80303                 nonempty EXEEXT.
80304
80305         2006-07-11  Bruno Haible  <bruno@clisp.org>
80306
80307                 * javacomp.c: Fix a comment.
80308                 Reported by Jim Meyering.
80309
80310         2006-04-30  Bruno Haible  <bruno@clisp.org>
80311
80312                 * javacomp.h (compile_java_class): Add source_version,
80313                 target_version arguments.
80314                 * javacomp.c: Rewritten to choose only a compiler that
80315                 respects the specified source_version and target_version.
80316
80317         2006-06-27  Bruno Haible  <bruno@clisp.org>
80318
80319                 Assume correct S_ISDIR macro.
80320                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80321
80322         2006-07-22  Bruno Haible  <bruno@clisp.org>
80323
80324                 * javaversion.h: New file, from GNU gettext.
80325                 * javaversion.c: New file, from GNU gettext.
80326                 * javaversion.java: New file, from GNU gettext.
80327                 * javaversion.class: New file, from GNU gettext.
80328
80329         2006-05-17  Bruno Haible  <bruno@clisp.org>
80330
80331                 Cygwin portability.
80332                 * javaexec.c (execute_java_class): Test for jview program
80333                 also on Cygwin.
80334
80335         2006-04-09  Bruno Haible  <bruno@clisp.org>
80336
80337                 * fatal-signal.c: Don't include string.h.
80338                 (at_fatal_signal): Use a copying loop instead of memcpy.
80339
80340         2005-12-04  Bruno Haible  <bruno@clisp.org>
80341
80342                 * csharpexec.c: Add support for 'clix' launcher (untested).
80343                 (execute_csharp_using_sscli): New function.
80344                 (execute_csharp_program): Call it.
80345
80346         2006-06-21  Bruno Haible  <bruno@clisp.org>
80347
80348                 Avoid warnings from recent versions of mcs.
80349                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80350                 -o, -L, -r any more. Use options documented since mcs-1.0
80351                 instead. Similarly for -g.
80352
80353         2005-07-09  Bruno Haible  <bruno@clisp.org>
80354
80355                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80356                 add a .dll suffix.
80357                 Reported by Mark Junker <mjscod@gmx.de>.
80358
80359         2006-06-17  Bruno Haible  <bruno@clisp.org>
80360
80361                 * config.charset: Update for NetBSD 3.0.
80362
80363         2006-05-17  Bruno Haible  <bruno@clisp.org>
80364
80365                 Cygwin portability.
80366                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80367
80368         2006-05-16  Bruno Haible  <bruno@clisp.org>
80369
80370                 * localcharset.c [CYGWIN]: Include <windows.h>.
80371                 (get_charset_aliases): For Cygwin, return the same CPxxx
80372                 aliases list as under WIN32.
80373                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80374                 the environment variables. Fall back to GetACP().
80375
80376         2006-04-05  Bruno Haible  <bruno@clisp.org>
80377
80378                 * config.charset: Update Juan Manuel Guerrero's address.
80379
80380         2005-02-12  Bruno Haible  <bruno@clisp.org>
80381
80382                 * allocsa.h: Add extern "C" for C++.
80383
80384         2005-02-10  Bruno Haible  <bruno@clisp.org>
80385
80386                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80387                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80388
80389         2006-07-22  Bruno Haible  <bruno@clisp.org>
80390
80391                 * gettext.h: Update to GNU gettext-0.15.
80392
80393 2006-07-22  Bruno Haible  <bruno@clisp.org>
80394
80395         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80396         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80397         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80398
80399 2006-07-21  Eric Blake  <ebb9@byu.net>
80400
80401         * modules/stdlib-safer: New file.
80402         * MODULES.html.sh (File stream based Input/Output): Add
80403         stdlib-safer.
80404
80405 2006-07-21  Eric Blake  <ebb9@byu.net>
80406
80407         * lib/stdlib-safer.h: New file from coreutils, required by
80408         stdlib--.h.
80409
80410 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80411
80412         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80413
80414 2006-07-20  Bruno Haible  <bruno@clisp.org>
80415
80416         * gnulib-tool: Recognize new option --assume-autoconf.
80417         (autoconf_minversion): New variable.
80418         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80419
80420 2006-07-20  Bruno Haible  <bruno@clisp.org>
80421
80422         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80423
80424 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80425
80426         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80427         Reindent and repaginate.
80428
80429 2006-07-19  Derek Price  <derek@ximbiot.com>
80430
80431         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80432         Correct grammar.
80433
80434 2006-07-17  Bruno Haible  <bruno@clisp.org>
80435
80436         * modules/list: New file.
80437         * modules/array-list: New file.
80438         * modules/carray-list, modules/carray-list-tests: New files.
80439         * modules/linked-list, modules/linked-list-tests: New files.
80440         * modules/avltree-list, modules/avltree-list-tests: New files.
80441         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80442         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80443         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80444         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80445         * modules/oset: New file.
80446         * modules/array-oset: New file.
80447         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80448         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80449         * tests/test-carray_list.c: New file.
80450         * tests/test-linked_list.c: New file.
80451         * tests/test-avltree_list.c: New file.
80452         * tests/test-rbtree_list.c: New file.
80453         * tests/test-linkedhash_list.c: New file.
80454         * tests/test-avltreehash_list.c: New file.
80455         * tests/test-rbtreehash_list.c: New file.
80456         * tests/test-avltree_oset.c: New file.
80457         * tests/test-rbtree_oset.c: New file.
80458         * MODULES.html.sh (Container data structures): New section.
80459
80460 2006-07-17  Bruno Haible  <bruno@clisp.org>
80461
80462         * m4/gl_list.m4: New file.
80463
80464 2006-07-17  Bruno Haible  <bruno@clisp.org>
80465
80466         * lib/gl_list.h: New file.
80467         * lib/gl_list.c: New file.
80468         * lib/gl_array_list.h: New file.
80469         * lib/gl_array_list.c: New file.
80470         * lib/gl_carray_list.h: New file.
80471         * lib/gl_carray_list.c: New file.
80472         * lib/gl_linked_list.h: New file.
80473         * lib/gl_linked_list.c: New file.
80474         * lib/gl_anylinked_list1.h: New file.
80475         * lib/gl_anylinked_list2.h: New file.
80476         * lib/gl_avltree_list.h: New file.
80477         * lib/gl_avltree_list.c: New file.
80478         * lib/gl_anyavltree_list1.h: New file.
80479         * lib/gl_anyavltree_list2.h: New file.
80480         * lib/gl_rbtree_list.h: New file.
80481         * lib/gl_rbtree_list.c: New file.
80482         * lib/gl_anyrbtree_list1.h: New file.
80483         * lib/gl_anyrbtree_list2.h: New file.
80484         * lib/gl_anytree_list1.h: New file.
80485         * lib/gl_anytree_list2.h: New file.
80486         * lib/gl_linkedhash_list.h: New file.
80487         * lib/gl_linkedhash_list.c: New file.
80488         * lib/gl_anyhash_list1.h: New file.
80489         * lib/gl_anyhash_list2.h: New file.
80490         * lib/gl_avltreehash_list.h: New file.
80491         * lib/gl_avltreehash_list.c: New file.
80492         * lib/gl_rbtreehash_list.h: New file.
80493         * lib/gl_rbtreehash_list.c: New file.
80494         * lib/gl_anytreehash_list1.h: New file.
80495         * lib/gl_anytreehash_list2.h: New file.
80496
80497         * lib/gl_oset.h: New file.
80498         * lib/gl_oset.c: New file.
80499         * lib/gl_array_oset.h: New file.
80500         * lib/gl_array_oset.c: New file.
80501         * lib/gl_avltree_oset.h: New file.
80502         * lib/gl_avltree_oset.c: New file.
80503         * lib/gl_rbtree_oset.h: New file.
80504         * lib/gl_rbtree_oset.c: New file.
80505         * lib/gl_anytree_oset.h: New file.
80506
80507 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * m4/mkancesdirs.m4: New file.
80510         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80511         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80512         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80513         it.
80514
80515 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80516
80517         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80518         * lib/mkancesdirs.h: New files.
80519         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80520         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80521         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80522         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80523         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80524         callers changed.  Revamp internals significantly, by not
80525         attempting to create directories that are temporarily more
80526         permissive than the final results.  Do not attempt to use
80527         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80528         This removes some race conditions, fixes some bugs, and simplifies
80529         things.  Use new dirchownmod function to do owner and mode changes.
80530         * lib/mkdir-p.h: Likewise.
80531         * lib/modechange.c (octal_to_mode): New function.
80532         (struct mode_change): New member mentioned.
80533         (make_node_op_equals): New arg mentioned.  All callers changed.
80534         (mode_compile): Keep track of which mode bits the user has explicitly
80535         mentioned.
80536         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80537         New arg PMODE_BITS, to keep track of which mode bits the user
80538         mentioned; it treats S_ISUID and S_ISGID speciall.
80539         All callers changed.
80540         * lib/modechange.h: Likewise.
80541
80542 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         * MODULES.html.sh: Add mkancestors.
80545         * modules/mkancesdirs: New module.
80546         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80547         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80548         The chdir-safer and afs files are now orphans; I'll remove them
80549         unless someone speaks up.
80550         Add lib/dirchownmod.c, lib/dirchownmod.h.
80551         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80552         Add lchown, mkancesdirs.
80553         (Maintainer): Add self.
80554
80555 2006-07-15  Karl Berry  <karl@gnu.org>
80556
80557         * gnulib-tool: help message wording/arrangement.
80558
80559 2006-07-14  Simon Josefsson  <jas@extundo.com>
80560
80561         * doc/gnulib.texi (Libtool and Windows): New section.
80562
80563 2006-07-12  Simon Josefsson  <jas@extundo.com>
80564
80565         * modules/gendocs (License): Fix license, approved by Karl.
80566
80567 2006-07-12  Eric Blake  <ebb9@byu.net>
80568
80569         * MODULES.html.sh: Add gendocs.
80570
80571 2006-07-11  Eric Blake  <ebb9@byu.net>
80572
80573         * modules/fdl: New module, to install doc/fdl.texi.
80574         * MODULES.html.sh: Add new section for documentation modules.
80575         * gnulib-tool: Avoid space-tab.
80576         (--doc-base): New option, to manage files from doc.
80577
80578 2006-07-11  Eric Blake  <ebb9@byu.net>
80579
80580         * m4/absolute-header.m4: Fix comments to match recent change.
80581
80582 2006-07-11  Eric Blake  <ebb9@byu.net>
80583
80584         * gnulib-tool: List --doc-base before --tests-base.
80585
80586 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80587
80588         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80589
80590 2006-07-11  Bruno Haible  <bruno@clisp.org>
80591
80592         * README: Mention where to put documentation.
80593
80594 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80595
80596         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80597
80598 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80601         to stdint.m4.
80602
80603 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80606         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80607         "no/such/file/stdint.h" when there is no such file, so that
80608         the resulting C code can be parsed by dodgy compilers.
80609         Problems reported by Bob Proulx.
80610
80611 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80612
80613         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80614         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80615         macros into the GNU _D_EXACT_NAMLEN.
80616         * lib/savedir.c:  Likewise.
80617         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80618
80619 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80620         and Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80623         * m4/savedir.m4:
80624         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80625         macros into the GNU _D_EXACT_NAMLEN.
80626
80627 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80630         around the absolute name, to work around a problem with the HP-UX
80631         11.23 native C compiler, reported by Bob Proulx.
80632
80633 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80634
80635         * doc/maintain.texi, make-stds.texi: Sync from
80636         <http://savannah.gnu.org/projects/gnustandards>.
80637
80638 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80641
80642 2006-07-09  Jim Meyering  <jim@meyering.net>
80643
80644         * m4/glob.m4: Remove a doubled word in a comment.
80645
80646 2006-07-09  Jim Meyering  <jim@meyering.net>
80647
80648         * lib/argp-pv.c: Remove a doubled word in a comment.
80649         * lib/check-version.c (check_version): Likewise.
80650         * lib/javacomp.c (compile_java_class): Likewise.
80651
80652 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80653
80654         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80655         for the benefit of people using Autoconf 2.60.  If you want to
80656         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80657         (or m4/onceonly.m4, if pre-2.57) manually.
80658
80659 2006-07-08  Jim Meyering  <jim@meyering.net>
80660
80661         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80662         comment.
80663         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80664         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80665         comment.
80666
80667 2006-07-08  Jim Meyering  <jim@meyering.net>
80668
80669         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80670
80671 2006-07-07  Simon Josefsson  <jas@extundo.com>
80672
80673         * tests/test-crc.c: Change expected crc value, the test vector
80674         were probably computed using the old broken crc.c?
80675
80676 2006-07-06  Simon Josefsson  <jas@extundo.com>
80677
80678         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80679         now the canonical place for the M4 file).
80680
80681         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80682         from the sys_socket dependency now.
80683
80684         * modules/inet_pton (Files): Ditto.
80685
80686         * modules/inet_ntop (Files): Ditto.
80687
80688 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80689
80690         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80691         not gl_PREREQ_GETUSERSHELL.
80692
80693 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80694
80695         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80696         with only one argument, for Autoconf 2.60.
80697         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80698         expand to nothing, so add a shell command to avoid syntax error.
80699         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80700
80701 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80702
80703         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80704
80705 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80706
80707         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80708         no longer needed.  Check for isblank decl.
80709         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80710         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80711         of existence.
80712
80713 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * lib/getloadavg.c: Use __VMS, not VMS.
80716         * lib/getopt.c: Likewise.
80717         * lib/getpagesize.h: Likewise.
80718         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80719         and probably does not work.
80720
80721 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * lib/.cppi-disable: Add wcwidth.
80724         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80725         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80726         (ISGRAPH): Remove.  All uses changed to isgraph.
80727         (FOLD) [!defined _LIBC]: Remove special case.
80728         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80729         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80730         HAVE_ISBLANK.
80731         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80732         case.
80733
80734 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80735
80736         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80737         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80738         brackets.  Other minor changes to suppress some compiler
80739         warnings.
80740
80741 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80742         and Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80745         of invoking obsolescent AC_HEADER_DIRENT macro.
80746         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80747         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80749         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80750         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80751         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80752         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80753         * m4/readdir.m4: Remove; no longer needed.
80754
80755 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80756         and Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80759         Don't worry about this obsolete case any more.
80760         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80761         directories.
80762         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80763         worry about this obsolete case any more.
80764         * lib/fts.c: Likewise.
80765         * lib/getcwd.c: Likewise.
80766         * lib/glob.h: Likewise.
80767         * lib/savedir.c: Likewise.
80768
80769 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80770
80771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80772         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80773         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80774         needed.
80775         All uses removed.
80776         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80777         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80778         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80779         needed.
80780         * m4/getdate.m4 (gl_GETDATE): Likewise.
80781         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80782         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80783         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80784         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80785         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80786         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80787         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80788         needed.
80789
80790 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80791
80792         * lib/memcasecmp.c: Include <limits.h>.
80793         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80794         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80795         Don't assume isdigit succeeds only on '0' through '9'.
80796
80797 2006-07-05  Eric Blake  <ebb9@byu.net>
80798
80799         * modules/getaddrinfo (Depends-on): Add snprintf.
80800
80801 2006-07-05  Eric Blake  <ebb9@byu.net>
80802
80803         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80804         to avoid 'header present but could not be compiled' on cygwin.
80805
80806 2006-07-05  Eric Blake  <ebb9@byu.net>
80807
80808         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80809         missing from netdb.h.
80810         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80811
80812 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80813
80814         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80815         no longer needed.
80816         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80817         * m4/getdate.m4 (gl_GETDATE): Likewise.
80818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80819         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80820         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80821         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80823
80824 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80825
80826         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80827         All uses of is_space replaced by isspace.
80828         * lib/exit.h: Don't talk about STDC_HEADERS.
80829         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80830         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80831         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80832         replaced by isprint etc.
80833         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80834         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80835         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80836         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80837         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80838         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80839
80840 2006-07-05  Bruno Haible  <bruno@clisp.org>
80841
80842         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80843         the function exists, before testing against AIX.
80844         Reported by Martin Lambers <marlam@marlam.de>.
80845
80846 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80847
80848         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80849         From Mark D. Baushke.
80850
80851 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80852
80853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80854         to the absolute name, not just one, to bypass Sun C 5.8's
80855         "warning: #include of /usr/include/... may be non-portable".
80856
80857 2006-07-04  Eric Blake  <ebb9@byu.net>
80858
80859         * modules/dirname-tests: New test module.
80860         * tests/test-dirname.c: New file, replacing dirname.c
80861         TEST_DIRNAME section that was recently deleted.
80862
80863 2006-07-04  Bruno Haible  <bruno@clisp.org>
80864
80865         Assume ANSI C header files and <ctype.h> functions.
80866         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80867         (mbsnwidth): Use isprint, iscntrl instead.
80868
80869 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         Merge from coreutils.
80872         * MODULES.html.sh: Add xstrtold.
80873         * modules/xstrtold: New file.
80874         * modules/cycle-check (Files): Add lib/same-inode.h.
80875         * modules/dirname (Files): Add m4/double-slash-root.m4.
80876         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80877         * modules/mkdir-p (Files): Add lib/same-inode.h.
80878         * modules/same (Files): Add lib/same-inode.h.
80879
80880 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80883         This is to keep the terminology clean; POSIX talks about
80884         "absolute pathnames", not "full pathnames", but the GNU
80885         Coding Standards say to use "path" for something else;
80886         so use "absolute" to keep both sides happy.
80887         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80888         Set gl_absolute_header, not gl_full_header_path.
80889         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80890         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80891         All uses changed.
80892
80893         Merge from coreutils.
80894
80895         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80898         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80899         want to require the building of c-strtod.o.
80900         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80901         needs -lm directly.
80902         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80903
80904         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80905
80906         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80907         --as-needed option if available.  Problem reported by Albert Chin in
80908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80909         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80910         cc merely issues a bunch of annoying warnings for --as-needed
80911         (this problem was reported by Bob Proulx).  Also, try linking with
80912         -lm to detect a bug in binutils 2.16 (this problem was reported
80913         by Ralf Wildenhues).
80914
80915         2006-06-18  Jim Meyering  <jim@meyering.net>
80916
80917         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80918         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80919         macro.
80920         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80921         also check for glibc-2.4's abort-inducing bug.
80922
80923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80924         Low-probability clean-up should be to use rmdir to get rid of
80925         the just-created directory, not unlink.
80926
80927         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80928         configure fail, and request a bug report to inform us about it.
80929         Add a comment that, barring reports to the contrary, in 2007 we'll
80930         assume ftruncate is universally available.
80931
80932         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80933
80934         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80935
80936         2006-03-12  Jim Meyering  <jim@meyering.net>
80937
80938         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80939         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80940         * m4/same.m4 (gl_SAME): Likewise.
80941         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80942
80943         2006-03-11  Eric Blake  <ebb9@byu.net>
80944
80945         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80946         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80947         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80948         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80949
80950 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80953         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80954         reported by Mark D. Baushke, one in
80955         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80956
80957         Merge from coreutils.
80958
80959         * lib/.cppi-disable: Add stdint_.h.
80960         * lib/.cvsignore: Add stdint.h.
80961
80962         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80963
80964         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80965         both double and long double versions.
80966         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80967         * lib/xstrtold.c: New file.
80968         * lib/xstrtod.h (xstrtold): New decl.
80969
80970         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/filemode.c (setst): Remove.
80973         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80974         (arguably) clearer, and the generated code is a bit smaller on my
80975         Debian GNU/Linux stable x86 host.
80976
80977         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80978
80979         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80980         Assume that filemode.h includes sys/types.h and sys/stat.h.
80981         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80982         (ftypelet): Reorder to put common cases first, for efficiency.
80983         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80984         to do 'M'.
80985         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80986         of 10, for compatibility with FreeBSD.  All callers changed.
80987         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80988         types that can't be deduced solely from st_mode.  First arg is now a
80989         const pointer.
80990         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80991         (strmode): Renamed from mode_string.
80992         (filemodestring): New decl.
80993         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80994         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80995         needed.
80996         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80997
80998         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80999
81000         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81001         fsusage.h now does that.  Include fsusage.h first, to test interface.
81002         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81003         at most one method (the old code could have generated decls that
81004         didn't conform to C89, not that this was ever exercised).
81005         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81006
81007         2006-03-19  Jim Meyering  <jim@meyering.net>
81008
81009         Work even in a chroot where d_ino values for entries in "/"
81010         don't match the stat.st_ino values for the same names.
81011         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81012         number, iterate through all entries again, using lstat instead.
81013         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81014         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81015
81016         * lib/getcwd.c (__getcwd): Clarify a comment.
81017         Use memcpy in place of a call to strcpy.
81018
81019         2006-03-12  Jim Meyering  <jim@meyering.net>
81020
81021         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81022         matches that of the current directory (which we're about to chdir ".."
81023         out of), then save the dev-ino of the parent, instead.
81024
81025         * lib/same-inode.h (SAME_INODE): New file/macro.
81026         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81027         Include "same-inode.h", instead.
81028         * lib/same.c: Likewise.
81029         * lib/cycle-check.h: Include "same-inode.h".
81030         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81031         * lib/cycle-check.c (SAME_INODE): Remove definition.
81032         * lib/root-dev-ino.h: Include "same-inode.h".
81033
81034         2006-03-11  Eric Blake  <ebb9@byu.net>
81035
81036         * lib/same.c (same_name): s/base_name/last_component/
81037         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81038         * lib/filenamecat.c (file_name_concat): Likewise.
81039
81040         2006-03-11  Eric Blake  <ebb9@byu.net>,
81041                     Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81044         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81045         drive prefix.
81046         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81047         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81048         (last_component): New method.
81049         * lib/dirname.c (dir_len): Determine when drive letters need a
81050         subsequent slash.  Preserve // when it is special.
81051         (dir_name): Don't append dot when drive letter is absolute.
81052         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81053         * lib/basename.c (base_name): New semantics - malloc the result.
81054         Preserve // when it is special.  Preserve relative files that look
81055         like drive letters.
81056         (base_len): Preserve // when it is special.
81057         (last_component): New method, similar to old base_name semantics.
81058         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81059         base_name.  Strip redundant slashes from ///.
81060
81061 2006-07-03  Jim Meyering  <jim@meyering.net>
81062
81063         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81064         macro is used before the first cycle_check call.
81065
81066 2006-07-03  Eric Blake  <ebb9@byu.net>
81067
81068         * modules/dirname (Depends-on): Add xstrndup.
81069
81070 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81071
81072         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81073         test cases, so that config.log is a bit easier to follow.
81074
81075 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81076
81077         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81078         both are 64 bits, since this seems to be the tradition, and this
81079         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81080         we ever run into a host that prefers long long to long in this
81081         case, we'll need another configure-time test.  Problem reported by
81082         Jim Meyering.
81083
81084 2006-07-02  Eric Blake  <ebb9@byu.net>
81085
81086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81087
81088 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         * modules/inttypes (Depends-on): No longer depends on stdint.
81091         * modules/stdint (Description): Say more about assumptions.
81092         Say that the fast types might differ.  Say macros are used.
81093         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81094         (Makefile.am): Revise list of substituted symbols to match
81095         new stdint.m4.
81096         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81097         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81098         * tests/test-stdint.c (verify_same_types)
81099         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81100         the code conforms to C99/C89.
81101         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81102         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81103
81104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81105
81106         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81107         but fix a bug, by requiring at least 64 bits.
81108         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81109         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81110         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81111         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81112
81113         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81114         changes.  Make 2.59 a prerequisite.  Check and substitute for
81115         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81116         inttypes.h.  Do not use special include files; just use the
81117         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81118         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81119         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81120         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81121         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81122         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81123         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81124         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81125         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81126         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81127         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81128         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81129         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81130         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81131         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81132         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81133         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81134         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81135         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81136         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81137         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81138         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81139         not check for things that C99 does not require, e.g., int8_t.  If
81140         a test isn't needed unless <stdint.h> isn't working, and is
81141         unlikely to be needed for any other reason, then don't do it
81142         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81143         size_t, since we assume C89 freestanding at least.  Do not check
81144         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81145         the right thing even if the types are not defined.  Instead use:
81146         (gl_STDINT_TYPE_PROPERTIES): New macro.
81147         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81148         testing whether <sys/types.h> clashes, as Autoconf does this for
81149         us now.  All uses removed.
81150         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81151         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81152         (gl_CHECK_TYPE_SAME):
81153         Remove; no longer needed.
81154         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81155         exists, since we'll return 0 anyway in that case.
81156         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81157
81158 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81161         possible collision with system files.
81162         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81163         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81164         WCHAR_MIN and WCHAR_MAX in this case.
81165         (<stddef.h>): Do not include; no longer needed.
81166         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81167         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81168         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81169         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81170         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81171         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81172         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81173         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81174         !defined(__c99))]: Include in this case too, since it's harmless
81175         now.
81176         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81177         dangerous to do so.
81178         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81179         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81180         (_STDINT_MIN, _STDINT_MAX): New macros.
81181         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81182         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81183         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81184         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81185         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81186         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81187         macros, not typedefs; this simplifies things quite a bit.
81188         Use long int for all types narrower than int64_t.
81189         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81190         Define in terms of long long int or int64_t or long int,
81191         not int64_t or int32_t.  This saves some compile-time testing.
81192         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81193         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81194         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81195         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81196         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81197         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81198         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81199         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81200         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81201         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81202         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81203         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81204         undef any previous version and define our own version, for
81205         simplicity and consistency with the new macros for types.
81206         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81207         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81208         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81209         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81210         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81211         @WINT_T_SUFFIX@ to keep things simple here.
81212         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81213         Simplify by assuming typical 8/16/32/64 host, since we're
81214         already doing that elsewhere anyway.
81215         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81216         and assume long long int is 64 bits if available.  This
81217         speeds up 'configure'.
81218
81219 2006-07-01  Eric Blake  <ebb9@byu.net>
81220
81221         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81222         Reported by Andreas Buening.
81223
81224 2006-07-01  Eric Blake  <ebb9@byu.net>
81225
81226         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81227
81228 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81229
81230         * lib/getaddrinfo.c: fixed typo
81231
81232 2006-06-29  Jim Meyering  <jim@meyering.net>
81233
81234         * modules/strftime (Maintainer): Add my name, since with the
81235         FPRINTFTIME changes strftime.c has forked from glibc.
81236
81237 2006-06-29  Eric Blake  <ebb9@byu.net>
81238
81239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81240
81241 2006-06-29  Eric Blake  <ebb9@byu.net>
81242
81243         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81244
81245 2006-06-29  Eric Blake  <ebb9@byu.net>
81246
81247         * lib/stat_.h: New file.
81248
81249 2006-06-29  Eric Blake  <ebb9@byu.net>
81250
81251         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81252         unused static function.
81253
81254 2006-06-29  Eric Blake  <ebb9@byu.net>
81255
81256         * doc/functions.texi (Function Portability): Document missing lstat
81257         on mingw.
81258
81259 2006-06-29  Eric Blake  <ebb9@byu.net>
81260
81261         * MODULES.html.sh: Add sys_stat.
81262         * modules/sys_stat: New module.
81263         * modules/mkstemp (Depends-on): Add sys_stat.
81264
81265 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81266
81267         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81268
81269 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81270
81271         * m4/c-bs-a.m4: Removed.
81272
81273 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81274
81275         * lib/strftime.c: Assume strftime() exists.
81276
81277 2006-06-29  Derek Price  <derek@ximbiot.com>
81278
81279         * modules/c-bs-a: Removed - \a is C89.
81280         * MODULES.html.sh: Remove c-bs-a.
81281
81282 2006-06-29  Bruno Haible  <bruno@clisp.org>
81283
81284         * modules/wcwidth (License): Change to LGPL.
81285
81286 2006-06-28  Simon Josefsson  <jas@extundo.com>
81287
81288         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81289         on _WIN32.
81290
81291         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81292         getnameinfo.
81293
81294 2006-06-28  Simon Josefsson  <jas@extundo.com>
81295
81296         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81297
81298 2006-06-28  Simon Josefsson  <jas@extundo.com>
81299
81300         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81301         functions there.  It will succeed on Windows XP, but on Windows
81302         2000 and (presumably) earlier, it will fail, and use the internal
81303         re-implementation.
81304         (use_win32_p): New function.
81305         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81306         Support AI_NUMERICSERV to disable getservbyname.
81307         (getnameinfo): New function, only supports
81308         NI_NUMERICHOST|NI_NUMERICSERV for now.
81309
81310         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81311         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81312         getnameinfo.
81313
81314 2006-06-28  Eric Blake  <ebb9@byu.net>
81315
81316         * modules/wcwidth: New file.
81317         * modules/mbchar (Depends-on): Add wcwidth.
81318         * modules/mbswidth (Depends-on): Add wcwidth.
81319         * MODULES.html.sh: Add wcwidth.
81320
81321 2006-06-28  Eric Blake  <ebb9@byu.net>
81322
81323         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81325
81326 2006-06-28  Eric Blake  <ebb9@byu.net>
81327
81328         * lib/xvasprintf.h: Fix comments.
81329
81330 2006-06-28  Eric Blake  <ebb9@byu.net>
81331
81332         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81333         * lib/mbswidth.c (wcwidth): Move from here...
81334         * lib/wcwidth.h: ...to this new file.
81335
81336 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81337
81338         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81339
81340         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81341         it's obsolete.
81342         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81343
81344 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81345
81346         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81347         Autoconf 2.60 says this stuff was obsolete.
81348
81349 2006-06-28  Bruno Haible  <bruno@clisp.org>
81350
81351         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81352
81353 2006-06-28  Bruno Haible  <bruno@clisp.org>
81354
81355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81356         gt_TYPE_WCHAR_T.
81357
81358 2006-06-28  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81361         declaration for wcwidth.
81362         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81363
81364 2006-06-28  Bruno Haible  <bruno@clisp.org>
81365
81366         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81367         (mkdir): Define using _mkdir.
81368
81369 2006-06-28  Bruno Haible  <bruno@clisp.org>
81370
81371         * lib/getaddrinfo.h: Fix POSIX URL.
81372         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81373         _WIN32.
81374         (use_win32_p): Make static.
81375         (getaddrinfo): Reject service name if it is empty or does not consist
81376         solely of decimal digits, or if its value is > 65535.
81377         (getnameinfo): Remove useless casts.
81378
81379 2006-06-27  Simon Josefsson  <jas@extundo.com>
81380
81381         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81382         Eggert and Martin Lambers.
81383
81384 2006-06-27  Simon Josefsson  <jas@extundo.com>
81385
81386         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81387         Eggert and Martin Lambers.
81388
81389 2006-06-27  Bruno Haible  <bruno@clisp.org>
81390
81391         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81392         result to 0, not to empty.
81393         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81394
81395 2006-06-27  Bruno Haible  <bruno@clisp.org>
81396
81397         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81398
81399 2006-06-26  Simon Josefsson  <jas@extundo.com>
81400
81401         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81402         present.
81403
81404 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81405
81406         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81407         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81408         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81409
81410 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81411
81412         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81413
81414 2006-06-26  Bruno Haible  <bruno@clisp.org>
81415
81416         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81417
81418 2006-06-26  Bruno Haible  <bruno@clisp.org>
81419
81420         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81421
81422 2006-06-26  Bruno Haible  <bruno@clisp.org>
81423
81424         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81425         SGI C compiler in pre-C99 mode.
81426         Suggested by Mark D. Baushke and Larry Jones.
81427
81428 2006-06-26  Bruno Haible  <bruno@clisp.org>
81429
81430         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81431         WCHAR_MAX.
81432         Reported by Mark D. Baushke and Larry Jones.
81433
81434 2006-06-26  Bruno Haible  <bruno@clisp.org>
81435
81436         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81437         in pre-C99 mode.
81438         Suggested by Mark D. Baushke and Larry Jones.
81439
81440 2006-06-23  Simon Josefsson  <jas@extundo.com>
81441             Bruno Haible  <bruno@clisp.org>
81442
81443         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81444         Emit mostlyclean-local rule.
81445         (func_emit_tests_Makefile_am): Likewise.
81446         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81447
81448 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81449
81450         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81451
81452 2006-06-23  Bruno Haible  <bruno@clisp.org>
81453
81454         * tests/test-stdint.c: Update to match ISO C 99 Technical
81455         Corrigendum 1.
81456
81457 2006-06-23  Bruno Haible  <bruno@clisp.org>
81458
81459         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81460
81461 2006-06-23  Bruno Haible  <bruno@clisp.org>
81462
81463         * lib/stdint_.h: Treat IRIX like OpenBSD.
81464
81465 2006-06-23  Bruno Haible  <bruno@clisp.org>
81466
81467         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81468         ISO C 99 Technical Corrigendum 1.
81469
81470 2006-06-22  Simon Josefsson  <jas@extundo.com>
81471
81472         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81473         MinGW.
81474
81475 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81476
81477         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81478         needed.  Some compiler complained about some of them.  Problem reported
81479         by Larry Jones in
81480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81481
81482 2006-06-21  Simon Josefsson  <jas@extundo.com>
81483
81484         * tests/test-getaddrinfo.c: New file.
81485
81486         * modules/getaddrinfo-tests: New file.
81487
81488         * MODULES.html.sh: Add inet_pton.
81489
81490         * modules/inet_pton: New file.
81491
81492 2006-06-21  Simon Josefsson  <jas@extundo.com>
81493
81494         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81495         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81496         of using the (limited) gnulib implementation on Windows XP.
81497
81498         * m4/inet_pton.m4: New file.
81499
81500 2006-06-21  Simon Josefsson  <jas@extundo.com>
81501
81502         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81503         variable.
81504
81505         * lib/socket_.h: Don't define WINVER.
81506
81507         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81508         slightly modified to work in gnulib.
81509
81510 2006-06-21  Simon Josefsson  <jas@extundo.com>
81511
81512         * doc/gnulib.texi (Windows sockets): Add.
81513
81514 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * lib/read-file.c (fread_file): Start with buffer allocation of
81517         0 bytes rather than 1 byte; this simplifies the code.
81518         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81519         code to free buffer and save/restore errno.
81520         (internal_read_file): Remove unused local.
81521
81522 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81525         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81526         Problem reported by Denis Excoffier in
81527         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81528
81529 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81530
81531         * modules/sys_socket, modules/socklen: Include sys/types since
81532         FreeBSD 4.x's sys/socket.h needs it.
81533
81534 2006-06-19  Simon Josefsson  <jas@extundo.com>
81535
81536         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81537
81538 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81539
81540         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81541
81542 2006-06-19  Bruno Haible  <bruno@clisp.org>
81543
81544         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81545         and FULL_PATH_INTTYPES_H in angle brackets.
81546         Reported by Mark D. Baushke <mdb@gnu.org>.
81547
81548 2006-06-17  Eric Blake  <ebb9@byu.net>
81549
81550         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81551         errno.
81552
81553 2006-06-17  Bruno Haible  <bruno@clisp.org>
81554
81555         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81556         <sys/inttypes.h>.
81557
81558 2006-06-17  Bruno Haible  <bruno@clisp.org>
81559
81560         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81561         whether errno is declared. Assume <errno.h> declares errno.
81562
81563 2006-06-17  Bruno Haible  <bruno@clisp.org>
81564
81565         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81566
81567 2006-06-17  Bruno Haible  <bruno@clisp.org>
81568
81569         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81570         problem on Solaris 2.5.1.
81571
81572 2006-06-16  Eric Blake  <ebb9@byu.net>
81573
81574         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81575         * lib/unicodeio.c [!defined errno]: Likewise.
81576         * lib/strtol.c [!defined errno]: Likewise.
81577         * lib/strtod.c [!defined errno]: Likewise.
81578
81579 2006-06-15  Eric Blake  <ebb9@byu.net>
81580
81581         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81582
81583 2006-06-15  Eric Blake  <ebb9@byu.net>
81584
81585         * config/srclist.txt (ssize_t.m4): Lose sync.
81586
81587 2006-06-15  Bruno Haible  <bruno@clisp.org>
81588
81589         * modules/stdint (Files): Include m4/full-header-path.m4,
81590         m4/size_max.m4, m4/wchar_t.m4.
81591         (Makefile.am): Many more substitutions.
81592         * modules/stdint-tests: New file.
81593         * tests/test-stdint.c: New file.
81594
81595 2006-06-15  Bruno Haible  <bruno@clisp.org>
81596
81597         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81598         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81599         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81600         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81601         gl_CHECK_TYPE_SAME): New macros.
81602
81603 2006-06-15  Bruno Haible  <bruno@clisp.org>
81604
81605         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81606
81607 2006-06-15  Bruno Haible  <bruno@clisp.org>
81608
81609         * lib/stdint_.h: Rewritten to be fully auto-configured.
81610         Fixes bug on HP-UX/IA64.
81611
81612 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81613
81614         * lib/getdate.y (__attribute__): Don't define if already defined.
81615         Problem reported by Larry Jones.
81616         * lib/utimens.c (__attribute__): Likewise.
81617
81618 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81619
81620         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81621         reported by Andreas Schwab.
81622
81623 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81624             Bruno Haible  <bruno@clisp.org>
81625
81626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81627         check for the declaration of strnlen and a run test that exposes the
81628         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81629         rpl_strndup.
81630
81631 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81632             Bruno Haible  <bruno@clisp.org>
81633
81634         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81635
81636 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81637
81638         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81639         compile test, for Tru64 4.0D.
81640
81641 2006-05-28  Karl Berry  <karl@gnu.org>
81642
81643         * config/srclist.txt (printf-args.c): lose sync.
81644
81645 2006-05-26  Martin Lambers  <marlam@marlam.de>
81646
81647         * lib/getpass.c: Updates the test for the native W32 API, and adds
81648         missing includes, thus fixing compilation warnings.
81649
81650 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81651
81652         * lib/exclude.c (exclude_fnmatch): New function.
81653         (excluded_file_name): Call exclude_fnmatch.
81654         * lib/exclude.h (excluded_file_name): New prototype
81655
81656 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * lib/tempname.c (small_open, large_open): New macros.
81659         (__open, __open64) [!_LIBC]: Remove.
81660         (__gen_tempname): Use small_open and large_open instead of __open
81661         and __open64.  This fixes a portability bug on HP-UX 11.11i
81662         reported by Simon Wing-Tang in
81663         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81664
81665 2006-05-24  Bruno Haible  <bruno@clisp.org>
81666
81667         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81668         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81669         Reported by Thorsten Maerz <torte@netztorte.de> via
81670         Aaron Stone <aaron@serendipity.cx>.
81671
81672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81675         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81676         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81677         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81678         not really conditional on the cache.
81679         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81680
81681 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81684         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81685         (my_usleep): Don't mishandle maximum value.
81686
81687 2006-05-19  Jim Meyering  <jim@meyering.net>
81688
81689         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81690
81691 2006-05-17  Bruno Haible  <bruno@clisp.org>
81692
81693         Cygwin portability.
81694         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81695
81696 2006-05-17  Bruno Haible  <bruno@clisp.org>
81697
81698         * lib/stdint_.h: Fix recognition of Cygwin.
81699
81700 2006-05-15  Bruno Haible  <bruno@clisp.org>
81701
81702         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81703         on libtool patch by Ralf Wildenhues.
81704
81705 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81708         test for C99 conformance; (bool) 0.5 is an integer constant
81709         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81710         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81711
81712 2006-05-11  Simon Josefsson  <jas@extundo.com>
81713
81714         * m4/xvasprintf.m4: Fix obvious typo.
81715
81716 2006-05-11  Jim Meyering  <jim@meyering.net>
81717
81718         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81719         James Lemley.
81720
81721 2006-05-10  Simon Josefsson  <jas@extundo.com>
81722
81723         * lib/md4.c: Typo fix, update copyright years.
81724         (K1, K2): Don't use L because it turn computations into 64-bit on
81725         64-bit platforms.
81726
81727 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81730         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81731         unwanted sign propagation, e.g., on hosts with 64-bit int.
81732         There still are some problems with reeelly weird theoretical hosts
81733         (e.g., 33-bit int) but it's not worth worrying about now.
81734         * lib/sha1.c (rol): Likewise.
81735         (K1, K2, K3, K4): Remove unnecessary L suffix.
81736
81737 2006-05-10  Bruno Haible  <bruno@clisp.org>
81738
81739         * lib/des.c: Cast to avoid warnings.
81740
81741 2006-05-09  Bruno Haible  <bruno@clisp.org>
81742
81743         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81744         (Depends-on): Depend also on xsize, stdarg.
81745         (configure.ac): Add gl_XVASPRINTF.
81746
81747 2006-05-09  Bruno Haible  <bruno@clisp.org>
81748
81749         * m4/xvasprintf.m4: New file.
81750
81751 2006-05-09  Bruno Haible  <bruno@clisp.org>
81752
81753         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81754         (EOVERFLOW): Define fallback value.
81755         (xstrcat): New function.
81756         (xvasprintf): Recognize the special case of a string concatenation.
81757
81758 2006-05-08  Eric Blake  <ebb9@byu.net>
81759
81760         * gnulib-tool (func_version): Base copyright year on CVS date.
81761         (func_emit_copyright_notice): New function.
81762         (func_emit_lib_Makefile_am): Use it.
81763         (func_emit_tests_Makefile_am): Likewise.
81764         (func_import): Likewise.
81765
81766 2006-05-08  Bruno Haible  <bruno@clisp.org>
81767
81768         * modules/stdarg: New file.
81769         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81770
81771 2006-05-08  Bruno Haible  <bruno@clisp.org>
81772
81773         * m4/stdarg.m4: New file, from GNU gettext.
81774
81775 2006-05-08  Bruno Haible  <bruno@clisp.org>
81776
81777         * config/srclist.txt (build-aux/config.rpath): different from latest
81778         release.
81779
81780 2006-05-08  Bruno Haible  <bruno@clisp.org>
81781
81782         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81783
81784 2006-05-05  Jim Meyering  <jim@meyering.net>
81785
81786         * m4/warning.m4: New file, derived from bison's file by the same name.
81787
81788 2006-05-03  Bruno Haible  <bruno@clisp.org>
81789
81790         * lib/stdint_.h: Shorter URL.
81791         * lib/inttypes.h: Likewise.
81792
81793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81794
81795         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81796
81797 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81798
81799         * lib/verify.h: Document the internals better.  Most of this change
81800         was written by Bruno Haible.
81801
81802 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * doc/verify.texi: New file, partly based on a proposal by
81805         Bruno Haible.
81806
81807 2006-05-02  Bruno Haible  <bruno@clisp.org>
81808
81809         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81810         test from here...
81811         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81812
81813 2006-04-29  Bruno Haible  <bruno@clisp.org>
81814
81815         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81816         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81817
81818 2006-04-29  Bruno Haible  <bruno@clisp.org>
81819
81820         * gnulib-tool: Make --update option actually work.
81821
81822 2006-04-29  Bruno Haible  <bruno@clisp.org>
81823
81824         * doc/gcd.texi: New file.
81825         * doc/gnulib.texi: Include it.
81826
81827 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * lib/getdate.y (get_date): When adding relative date, start with the
81830         initial time, not with the result of the first mktime call.
81831
81832 2006-04-25  Bruno Haible  <bruno@clisp.org>
81833
81834         * gnulib-tool (func_import): Output the include directives in three
81835         blocks, sorted separately.
81836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81837
81838 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81841         to define main with arguments, for C++.  Reported by Eric Blake.
81842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81843         Prefer 'int main ()' to 'int main (void)', for C++.
81844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81846         for 'main', for C99 and C++.
81847
81848 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81849
81850         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81851         Don't assume that exit status -1 is valid.
81852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81853         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81854         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81855         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81856         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81857         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81858         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81859         functions can be used without declaring them, or that you can
81860         exit with status -1.
81861         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81862
81863 2006-04-24  Karl Berry  <karl@gnu.org>
81864
81865         * config/srclist.txt (longdouble.m4): sync lost.
81866
81867 2006-04-24  Eric Blake  <ebb9@byu.net>
81868
81869         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81870
81871 2006-04-24  Bruno Haible  <bruno@clisp.org>
81872
81873         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81874         poll() implementation in AIX.
81875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81876
81877 2006-04-24  Bruno Haible  <bruno@clisp.org>
81878
81879         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81880         assigned exactly once.
81881
81882 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81883             Bruno Haible  <bruno@clisp.org>
81884
81885         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81886         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81887         for AM_CPPFLAGS.
81888
81889 2006-04-23  Bruno Haible  <bruno@clisp.org>
81890
81891         * modules/copy-file: Depend on unistd.
81892         * modules/execute: Likewise.
81893         * modules/fatal-signal: Likewise.
81894         * modules/findprog: Likewise.
81895         * modules/mkdtemp : Likewise.
81896         * modules/pipe: Likewise.
81897         * modules/wait-process: Likewise.
81898
81899 2006-04-23  Bruno Haible  <bruno@clisp.org>
81900
81901         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81902         condition was already detected.
81903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81904
81905 2006-04-23  Bruno Haible  <bruno@clisp.org>
81906
81907         * lib/copy-file.c: Include <unistd.h> unconditionally.
81908         * lib/execute.c: Likewise.
81909         * lib/fatal-signal.c: Likewise.
81910         * lib/findprog.c: Likewise.
81911         * lib/mkdtemp.c: Likewise.
81912         * lib/pipe.h: Likewise.
81913         * lib/pipe.c: Likewise.
81914         * lib/wait-process.h: Likewise.
81915
81916 2006-04-23  Bruno Haible  <bruno@clisp.org>
81917
81918         * gnulib-tool (func_usage): Fix --import description. Document
81919         --update.
81920         (func_import): Create temporary file in a temporary directory, if
81921         --dry-run is specified. Silence errors from 'grep' when there are no
81922         m4 files in $m4dir.
81923         (func_create_testdir): Silence errors from 'grep' when there are no
81924         m4 files in $m4dir.
81925         Reported by Karl Berry <karl@freefriends.org>.
81926
81927 2006-04-20  Bruno Haible  <bruno@clisp.org>
81928
81929         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81930         one argument, so that the code will be portable to Autoconf 2.60.
81931         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81933         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81934
81935 2006-04-19  Derek Price  <derek@ximbiot.com>
81936             Eric Blake  <ebb9@byu.net>
81937
81938         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81939         rather than "/full/path.h".  Update comment to match.  Shorten &
81940         generalize m4_translit call via AS_TR_CPP.
81941
81942 2006-04-19  Derek Price  <derek@ximbiot.com>
81943             Eric Blake  <ebb9@byu.net>
81944
81945         * lib/inttypes.h: Correct grammar in comment.
81946
81947 2006-04-18  Derek Price  <derek@ximbiot.com>
81948             Paul Eggert  <eggert@cs.ucla.edu>
81949
81950         * modules/inttypes: New file.
81951         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81952
81953 2006-04-18  Derek Price  <derek@ximbiot.com>
81954             Paul Eggert  <eggert@cs.ucla.edu>
81955
81956         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81957         New files.
81958
81959 2006-04-18  Derek Price  <derek@ximbiot.com>
81960             Paul Eggert  <eggert@cs.ucla.edu>
81961
81962         * lib/inttypes.h: New file.
81963         * lib/strtoimax.c: Assume <inttypes.h>.
81964
81965 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81968         isn't mounted.  Problem reported by Kir Kolyshkin.
81969
81970 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81971
81972         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81973         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81974         Derek R. Price.
81975         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81976         implementation.
81977
81978 2006-04-12  Eric Blake  <ebb9@byu.net>
81979
81980         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81981         is now done automatically by the corresponding Autoconf macro.
81982
81983 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81986         time_r.h.
81987
81988 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81989
81990         Merge regex changes from libc, removing some of our
81991         POSIX-conformance changes that were rejected and redoing them in a
81992         less-intrusive way.
81993
81994         * lib/regcomp.c (re_compile_internal, init_dfa):
81995         Length arg is now size_t, not Idx.  All uses changed.
81996         (peek_token): Forward decl now says internal_function.
81997         (__re_error_msgid, __re_error_msgid_idx):
81998         Now static rather than extern with attribute_hidden.
81999         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82000         For some reason libc prefers K&R style defns for external functions.
82001         (regerror) [!defined _LIBC]: Likewise.
82002         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82003         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82004         (build_range_exp, build_collating_symbol):
82005         Use K&R-style defn.
82006         (re_compile_fastmap): Use '\0' to memset, not 0.
82007         (utf8_sb_map): Make the calculations more obvious.
82008         (init_dfa, parse_bracket_exp, build_charclass_op):
82009         Call calloc and cast result, as glibc does.
82010         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82011         (build_range_exp, build_collating_symbol):
82012         Now internal functions.
82013
82014         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82015
82016         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82017         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82018         Don't depend on VMS; depend on __VMS instead, for POSIX
82019         namespace cleanness.
82020         (regoff_t): Define to ssize_t, not long int.
82021
82022         Remove the REG_ macros named below.  Instead, make the old names
82023         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82024         __USE_GNU_REGEX.
82025         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82026         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82027         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82028         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82029         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82030         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82031         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82032         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82033         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82034         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82035         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82036         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82037         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82038         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82039         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82040         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82041         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82042         (REG_NREGS):
82043         Remove.  All uses replaced by the old RE_* names.
82044         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82045         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82046         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82047         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82048         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82049         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82050         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82051         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82052         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82053         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82054         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82055         Don't bother having these macros be independent of each others'
82056         values, since they no longer exist in the POSIX name space.
82057
82058         Rename the following member names back to their old names,
82059         unless !__USE_GNU_REGEX.  All uses changed back.
82060         (buffer): Renamed from re_buffer.
82061         (allocated): Renamed from re_allocated.
82062         (used): Renamed from re_used.
82063         (syntax): Renamed from re_syntax.
82064         (fastmap): Renamed from re_fastmap.
82065         (translate): Renamed from re_translate.
82066         (can_be_null): Renamed from re_can_be_null.
82067         (regs_allocated): Renamed from re_regs_allocated.
82068         (fastmap_accurate): Renamed from re_fastmap_accurate.
82069         (no_sub): Renamed from re_no_sub.
82070         (not_bol): Renamed from re_not_bol.
82071         (not_eol): Renamed from re_not_eol.
82072         (newline_anchor): Renamed from re_newline_anchor.
82073         (num_regs): Renamed from rm_num_regs.
82074         (start): Renamed from rm_start.
82075         (end): Renamed from rm_end.
82076
82077         (free_state): Move up a bit.
82078
82079         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82080         #define to be empty.
82081         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82082         when that is what is intended.
82083         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82084         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82085         (MAX): New macro.
82086         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82087         All uses changed back to re_malloc, etc.  It's now the caller's
82088         responsibility to check for overflow; all callers changed.
82089         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82090         (re_x2nrealloc): Remove.
82091         (free_state): Remove decl.
82092
82093         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82094         (re_set_registers, re_exec):
82095         Use K&R-style defn.
82096
82097         2006-01-31  Roland McGrath  <roland@redhat.com>
82098
82099         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82100         Reported by Mike Frysinger <vapier@gentoo.org>.
82101
82102         2006-01-15  Andreas Jaeger  <aj@suse.de>
82103
82104         [BZ #1950]
82105         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82106         build_wcs_upper_buffer change.
82107         (build_wcs_upper_buffer): Change return type.
82108
82109         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82110
82111         * lib/regex_internal.h: Include <stdint.h> if available.
82112
82113         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82114
82115         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82116
82117         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82118
82119         * lib/regcomp.c: Adjust for changed secondary hash function.
82120
82121         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82122
82123         * lib/regex.h: Pretty printing.
82124         Clean up namespace a bit.
82125
82126         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82127
82128         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82129         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82130
82131         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82132                     Ulrich Drepper  <drepper@redhat.com>
82133
82134         [BZ #1302]
82135         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82136         changed.
82137         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82138
82139         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82140
82141         [BZ #281]
82142         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82143         * lib/regcomp.c: Remove unnecessary uses of
82144         unsigned RE_TRANSLATE_TYPE.
82145         * lib/regex_internal.h: Likewise.
82146         * lib/regex_internal.c: Likewise.
82147         * lib/regexec.c: Likewise.
82148         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82149
82150         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82151
82152         * lib/regexec.c (find_recover_state): Remove unnecessary
82153         initialization.
82154         (transit_state_bkref): Make DFA a const pointer.
82155         (get_subexp): Likewise.
82156         (check_arrival): Likewise.
82157         (update_cur_sifted_state): Likewise.
82158         (re_search_internal): Likewise.
82159         (prune_impossible_nodes): Likewise.
82160         (acquire_init_state_context): Likewise.
82161         (proceed_next_node): Likewise.
82162         (set_regs): Likewise.
82163         (free_fail_stack_return): Likewise.
82164         (check_arrival_expand_ecl): Mark DFA parameter as const.
82165         (check_arrival_expand_ecl_sub): Likewise.
82166         (check_subexp_limits): Likewise.
82167         (sub_epsilon_src_nodes):  Likewise.
82168         (add_epsilon_src_nodes):  Likewise.
82169         (merge_state_array): Likewise.
82170         (update_regs): Likewise.
82171         (build_trtable): Likewise.
82172         (sift_states_backward): Mark MCTX parameter as const.
82173         (build_sifted_states): Likewise.
82174         (update_cur_sifted_state): Likewise.
82175         (sift_states_mkref): Likewise.
82176         (check_arrival_expand_ecl): Mark eclosure as const.
82177         (check_dst_limits_calc_pos_1): Likewise.
82178         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82179         pointer.
82180
82181         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82182
82183         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82184         (transit_state_sb): Likewise.
82185         (transit_state_mb): Likewise.
82186         (sift_states_iter_mb): Likewise.
82187         (check_arrival_add_next_nodes): Likewise.
82188         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82189         [_LIBC] (re_search_2_stub): Use mempcpy.
82190
82191         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82192         mbrtowc for very simple UTF-8 case.
82193
82194         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82195         a pointer-to-const.
82196         (re_acquire_state_context): Likewise.
82197         * lib/regex_internal.h: Adjust prototypes.
82198
82199         * lib/regex.c: Prevent using C++ compilers.
82200
82201         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82202         (re_acquire_state_context): Likewise.
82203
82204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82205
82206         * modules/regex (Depends-on): Add ssize_t.
82207
82208 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82211         translation table.
82212
82213 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82214
82215         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82216
82217 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82218             Bruno Haible  <bruno@clisp.org>
82219
82220         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82221         <sys/types.h> and <inttypes.h>.
82222
82223 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82224
82225         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82226         `__error_t_defined', so argp.h will not typedef the former.
82227
82228 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82231         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82232         glibc names.  Even if glibc is changed to conform to POSIX, the
82233         traditional names will be available anyway, since regex depends on
82234         the extensions module.  Also, fix a longstanding typo in the
82235         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82236         reported by Emanuele Giaquinta.  Also, change sense of cached
82237         variable, so that the message makes sense.
82238
82239 2006-03-24  Simon Josefsson  <jas@extundo.com>
82240
82241         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82242         including some doc fixes.
82243         (base64_encode_alloc): Fix +1 bug on allocation failures.
82244
82245 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82246
82247         * lib/base64.c (base64_encode): Do not read past end of array with
82248         unsanitized input on systems with CHAR_BIT > 8.
82249
82250 2006-03-24  Eric Blake  <ebb9@byu.net>
82251
82252         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82253
82254 2006-03-22  Karl Berry  <karl@gnu.org>
82255
82256         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82257         * config/srclistvars.sh (COREUTILS): new var.
82258
82259 2006-03-17  Jim Meyering  <jim@meyering.net>
82260
82261         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82262         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82263
82264 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82267         no longer needs it.  Instead, check that regoff_t is as least
82268         as wide as ptrdiff_t.
82269
82270         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82271         so that our regex.h stays compatible with the installed regex.
82272         This is helpful for installers who configure --without-included-regex.
82273         Problem reported by Emanuele Giaquinta.
82274
82275 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82276
82277         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82278         Typedef to long int, not to off_, as POSIX will likely change
82279         in that direction.
82280
82281 2006-03-15  Eric Blake  <ebb9@byu.net>
82282
82283         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82284
82285 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82286
82287         * lib/argp-help.c (validate_uparams): Fix typo
82288         * lib/argp-parse.c (argp_default_options): Consistently begin help
82289         messages with a lowercase letter.
82290
82291 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82292
82293         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82294         overrun buffers and shouldn't be used (much as gets shouldn't be
82295         used).
82296         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82297
82298 2006-03-08  Simon Josefsson  <jas@extundo.com>
82299
82300         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82301         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82302
82303 2006-03-08  Simon Josefsson  <jas@extundo.com>
82304
82305         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82306         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82307
82308 2006-03-08  Simon Josefsson  <jas@extundo.com>
82309
82310         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82311         signal that configure disabled the device.
82312
82313 2006-03-08  Simon Josefsson  <jas@extundo.com>
82314
82315         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82316         languages.
82317
82318 2006-03-07  Simon Josefsson  <jas@extundo.com>
82319
82320         * modules/getopt (Depends-on): Add unistd.
82321
82322         * modules/unistd: New file.
82323
82324 2006-03-07  Simon Josefsson  <jas@extundo.com>
82325
82326         * modules/gc-random: New file.
82327
82328 2006-03-07  Simon Josefsson  <jas@extundo.com>
82329
82330         * m4/unistd_h.m4: New file.
82331
82332 2006-03-07  Simon Josefsson  <jas@extundo.com>
82333
82334         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82335         test to be side-effect free by storing the result in the cache
82336         variable gl_cv_lib_readline, and moving the assignment of
82337         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82338         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82339
82340 2006-03-07  Simon Josefsson  <jas@extundo.com>
82341
82342         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82343         error on missing devices (the functions will return an error).
82344
82345         * m4/gc.m4: Move random stuff to gc-random.m4
82346
82347 2006-03-07  Simon Josefsson  <jas@extundo.com>
82348
82349         * lib/unistd_.h: New file.
82350
82351 2006-03-07  Simon Josefsson  <jas@extundo.com>
82352
82353         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82354
82355 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82356
82357         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82358         Problem reported by Juan Manuel Guerrero.
82359
82360 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82361
82362         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82363         the unistd module.
82364         * lib/getlogin_r.c: Likewise.
82365         * lib/getlogin_r.h: Likewise.
82366         * lib/glob.c: Likewise.
82367         * lib/pagealign_alloc.c: Likewise.
82368         * lib/unistd_.h: Remove; no longer needed.
82369
82370 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82371
82372         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82373         Add unistd.
82374         * modules/c-stack (Depends-on): Add unistd.
82375         * modules/getlogin_r: Likewise.
82376         * modules/glob: Likewise.
82377         * modules/pagealign_alloc: Likewise.
82378         * modules/unistd (Files): Remove lib/unistd_.h.
82379         (EXTRA_DIST): Remove.
82380         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82381         need unistd_.h.
82382         (MOSTLYCLEANFILES): Remove unistd.h-t.
82383
82384 2006-03-03  Simon Josefsson  <jas@extundo.com>
82385
82386         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82387
82388 2006-03-03  Simon Josefsson  <jas@extundo.com>
82389
82390         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82391         libidn and bison.
82392
82393 2006-03-03  Simon Josefsson  <jas@extundo.com>
82394
82395         * build-aux/maint.mk: Add indent target.
82396
82397 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82398
82399         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82400         our replacement poll.h in any case, to avoid a differing
82401         declaration from a system header.  Seen on AIX.
82402
82403 2006-03-01  Simon Josefsson  <jas@extundo.com>
82404
82405         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82406         <kasal@ucw.cz>.
82407
82408 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82409
82410         * modules/gettime (Depends-on): Add extensions module.
82411         * modules/nanosleep (Depends-on): Likewise.
82412         * modules/settime (Depends-on): Likewise.
82413
82414 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82417         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82418         pedantically.
82419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82420         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82421
82422         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82423         not "==".  Reported by Ralf Wildenhues.
82424
82425 2006-03-01  Karl Berry  <karl@gnu.org>
82426
82427         * doc/Copyright/request-*: new files, synced from gnuorg.
82428
82429 2006-03-01  Karl Berry  <karl@gnu.org>
82430
82431         * config/srclist.txt (Copyright/*): new entries.
82432
82433 2006-02-28  Simon Josefsson  <jas@extundo.com>
82434
82435         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82436
82437 2006-02-27  Simon Josefsson  <jas@extundo.com>
82438
82439         * lib/base64.h: Indent #define's.  From Jim Meyering
82440         <jim@meyering.net>.
82441
82442 2006-02-27  Jim Meyering  <jim@meyering.net>
82443
82444         Revert the change of 2006-02-24, so these files can continue
82445         to be sync'd from gettext.
82446         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82447         of `config.h'.
82448
82449 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * modules/intprops: New file.
82452         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82453         Add intprops.
82454         * modules/getloadavg (Files): Remove lib/intprops.h.
82455         (Depends-on): Add intprops.
82456         * modules/human: Likewise.
82457         * modules/inttostr: Likewise.
82458         * modules/openat: Likewise.
82459         * modules/sig2str: Likewise.
82460         * modules/userspec: Likewise.
82461         * modules/utimecmp: Likewise.
82462         * modules/xnanosleep: Likewise.
82463         * modules/xstrtol: Likewise.
82464
82465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82466
82467         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82468         * modules/lock-tests (TESTS): Use $(EXEEXT).
82469         * modules/tls-tests: Likewise.
82470         * modules/argp-tests: Likewise.
82471         (check_PROGRAMS): New var, replacing...
82472         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82473
82474 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82475
82476         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82477         `config.h'.
82478
82479 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82480
82481         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82482
82483 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82484
82485         Sync from coreutils.
82486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82487         gl_CHDIR_SAFER.
82488
82489 2006-02-22  Jim Meyering  <jim@meyering.net>
82490
82491         Sync from coreutils.
82492         * m4/chdir-safer.m4: New file.
82493
82494 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82497         AT_FDCWD exceeds INT_MAX.
82498         * lib/openat.h (AT_FDCWD): Likewise.
82499
82500 2006-02-17  Eric Blake  <address@hidden>
82501
82502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82503
82504 2006-02-16  Simon Josefsson  <jas@extundo.com>
82505
82506         * modules/getaddrinfo (Depends-on): Add sys_socket.
82507
82508 2006-02-15  Simon Josefsson  <jas@extundo.com>
82509
82510         * build-aux/maint.mk: Add dsyntax-check rule.
82511
82512 2006-02-15  Eric Blake  <ebb9@byu.net>
82513
82514         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82515         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82516         'present but cannot compile' warnings on cygwin.
82517         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82518         use ws2tcpip.h if sys/socket.h works.
82519         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82520         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82521
82522 2006-02-14  Simon Josefsson  <jas@extundo.com>
82523
82524         * modules/maintainer-makefile (Files): Rename.
82525
82526         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82527         and (the local) Makefile.cfg to maint-cfg.mk.
82528
82529         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82530         to the latter.
82531
82532         * modules/maintainer-makefile: New module.
82533
82534         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82535         severaly stripped to make it possible to build it up from scratch
82536         with reliable tests.
82537
82538         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82539         fixes to permit overriding the default actions when configure and
82540         makefile are not available.
82541
82542 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82543
82544         Sync from coreutils.
82545         * modules/lstat (Depends-on): Don't depend on xalloc.
82546         (License): Change from GPL to LGPL, since this is now simply a
82547         replacement for a libc function.
82548
82549 2006-02-14  Jim Meyering  <jim@meyering.net>
82550
82551         Sync from coreutils.
82552
82553         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82554         failure on deficient systems, and simplify gnulib lgpl dependencies.
82555         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82556         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82557
82558         * lib/xalloc-die.c: Remove unused definition of N_.
82559
82560 2006-02-14  Jim Meyering  <jim@meyering.net>
82561
82562         Sync from coreutils.
82563         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82564         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82565         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82566         double-quote uses of that variable, to accommodate the rare case in
82567         which getmntent is available in none of the libraries checked.  This
82568         happens at least on FreeBSD 5.0.
82569
82570 2006-02-13  Simon Josefsson  <jas@extundo.com>
82571
82572         * gnulib-tool (Usage): Fix --import, from
82573         karl@freefriends.org (Karl Berry).
82574
82575 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82576
82577         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82578
82579 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82580
82581         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82582         "autoupdate" on 2005-12-12.
82583
82584 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82585
82586         * modules/closeout (Depends-on): Remove atexit.
82587
82588 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82589
82590         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82591         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82592
82593 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82596         __EXTENSIONS__ if this causes compilation to fail.  Problem
82597         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82598         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82599
82600 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82601
82602         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82603         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82605         All uses changed.
82606
82607 2006-01-26  Simon Josefsson  <jas@extundo.com>
82608
82609         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82610         prototype is visible on mingw32.
82611
82612         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82613         for mingw32.
82614
82615         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82616         mingw32).
82617
82618 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82619
82620         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82621         attempt to open for write; this always fails, at least on POSIX
82622         hosts.  This reinstates the 2006-01-09 change, which was
82623         inadvertently removed.
82624
82625 2006-01-26  Bruno Haible  <bruno@clisp.org>
82626
82627         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82628         Reported by Paul Eggert.
82629
82630 2006-01-26  Bruno Haible  <bruno@clisp.org>
82631             Paul Eggert  <eggert@cs.ucla.edu>
82632
82633         * lib/stdbool_.h (_Bool)
82634         [(! (defined __cplusplus || defined __BEOS__)
82635           && !defined __GNUC__
82636           && !(defined __HP_cc || defined __xlc__
82637                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82638                || defined __sgi))]:
82639         #define to signed char in these cases too; this simplifies
82640         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82641         etc., separately) and makes it more conservative.
82642
82643 2006-01-25  Simon Josefsson  <jas@extundo.com>
82644
82645         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82646         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82647         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82648
82649 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82650
82651         * lib/argp-namefrob.h: Bugfix. Remove stray #
82652
82653 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82656         so that we test the test.
82657         Check for yet another HP-UX cc bug involving *bool |= bool.
82658
82659 2006-01-25  Karl Berry  <karl@gnu.org>
82660
82661         * config/srclist.txt (vasnprintf.c): sync lost.
82662
82663 2006-01-25  Jim Meyering  <jim@meyering.net>
82664
82665         Sync from the stable (b5) branch of coreutils:
82666
82667         * lib/fts.c (fts_children): Don't let close() clobber errno from
82668         failed fchdir().
82669
82670         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82671         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82672         a dangling symlink.  That can also happen at least for ELOOP.
82673         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82674         FYI, this bug predates the inclusion of fts.c in coreutils.
82675
82676         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82677         in their own block, so pre-c99 compilers don't object.
82678
82679         Avoid the double-free (first in fts_read, second in fts_close) that
82680         would occur when an `active' directory is made inaccessible (e.g.,
82681         via chmod a-x) during a traversal.
82682         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82683         before returning.  Reproduce this failure by
82684         mkdir -p a/b; cd a; chmod a-x . b
82685         Reported by Stavros Passas.
82686
82687 2006-01-25  Jim Meyering  <jim@meyering.net>
82688
82689         * lib/fileblocks.c: Remove more useless parentheses.
82690         * lib/readutmp.h: Likewise.
82691
82692 2006-01-25  Bruno Haible  <bruno@clisp.org>
82693
82694         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82695         warnings.
82696         Reported by Paul Eggert.
82697
82698 2006-01-25  Bruno Haible  <bruno@clisp.org>
82699
82700         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82701         rid of a trap command. For Solaris sh.
82702         Reported by Mark D. Baushke <mdb@gnu.org>.
82703
82704 2006-01-24  Simon Josefsson  <jas@extundo.com>
82705
82706         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82707         Bruno.
82708
82709 2006-01-24  Karl Berry  <karl@gnu.org>
82710
82711         * config/srclist.txt (argp-namefrob.h): sync lost.
82712
82713 2006-01-24  Jim Meyering  <jim@meyering.net>
82714
82715         * modules/openat (Files): Add lib/intprops.h.
82716         From Mark D. Baushke.
82717
82718 2006-01-24  Jim Meyering  <jim@meyering.net>
82719
82720         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82721         Reported by Mark D. Baushke.
82722
82723 2006-01-24  Jim Meyering  <jim@meyering.net>
82724
82725         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82726
82727 2006-01-24  Bruno Haible  <bruno@clisp.org>
82728
82729         * modules/strnlen (Maintainer): Change from glibc to all.
82730
82731 2006-01-24  Bruno Haible  <bruno@clisp.org>
82732
82733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82734         Patch by Paul Eggert.
82735
82736 2006-01-24  Bruno Haible  <bruno@clisp.org>
82737
82738         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82739         already has it.
82740         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82741         2005-11-26.
82742
82743         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82744         'signed char' to avoid problems with the built-in _Bool type.
82745         Reported by Paul Eggert on 2005-11-26.
82746
82747 2006-01-24  Bruno Haible  <bruno@clisp.org>
82748
82749         * gnulib-tool (func_import): Avoid constructing complicated sed
82750         expressions inside backquote.
82751         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82752
82753 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82754
82755         These changes imported from libc.
82756         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82757         test and two separate function calls.
82758         * lib/strndup.c (__strndup): Add libc_hidden_def.
82759
82760 2006-01-23  Simon Josefsson  <jas@extundo.com>
82761
82762         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82763         Remove the test_*_SOURCES variable: automake infers it by default.
82764         * modules/tls-tests: Likewise.
82765
82766 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82767
82768         Work around porting bugs reported by Dieter in
82769         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82770         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82771         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82772         Include "getopt.h" first, to check interface.
82773         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82774         !HAVE_DECL_GETENV.
82775         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82776         (__strndup): Revert to K&R-style function dfns, the glibc style.
82777         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82778         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82779         Include strnlen.h first, to get prototype properly.
82780         (strnlen): Renamed from __strnlen.
82781         Remove weak alias.
82782
82783 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82786
82787 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82788
82789         * config/srclist.txt: Adjust to reflect glibc reorganization.
82790         This affects only comments.
82791
82792 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82793
82794          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82795          Reported by Bruce Korb <bkorb@gnu.org>.
82796
82797 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82798
82799         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82800         to pacify gcc -Wswitch-default.
82801
82802 2006-01-22  Bruno Haible  <bruno@clisp.org>
82803
82804         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82805         temporary buffer for sprintf, take into account the precision also
82806         for 'd', 'i', 'u', 'o', 'x', 'X'.
82807
82808 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82809
82810         * modules/argp-tests: New module
82811         * tests/test-argp.c: New file
82812         * tests/test-argp-2.sh: New file
82813
82814 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82815
82816         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82817         (__argp_base_name): Removed
82818         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82819         typo.
82820         (__argp_base_name): Provide macro definition or extern declaration
82821         depending on the configuration
82822
82823 2006-01-20  Simon Josefsson  <jas@extundo.com>
82824
82825         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82826
82827 2006-01-20  Simon Josefsson  <jas@extundo.com>
82828
82829         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82830
82831 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82832
82833         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82834         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82835         Suggested by Bruno Haible.
82836
82837 2006-01-20  Karl Berry  <karl@gnu.org>
82838
82839         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82840         until changes propagate, I guess.
82841
82842 2006-01-19  Simon Josefsson  <jas@extundo.com>
82843
82844         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82845
82846 2006-01-19  Simon Josefsson  <jas@extundo.com>
82847
82848         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82849
82850 2006-01-19  Simon Josefsson  <jas@extundo.com>
82851
82852         * gnulib-tool: Set check_PROGRAMS.
82853
82854         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82855         modules/des-tests, modules/gc-arcfour-tests,
82856         modules/gc-arctwo-tests, modules/gc-des-tests,
82857         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82858         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82859         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82860         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82861         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82862         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82863         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82864         test_*_SOURCES.
82865
82866 2006-01-18  Simon Josefsson  <jas@extundo.com>
82867
82868         * modules/socklen (Depends-on): Depend on sys_socket.
82869
82870 2006-01-18  Simon Josefsson  <jas@extundo.com>
82871
82872         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82873         modules/des-tests, modules/gc-arcfour-tests,
82874         modules/gc-arctwo-tests, modules/gc-des-tests,
82875         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82876         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82877         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82878         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82879         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82880         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82881         $(EXEEXT) to automake TESTS variable, for mingw32.
82882
82883 2006-01-17  Simon Josefsson  <jas@extundo.com>
82884
82885         * modules/socklen (Include): Need sys/socket.h.
82886
82887 2006-01-17  Bruno Haible  <bruno@clisp.org>
82888
82889         * modules/ssize_t (Include): Add <sys/types.h>.
82890
82891 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82892
82893         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82894         it's not portable and it doesn't work with cross-compiles.
82895         Problem reported by Bruno Haible.  Fix missing-$ typo in
82896         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82897         -zignore from being used with Sun's C compiler.
82898
82899 2006-01-12  Simon Josefsson  <jas@extundo.com>
82900
82901         * lib/base64.c: Fix warning, reported by Bruno Haible
82902         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82903
82904 2006-01-12  Bruno Haible  <bruno@clisp.org>
82905
82906         * modules/ldd: New file.
82907         * build-aux/ldd.sh.in: New file.
82908         * MODULES.html.sh (Support for building libraries and executables): Add
82909         ldd.
82910
82911 2006-01-12  Bruno Haible  <bruno@clisp.org>
82912
82913         * m4/ldd.m4: New file.
82914
82915 2006-01-12  Bruno Haible  <bruno@clisp.org>
82916
82917         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82918         endless loop while replacing $auxdir with build-aux.
82919
82920 2006-01-11  Simon Josefsson  <jas@extundo.com>
82921
82922         * lib/stdint_.h (SIZE_MAX): Add missing (.
82923
82924 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         Sync from coreutils.
82927         * lib/md5.c: Fix commentary typos.
82928         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82929         * lib/md5.h (__attribute__): Remove; unused.
82930         * lib/sha1.c: Fix commentary to match md5 better.
82931         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82932         so that we don't need to worry about alignment.  All uses changed.
82933         This merges the 2005-10-28 md5 change into sha1.
82934
82935 2006-01-11  Jim Meyering  <jim@meyering.net>
82936
82937         Sync from coreutils.
82938         * lib/md5.c (OP): Fix spacing.
82939
82940 2006-01-11  Bruno Haible  <bruno@clisp.org>
82941
82942         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82943         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82944         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82945
82946 2006-01-11  Bruno Haible  <bruno@clisp.org>
82947
82948         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82949         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82950         the "early" section as well.
82951
82952 2006-01-11  Bruno Haible  <bruno@clisp.org>
82953
82954         Avoid "ar: no archive members specified" error on MacOS X.
82955         * gnulib-tool (func_modules_add_dummy): New function.
82956         (func_import, func_create_testdir): Invoke it.
82957
82958 2006-01-11  Bruno Haible  <bruno@clisp.org>
82959
82960         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82961         with $auxdir in AC_CONFIG_FILES statements.
82962
82963 2006-01-11  Bruno Haible  <bruno@clisp.org>
82964
82965         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82966         Initialize also noinst_HEADERS to empty.
82967
82968 2006-01-11  Bruno Haible  <bruno@clisp.org>
82969
82970         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82971         variables.
82972         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82973         autoreconf.
82974
82975 2006-01-11  Bruno Haible  <bruno@clisp.org>
82976
82977         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82978         overridable by the user.
82979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82980
82981 2006-01-10  Simon Josefsson  <jas@extundo.com>
82982
82983         * modules/sys_socket: New file.
82984
82985 2006-01-10  Simon Josefsson  <jas@extundo.com>
82986
82987         * m4/sys_socket_h.m4: New file.
82988
82989 2006-01-10  Simon Josefsson  <jas@extundo.com>
82990
82991         * lib/socket_.h: New file.
82992
82993 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * modules/readutmp (Maintainer): Add myself.
82996
82997 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82998
82999         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83000         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83001         People who are still concerned with buggy memcmp implementations
83002         can invoke gl_FUNC_MEMCMP themselves.
83003
83004 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * lib/regex_internal.h (BITSET_WORD_BITS):
83007         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83008         preprocessor mishandles large unsigned values as if they were signed.
83009         Problem reported by Claudio Fontana in
83010         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83011
83012 2006-01-10  Jim Meyering  <jim@meyering.net>
83013
83014         Avoid the double-free (first in fts_read, second in fts_close) that
83015         would occur when an `active' directory is made inaccessible (e.g.,
83016         via chmod a-x) during a traversal.
83017         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83018         before returning.  Reproduce this failure by
83019         mkdir -p a/b; cd a; chmod a-x . b
83020         Reported by Stavros Passas.
83021
83022         Sync from coreutils.
83023         * lib/sha1.c: Tweak grammar in a comment.
83024
83025 2006-01-10  Jim Meyering  <jim@meyering.net>
83026
83027         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83028         Patch by Joerg Sonnenberger.
83029
83030 2006-01-10  Bruno Haible  <bruno@clisp.org>
83031
83032         * modules/readutmp: Depend on module free.
83033         * modules/strtok_r: Depend on module restrict.
83034
83035 2006-01-10  Bruno Haible  <bruno@clisp.org>
83036
83037         * modules/gettext (configure.ac): Add an invocation of
83038         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83039
83040 2006-01-10  Bruno Haible  <bruno@clisp.org>
83041
83042         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83043         Reported by Werner Lemberg <wl@gnu.org>.
83044
83045 2006-01-10  Bruno Haible  <bruno@clisp.org>
83046
83047         * lib/localcharset.c: Update from GNU gettext.
83048
83049 2006-01-10  Bruno Haible  <bruno@clisp.org>
83050
83051         * lib/argp.h (__const): Remove macro. Use const instead.
83052         * lib/argp-fmtstream.h (__const): Likewise.
83053         * lib/glob_.h (__const): Remove macro.
83054         * lib/glob-libc.h: Use const instead of __const.
83055
83056 2006-01-10  Bruno Haible  <bruno@clisp.org>
83057
83058         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83059         variable.
83060         Needed to avoid an automake error regarding the 'gettext' module.
83061
83062 2006-01-09  Simon Josefsson  <jas@extundo.com>
83063
83064         * modules/inet_ntop (Depends-on): Add restrict.
83065
83066 2006-01-09  Simon Josefsson  <jas@extundo.com>
83067
83068         * modules/gc-rijndael-tests (License): Put under LGPL.
83069
83070         * modules/gc-des-tests (License): Likewise.
83071
83072         * modules/gc-arcfour-tests (License): Likewise.
83073
83074         * modules/gc-arctwo-tests (License): Likewise.
83075
83076         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83077
83078         * modules/gc-hmac-sha1-tests (Files): Likewise.
83079
83080         * modules/gc-hmac-md5-tests (License): Likewise.
83081
83082         * modules/gc-sha1-tests (License): Likewise.
83083
83084         * modules/gc-md5-tests (License): Likewise.
83085
83086         * modules/gc-md4-tests (License): Likewise.
83087
83088         * modules/gc-md2-tests (License): Likewise.
83089
83090         * modules/gc-tests (License): Likewise.
83091
83092         * modules/des-tests (License): Likewise.
83093
83094         * modules/md4-tests (License): Likewise.
83095
83096         * modules/md2-tests (License): Likewise.
83097
83098 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83099
83100         Sync from coreutils:
83101
83102         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83103         * modules/lib-ignore: New file.
83104         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83105         chdir-safer.m4, lchmod.m4.
83106         * modules/openat: Add mkdirat.c, openat-priv.h.
83107
83108 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83109
83110         Sync from coreutils.
83111         * m4/lib-ignore.m4: New file.
83112         * m4/lchmod.m4: New file.
83113
83114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83115
83116         Sync from coreutils.
83117         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83118         for write access: POSIX says that must fail.
83119         * lib/fts.c (diropen): Likewise.
83120         * lib/save-cwd.c (save_cwd): Likewise.
83121         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83122         well, for minor improvements on hosts that lack O_DIRECTORY.
83123         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83124         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83125         Fall back on chown if open failed with EACCES.
83126
83127         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83128         Report an error at compile-time if only a 1-second nominal clock
83129         resolution is found.
83130
83131         * lib/lchmod.h: New file.
83132         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83133         (make_dir_parents): Use lchown rather than chown, and
83134         lchmod rather than chmod.
83135
83136         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83137         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83138         "proc" reported by n0dalus.
83139
83140         * lib/mountlist.c: Include <limits.h>.
83141         (dev_from_mount_options)
83142         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83143         New function.  It no longer assumes "dev=" has the System V meaning
83144         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83145         (read_file_system_list)
83146         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83147         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83148         dev= in that case.
83149
83150         * lib/posixtm.h (PDS_PRE_2000): New macro.
83151         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83152         allow_century.  All usages changed.  Reject dates outside the range
83153         1969-1999 if PDS_PRE_2000 is used.
83154
83155 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83156
83157         Sync from coreutils.
83158         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83159         (Time of day items): Mention the possibility of leap seconds.
83160         Problem reported by Dr. David Alan Gilbert.
83161
83162 2006-01-09  Jim Meyering  <jim@meyering.net>
83163
83164         Sync from coreutils.
83165
83166         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83167
83168         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83169
83170         * lib/modechange.c (mode_compile): Reject an invalid mode string
83171         that starts with an octal digit.  From Andreas Gruenbacher.
83172
83173         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83174         and dup to open_safer and dup_safer, respectively.
83175         (openat_permissive): Fix typo in comment.
83176
83177         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83178         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83179         (_): Remove; no longer needed.
83180         (openat): Renamed from rpl_openat; no need for rpl_openat
83181         since openat.h renames openat for us.
83182         Replace most of the body with a call to openat_permissive,
83183         to avoid duplicate code.
83184         Port to (probably hypothetical) environments were mode_t is
83185         wider than int.
83186         (openat_permissive): Require mode arg, so that we can check
83187         types better.  Put it just after flags.  Change cwd failure
83188         indicator from pointer-to-bool to pointer-to-errno-value.
83189         All callers changed.
83190         Invoke openat_save_fail and/or openat_restore_fail if
83191         cwd_errno is null, so that openat can call us.
83192         (openat_permissive, fdopendir, fstatat, unlinkat):
83193         Simplify errno handling to avoid some duplicate code,
83194         as it's OK to set errno on success.
83195         * lib/openat.h: Revamp code so that function macros depend on
83196         __OPENAT_PREFIX only, not also on AT_FDCWD.
83197         (openat_ro): Remove.  Caller changed to use openat_permissive.
83198         (openat_permissive): Now a macro, if not a function.
83199         (openat_restore_fail, openat_save_fail): Now always functions,
83200         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83201
83202         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83203         and openat.c.
83204         * lib/mkdirat.c: Include openat-priv.h.
83205         Remove definitions of macros defined therein.
83206         * lib/openat.c: Likewise.
83207
83208         * lib/mkdirat.c (mkdirat): New file and function.
83209         * lib/openat.h (mkdirat): Declare.
83210
83211         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83212
83213         * lib/openat.h (openat_permissive): Declare.
83214         (openat_ro): Define.
83215
83216         * lib/openat.c (EXPECTED_ERRNO): New macro.
83217         (openat_permissive): New function -- used in remove.c rewrite.
83218         (all functions): Set errno just before returning, only if there
83219         was an actual failure.
83220         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83221
83222         Emulate openat-family functions using Linux's procfs, if possible.
83223         Idea and some code based on Ulrich Drepper's glibc changes.
83224
83225         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83226         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83227         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83228         before falling back on save_cwd and restore_cwd.
83229         (fdopendir, fstatat, unlinkat): Likewise.
83230
83231         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83232         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83233
83234         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83235         as second argument to va_arg.  Otherwise, some versions of gcc
83236         warn that `if this code is reached, the program will abort'.
83237
83238 2006-01-09  Jim Meyering  <jim@meyering.net>
83239
83240         Sync from coreutils.
83241         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83242         Require openat-priv.h.
83243
83244 2006-01-09  Bruno Haible  <bruno@clisp.org>
83245
83246         * modules/strnlen (Include): Use strnlen.h.
83247
83248 2006-01-09  Bruno Haible  <bruno@clisp.org>
83249
83250         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83251
83252 2006-01-09  Bruno Haible  <bruno@clisp.org>
83253
83254         * lib/sysexit_.h (EX_OK): New macro.
83255         Suggested by Martin Lambers <marlam@marlam.de>.
83256
83257 2006-01-09  Bruno Haible  <bruno@clisp.org>
83258
83259         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83260         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83261
83262 2006-01-09  Bruno Haible  <bruno@clisp.org>
83263
83264         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83265         numbers.
83266
83267 2006-01-09  Bruno Haible  <bruno@clisp.org>
83268
83269         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83270         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83271         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83272         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83273
83274 2006-01-09  Bruno Haible  <bruno@clisp.org>
83275
83276         * build-aux/javacomp.sh.in: New file, moved from lib/.
83277         * modules/javacomp-script (Files): Update.
83278         (configure.ac): Add AC_CONFIG_FILES invocation.
83279         (EXTRA_DIST): Remove variable.
83280
83281         * build-aux/javaexec.sh.in: New file, moved from lib/.
83282         * modules/javaexec (Files): Update.
83283         (configure.ac): Add AC_CONFIG_FILES invocation.
83284         (EXTRA_DIST): Remove javaexec.sh.in.
83285
83286         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83287         * modules/csharpcomp-script (Files): Update.
83288         (configure.ac): Add AC_CONFIG_FILES invocation.
83289         (EXTRA_DIST): Remove variable.
83290
83291         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83292         * modules/csharpexec (Files): Update.
83293         (configure.ac): Add AC_CONFIG_FILES invocation.
83294         (EXTRA_DIST): Remove csharpexec.sh.in.
83295
83296 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83297
83298         Sync from coreutils.
83299
83300         Add POSIX ACL support
83301         * lib/acl.h (copy_acl, set_acl): Add declarations.
83302         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83303         systems other than Linux.
83304         (chmod_or_fchmod): New function: use fchmod when possible,
83305         and chmod otherwise.
83306         (file_has_acl): Add a POSIX ACL implementation, with a
83307         Linux-specific subcase.
83308         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83309         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83310         acls are unsupported.
83311         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83312         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83313         are unsupported.
83314
83315 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83316
83317         Sync from coreutils.
83318         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83319
83320 2006-01-07  Bruno Haible  <bruno@clisp.org>
83321
83322         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83323         gl_EARLY.
83324
83325 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83326
83327         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83328         Problem reported for Mingw by Mark Junker.
83329
83330 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83331
83332         * README: Gnulib normally doesn't generate a tarball.
83333
83334 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83335
83336         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83337         long int, not int, for nanosecond counts, so that people who are
83338         used to POSIX struct timespec won't be surprised.  Reported by Jim
83339         Meyering.
83340
83341 2005-12-28  Bruno Haible  <bruno@clisp.org>
83342
83343         * build-aux/config.rpath: Update from GNU gettext.
83344
83345 2005-12-16  Jim Meyering  <jim@meyering.net>
83346
83347         * modules/fprintftime: New module.
83348         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83349
83350 2005-12-16  Jim Meyering  <jim@meyering.net>
83351
83352         * m4/fprintftime.m4: New file.
83353
83354 2005-12-16  Jim Meyering  <jim@meyering.net>
83355
83356         * lib/fprintftime.c, lib/fprintftime.h: New files.
83357
83358 2005-12-15  Simon Josefsson  <jas@extundo.com>
83359
83360         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83361         new m4/socklen.m4.
83362
83363 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83364
83365         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83366         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83367
83368 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83369
83370         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83371         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83372         struct uparams is valid. Fall back to the default values if it is
83373         not.
83374
83375 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83376
83377         * modules/argp (Files): Add argp-pin.c
83378         (Depends-on): dirname
83379         (lib_SOURCES): Add argp-pin.c
83380
83381 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83382
83383         * m4/argp.m4:  Check if program_invocation_name and
83384         program_invocation_short_name are declared and define appropriate
83385         macros if they are not.
83386
83387 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83388
83389         * lib/argp-help.c (__argp_base_name): New function
83390         (__argp_short_program_name): Rewrite using __argp_base_name
83391         * lib/argp-namefrob.h: Define program_invocation_name and
83392         program_invocation_short_name if requested
83393         (__argp_base_name): Add prototype
83394         * lib/argp-parse.c (argp_def): Use gettext wrappers
83395         (argp_default_parser): Use __argp_base_name
83396         * lib/argp-pin.c: New file. Defines program_invocation_name and
83397         program_invocation_short_name on systems that lack them.
83398
83399 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83402         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83403         porting problem reported by Georg Schwarz in
83404         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83405
83406 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83409         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83410         porting problem reported by Georg Schwarz in
83411         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83412
83413 2005-12-05  Bruno Haible  <bruno@clisp.org>
83414
83415         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83416         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83417         Reported by Mark Junker <mjscod@gmx.de>.
83418
83419 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83420
83421         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83422         Use implementation from Albert Chin, with some
83423         comments/corrections by Stepan Kasal and myself.
83424
83425 2005-12-02  Bruno Haible  <bruno@clisp.org>
83426
83427         * gnulib-tool (func_import): Accept GPLed build tool modules when
83428         --lgpl is given.
83429         * modules/csharpcomp-script: New file.
83430         * modules/csharpcomp: Depend on it.
83431         * modules/javacomp-script: New file.
83432         * modules/javacomp: Depend on it.
83433         Suggested by Simon Josefsson.
83434
83435 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83438         statement, to work around an HP-UX 10.20 compiler bug reported by
83439         Peter O'Gorman.
83440
83441 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * modules/savedir (Depends-on): Add openat.
83444
83445 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83446
83447         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83448         (uintmax_t) [defined uintmax_t]: Do not declare.
83449         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83450         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83451         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83452         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83453         sake of portability to weird hosts that C allows (though we don't
83454         know of any practical examples).
83455
83456         * lib/savedir.h (fdsavedir): New decl.
83457         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83458         contains most of the former guts of savedir.
83459         (savedir): Use savedirstream.
83460         Include "openat.h".
83461
83462 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83463
83464         * modules/obstack (Files): Add m4/ulonglong.m4.
83465         Problem reported by Davide Angelocola.
83466
83467 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83468
83469         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83470         coreutils no longer futzes with rounding modes.
83471
83472 2005-11-14  Jim Meyering  <jim@meyering.net>
83473
83474         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83475         replacement of mkstemp.
83476
83477 2005-11-10  Simon Josefsson  <jas@extundo.com>
83478
83479         * lib/readline.c: Remove EOL.
83480
83481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83482
83483         * modules/gethrxtime (Depends-on): Add gettime.
83484
83485 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83488         or gettimeofday; no longer needed.
83489
83490 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83491
83492         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83493         time business.
83494         (gethrxtime) [! (HAVE_NANOUPTIME
83495         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83496         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83497         our own approximation.
83498
83499 2005-11-08  Eric Blake  <ebb9@byu.net>
83500
83501         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83502
83503 2005-11-08  Eric Blake  <ebb9@byu.net>
83504
83505         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83506
83507 2005-11-04  Bruno Haible  <bruno@clisp.org>
83508
83509         * gnulib-tool: Implement --update mode.
83510
83511 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83512
83513         Fix porting problem reported by Theodoros V. Kalamatianos.
83514         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83515         Don't assume that futimes failing means we must fail.
83516
83517 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83520         variables to suggest the intended function of the PATH_MAX check.
83521
83522 2005-10-30  Kean Johnston  <jkj@sco.com>
83523
83524         Trivial changes to support SCO systems.
83525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83526         as PATH_MAX.
83527         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83528         where __ptr is null when no I/O is pending.
83529
83530 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83533         leave errno alone.  Problem reported by Dmitry V. Levin.
83534
83535 2005-10-28  Simon Josefsson  <jas@extundo.com>
83536
83537         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83538         Test more.
83539
83540         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83541
83542         * modules/md2, modules/md2-tests: New files.
83543
83544 2005-10-28  Simon Josefsson  <jas@extundo.com>
83545
83546         * m4/inet_ntop.m4: More tests.
83547
83548         * m4/gc-md2.m4, md2.m4: New file.
83549
83550 2005-10-28  Simon Josefsson  <jas@extundo.com>
83551
83552         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83553         "restrict" keywords, as per POSIX.  Protect the function
83554         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83555         Don't use K&R prototypes.  Check the sprintf return values.
83556         Re-define EAFNOSUPPORT if not present.  Indent.
83557
83558         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83559         suggested by Bruno Haible <bruno@clisp.org>.
83560
83561         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83562
83563         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83564
83565         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83566         libgcrypt).
83567
83568         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83569
83570         * lib/md2.h, lib/md2.c: New files.
83571
83572 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83575         errno alone.  Problem reported by Frederic Jolliton.
83576
83577 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * modules/verify (License): Change from GPL to LGPL.  This is a
83580         tiny module and there are apparently near-equivalents that are
83581         under the BSD license.
83582
83583 2005-10-24  Simon Josefsson  <jas@extundo.com>
83584
83585         * modules/sha1: Relicense to LGPL.
83586
83587 2005-10-24  Simon Josefsson  <jas@extundo.com>
83588
83589         * lib/md4.h: Shrink buffer size, now that we changed the type.
83590
83591 2005-10-23  Simon Josefsson  <jas@extundo.com>
83592
83593         * gnulib-tool (func_import): Fix --tests-base.
83594
83595 2005-10-22  Simon Josefsson  <jas@extundo.com>
83596
83597         * modules/arcfour (Depends-on): Need stdint.
83598
83599 2005-10-22  Simon Josefsson  <jas@extundo.com>
83600
83601         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83602         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83603
83604 2005-10-22  Simon Josefsson  <jas@extundo.com>
83605
83606         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83607         suggested by Bruno Haible <bruno@clisp.org>.
83608
83609 2005-10-22  Simon Josefsson  <jas@extundo.com>
83610
83611         * lib/crc.h: Include stddef.h, for size_t.
83612
83613 2005-10-22  Simon Josefsson  <jas@extundo.com>
83614
83615         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83616         arcfour_context struct (simplify test vector testing in GNU
83617         Shishi).
83618
83619 2005-10-21  Simon Josefsson  <jas@extundo.com>
83620
83621         * modules/des, modules/des-tests: New files.
83622
83623         * modules/gc-des, modules/gc-des-tests: New files.
83624
83625         * tests/test-des.c, tests/test-gc-des.c: New file.
83626
83627 2005-10-21  Simon Josefsson  <jas@extundo.com>
83628
83629         * modules/arctwo, modules/arctwo-tests: New files.
83630
83631         * tests/test-arctwo.c: New file.
83632
83633         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83634
83635         * tests/test-gc-arctwo.c: New file.
83636
83637 2005-10-21  Simon Josefsson  <jas@extundo.com>
83638
83639         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83640         Bruno Haible <bruno@clisp.org>.
83641
83642         * m4/gc-des.m4: New file.
83643
83644 2005-10-21  Simon Josefsson  <jas@extundo.com>
83645
83646         * m4/arctwo.m4: New file.
83647
83648         * m4/gc-arctwo.m4: New file.
83649
83650 2005-10-21  Simon Josefsson  <jas@extundo.com>
83651
83652         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83653         block.
83654
83655 2005-10-21  Simon Josefsson  <jas@extundo.com>
83656
83657         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83658         <bruno@clisp.org>.
83659
83660         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83661
83662         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83663         Bruno Haible <bruno@clisp.org>.
83664
83665         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83666         <bruno@clisp.org>.
83667
83668 2005-10-21  Simon Josefsson  <jas@extundo.com>
83669
83670         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83671
83672 2005-10-21  Simon Josefsson  <jas@extundo.com>
83673
83674         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83675
83676 2005-10-21  Simon Josefsson  <jas@extundo.com>
83677
83678         * lib/des.h, lib/des.c: New files.
83679
83680         * lib/gc-gnulib.c: Support DES.c
83681
83682 2005-10-21  Simon Josefsson  <jas@extundo.com>
83683
83684         * lib/arctwo.h, lib/arctwo.c: New files.
83685
83686         * lib/gc-gnulib.c: Support ARCTWO.
83687
83688 2005-10-21  Simon Josefsson  <jas@extundo.com>
83689
83690         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83691         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83692
83693 2005-10-21  Simon Josefsson  <jas@extundo.com>
83694
83695         * gnulib-tool (func_import, func_create_testdir): Define automake
83696         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83697         Makefile.am snippet),
83698         suggested by Bruno Haible <bruno@clisp.org>.
83699
83700         * modules/gc (Makefile.am): Use it.
83701
83702 2005-10-21  Bruno Haible  <bruno@clisp.org>
83703
83704         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83705         patch.
83706
83707 2005-10-19  Simon Josefsson  <jas@extundo.com>
83708
83709         * tests/test-gc-rijndael.c: New file.
83710
83711         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83712
83713 2005-10-19  Simon Josefsson  <jas@extundo.com>
83714
83715         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83716         interface too.
83717
83718 2005-10-19  Simon Josefsson  <jas@extundo.com>
83719
83720         * tests/test-gc-arcfour.c: New file.
83721
83722         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83723
83724 2005-10-19  Simon Josefsson  <jas@extundo.com>
83725
83726         * modules/gc-md4, modules/gc-md4-tests: New file.
83727
83728         * tests/test-gc-md4.c: New file.
83729
83730 2005-10-19  Simon Josefsson  <jas@extundo.com>
83731
83732         * m4/gc-md4.m4: New file.
83733
83734 2005-10-19  Simon Josefsson  <jas@extundo.com>
83735
83736         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83737         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83738         <kasal@ucw.cz>.
83739
83740 2005-10-19  Simon Josefsson  <jas@extundo.com>
83741
83742         * m4/gc-arcfour.m4: New file.
83743
83744         * m4/gc-rijndael.m4: New file.
83745
83746 2005-10-19  Simon Josefsson  <jas@extundo.com>
83747
83748         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83749
83750 2005-10-19  Simon Josefsson  <jas@extundo.com>
83751
83752         * lib/gc-gnulib.c: Support ARCFOUR.
83753
83754 2005-10-19  Simon Josefsson  <jas@extundo.com>
83755
83756         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83757         support.
83758
83759         * lib/gc.h: Add ECB enum type.
83760
83761         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83762
83763 2005-10-18  Simon Josefsson  <jas@extundo.com>
83764
83765         * tests/test-md5.c: New file.
83766
83767         * modules/md5-tests: New file.
83768
83769 2005-10-18  Simon Josefsson  <jas@extundo.com>
83770
83771         * tests/test-md4.c: New file.
83772
83773         * modules/md4, modules/md4-tests: New files.
83774
83775 2005-10-18  Simon Josefsson  <jas@extundo.com>
83776
83777         * m4/md4.m4: New file.
83778
83779 2005-10-18  Simon Josefsson  <jas@extundo.com>
83780
83781         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83782
83783 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83784
83785         * gnulib-tool (func_create_testdir): Omit the second check whether
83786         BUILT_SOURCES in nonempty.
83787
83788 2005-10-17  Simon Josefsson  <jas@extundo.com>
83789
83790         * tests/test-rijndael.c: New file.
83791
83792 2005-10-17  Simon Josefsson  <jas@extundo.com>
83793
83794         * modules/sha1: Depend on stdint instead of md5.
83795
83796         * modules/md5: Depend on stdint, remove uint32_t.
83797
83798 2005-10-17  Simon Josefsson  <jas@extundo.com>
83799
83800         * modules/gc-sha1-tests: New file.
83801
83802         * tests/test-gc-sha1.c: New file.
83803
83804 2005-10-17  Simon Josefsson  <jas@extundo.com>
83805
83806         * m4/md5.m4: Remove call to uint32_t.m4.
83807
83808 2005-10-17  Simon Josefsson  <jas@extundo.com>
83809
83810         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83811
83812         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83813         md5.h.
83814
83815         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83816
83817         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83818
83819 2005-10-17  Simon Josefsson  <jas@extundo.com>
83820
83821         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83822
83823 2005-10-17  Simon Josefsson  <jas@extundo.com>
83824
83825         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83826
83827 2005-10-17  Simon Josefsson  <jas@extundo.com>
83828
83829         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83830
83831         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83832
83833 2005-10-17  Bruno Haible  <bruno@clisp.org>
83834
83835         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83836         that it can also be used in a test.
83837
83838 2005-10-16  Bruno Haible  <bruno@clisp.org>
83839
83840         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83841         TESTS_ENVIRONMENT, so that individual tests can augment it.
83842
83843         * gnulib-tool (func_create_testdir): Use an intermediate target for
83844         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83845         macros, like $(ALLOCA_H), which cannot be passed through the command
83846         line.
83847
83848 2005-10-15  Simon Josefsson  <jas@extundo.com>
83849
83850         * modules/rijndael-tests: New file.
83851
83852         * modules/rijndael: New file.
83853
83854 2005-10-15  Simon Josefsson  <jas@extundo.com>
83855
83856         * m4/rijndael.m4: New file.
83857
83858 2005-10-15  Simon Josefsson  <jas@extundo.com>
83859
83860         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83861
83862         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83863
83864 2005-10-14  Simon Josefsson  <jas@extundo.com>
83865
83866         * tests/test-arcfour.c: New file.
83867
83868         * modules/arcfour, modules/arcfour-tests: New files.
83869
83870 2005-10-14  Simon Josefsson  <jas@extundo.com>
83871
83872         * m4/arcfour.m4: New file.
83873
83874 2005-10-14  Simon Josefsson  <jas@extundo.com>
83875
83876         * lib/arcfour.h, lib/arcfour.c: New files.
83877
83878 2005-10-14  Roland McGrath  <roland@redhat.com>
83879
83880         Import from libc.  [BZ #1331]
83881         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83882         macro argument.
83883         Reported by Matej Vela <vela@debian.org>.
83884
83885 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83886
83887         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83888         include <wchar.h>; no longer needed.
83889
83890 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83893
83894 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83895         and  Ulrich Drepper  <drepper@redhat.com>
83896
83897         Import from libc.
83898         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83899         instead of inline stream orientation test and two separate
83900         function calls.  Pay no attention to USE_IN_LIBIO.
83901
83902 2005-10-13  Simon Josefsson  <jas@extundo.com>
83903
83904         * modules/gc-hmac-md5-tests: New file.
83905
83906         * tests/test-gc-hmac-sha1.c: New file.
83907
83908         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83909
83910         * modules/gc-hmac-md5-tests: New file.
83911
83912         * tests/test-gc-md5.c: New file.
83913
83914         * modules/gc-md5-tests: New file.
83915
83916 2005-10-13  Simon Josefsson  <jas@extundo.com>
83917
83918         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83919         Move memory allocation outside of loop.
83920
83921 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83922
83923         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83924         intermediate directory is in a read-only file system.  Problem
83925         reported by Eric Blake.
83926
83927 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83928
83929         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83930
83931 2005-10-12  Simon Josefsson  <jas@extundo.com>
83932
83933         * tests/test-hmac-sha1.c: New file.
83934
83935         * modules/hmac-sha1-tests: New file.
83936
83937         * modules/hmac-sha1: New file.
83938
83939 2005-10-12  Simon Josefsson  <jas@extundo.com>
83940
83941         * modules/gc-sha1: New file.
83942
83943 2005-10-12  Simon Josefsson  <jas@extundo.com>
83944
83945         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83946
83947         * tests/test-gc-pbkdf2-sha1.c: New file.
83948
83949 2005-10-12  Simon Josefsson  <jas@extundo.com>
83950
83951         * modules/gc-md5, modules/gc-hmac-md5: New files.
83952
83953         * modules/gc (Files): Remove md5, memxor and hmac files.
83954
83955 2005-10-12  Simon Josefsson  <jas@extundo.com>
83956
83957         * m4/gc-pbkdf2-sha1.m4: New file.
83958
83959         * m4/gc-hmac-sha1.m4: New file.
83960
83961         * m4/gc-sha1: New file.
83962
83963         * m4/hmac-sha1.m4: New file.
83964
83965 2005-10-12  Simon Josefsson  <jas@extundo.com>
83966
83967         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83968
83969         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83970
83971 2005-10-12  Simon Josefsson  <jas@extundo.com>
83972
83973         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83974         suggested by Bruno Haible <bruno@clisp.org>.
83975
83976 2005-10-12  Simon Josefsson  <jas@extundo.com>
83977
83978         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83979
83980 2005-10-12  Simon Josefsson  <jas@extundo.com>
83981
83982         * lib/gc-pbkdf2-sha1.c: New file.
83983
83984         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83985
83986 2005-10-12  Simon Josefsson  <jas@extundo.com>
83987
83988         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83989
83990         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83991
83992 2005-10-12  Simon Josefsson  <jas@extundo.com>
83993
83994         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83995         GC_USE_HMAC_MD5, respectively.
83996
83997         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83998         (gc_md5): Fix typo.
83999
84000         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84001
84002         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84003
84004         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84005
84006 2005-10-12  Bruno Haible  <bruno@clisp.org>
84007
84008         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84009         Reported by Stepan Kasal <kasal@ucw.cz>.
84010
84011 2005-10-11  Simon Josefsson  <jas@extundo.com>
84012
84013         * tests/test-crc.c: New file.
84014
84015         * modules/crc, modules/crc-tests: New files.
84016
84017 2005-10-11  Simon Josefsson  <jas@extundo.com>
84018
84019         * m4/crc.m4: New file.
84020
84021 2005-10-11  Simon Josefsson  <jas@extundo.com>
84022
84023         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84024
84025         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84026
84027         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84028
84029 2005-10-11  Simon Josefsson  <jas@extundo.com>
84030
84031         * lib/crc.h, lib/crc.c: New files.
84032
84033         * lib/gc.h (gc_hash_buffer): Add doc.
84034
84035 2005-10-11  Bruno Haible  <bruno@clisp.org>
84036
84037         * modules/c-strcasestr: New file.
84038         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84039
84040 2005-10-11  Bruno Haible  <bruno@clisp.org>
84041
84042         * modules/c-strcase: New file.
84043         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84044
84045 2005-10-11  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/strcasecmp.c: Include limits.h.
84048         (strcasecmp): Avoid integer overflow on exotic platforms.
84049         * lib/strncasecmp.c: Include limits.h.
84050         (strncasecmp): Avoid integer overflow on exotic platforms.
84051         Reported by Paul Eggert.
84052
84053 2005-10-11  Bruno Haible  <bruno@clisp.org>
84054
84055         * lib/c-strcasestr.h: New file, from GNU gettext.
84056         * lib/c-strcasestr.c: New file, from GNU gettext.
84057
84058 2005-10-11  Bruno Haible  <bruno@clisp.org>
84059
84060         * lib/c-strcase.h: New file, from GNU gettext.
84061         * lib/c-strcasecmp.c: New file, from GNU gettext.
84062         * lib/c-strncasecmp.c: New file, from GNU gettext.
84063
84064 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         * modules/mempcpy (License): GPL -> LGPL.
84067         * modules/strchrnul (License): Likewise.
84068         * modules/sysexits (License): Likewise.
84069
84070 2005-10-08  Simon Josefsson  <jas@extundo.com>
84071
84072         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84073
84074 2005-10-07  Simon Josefsson  <jas@extundo.com>
84075
84076         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84077
84078 2005-10-06  Simon Josefsson  <jas@extundo.com>
84079
84080         * tests/test-hmac-md5.c: New file.
84081
84082         * modules/hmac-md5-tests: New file.
84083
84084         * modules/hmac-md5: New file.
84085
84086 2005-10-06  Simon Josefsson  <jas@extundo.com>
84087
84088         * m4/hmac-md5.m4: New file.
84089
84090         * m4/memxor.m4: Require gl_C_RESTRICT.
84091
84092 2005-10-06  Simon Josefsson  <jas@extundo.com>
84093
84094         * lib/memxor.c (memxor): Avoid casts and warnings.
84095
84096 2005-10-06  Simon Josefsson  <jas@extundo.com>
84097
84098         * lib/hmac-md5.c: New file.
84099
84100         * lib/hmac.h: New file.
84101
84102 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84103
84104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84105         promotes to int, not unsigned int, to catch the AIX 5.3
84106         compiler bug.
84107
84108 2005-10-05  Simon Josefsson  <jas@extundo.com>
84109
84110         * modules/memxor: New file.
84111
84112         * modules/iconv (Files): Move config.rpath to havelib, it is used
84113         there.
84114
84115         * modules/havelib (Files): Add config.rpath.
84116
84117 2005-10-05  Simon Josefsson  <jas@extundo.com>
84118
84119         * m4/memxor.m4: New file.
84120
84121 2005-10-05  Simon Josefsson  <jas@extundo.com>
84122
84123         * lib/memxor.c (memxor): Fix compiler error.
84124
84125         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84126         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84127
84128         * lib/memxor.h, lib/memxor.c: New files.
84129
84130         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84131         we assume all systems have it, suggested by Jim Meyering
84132         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84133         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84134         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84135         same reasons.
84136
84137 2005-10-05  Simon Josefsson  <jas@extundo.com>
84138
84139         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84140
84141 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84142
84143         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84144         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84145         needed, since the source code now assumes these .h files.
84146
84147 2005-10-05  Derek Price  <derek@ximbiot.com>
84148
84149         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84150
84151 2005-10-05  Bruno Haible  <bruno@clisp.org>
84152
84153         * modules/stdint (License): Change to LGPL.
84154
84155 2005-10-04  Simon Josefsson  <jas@extundo.com>
84156
84157         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84158         D. Baushke" <mdb@gnu.org>.
84159
84160 2005-10-04  Bruno Haible  <bruno@clisp.org>
84161
84162         * lib/verify.h (verify_true): Provide alternative definition for C++.
84163
84164 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84165
84166         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84167         (SSIZE_MAX): New macro, if not already defined.
84168         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84169         than 2 GiB.
84170
84171 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         Sync from coreutils.
84174         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84175         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84176         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84177         ULLONG_MAX doesn't work with 2.7.2.1.
84178
84179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84180
84181         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84182         From Ben Pfaff.
84183
84184         * modules/exclude (Depends-on): Depend on verify.
84185         * modules/strtoimax (Depends-on): Likewise.
84186         * modules/utimecmp (Depends-on): Likewise.
84187
84188 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84189
84190         * lib/exclude.c: Include verify.h.
84191         (verify): Remove.  All callers changed to use verify.h's version.
84192         * lib/strtoimax.c: Likewise.
84193         * lib/utimecmp.c: Likewis.e
84194
84195         Sync from coreutils.
84196         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84197         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84198         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84199         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84200         bother returning ENOSYS if settimeofday or stime fails; just let
84201         them return whatever errno they want to return.
84202         * lib/utimens.c: Include unistd.h, for dup2.
84203         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84204         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84205
84206 2005-10-02  Jim Meyering  <jim@meyering.net>
84207
84208         Sync from coreutils.
84209         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84210         from glibc-2.2.5 that fails for read-only files.
84211
84212 2005-10-02  Jim Meyering  <jim@meyering.net>
84213
84214         Sync from coreutils.
84215         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84216         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84217         `#if HAVE_CONFIG_H'.
84218         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84219         Remove AT_FDCWD test.
84220         Do not consume the fd unless successful.
84221         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84222         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84223         block, so that we don't even try to compile it if settimeofday is
84224         available.  This works around a compilation failure on OSF1 V5.1,
84225         due to stime requiring a `long int*' while tv_sec is `int'.
84226
84227 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84228
84229         Sync from coreutils.
84230         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84231         against `yes', rather than just testing for nonempty.
84232
84233 2005-10-01  Simon Josefsson  <jas@extundo.com>
84234
84235         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84236         and Darwin.
84237
84238         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84239         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84240         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84241         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84242         Check if struct addrinfo is declared.
84243
84244 2005-10-01  Simon Josefsson  <jas@extundo.com>
84245
84246         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84247         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84248         AI_* and EAI_* definitions.  Protect function declarations.
84249
84250 2005-10-01  Jim Meyering  <jim@meyering.net>
84251
84252         Sync from coreutils.
84253
84254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84255         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84256         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84257         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84258         in the inet and nsl libraries.  Required on Solaris 5.7.
84259
84260 2005-10-01  Jim Meyering  <jim@meyering.net>
84261
84262         Sync from coreutils.
84263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84264         in the inet and nsl libraries.  Required on Solaris 5.7.
84265
84266 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84267
84268         * lib/getdelim.c (getdelim): Remove unused variables.
84269
84270 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84271
84272         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84273         so that the code works even with ancient cpp.  Portability problem
84274         with GCC 2.7.2.1 reported by Thomas M.Ott.
84275
84276 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * modules/regex (Depends-on): Add strcase.
84279
84280         * modules/gethostname (Licence): Change from GPL to LGPL, since
84281         gethostname.c is a trivial implementation of a standard library
84282         function.
84283         * modules/poll (License): Change from GPL to LGPL, since it's
84284         derived from LGPL code.
84285
84286 2005-09-27  Jim Meyering  <jim@meyering.net>
84287
84288         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84289         HAVE_CONFIG_H.
84290
84291         * lib/intprops.h (signed_type_or_expr__): Define.
84292         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84293         for unsigned types.
84294
84295 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84296
84297         * lib/verify.h (verify_expr): Remove, replacing with:
84298         (verify_true): New macro that returns true instead of void.
84299         (verify_type__): Remove.
84300         (verify): Use verify_true rather than verify_type__.
84301
84302 2005-09-26  Bruno Haible  <bruno@clisp.org>
84303
84304         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84305         is necessary.
84306         (lib_SOURCES): Remove mbchar.c.
84307         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84308         (Files): Add m4/mbrtowc.m4.
84309         * modules/mbiter: Likewise.
84310         * modules/mbuiter: Likewise.
84311
84312 2005-09-26  Bruno Haible  <bruno@clisp.org>
84313
84314         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84315         compile mbchar.c if they are not both present.
84316         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84317         * m4/mbiter.m4 (gl_MBITER): Likewise.
84318         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84319         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84320         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84321
84322 2005-09-25  Jim Meyering  <jim@meyering.net>
84323
84324         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84325         also uses socklen_t.
84326
84327 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * lib/utimens.c (ENOSYS): Define if not already defined.
84330         (futimens): Support having a null PATH if the file descriptor
84331         is nonnegative.
84332
84333         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84334         Remove.
84335         (__attribute): Define to empty unless GCC 3.1 or later.
84336         This works around a core dump on OpenBSD 3.4, which has GCC
84337         2.95.3, which dumps core when given __attribute__(()).  It also
84338         simplifies other tests, since we really don't want to bother with
84339         worrying about which ancient version of GCC supported what.
84340         Original problem reported by Yoann Vandoorselaere, with part of
84341         the fix suggested by Derek Price.
84342
84343 2005-09-24  Jim Meyering  <jim@meyering.net>
84344
84345         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84346         so we can once again use a positive bitfield width of 1 -- now we
84347         don't have to explain why we were using a bitfield width of 2.
84348
84349 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84350
84351         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84352         and similarly for the other external symbols.  Problem reported
84353         by James Gallager.
84354
84355         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84356         bug reported by Jim Meyering.
84357
84358         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84360         not needed, since socklen is a prerequisite module.
84361
84362 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84363
84364         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84365         Problem reported by Eric Blake.
84366         (getaddrinfo): Initialize se so that it's not garbage.
84367         Redo internal storage allocation so that it doesn't make unportable
84368         assumptions about alignment.
84369         Fix a memory leak.
84370
84371         * lib/utimens.c (futimens): Use futimesat if available.
84372         Prefer it to futimes since it doesn't have the futimes bug.
84373
84374         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84375         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84376         Instead, declare a function that returns a pointer to an array,
84377         and use verify_type__ to declare the size of the array.
84378         Problem and germ of a solution reported by Bruno Haible.
84379         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84380         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84381
84382 2005-09-23  Jim Meyering  <jim@meyering.net>
84383
84384         Sync from coreutils.
84385         Correct build failure (socklen_t not defined) on at least
84386         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84387         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84388
84389 2005-09-23  Jim Meyering  <jim@meyering.net>
84390
84391         * modules/getaddrinfo (Depends-on): Add socklen.
84392
84393 2005-09-23  Bruno Haible  <bruno@clisp.org>
84394
84395         * tests/test-verify.c: New file.
84396
84397 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         Sync from coreutils.
84400
84401         * modules/argmatch (Depends-on): Add verify.
84402         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84403         unistd-safer.
84404         * modules/save-cwd (Depends-on): Likewise.
84405
84406         * modules/openat (Files): Add lib/openat-die.c.
84407         (Depends-on): Remove error, exitfail.
84408         Add dirname.
84409
84410         * modules/verify: New file.
84411         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84412         with "verify" module.
84413
84414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84415
84416         Sync from coreutils.
84417
84418         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84419         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84420         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84421         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84422         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84423         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84424         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84425         Don't bother checking for string.h, stdlib.h, unistd.h.
84426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84427         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84428         module's job.
84429         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84430         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84431
84432         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84433         (gl_GETDATE): Use it.
84434
84435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84436
84437 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         Sync from coreutils.
84440
84441         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84442         stat-time.h.
84443         * lib/argmatch.h: Include verify.h
84444         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84445         (ARGMATCH_ASSERT): Remove; unused.
84446         * lib/canonicalize.c: Assume STDC_HEADERS.
84447         * lib/exclude.c: Include "strcase.h".
84448         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84449         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84450         and stdio-safer.h.
84451         (getusershell): Call fopen, not fopen_safer.
84452         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84453         Do not include unistd-safer.h.
84454         (save_cwd): Don't call fd_safer; no longer needed
84455         now that we include fcntl--.h.
84456
84457         * lib/getdate.y (relative_time): New type.
84458         (RELATIVE_TIME_0): New constant.
84459         (parser_control): Use relative_time instead of doing it ourselves.
84460         (%union): Add new relative_time rel member.
84461         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84462         Now typeless.
84463         (relunit, relunit_snumber): Now of type rel.
84464         (zone, rel, relunit, get_date): Adjust to above changes.
84465
84466         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84467         Do not include unistd-safer.h.
84468         (getloadavg): Don't call fd_safer; no longer needed
84469         now that we include fcntl--.h.
84470
84471         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84472         (make_dir_parents): Treat ENOSYS like EEXIST.
84473
84474         Improve quality of diagnostics on restore_cwd failure.
84475         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84476         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84477         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84478         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84479         each time through the loop.  Do not diagnose restore_cwd failure;
84480         that is the caller's job (and perhaps the caller does not care).
84481
84482         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84483         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84484         If the file already exists but is not a directory, don't bother
84485         to try to make its parents.
84486         Close potential file descriptor leak if we can't chdir("/") (!).
84487         Don't always return true if chdir($PWD) fails; return true only
84488         if the requested action was done successfully (except for the
84489         chdir($PWD)).
84490         Don't log final directory unless we actually made it.
84491         Refactor to avoid duplicate code to fix up permissions.
84492         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84493
84494         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84495         to make it a bit faster and (I hope) clearer.
84496         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84497         Fix bug in formats like %2N.
84498
84499         * lib/verify.h: New file.
84500
84501 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         Sync from coreutils.
84504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84505
84506 2005-09-22  Jim Meyering  <jim@meyering.net>
84507
84508         Sync from coreutils.
84509
84510         * m4/lstat.m4 (gl_FUNC_LSTAT):
84511         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84512         Remove obsolete comment.
84513         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84514         * m4/xstrtod.m4: Likewise.
84515
84516         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84517
84518 2005-09-22  Jim Meyering  <jim@meyering.net>
84519
84520         Sync from coreutils.
84521
84522         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84523
84524         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84525         the .tm_year member, since otherwise gcc-4.0 would now warn about
84526         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84527
84528         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84529         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84530
84531         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84532         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84533         when run in a time zone for which daylight savings time is in effect
84534         for the starting date.
84535
84536         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84537         stop us from restricting permissions of just-created absolute-named
84538         directories.
84539         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84540         to restore initial working directory.
84541         * lib/mkdir-p.c (make_dir_parents): New parameter:
84542         different_working_dir, to tell caller if/when we change the working
84543         directory and are unable to return to the initial one.
84544         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84545         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84546         `return false'.  This fixes a bug introduced on 2004-07-30.
84547
84548         * lib/openat.c (fdopendir): Be sure to close the supplied
84549         file descriptor before returning.  This makes our replacement
84550         implementation a little closer to Solaris's, where fdopendir
84551         ties the file descriptor to the returned DIR* pointer.
84552         * lib/openat.c (unlinkat): New function.
84553         * lib/openat.h (unlinkat): Add prototype.
84554         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84555         (openat_restore_fail): Rename from openat_restore_die.
84556         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84557
84558         Provide an alternative to exiting immediately upon save_cwd or
84559         restore_cwd failure.  Now, an application can arrange e.g.,
84560         to perform a longjump in that case.
84561         * lib/openat.c: Include dirname.h.
84562         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84563         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84564         and openat_restore_die rather than calling error directly.
84565         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84566
84567         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84568         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84569         define.
84570
84571         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84572         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84573                             int utc, int nanoseconds);
84574         Background:
84575         date should not have to allocate a megabyte of virtual memory to
84576         handle a format argument like +%1048575T.  When implemented with
84577         strftime, it must allocate such a buffer, use strftime to fill it
84578         in, print it, then free it.
84579         With fprintftime, it simply prints everything and exits.
84580         With no need for memory allocation, that's one fewer way to fail.
84581         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84582         optional field width, not before, so we accept %9:z, not %:9z.
84583         (my_strftime): Be sure to use L_('x') for literals.
84584
84585         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84586         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84587         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84588         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84589         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84590         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84591         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84592         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84593         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84594         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84595         * lib/xgethostname.c, lib/xreadlink.c:
84596         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84597
84598         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84599         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84600         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84601         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84602         and don't include <sys/file.h>).
84603
84604 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84605
84606         Sync from coreutils.
84607
84608         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84609         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84610         [!LDAV_DONE]: Avoid unused variable warning.
84611
84612 2005-09-21  Bruno Haible  <bruno@clisp.org>
84613
84614         * lib/unicodeio.h (unicode_to_mb): New declaration.
84615
84616 2005-09-20  Derek Price  <derek@ximbiot.com>
84617
84618         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84619         getaddrinfo.h.
84620
84621 2005-09-20  Bruno Haible  <bruno@clisp.org>
84622
84623         * gnulib-tool: Remove trailing slashes from the values specified for
84624         --source-base, --m4-base, --tests-base, --aux-dir.
84625         Suggested by Simon Josefsson <jas@extundo.com>.
84626
84627 2005-09-20  Bruno Haible  <bruno@clisp.org>
84628
84629         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84630         func_modules_to_filelist, func_import, func_create_testdir): Make all
84631         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84632         change when gnulib-tool is invoked in a different locale.
84633
84634 2005-09-19  Simon Josefsson  <jas@extundo.com>
84635
84636         * m4/socklen.m4: Fix typo.
84637
84638 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84639
84640         Use a consistent style for including <config.h>.
84641         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84642         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84643         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84644         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84645         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84646         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84647         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84648         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84649         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84650         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84651         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84652         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84653         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84654         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84655         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84656         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84657         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84658         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84659         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84660         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84661         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84662         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84663         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84664         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84665         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84666         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84667         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84668         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84669         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84670         lib/xstrtoumax.c, lib/yesno.c:
84671         Standardize inclusion of config.h.
84672         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84673         lib/inttostr.h:  Removed inclusion of config.h from header files.
84674         * lib/inttostr.c:  Adjusted in-tree users.
84675         * lib/timespec.h: Remove superfluous warning to include config.h.
84676         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84677         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84678         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84679         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84680         config.h with HAVE_CONFIG_H.
84681
84682 2005-09-19  Jim Meyering  <jim@meyering.net>
84683
84684         * modules/pathmax (License): Change to LGPL.
84685
84686 2005-09-19  Derek Price  <derek@ximbiot.com>
84687
84688         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84689
84690 2005-09-19  Bruno Haible  <bruno@clisp.org>
84691
84692         * gnulib-tool (import): Provide default for --tests-base.
84693
84694 2005-09-19  Bruno Haible  <bruno@clisp.org>
84695
84696         * doc/quote.texi: New file, extracted from gnulib.texi.
84697         * doc/ctime.texi: New file, extracted from gnulib.texi.
84698         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84699         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84700         * doc/gnulib.texi: Include them.
84701
84702 2005-09-18  Bruno Haible  <bruno@clisp.org>
84703
84704         Portability fix.
84705         * gnulib-tool (func_readlink): New function.
84706         (func_ln_if_changed): Use it.
84707
84708 2005-09-18  Bruno Haible  <bruno@clisp.org>
84709
84710         * gnulib-tool: Support --with-tests also with --import.
84711         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84712         (func_import): Use variables $testsbase and $inctests. Emit a
84713         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84714         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84715         SUBDIRS += $testsdir.
84716         (func_create_testdir): Update.
84717
84718 2005-09-18  Bruno Haible  <bruno@clisp.org>
84719
84720         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84721         instead of $dry_run.
84722         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84723         (func_ln_if_changed): Don't handle dry-run here.
84724         (func_import): In dry-run mode, detect more precisely which actions
84725         would be performed, and don't use "...ing" verbs.
84726
84727 2005-09-18  Bruno Haible  <bruno@clisp.org>
84728
84729         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84730         (func_import): Use join on two temporary files instead of three nested
84731         loops, in order to determine which files are new or old.
84732
84733 2005-09-18  Bruno Haible  <bruno@clisp.org>
84734
84735         * gnulib-tool (func_import): Comment out code that spits out the
84736         new files with --dry-run.
84737
84738 2005-09-18  Bruno Haible  <bruno@clisp.org>
84739
84740         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84741
84742 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         * lib/stat-time.h: New file.
84745         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84746         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84747         in a different way.
84748         (timespec_cmp): New function.
84749         * lib/utimecmp.c: Include stat-time.h.
84750         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84751         members exist, not on the obsolescent ST_MTIM_NSEC.
84752         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84753
84754 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84755
84756         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84757
84758 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84759
84760         * MODULES.html.sh (File system functions): Add stat-time.
84761         * modules/stat-time: New file.
84762         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84763         is now done in a different way, by the stat-time module.
84764         * modules/utimecmp (Depends-on): Add stat-time.
84765
84766 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84767
84768         * m4/st_mtim.m4: Remove.  Superseded by...
84769         * m4/stat-time.m4: New file.
84770         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84771         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84772
84773 2005-09-15  Derek Price  <derek@ximbiot.com>
84774
84775         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84776
84777 2005-09-15  Derek Price  <derek@ximbiot.com>
84778
84779         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84780         * lib/regex_internal.c: Ditto, using this...
84781         (__GNUC_PREREQ): ...new macro.
84782         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84783         using...
84784         (__GNUC_PREREQ): ...this new macro.
84785
84786         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84787
84788 2005-09-15  Derek Price  <derek@ximbiot.com>
84789             Paul Eggert  <eggert@cs.ucla.edu>
84790
84791         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84792         changes, consolidating in...
84793         * lib/regex_internal.h: ...this file.
84794
84795 2005-09-13  Jim Meyering  <jim@meyering.net>
84796
84797         * lib/canon-host.c: Filter through gnu indent and reword comments
84798         slightly.
84799         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84800
84801 2005-09-13  Derek Price  <derek@ximbiot.com>
84802
84803         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84804         failure.
84805         Reported by Jim Meyering  <jim@meyering.net>.
84806
84807 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84808
84809         * lib/base64.c: Typo.
84810         (base64_encode): Put b64str in initialized data section.
84811
84812 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         Merge glibc and coreutils changes into gnulib, plus a few
84815         extra fixes.
84816         * lib/md5.c: Use #error rather than a string.
84817         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84818         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84819         (__attribute__): Define to empty for non recent-GCC.
84820         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84821         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84822         Renamed from their non-__ counterparts, with new macros replacing
84823         them if not _LIBC.  Add __THROW attribute.
84824         (rol): Remove.
84825         (struct md5_ctx): Align buffer if using GCC.
84826         * lib/sha1.h (struct sha1_ctx): Likewise.
84827         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84828         The old name was backwards.
84829         (NOTSWAP): Remove; not used.
84830         (rol): New macro, moved here from md5.h.
84831         (sha1_process_block): Remove a FIXME that doesn't make sense.
84832
84833 2005-09-12  Derek Price  <derek@ximbiot.com>
84834
84835         Return usable errors from canon-host.
84836         * lib/canon-host.h: New file.
84837         * lib/canon-host.c (canon_host): Wrap...
84838         (canon_host_r): ...this new function, which now relies exclusively on
84839         getaddrinfo.
84840         (ch_strerror): New function.
84841         (last_cherror): New global.
84842         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84843         interface.
84844         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84845         void *.
84846         (freeaddrinfo): Free ai->ai_canonname when set.
84847
84848 2005-09-12  Derek Price  <derek@ximbiot.com>
84849
84850         Make canon-host require getaddrinfo.
84851         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84852         AC_LIBSOURCE canon-host.h.  Call...
84853         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84854         gl_GETADDRINFO.
84855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84856
84857 2005-09-12  Derek Price  <derek@ximbiot.com>
84858
84859         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84860         LGPL.
84861         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84862
84863 2005-09-12  Derek Price  <derek@ximbiot.com>
84864
84865         * lib/gai_strerror.c: Include config.h when available.  Include
84866         getaddrinfo.h before other headers to test interface.
84867         Reported by Larry Jones <lawrence.jones@ugs.com>.
84868
84869 2005-09-12  Derek Price  <derek@ximbiot.com>
84870             Paul Eggert  <eggert@cs.ucla.edu>
84871
84872         * modules/glob (Files): Add glob-libc.h.
84873
84874 2005-09-12  Derek Price  <derek@ximbiot.com>
84875             Paul Eggert  <eggert@cs.ucla.edu>
84876
84877         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84878         glob_.h, glob-libc.h.
84879         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84880
84881 2005-09-12  Derek Price  <derek@ximbiot.com>
84882             Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84885         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84886         protecting things that should be done only in gnulib contexts.
84887         * lib/glob_.h: New file, containing only the glob things needed for
84888         gnulib.
84889         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84890         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84891         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84892         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84893         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84894         and to respect the namespace rules better.
84895
84896 2005-09-08  Simon Josefsson  <jas@extundo.com>
84897
84898         * modules/socklen: New file.
84899
84900 2005-09-08  Simon Josefsson  <jas@extundo.com>
84901
84902         * m4/socklen.m4: New file.
84903
84904 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * modules/utimens (Files): Add m4/utimbuf.m4, since
84907         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84908         Reported by Sergey Poznyakoff.
84909
84910 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84913         definitions, since that's the preferred style in glibc.
84914         Fix a minor spacing issue, and update copyright notice to match
84915         glibc's.
84916
84917 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84918
84919         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84920
84921 2005-09-06  Simon Josefsson  <jas@extundo.com>
84922
84923         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84924         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84925
84926 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84929         warning.
84930
84931 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84932
84933         * config/srclist.txt: Add glibc bug 1302.
84934
84935 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84936
84937         Change bitset word type from unsigned int to unsigned long int,
84938         as this has better performance on typical 64-bit hosts.
84939         Port bitset code to hosts with unusual word sizes.
84940         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84941         (build_collating_symbol):
84942         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84943         argument is a bitset.  This is merely a style issue, but it makes
84944         it clearer that an entire array is expected.
84945         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84946         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84947         Port to the case where bitset_word is not the same as unsigned int.
84948         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84949         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84950         Likewise.
84951         * lib/regexec.c (check_dst_limits_calc_pos_1,
84952         check_subexp_matching_top):
84953         (build_trtable, group_nodes_into_DFAstates):
84954         Likewise.
84955         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84956         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84957         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84958         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84959         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84960         * lib/regcomp.c (optimize_subexps, lower_subexp):
84961         Work even if bitset_word has holes in its bitwise representation.
84962         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84963         * lib/regexec.c (check_dst_limits_calc_pos_1,
84964         check_subexp_matching_top):
84965         Likewise.
84966         * lib/regex_internal.c (re_string_reconstruct):
84967         Don't assume UCHAR_MAX == 255.
84968         * lib/regex_internal.h (bitset_set_all): Likewise.
84969         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84970         All uses changed.
84971         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84972         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84973         All uses changed.
84974         (BITSET_WORD_MAX): New macro.
84975         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84976         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84977         (bitset_empty, bitset_copy):
84978         Prefer sizeof (bitset) to multiplying it out ourselves.
84979         (bitset_not_merge): Remove; unused.
84980         (bitset_contain): Return bool, not unsigned int with one bit on.
84981         All callers changed.
84982         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84983         alignment than re_node_set; do this by defining a new internal
84984         type struct dests_alloc and using it to allocate memory.
84985
84986 2005-09-05  Bruno Haible  <bruno@clisp.org>
84987
84988         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84989         links.
84990
84991 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84992
84993         * modules/size_max (Makefile.am): Add size_max.h
84994
84995 2005-09-04  Derek Price  <derek@ximbiot.com>
84996
84997         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84998
84999 2005-09-03  Simon Josefsson  <jas@extundo.com>
85000
85001         * gnulib-tool: Fix typo.
85002
85003 2005-09-03  Simon Josefsson  <jas@extundo.com>
85004
85005         * config/srclist.txt: Add glibc bug 1293.
85006
85007 2005-09-03  Derek Price  <derek@ximbiot.com>
85008
85009         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85010         From Larry Jones <lawrence.jones@ugs.com>.
85011
85012 2005-09-02  Simon Josefsson  <jas@extundo.com>
85013
85014         * modules/socklen: New file.
85015
85016 2005-09-02  Simon Josefsson  <jas@extundo.com>
85017
85018         * modules/havelib: New module.
85019
85020         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85021         Use havelib.
85022
85023 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         Check for arithmetic overflow when calculating sizes, to prevent
85026         some buffer-overflow issues.  These patches are conservative, in the
85027         sense that when I couldn't determine whether an overflow was possible,
85028         I inserted a run-time check.
85029         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85030         macros.
85031         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85032         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85033         (re_xnrealloc, re_x2nrealloc): New inline functions.
85034         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85035         parse_bracket_exp):
85036         (build_equiv_class, build_charclass): Check for arithmetic overflow
85037         in size expression calculations.
85038         * lib/regex_internal.c (re_string_realloc_buffers):
85039         (build_wcs_upper_buffer, re_node_set_add_intersect):
85040         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85041         (re_dfa_add_node, register_state): Likewise.
85042         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85043         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85044         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85045         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85046
85047 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85050         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85051
85052 2005-09-02  Bruno Haible  <bruno@clisp.org>
85053
85054         Support for lib vs. lib64 distinction on biarch platforms.
85055         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85056         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85057         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85058
85059 2005-09-02  Bruno Haible  <bruno@clisp.org>
85060
85061         * gnulib-tool (import): In the other first-use case, provide defaults
85062         as well.
85063
85064 2005-09-02  Bruno Haible  <bruno@clisp.org>
85065
85066         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85067         patches not yet found in the latest gettext release.
85068
85069 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85072         to avoid a collision with bits/local_lim.h in glibc.
85073         All uses changed.  Problem reported by Dmitry V. Levin in
85074         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85075
85076         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85077         bugs in int versus size_t comparisons.
85078         (re_string_context_at): Fix bug where the code assumed that
85079         Idx is signed.
85080
85081         Use bool where appropriate.
85082         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85083         All callers changed.
85084         (calc_eclosure_iter): Likewise, for ROOT arg.
85085         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85086         (build_charclass_op): Likewise, for NON_MATCH arg.
85087         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85088         (re_string_construct_common): Likewise, for ICASE arg.
85089         * lib/regexec.c (re_search_2_stub, re_search_stub):
85090         Likewise, for RET_LEN arg.
85091         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85092         (set_regs): Likewise, for FL_BACKTRACK arg.
85093         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85094         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85095         (calc_eclosure_iter, parse_bracket_exp):
85096         Use bool for internal variables that are booleans.
85097         * lib/regexec.c (re_search_internal, check_matching,
85098         proceed_next_node):
85099         (set_regs, build_sifted_states, sift_states_bkref):
85100         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85101         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85102         (find_collation_sequence_value):
85103         Likewise.
85104         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85105         (re_node_set_compare):
85106         Return bool, not int. All callers changed.
85107         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85108         (build_trtable, check_node_accept): Likewise.
85109         * lib/regex_internal.h: Include stdbool.h.
85110
85111         Fix bugs uncovered when converting to bool.
85112         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85113         failure instead of charging ahead blindly.
85114         * lib/regex_internal.c (register_state): Likewise.
85115         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85116         for freeing internal storage.
85117         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85118         bitset pieces used as boolean, to avoid undefined behavior
85119         on hosts that do int overflow checking.
85120
85121 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85122
85123         * config/srclist.txt: Add glibc bugs 1285-1287.
85124
85125 2005-09-01  Jim Meyering  <jim@meyering.net>
85126
85127         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85128         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85129         Require gl_STAT_MACROS, too.
85130
85131 2005-09-01  Bruno Haible  <bruno@clisp.org>
85132
85133         * gnulib-tool (import): In the first-use case, provide defaults.
85134
85135 2005-09-01  Bruno Haible  <bruno@clisp.org>
85136
85137         * gnulib-tool (func_import): Remove the .tmp files.
85138
85139 2005-09-01  Bruno Haible  <bruno@clisp.org>
85140
85141         * gnulib-tool (func_import): Fix handling of symbolic links.
85142
85143 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85144
85145         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85146         old glibc regex code mishandles strings longer than 2**31 bytes.
85147         This patch fixes this when the regex code is used in gnulib
85148         (i.e., outside glibc).
85149
85150         This patch should not affect the use of the regex code inside
85151         glibc.  No doubt this problem also needs to be handled for glibc
85152         as well, but the result will be an incompatible change to the
85153         glibc ABI, and the old ABI will have to be supported too.  That
85154         can be the the subject for another patch.
85155
85156         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85157         governing whether the rest of this patch is active.  By default,
85158         the macro is disabled and the patch has no effect.
85159         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85160         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85161         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85162         (re_match_2, re_set_registers): Use the new types.
85163         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85164         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85165         New macros.
85166         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85167         (re_string_context_at, bin_tree_t, re_dfastate_t):
85168         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85169         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85170         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85171         (re_string_char_size_at, re_string_wchar_at):
85172         (re_string_elem_size_at):
85173         Use the new types and macros to port to 64-bit hosts.
85174         Use unsigned types for internal values, so that the code
85175         mostly works even for arrays larger than SSIZE_MAX.
85176         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85177         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85178         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85179         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85180         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85181         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85182         (calc_inveclosure, parse_dup_op, build_range_exp):
85183         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85184         (fetch_number, create_token_tree, mark_opt_subexp):
85185         Likewise.
85186         * lib/regex_internal.c (re_string_construct_common,
85187         create_ci_newstate):
85188         (create_cd_newstate, re_string_allocate, re_string_construct):
85189         (re_string_realloc_buffers, build_wcs_upper_buffer):
85190         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85191         (re_string_reconstruct, re_string_peek_byte_case):
85192         (re_string_fetch_byte_case, re_string_context_at):
85193         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85194         (re_node_set_init_copy, re_node_set_add_intersect):
85195         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85196         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85197         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85198         (re_acquire_state, re_acquire_state_context, register_state):
85199         Likewise.
85200         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85201         search_cur_bkref_entry):
85202         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85203         (re_search_internal, re_search_2_stub, re_search_stub)
85204         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85205         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85206         (update_cur_sifted_state, check_dst_limits):
85207         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85208         (check_subexp_limits, sift_states_bkref, merge_state_array):
85209         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85210         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85211         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85212         (expand_bkref_cache, check_node_accept_bytes):
85213         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85214         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85215         (acquire_init_state_context, check_halt_node_context):
85216         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85217         (sift_states_backward, clean_state_log_if_needed):
85218         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85219         (find_recover_state, transit_state_sb, transit_state_mb):
85220         (transit_state_bkref, build_trtable, match_ctx_clean):
85221         Likewise.
85222         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85223         to work around an assumption that REG_MISSING is negative.
85224
85225         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85226         (seek_collating_symbol_entry) [defined _LIBC]:
85227         (lookup_collation_sequence_value) [defined _LIBC]:
85228         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85229         Use prototypes rather than old-style function definitions.
85230         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85231         (transit_state_sb) [0]:
85232         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85233
85234         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85235         rm_eo.
85236
85237         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85238         (optimize_subexps, lower_subexp):
85239         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85240         since the signed shift might overflow.  Use 1u<<31 instead.
85241         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85242         Likewise.
85243         * lib/regexec.c (check_dst_limits_calc_pos_1,
85244         check_subexp_matching_top): Likewise.
85245
85246         * lib/regcomp.c (optimize_subexps, lower_subexp):
85247         Use CHAR_BIT rather than 8, for clarity.
85248         * lib/regexec.c (check_dst_limits_calc_pos_1):
85249         (check_subexp_matching_top): Likewise.
85250         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85251         have to worry about portability issues when shifting it left.
85252         Remove no-longer-needed test for table_size > 0.
85253         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85254         in a word, as the resulting behavior is undefined.
85255         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85256         in one case, a <= should have been an <, and in another case the
85257         whole test was missing.
85258         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85259         the standard name CHAR_BIT.
85260         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85261         this is not true on one's complement and signed-magnitude hosts.
85262
85263         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85264         next_last_offset.
85265         (struct re_dfa_t): Remove unused member states_alloc.
85266         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85267
85268 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85269
85270         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85271         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85272         and large-file glibc and in 32-bit large-file Solaris.
85273
85274 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85275
85276         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85277         lengths fit in regoff_t; this isn't true if regoff_t is the same
85278         width as size_t.
85279         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85280         (= START + RANGE) instead of RANGE.  This avoids overflow
85281         problems when regoff_t is the same width as size_t.
85282         All callers changed.
85283         (re_search_2_stub): Check for overflow when adding the
85284         sizes of the two strings.
85285         (re_search_stub): Check for overflow when adding START
85286         to RANGE; if it occurs, substitute the extreme value.
85287
85288 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85291
85292 2005-08-31  Jim Meyering  <jim@meyering.net>
85293
85294         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85295         a pointer-to-const.
85296         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85297         (register_state): Likewise.
85298         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85299         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85300         (group_nodes_into_DFAstates): Likewise.
85301
85302 2005-08-31  Jim Meyering  <jim@meyering.net>
85303
85304         * check-module: Add a FIXME comment.
85305
85306 2005-08-31  Eric Blake  <ebb9@byu.net>
85307
85308         * modules/unistd-safer (Files): Add unistd--.h.
85309         * modules/stdio-safer (Files): Add stdio--.h.
85310
85311 2005-08-31  Derek Price  <derek@ximbiot.com>
85312
85313         * lib/getdelim.c (getdelim): Return EOF on EOF.
85314         Reported by Larry Jones <lawrence.jones@ugs.com>.
85315
85316 2005-08-31  Bruno Haible  <bruno@clisp.org>
85317
85318         Avoid unnecessary diffs in the generated lib/Makefile.am.
85319         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85320         the generated files.
85321         (func_import): Don't set cmd.
85322
85323 2005-08-31  Bruno Haible  <bruno@clisp.org>
85324
85325         * lib/strstr.c: Include <stddef.h>, for NULL.
85326         * lib/strcasestr.c: Likewise.
85327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85328
85329 2005-08-31  Bruno Haible  <bruno@clisp.org>
85330
85331         * gnulib-tool: New option --macro-prefix.
85332         (func_import): Use macro_prefix.
85333         (import): Handle option --macro-prefix.
85334
85335 2005-08-31  Bruno Haible  <bruno@clisp.org>
85336
85337         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85338         Also use new variables cached_lgpl, cached_libtool.
85339
85340 2005-08-31  Bruno Haible  <bruno@clisp.org>
85341
85342         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85343         always instantiating them.
85344
85345 2005-08-31  Bruno Haible  <bruno@clisp.org>
85346
85347         * gnulib-tool (func_import): Read the previous cached settings
85348         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85349         earlier added by gnulib but are now dropped. Warn when a gnulib file
85350         overwrites a non-gnulib file.
85351
85352 2005-08-31  Bruno Haible  <bruno@clisp.org>
85353
85354         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85355         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85356         projects that don't keep autogenerated files in CVS. Put into
85357         actioncmd only the specified modules, not the transitive closure.
85358
85359 2005-08-31  Bruno Haible  <bruno@clisp.org>
85360
85361         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85362         Create directories that shall be filled.
85363         (import): Don't look for gl_* macros in configure.ac. Recurse across
85364         all directories containing a gnulib-cache.m4 files, if meaningful.
85365
85366 2005-08-31  Bruno Haible  <bruno@clisp.org>
85367
85368         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85369         (import): Set seen_libtool when we see gl_LIBTOOL.
85370
85371 2005-08-31  Bruno Haible  <bruno@clisp.org>
85372
85373         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85374         declaration macro definitions from generated gnulib.m4.
85375
85376 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85377
85378         * lib/iconvme.h: Add prototype for iconv_alloc.
85379
85380 2005-08-29  Simon Josefsson  <jas@extundo.com>
85381
85382         * lib/iconvme.c: Fix errno.
85383
85384 2005-08-29  Bruno Haible  <bruno@clisp.org>
85385
85386         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85387         that it works when the directory contains spaces.
85388
85389 2005-08-29  Bruno Haible  <bruno@clisp.org>
85390
85391         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85392
85393 2005-08-29  Bruno Haible  <bruno@clisp.org>
85394
85395         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85396         Emit more advice.
85397
85398 2005-08-29  Bruno Haible  <bruno@clisp.org>
85399         and Stepan Kasal  <kasal@ucw.cz>
85400
85401         * check-module: If more parameters are given, check each of them
85402         separately; add more exceptions, as noted by Jim Meyering.
85403         (check_module): New procedure.
85404         (%exempt_header): Now contains all exceptions.
85405
85406 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85407
85408         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85409
85410 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85411
85412         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85413
85414 2005-08-28  Bruno Haible  <bruno@clisp.org>
85415
85416         * m4/gnulib-tool.m4: New file.
85417
85418 2005-08-27  Jim Meyering  <jim@meyering.net>
85419
85420         * modules/unistd-safer (Files): Add pipe-safer.c.
85421         * modules/fcntl-safer (Files): Add creat-safer.c.
85422
85423 2005-08-27  Jim Meyering  <jim@meyering.net>
85424
85425         * m4/stdlib-safer.m4: New file.  From coreutils.
85426         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85428         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85429         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85430         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85431
85432 2005-08-27  Jim Meyering  <jim@meyering.net>
85433
85434         * lib/fopen-safer.c: Merge minor changes from coreutils.
85435         * lib/dup-safer.c: Likewise.
85436         * lib/fd-safer.c: Likewise.
85437
85438         Merge from coreutils.
85439         * lib/stdio--.h: New file.
85440         * lib/stdlib--.h: New file.
85441         * lib/mkstemp-safer.c: New file.
85442
85443         GNU tar needs these.
85444         * lib/pipe-safer.c: New file.
85445         * lib/creat-safer.c: New file.
85446         * lib/fcntl--.h (creat): Define to creat_safer.
85447         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85448         * lib/unistd--.h (pipe): Define to pipe_safer.
85449         * lib/unistd-safer.h: Declare pipe_safer.
85450
85451 2005-08-26  Simon Josefsson  <jas@extundo.com>
85452
85453         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85454         Haible <bruno@clisp.org>.
85455
85456 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85457
85458         * lib/regex_internal.h: Remove all references to
85459         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85460         or better.
85461         (bitset_not, bitset_merge, bitset_not_merge):
85462         (bitset_mask, re_string_allocate, re_string_construct):
85463         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85464         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85465         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85466         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85467         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85468         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85469         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85470         (re_acquire_state_context):
85471         Remove unnecessary forward decls.
85472         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85473         Put __attribute at function definition,
85474         now that the function decl has been removed.
85475         * lib/regex_internal.c (re_string_peek_byte_case):
85476         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85477         Likewise.
85478
85479 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85480
85481         * m4/regex.m4: Add AC_PREREQ(2.50).
85482         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85483
85484 2005-08-25  Simon Josefsson  <jas@extundo.com>
85485
85486         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85487         __fsetlocking.
85488
85489 2005-08-25  Simon Josefsson  <jas@extundo.com>
85490
85491         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85492         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85493         GLIBC specific code.
85494
85495 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85496
85497         Make regex safe for g++.  This fixes one real bug (an "err"
85498         that should have been "*err").  g++ problem reported by
85499         Sam Steingold.
85500         * lib/regex_internal.h (re_calloc): New macro, consistent with
85501         re_malloc etc.  All callers of calloc changed to use re_calloc.
85502         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85503         not int.  All callers changed.
85504         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85505         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85506         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85507         (find_recover_state): Change "err" to "*err"; this fixes what
85508         appears to be a real bug.
85509         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85510         versus int.
85511
85512 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85513
85514         * modules/regex (Depends-on): Add malloc, since the code
85515         assumes that !malloc(0) means failure.
85516
85517 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85520
85521         alloca modernization/simplification for regex.
85522         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85523         needs to be at the start of the file, and can be moved into
85524         regex_internal.h and simplified.
85525         * lib/regex_internal.h: Include <alloca.h>.
85526         (__libc_use_alloca) [!defined _LIBC]: New macro.
85527         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85528         now works outside glibc.
85529
85530 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         * config/srclist.txt: Add glibc bugs 1241, 1245.
85533
85534 2005-08-25  Jim Meyering  <jim@meyering.net>
85535
85536         * lib/open-safer.c: Include <config.h>.
85537         Otherwise, we'd lose LARGEFILE support in any file using
85538         e.g. "fcntl--.h"
85539
85540 2005-08-25  Bruno Haible  <bruno@clisp.org>
85541
85542         * m4/minmax.m4: Require autoconf 2.52.
85543         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85544         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85545         alternatives of translit over the alphabet.
85546         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85547
85548 2005-08-24  Simon Josefsson  <jas@extundo.com>
85549
85550         * tests/test-getpass.c: New file.
85551
85552 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85553
85554         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85555         for GNU regex features.
85556
85557 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85558
85559         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85560         * lib/regex.h (regerror): Likewise.
85561
85562         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85563         requires this.  (The code never needed it.)
85564
85565         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85566         All uses of recently-renamed identifiers changed to use the new,
85567         POSIX-compliant names.  The code will build and run just fine
85568         without these changes, but it's better to eat our own dog food
85569         and use the standard-conforming names.
85570
85571         * lib/regex.h: Fix a multitude of POSIX name space violations.
85572         These changes have an effect only for programs that define
85573         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85574         do not change anything for programs compiled in the normal way.
85575         Also, there is no effect on the ABI.
85576
85577         (_REGEX_SOURCE): New macro.
85578         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85579         defined and _GNU_SOURCE is not; this fixes a name space violation.
85580
85581         Rename the following macros to obey POSIX requirements.
85582         The old names are still visible as macros if _REGEX_SOURCE is defined.
85583         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85584         RE_BACKSLASH_ESCAPE_IN_LISTS.
85585         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85586         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85587         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85588         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85589         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85590         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85591         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85592         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85593         (REG_INTERVALS): renamed from RE_INTERVALS.
85594         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85595         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85596         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85597         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85598         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85599         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85600         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85601         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85602         RE_UNMATCHED_RIGHT_PAREN_ORD.
85603         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85604         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85605         (REG_DEBUG): renamed from RE_DEBUG.
85606         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85607         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85608         unusual, since we can't clash with the POSIX REG_ICASE.
85609         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85610         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85611         (REG_NO_SUB): renamed from RE_NO_SUB.
85612         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85613         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85614         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85615         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85616         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85617         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85618         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85619         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85620         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85621         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85622         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85623         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85624         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85625         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85626         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85627         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85628         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85629         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85630         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85631         (REG_FIXED): Renamed from REGS_FIXED.
85632         (REG_NREGS): Renamed from RE_NREGS.
85633
85634         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85635         of other REG_* macros, since POSIX says the user is allowed to
85636         #undef these macros selectively.
85637
85638         (reg_errcode_t): Update comment stating what other tables need
85639         to be consistent.
85640
85641         Rename the following enum values to obey POSIX requirements.
85642         The old names are still visible as macros.
85643         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85644         is not defined, since GNU is supposed to be a superset of POSIX as
85645         much as possible, and since we want reg_errcode_t to be a signed
85646         type for implementation consistency.
85647         (_REG_NOERROR): Renamed from REG_NOERROR.
85648         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85649         (_REG_BADPAT): Renamed from REG_BADPAT.
85650         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85651         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85652         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85653         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85654         (_REG_EBRACK): Renamed from REG_EBRACK.
85655         (_REG_EPAREN): Renamed from REG_EPAREN.
85656         (_REG_EBRACE): Renamed from REG_EBRACE.
85657         (_REG_BADBR): Renamed from REG_BADBR.
85658         (_REG_ERANGE): Renamed from REG_ERANGE.
85659         (_REG_ESPACE): Renamed from REG_ESPACE.
85660         (_REG_BADRPT): Renamed from REG_BADRPT.
85661         (_REG_EEND): Renamed from REG_EEND.
85662         (_REG_ESIZE): Renamed from REG_ESIZE.
85663         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85664         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85665         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85666         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85667         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85668
85669         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85670         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85671         changed.  But support the old name if the new one is not defined
85672         and if _REGEX_SOURCE.
85673
85674         Change the following member names in struct re_pattern_buffer.
85675         The old names are still supported if !_REGEX_SOURCE.
85676         The new names are always supported, regardless of _REGEX_SOURCE.
85677         (re_buffer): Renamed from buffer.
85678         (re_allocated): Renamed from allocated.
85679         (re_used): Renamed from used.
85680         (re_syntax): Renamed from syntax.
85681         (re_fastmap): Renamed from fastmap.
85682         (re_translate): Renamed from translate.
85683         (re_can_be_null): Renamed from can_be_null.
85684         (re_regs_allocated): Renamed from regs_allocated.
85685         (re_fastmap_accurate): Renamed from fastmap_accurate.
85686         (re_no_sub): Renamed from no_sub.
85687         (re_not_bol): Renamed from not_bol.
85688         (re_not_eol): Renamed from not_eol.
85689         (re_newline_anchor): Renamed from newline_anchor.
85690
85691         Change the following member names in struct re_registers.
85692         The old names are still supported if !_REGEX_SOURCE.
85693         The new names are always supported, regardless of _REGEX_SOURCE.
85694         (rm_num_regs): Renamed from num_regs.
85695         (rm_start): Renamed from start.
85696         (rm_end): Renamed from end.
85697
85698         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85699         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85700         Prepend __ to parameter names.
85701
85702         Undo yesterday's changes.
85703
85704 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85705
85706         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85707         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85708         lib/regex.c.
85709
85710 2005-08-24  Jim Meyering  <jim@meyering.net>
85711
85712         Sync from coreutils.
85713         * m4/fcntl-safer.m4: New file.
85714
85715         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85716         and object files for this module.
85717
85718 2005-08-24  Jim Meyering  <jim@meyering.net>
85719
85720         Sync from coreutils.
85721         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85722
85723 2005-08-24  Jim Meyering  <jim@meyering.net>
85724
85725         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85726         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85727
85728 2005-08-24  Jim Meyering  <jim@meyering.net>
85729
85730         * modules/fcntl-safer: New module.
85731         * modules/fts (Depends-on): Add fcntl-safer.
85732         * MODULES.html.sh (File descriptor based Input/Output):
85733         Add fcntl-safer.
85734
85735 2005-08-24  Bruno Haible  <bruno@clisp.org>
85736
85737         Support for unit test modules.
85738         * modules/README: Mention tests modules.
85739         * modules/TEMPLATE-TESTS: New file.
85740         * gnulib-tool: New options --extract-tests-module, --with-tests and
85741         --tests-base (unused for the moment).
85742         (testsbase, inctests): New variables.
85743         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85744         (func_verify_module): Exclude TEMPLATE-TESTS.
85745         (func_verify_nontests_module, func_verify_tests_module): New functions.
85746         (func_get_dependencies): Add implicit dependency for tests modules.
85747         (func_get_tests_module): New function.
85748         (func_modules_transitive_closure): When --with-tests was specified,
85749         include the unit tests as well, unless explicitly avoided.
85750         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85751         (func_emit_tests_Makefile_am): New function.
85752         (func_create_testdir): When --with-tests was specified, emit a
85753         tests/ directory.
85754         * MODULES.html.sh (Future developments): Update.
85755
85756 2005-08-24  Bruno Haible  <bruno@clisp.org>
85757
85758         * modules/tls-tests: New file.
85759         * tests/test-tls.c: New file, from GNU gettext.
85760
85761 2005-08-24  Bruno Haible  <bruno@clisp.org>
85762
85763         * modules/lock-tests: New file.
85764         * tests/test-lock.c: New file, from GNU gettext.
85765
85766 2005-08-24  Bruno Haible  <bruno@clisp.org>
85767
85768         * lib/lock.h: Add multiple inclusion guard.
85769         * lib/tls.h: Add multiple inclusion guard.
85770
85771 2005-08-24  Bruno Haible  <bruno@clisp.org>
85772
85773         * gnulib-tool: Add support for the --aux-dir option to
85774         --create-testdir, --create-megatestdir, --test, --megatest.
85775         (func_create_testdir, func_create_megatestdir): Optionally emit a
85776         AC_CONFIG_AUX_DIR directive.
85777         (create-testdir, create-megatestdir, test, megatest): Provide a
85778         default value for $auxdir.
85779
85780 2005-08-24  Bruno Haible  <bruno@clisp.org>
85781
85782         * gnulib-tool (import): Use compound statement instead of subshell
85783         where possible.
85784
85785 2005-08-24  Bruno Haible  <bruno@clisp.org>
85786
85787         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85788
85789 2005-08-24  Bruno Haible  <bruno@clisp.org>
85790
85791         * gnulib-tool (func_version): Update.
85792
85793 2005-08-24  Bruno Haible  <bruno@clisp.org>
85794
85795         * gnulib-tool (func_import, func_create_testdir,
85796         func_create_megatestdir): Quote all autoconf macro arguments.
85797
85798 2005-08-24  Bruno Haible  <bruno@clisp.org>
85799
85800         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85801         option --force, because --force causes the aclocal.m4 of each
85802         subdirectory to be newer than the corresponding config.h.in.
85803
85804 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85805
85806         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85807         All contents moved to gl_REGEX.
85808         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85809         assume that it does.
85810
85811 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85812
85813         * lib/regex.h (REG_NOSYS)
85814         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85815         Define, since POSIX requires it as of 2001.
85816         (_REG_ENOSYS)
85817         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85818         New private symbol, used to keep the enum signed in all cases.
85819         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85820         Youngman in
85821         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85822
85823         * lib/regex_internal.c (re_string_skip_chars, register_state):
85824         (calc_state_hash):
85825         Remove forward decls; no longer needed now that we use prototypes.
85826         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85827         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85828         (clean_state_log_if_needed): Likewise.
85829
85830 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85831
85832         * config/srclist.txt: Add glibc bugs 1231-1233.
85833
85834 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85835
85836         Fix problems reported by Sam Steingold in
85837         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85838         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85839         assumed that reg_errcode_t is a signed type, which is not
85840         necessarily true if _XOPEN_SOURCE is not defined.
85841         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85842         since some compilers warn about it otherwise.
85843
85844 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85847         (init_word_char, create_initial_state, duplicate_node_closure):
85848         (fetch_token, peek_token_bracket, build_range_exp):
85849         (build_collating_symbol): Remove forward decls; no longer needed
85850         now that we use prototypes.
85851
85852         * lib/regcomp.c:
85853         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85854         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85855         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85856         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85857         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85858         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85859         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85860         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85861         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85862         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85863         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85864         (build_charclass, build_charclass_op, fetch_number, create_tree):
85865         (create_token_tree, mark_opt_subexp, duplicate_tree):
85866         Use prototypes rather than old-style definitions.
85867
85868         * lib/regex_internal.c:
85869         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85870         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85871         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85872         (re_string_reconstruct, re_string_peek_byte_case):
85873         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85874         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85875         (re_node_set_init_copy, re_node_set_add_intersect):
85876         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85877         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85878         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85879         (re_acquire_state, re_acquire_state_context, register_state):
85880         (create_ci_newstate, create_cd_newstate, free_state):
85881         Likewise.
85882         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85883         re_search_2):
85884         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85885         (re_search_internal, prune_impossible_nodes):
85886         (acquire_init_state_context, check_matching, static):
85887         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85888         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85889         (update_regs, sift_states_backward, build_sifted_states):
85890         (clean_state_log_if_needed, merge_state_array):
85891         (update_cur_sifted_state, add_epsilon_src_nodes):
85892         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85893         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85894         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85895         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85896         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85897         (check_arrival, check_arrival_add_next_nodes):
85898         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85899         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85900         (check_node_accept_bytes, check_node_accept, extend_buffers):
85901         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85902         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85903         (sift_ctx_init):
85904         Likewise.
85905
85906         * lib/regex_internal.h:
85907         (re_string_allocate, re_string_construct, re_string_reconstruct):
85908         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85909         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85910         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85911         (re_string_context_at, re_string_peek_byte_case):
85912         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85913         is defined, since we now use prototypes always.
85914
85915         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85916         C89 or better.  All uses removed.
85917
85918 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85919
85920         * config/srclist.txt: Add glibc bugs 1220-1227.
85921
85922 2005-08-20  Jim Meyering  <jim@meyering.net>
85923
85924         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85925         of unused local, dfa.
85926
85927 2005-08-20  Bruno Haible  <bruno@clisp.org>
85928
85929         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85930
85931 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85932
85933         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85934         (re_node_set_insert_last, re_dfa_add_node):
85935         Rename local variables to avoid GCC shadowing warnings.
85936
85937 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85938
85939         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85940         [defined lint]: Suppress bogus uninitialized-variable warnings.
85941
85942         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85943         and let the caller return REG_ESPACE if out of space.  This
85944         removes an uninitialied-variable warning with GCC 4.0.1, and also
85945         avoids taking the address of a local variable.  All callers
85946         changed.
85947
85948 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85949
85950         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85951         $LIBCSRC/posix/regexec.c.
85952         Add glibc bug 1217 for regcomp.c.
85953
85954 2005-08-19  Jim Meyering  <jim@meyering.net>
85955
85956         * lib/regexec.c (proceed_next_node): Redo local variables to
85957         avoid GCC shadowing warnings.
85958
85959 2005-08-18  Bruno Haible  <bruno@clisp.org>
85960
85961         * lib/strstr.c (strstr): Fix return value in multibyte case.
85962         * lib/strcasestr.c (strcasestr): Likewise.
85963
85964 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85965
85966         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85967
85968 2005-08-17  Jim Meyering  <jim@meyering.net>
85969
85970         Make the %s format (seconds since the epoch) work for a negative
85971         number and when used with a zero-padded field width, e.g. %015s.
85972
85973         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85974         label so that it precedes the code to set `digits'.  Otherwise,
85975         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85976         print `00-22'.  Now, it prints `-0022', as it should.
85977
85978 2005-08-17  Bruno Haible  <bruno@clisp.org>
85979
85980         * modules/strstr (Files): Add m4/mbrtowc.m4.
85981         (Depends-on): Add mbuiter.
85982
85983 2005-08-17  Bruno Haible  <bruno@clisp.org>
85984
85985         * modules/strcasestr: New file.
85986         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85987         strcasestr.
85988
85989 2005-08-17  Bruno Haible  <bruno@clisp.org>
85990
85991         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85992
85993 2005-08-17  Bruno Haible  <bruno@clisp.org>
85994
85995         * modules/mbuiter: New file.
85996         * MODULES.html.sh (Extended multibyte and wide character utilities):
85997         Add mbuiter.
85998
85999 2005-08-17  Bruno Haible  <bruno@clisp.org>
86000
86001         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86002         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86003
86004 2005-08-17  Bruno Haible  <bruno@clisp.org>
86005
86006         * m4/strcasestr.m4: New file.
86007
86008 2005-08-17  Bruno Haible  <bruno@clisp.org>
86009
86010         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86011         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86012
86013 2005-08-17  Bruno Haible  <bruno@clisp.org>
86014
86015         * lib/strcasestr.h: New file.
86016         * lib/strcasestr.c: New file.
86017
86018 2005-08-17  Bruno Haible  <bruno@clisp.org>
86019
86020         * lib/strcasecmp.c: Use mbuiter.h.
86021
86022 2005-08-17  Bruno Haible  <bruno@clisp.org>
86023
86024         * lib/mbuiter.h: New file.
86025
86026 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86027
86028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86029         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86030         and gl_GETOPT are both invoked via different paths (as happens
86031         with GNU tar CVS because it uses both argp and getopt), the former
86032         wins.
86033
86034 2005-08-16  Bruno Haible  <bruno@clisp.org>
86035
86036         * modules/tls: New file.
86037         * MODULES.html.sh (Multithreading): Add tls.
86038
86039 2005-08-16  Bruno Haible  <bruno@clisp.org>
86040
86041         * modules/strnlen1: New file.
86042         * MODULES.html.sh (String handling): Add strnlen1.
86043
86044 2005-08-16  Bruno Haible  <bruno@clisp.org>
86045
86046         * modules/strcase (Files): Add m4/mbrtowc.m4.
86047         (Depends-on): Add strnlen1, mbchar.
86048
86049 2005-08-16  Bruno Haible  <bruno@clisp.org>
86050
86051         * modules/mbiter: New file.
86052         * MODULES.html.sh (Extended multibyte and wide character utilities):
86053         Add mbiter.
86054
86055 2005-08-16  Bruno Haible  <bruno@clisp.org>
86056
86057         * modules/mbfile: New file.
86058         * MODULES.html.sh (Extended multibyte and wide character utilities):
86059         Add mbfile.
86060
86061 2005-08-16  Bruno Haible  <bruno@clisp.org>
86062
86063         * modules/mbchar: New file.
86064         * MODULES.html.sh (Extended multibyte and wide character utilities):
86065         New section.
86066
86067 2005-08-16  Bruno Haible  <bruno@clisp.org>
86068
86069         * m4/tls.m4: New file, from GNU gettext.
86070
86071 2005-08-16  Bruno Haible  <bruno@clisp.org>
86072
86073         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86074         always.
86075         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86076
86077 2005-08-16  Bruno Haible  <bruno@clisp.org>
86078
86079         * m4/mbiter.m4: New file.
86080
86081 2005-08-16  Bruno Haible  <bruno@clisp.org>
86082
86083         * m4/mbfile.m4: New file.
86084
86085 2005-08-16  Bruno Haible  <bruno@clisp.org>
86086
86087         * m4/mbchar.m4: New file.
86088
86089 2005-08-16  Bruno Haible  <bruno@clisp.org>
86090
86091         * lib/tls.h: New file, from GNU gettext.
86092         * lib/tls.c: New file, from GNU gettext.
86093
86094 2005-08-16  Bruno Haible  <bruno@clisp.org>
86095
86096         * lib/strnlen1.h: New file.
86097         * lib/strnlen1.c: New file.
86098
86099 2005-08-16  Bruno Haible  <bruno@clisp.org>
86100
86101         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86102         (mbi_init): Update.
86103         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86104         NUL byte, not after it.
86105
86106 2005-08-16  Bruno Haible  <bruno@clisp.org>
86107
86108         * lib/strcase.h (strcasecmp): Add note in comments.
86109         * lib/strncasecmp.c: Use code from strcasecmp.c.
86110         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86111         (strcasecmp): Work correctly in multibyte locales.
86112
86113 2005-08-16  Bruno Haible  <bruno@clisp.org>
86114
86115         * lib/mbiter.h: New file.
86116
86117 2005-08-16  Bruno Haible  <bruno@clisp.org>
86118
86119         * lib/mbfile.h: New file.
86120
86121 2005-08-16  Bruno Haible  <bruno@clisp.org>
86122
86123         * lib/mbchar.h: New file.
86124         * lib/mbchar.c: New file.
86125
86126 2005-08-16  Bruno Haible  <bruno@clisp.org>
86127
86128         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86129         the valid ones. Makes the comparison operations transitive:
86130         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86131         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86132
86133 2005-08-15  Simon Josefsson  <jas@extundo.com>
86134
86135         * modules/ssize_t (License): Change to 'unlimited'.
86136
86137         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86138
86139 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86140
86141         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86142         Add comments for each pending glibc patch.
86143
86144 2005-08-15  Bruno Haible  <bruno@clisp.org>
86145
86146         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86147         __cplusplus is defined.
86148
86149 2005-08-14  Jim Meyering  <jim@meyering.net>
86150
86151         Sync from coreutils.
86152
86153         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86154         Use the hash-table-based cycle-detection code not just when
86155         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86156         Reported by James Youngman in
86157         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86158         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86159         FTS_TIGHT_CYCLE_CHECK.
86160         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86161         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86162         once again.
86163         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86164         * lib/fts.c (fd_safer): Remove decl.
86165         Include fcntl--.h rather than unistd-safer.h
86166         (fts_safe_changedir): Don't call fd_safer; no longer needed
86167         now that we include fcntl--.h.
86168
86169 2005-08-12  Simon Josefsson  <jas@extundo.com>
86170
86171         * modules/getndelim2: Use ssize_t module.
86172         * modules/getnline: Likewise.
86173         * modules/safe-read: Likewise.
86174         * modules/xreadlink: Likewise.
86175
86176         * modules/ssize_t: New file.
86177
86178 2005-08-12  Simon Josefsson  <jas@extundo.com>
86179
86180         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86181
86182 2005-08-12  Simon Josefsson  <jas@extundo.com>
86183
86184         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86185         ssize_t.
86186
86187 2005-08-12  Simon Josefsson  <jas@extundo.com>
86188
86189         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86190         readline, getdelim and check_version.
86191         (Support for systems lacking ISO C 99: Sizes of integer types):
86192         Add size_max.
86193
86194 2005-08-12  Bruno Haible  <bruno@clisp.org>
86195
86196         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86197
86198 2005-08-11  Simon Josefsson  <jas@extundo.com>
86199
86200         * modules/readline: New file.
86201
86202         * modules/strnlen (Files): Add strnlen.h.
86203
86204 2005-08-11  Simon Josefsson  <jas@extundo.com>
86205
86206         * m4/readline.m4: New file.
86207
86208 2005-08-11  Simon Josefsson  <jas@extundo.com>
86209
86210         * lib/readline.h, readline.c: New file.
86211
86212 2005-08-11  Simon Josefsson  <jas@extundo.com>
86213
86214         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86215         gl_AVOID.
86216
86217 2005-08-11  Bruno Haible  <bruno@clisp.org>
86218
86219         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86220
86221 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86222
86223         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86224
86225 2005-08-10  Simon Josefsson  <jas@extundo.com>
86226
86227         * tests/test-iconvme.c: New file.
86228
86229 2005-08-10  Simon Josefsson  <jas@extundo.com>
86230
86231         * m4/strnlen.m4: New file.
86232
86233         * m4/strndup.m4: Don't check for strnlen declaration, done in
86234         strnlen.m4.
86235
86236 2005-08-10  Simon Josefsson  <jas@extundo.com>
86237
86238         * lib/strndup.c: Use strnlen.h.
86239
86240         * lib/strnlen.h: New file.
86241
86242 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86243
86244         * README: Typos.
86245
86246 2005-08-02  Simon Josefsson  <jas@extundo.com>
86247
86248         * modules/readline: New file.
86249
86250 2005-08-02  Simon Josefsson  <jas@extundo.com>
86251
86252         * modules/getdelim: New file.
86253
86254         * modules/getline: Rewrite, don't use getndelim2.
86255
86256 2005-08-02  Simon Josefsson  <jas@extundo.com>
86257
86258         * m4/getline.m4: Separate out getdelim stuff into separate module.
86259
86260         * m4/getdelim.m4: New file.
86261
86262 2005-08-02  Simon Josefsson  <jas@extundo.com>
86263
86264         * lib/getline.h, getline.c: Rewrite.
86265
86266         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86267
86268 2005-07-31  Bruno Haible  <bruno@clisp.org>
86269
86270         * lib/lock.h (gl_lock_initializer): New macro.
86271         (gl_lock_define_initialized): Use it.
86272         (gl_rwlock_initializer): New macro.
86273         (gl_rwlock_define_initialized): Use it.
86274         (gl_recursive_lock_initializer): New macro.
86275         (gl_recursive_lock_define_initialized): Use it.
86276
86277 2005-07-30  Karl Berry  <karl@gnu.org>
86278
86279         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86280         Report from Ben Pfaff, regarding getopt.
86281
86282 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86283
86284         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86285         normal way.
86286         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86287         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86288         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86289         (gl_GETOPT): Use the new macros.  Most of the implementation
86290         is moved to the new macros.  This is for programs like Emacs
86291         that don't want all the functionality of gl_GETOPT.
86292
86293 2005-07-26  Bruno Haible  <bruno@clisp.org>
86294
86295         * m4/lock.m4: Update from GNU gettext.
86296
86297 2005-07-26  Bruno Haible  <bruno@clisp.org>
86298
86299         * lib/lock.h: Update from GNU gettext.
86300         * lib/lock.c: Update from GNU gettext.
86301
86302 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86303
86304         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86305         obsolescent AC_TRY_RUN.  Include the default includes files, for
86306         'exit'.
86307
86308 2005-07-24  Bruno Haible  <bruno@clisp.org>
86309
86310         * modules/visibility: New file.
86311         * MODULES.html.sh (Misc): Add visibility.
86312
86313 2005-07-24  Bruno Haible  <bruno@clisp.org>
86314
86315         * m4/visibility.m4: New file.
86316
86317 2005-07-24  Bruno Haible  <bruno@clisp.org>
86318
86319         * doc/visibility.texi: New file.
86320
86321 2005-07-22  Bruno Haible  <bruno@clisp.org>
86322
86323         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86324         $(ALLOCA_H), redundant through BUILT_SOURCES.
86325         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86326         redundant through BUILT_SOURCES.
86327         * modules/byteswap (Makefile.am): Remove explicit dependency on
86328         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86329         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86330         $(FNMATCH_H), redundant through BUILT_SOURCES.
86331         * modules/getopt (Makefile.am): Remove explicit dependency on
86332         $(GETOPT_H), redundant through BUILT_SOURCES.
86333         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86334         redundant through BUILT_SOURCES.
86335         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86336         redundant through BUILT_SOURCES.
86337         * modules/stdbool (Makefile.am): Remove explicit dependency on
86338         $(STDBOOL_H), redundant through BUILT_SOURCES.
86339         * modules/stdint (Makefile.am): Remove explicit dependency on
86340         $(STDINT_H), redundant through BUILT_SOURCES.
86341         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86342         Remove explicit dependency on $(SYSEXITS_H).
86343         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86344
86345 2005-07-18  Simon Josefsson  <jas@extundo.com>
86346
86347         * lib/check-version.c (check_version): Accept identical versions too.
86348
86349 2005-07-18  Bruno Haible  <bruno@clisp.org>
86350
86351         * modules/lock: New file.
86352         * MODULES.html.sh (Multithreading): New section.
86353
86354 2005-07-18  Bruno Haible  <bruno@clisp.org>
86355
86356         * m4/lock.m4: New file, from GNU gettext.
86357
86358 2005-07-18  Bruno Haible  <bruno@clisp.org>
86359
86360         * lib/lock.h: New file, from GNU gettext.
86361         * lib/lock.c: New file, from GNU gettext.
86362
86363 2005-07-18  Bruno Haible  <bruno@clisp.org>
86364
86365         * lib/lock.h (gl_once_t): New type.
86366         (gl_once_define, gl_once): New macros.
86367         * lib/lock.c (fresh_once): New variable.
86368         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86369         functions.
86370
86371 2005-07-16  Simon Josefsson  <jas@extundo.com>
86372
86373         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86374         workaround, suggested by Bruno.
86375
86376 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86377
86378         * modules/xalloc (Depends-on): Add xalloc-die.
86379         * modules/xvasprintf (Depends-on): Add xalloc-die.
86380
86381 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86382
86383         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86384         with a minor change.
86385
86386 2005-07-15  Bruno Haible  <bruno@clisp.org>
86387
86388         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86389         When using lib/poll.c, define poll as rpl_poll.
86390
86391 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         * modules/argp (Depends-on): Remove unlocked-io.
86394
86395 2005-07-14  Derek Price  <derek@ximbiot.com>
86396
86397         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86398         for glob symlink bug.
86399
86400 2005-07-14  Bruno Haible  <bruno@clisp.org>
86401
86402         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86403         Instead, test for *_unlocked function declarations directly.
86404
86405 2005-07-11  Simon Josefsson  <jas@extundo.com>
86406
86407         * modules/size_max: New file.
86408
86409         * modules/xsize: Depend on size_max module for size_max.m4.
86410
86411 2005-07-11  Simon Josefsson  <jas@extundo.com>
86412
86413         * lib/size_max.h: New file.
86414
86415 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86416
86417         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86418         copyright symbol and the year.
86419         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86420         (version_etc_va): Use parameterized copyright notice.
86421         Reword to conform to the current GNU coding standards.
86422
86423 2005-07-11  Karl Berry  <karl@gnu.org>
86424
86425         * doc/gnulib.texi (Quoting): new node.
86426         (Initial import): more info, from Patrice.
86427
86428 2005-07-11  Bruno Haible  <bruno@clisp.org>
86429
86430         * gnulib-tool (func_usage): Document option --avoid.
86431         (Command line options): Handle --avoid.
86432         (func_acceptable): New function.
86433         (func_modules_transitive_closure): Use it.
86434
86435 2005-07-11  Bruno Haible  <bruno@clisp.org>
86436
86437         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86438         Reported by Jim Meyering.
86439
86440 2005-07-10  Bruno Haible  <bruno@clisp.org>
86441
86442         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86443         Needed when size_t is smaller than 'unsigned int'.
86444         Reported by Paul Eggert.
86445
86446 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86447
86448         * modules/argp (Depends-on): Add unlocked-io
86449
86450 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86451
86452         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86453         block of defines.
86454
86455 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86456
86457         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86458         fix now.
86459
86460 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86461         and Paul Eggert  <eggert@cs.ucla.edu>
86462
86463         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86464         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86465
86466 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86467
86468         * modules/regex (Files): Add lib/regex_internal.c,
86469         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86470         (Depends-on): Add extensions.
86471         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86472
86473 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86474
86475         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86476         pathconf.
86477         * m4/same.m4 (gl_SAME): Likewise.
86478         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86479
86480         * m4/regex.m4: Adjust to new libc regex implementation.
86481         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86482         all the .c and .h parts of (the new) regex.
86483         Quote the m4 stuff better.
86484         Check for RE_ICASE bug of old gnulib.
86485         Check for REG_STARTEND of recent libc.
86486         Rename local variables from jm_* to gl_*.
86487         Quote operand of "test -f".
86488         Say "recent enough" version of libc, not "version 2".
86489         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86490         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86491         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86492         Remove check for btowc, isascii.
86493         Require AM_LANGINFO_CODESET.
86494
86495 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86496
86497         * lib/regex.c, regex.h: Sync from libc.
86498         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86499         * lib/regexec.c:
86500         New files, synced from libc, except that regex_internal.h
86501         currently has a small porting fix.
86502
86503 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86504
86505         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86506         regex_internal.c, regexec.c.
86507         Add regex_internal.h too, but as a comment, since the libc version
86508         is currently broken in gnulib mode.
86509
86510 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86511
86512         Support programs like Emacs that use gnulib but not gettext.
86513         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86514         * modules/gettext-h: New file.
86515         * modules/gettext (Files): Remove lib/gettext.h.
86516         (Depends-on): Add gettext-h.
86517         (Makefile.am): Remove lib_SOURCES.
86518         * modules/argmatch, modules/c-stack, modules/closeout:
86519         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86520         * modules/execute, modules/file-type, modules/getaddrinfo:
86521         * modules/getopt, modules/human, modules/javacomp:
86522         * modules/javaexec, modules/mkdir-p, modules/obstack:
86523         * modules/openat, modules/pagealign_alloc, modules/pipe:
86524         * modules/quotearg, modules/regex, modules/rpmatch:
86525         * modules/unicodeio, modules/userspec, modules/version-etc:
86526         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86527         * modules/xsetenv:
86528         Depend on gettext-h, not gettext.
86529
86530 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86531
86532         * gnulib-tool (func_import): Add support for 'public domain' license.
86533         * modules/alloca, modules/atexit, modules/memmove:
86534         Now public domain, not GPL.
86535         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86536         * modules/realloc, modules/strerror, modules/strtod:
86537         Now LGPL, not GPL.
86538
86539 2005-07-05  Bruno Haible  <bruno@clisp.org>
86540
86541         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86542         autoconf CVS. Needed for mingw.
86543
86544 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86545
86546         Remove the dependency of the strftime module on the tzset module.
86547         * modules/strftime (Depends-on): Remove dependency on tzset.
86548
86549 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86550
86551         Remove the dependency of the strftime module on the tzset module.
86552         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86553         gl_FUNC_TZSET_CLOBBER.
86554
86555 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86556
86557         Remove the dependency of the strftime module on the tzset module.
86558         * lib/strftime.c (my_strftime)
86559         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86560         Copy the input structure, to work around some of the bug with
86561         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86562         Solaris releases, you should also use the tzset module, but we won't
86563         require it as a dependency any more since we don't want LGPLed code
86564         to depend on GPLed code.
86565
86566 2005-07-02  Jim Meyering  <jim@meyering.net>
86567
86568         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86569         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86570         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86571         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86572
86573 2005-07-02  Jim Meyering  <jim@meyering.net>
86574
86575         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86576
86577 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86578
86579         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86580         declares only 'struct timespec;' (!).
86581
86582 2005-07-01  Jim Meyering  <jim@meyering.net>
86583
86584         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86585         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86586         * lib/save-cwd.c, tempname.c:
86587         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86588         and don't include <sys/file.h>).
86589
86590 2005-06-29  Jim Meyering  <jim@meyering.net>
86591
86592         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86593         type name.  Use the variable name instead.
86594         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86595         Likewise.
86596
86597 2005-06-28  Simon Josefsson  <jas@extundo.com>
86598
86599         * modules/check-version (Files): Add check-version.m4.
86600
86601 2005-06-28  Simon Josefsson  <jas@extundo.com>
86602
86603         * m4/check-version.m4: New file, suggested by Jim Meyering
86604         <jim@meyering.net>.
86605
86606 2005-06-28  Simon Josefsson  <jas@extundo.com>
86607
86608         * lib/check-version.h, lib/check-version.c: New files.
86609
86610 2005-06-28  Simon Josefsson  <jas@extundo.com>
86611
86612         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86613         collision with global variable.  Better indentation.  Don't
86614         increment buffer pointer beyond buffer end.  Based on comments
86615         from Paul Eggert <eggert@cs.ucla.edu>.
86616
86617         * lib/base64.h: Indent.
86618
86619 2005-06-28  Simon Josefsson  <jas@extundo.com>
86620
86621         * doc/gnulib.texi (Library version handling): New section.
86622
86623 2005-06-28  Jim Meyering  <jim@meyering.net>
86624
86625         * check-module (find_included_lib_files): Hard-code another
86626         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86627         but modules/fts-lgpl (correctly) does not list those files.
86628
86629         * modules/canonicalize (Files): Add lib/pathmax.h.
86630
86631 2005-06-25  Simon Josefsson  <jas@extundo.com>
86632
86633         * modules/check-version: New file.
86634
86635 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86636
86637         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86638         initializer of struct addrinfo, as an indication that we don't
86639         care how many members the structure has.
86640
86641 2005-06-24  Derek Price  <derek@ximbiot.com>
86642         and Bruno Haible  <bruno@clisp.org>
86643
86644         Remove stat module & update lstat.
86645         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86646         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86647         * m4/stat.m4: Remove this file.
86648
86649 2005-06-24  Derek Price  <derek@ximbiot.com>
86650         and Bruno Haible  <bruno@clisp.org>
86651
86652         Remove stat module & update lstat.
86653         * lib/stat.c: Remove this file...
86654         (slash_aware_lstat): ...moving this content and its support...
86655         * lib/lstat.c (rpl_lstat): ...into here.
86656         * lib/lstat.h: New file.
86657
86658 2005-06-24  Derek Price  <derek@ximbiot.com>
86659         and Bruno Haible  <bruno@clisp.org>
86660
86661         Remove stat module & update lstat.
86662         * config/srclist.txt (libc sources): Remove stat.
86663
86664 2005-06-24  Derek Price  <derek@ximbiot.com>
86665         and Bruno Haible  <bruno@clisp.org>
86666
86667         Remove stat module & update lstat.
86668         * MODULES.html.sh (stat): Remove.
86669         * MODULES.html: Regenerated.
86670         * modules/lstat (Description): Correct function name.
86671         (Files): Add "lstat.h".
86672         (Depends-on): Remove stat, add xalloc, stat-macros.
86673         * modules/stat: Remove this file.
86674         (Include): Add "lstat.h", remove <sys/stat.h>.
86675
86676 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86677
86678         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86679         (ranged_convert): Don't save conversion in a temporary struct.
86680         This causes a warning with GCC 4.0.0, and anyway in the typical
86681         case it's not worth the extra 100 bytes or so of code.
86682         (ranged_convert, __mktime_internal): When calling a function via a
86683         pointer P, use P () rather than (*P) (), as we now assume C89 or
86684         better.
86685
86686 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86687
86688         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86689         "who -r" failed to give output.  Problem reported by Tim Waugh.
86690
86691         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86692         (xcalloc): Use it to avoid needless tests.
86693         Problem reported by Jim Meyering.
86694
86695 2005-06-20  Derek Price  <derek@ximbiot.com>
86696
86697         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86698         unnecessary for Autoconfs > 2.59c.
86699
86700 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86701
86702         * lib/argp.h (__option_is_short): Check upper limit of
86703         __key. Isprint() requires its argument to have the value
86704         of an unsigned char or EOF.
86705
86706 2005-06-16  Jim Meyering  <jim@meyering.net>
86707
86708         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86709         when either N or S is zero.
86710
86711 2005-06-16  Derek Price  <derek@ximbiot.com>
86712
86713         * m4/bison.m4: Declare YACC & YFLAGS precious.
86714
86715 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86716
86717         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86718         multibyte string or pattern, fall back on unibyte matching.
86719         Problem reported by James Youngman.
86720
86721 2005-06-08  Bruno Haible  <bruno@clisp.org>
86722
86723         * modules/csharpcomp: New file.
86724         * MODULES.html.sh (C#): Add csharpcomp.
86725
86726 2005-06-08  Bruno Haible  <bruno@clisp.org>
86727
86728         * m4/csharpcomp.m4: New file, from GNU gettext.
86729
86730 2005-06-08  Bruno Haible  <bruno@clisp.org>
86731
86732         * lib/csharpcomp.h: New file, from GNU gettext.
86733         * lib/csharpcomp.c: New file, from GNU gettext.
86734         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86735
86736 2005-06-08  Bruno Haible  <bruno@clisp.org>
86737
86738         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86739         warning on mingw.
86740
86741 2005-06-07  Derek Price  <derek@ximbiot.com>
86742
86743         Sync from CVS.
86744         * lib/glob_.h: Indent nested #ifdef.
86745
86746 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86747
86748         Sync from coreutils.
86749         Use "file name" when talking about file names, instead of "filename"
86750         or "path", as per the GNU coding standards.
86751         * lib/mkdir-p.c: Renamed from makepath.c.
86752         (make_dir_parents): Renamed from make_path.  All callers changed.
86753         * lib/mkdir-p.h: Likewise.  All includers changed.
86754         * lib/filenamecat.c: Renamed from path-concat.c.
86755         (file_name_concat): Renamed from path_concat.  All callers changed.
86756         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86757         * lib/filenamecat.h: Likewise.  All includers changed.
86758         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86759         in comments or local variable names.
86760         * lib/basename.c: Likewise.
86761         * lib/canonicalize.c, canonicalize.h: Likewise.
86762         * lib/dirname.c, dirname.h: Likewise.
86763         * lib/euidaccess.c: Likewise.
86764         * lib/exclude.c: Likewise
86765         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86766         * lib/fsusage.c, fsuage.h: Likewise.
86767         * lib/fts.c, fts_.h: Likewise.
86768         * lib/getcwd.c: Likewise.
86769         * lib/getloadavg.c: Likewise.
86770         * lib/mkstemp.c: Likewise.
86771         * lib/mountlist.c, mountlist.h: Likewise.
86772         * lib/openat.c, openat.h: Likewise.
86773         * lib/readlink-stub.c: Likewise.
86774         * lib/readutmp.c, readutmp.h: Likewise.
86775         * lib/rename.c: Likewise.
86776         * lib/rmdir.c: Likewise.
86777         * lib/same.c: Likewise.
86778         * lib/savedir.c: Likewise.
86779         * lib/stripslash.c: Likewise.
86780         * lib/tempname.c: Likewise.
86781         * lib/xreadlink.c: Likewise.
86782         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86783         All uses changed.
86784         * lib/exclude.h: Likewise.
86785
86786         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86787         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86788         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86789         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86790         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86791         files have been getting away with it for years (MORE/BSD 4.3
86792         is extinct now).
86793         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86794         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86795
86796         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86797         Define to 256, not 255, as per modern POSIX.
86798
86799 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86800
86801         Sync from coreutils.
86802         Use "file name" when talking about file names, instead of "filename"
86803         or "path", as per the GNU coding standards.
86804         * MODULES.html.sh: mkdir-p renamed from makepath.
86805         filenamecat renamed from path-concat.
86806         * modules/filenamecat: Renamed from modules/path-concat.
86807         (Files): filenamecat.h and filenamecat.c renamed from
86808         path-concat.h and path-concat.c.
86809         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86810         (Include): filenamecat.h, not path-concat.h.
86811         * modules/mkdir-p: Renamed from modules/makepath.
86812         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86813         makepath.c.
86814         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86815         (Include): mkdir-p.h, not makepath.h.
86816
86817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86818
86819         Sync from coreutils.
86820         * m4/mkdir-p.m4: Renamed from makepath.m4.
86821         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86822         Rename files from makepath.c to mkdir-p.c, and from
86823         makepath.h to mkdir-p.h.
86824         * m4/filenamecat.m4: Renamed from path-concat.m4.
86825         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86826         Rename files from path-concat.c to filenamecat.c,
86827         and from path-concat.h to filenamecat.h.
86828         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86829         "file name" in local variables or comments.
86830         * m4/rename.m4: Likewise.
86831
86832 2005-06-01  Bruno Haible  <bruno@clisp.org>
86833
86834         * modules/csharpexec: New file.
86835         * MODULES.html.sh (C#): New section.
86836
86837 2005-06-01  Bruno Haible  <bruno@clisp.org>
86838
86839         * m4/csharp.m4: New file, from GNU gettext.
86840         * m4/csharpexec.m4: New file, from GNU gettext.
86841
86842 2005-06-01  Bruno Haible  <bruno@clisp.org>
86843
86844         * lib/csharpexec.h: New file, from GNU gettext.
86845         * lib/csharpexec.c: New file, from GNU gettext.
86846         * lib/csharpexec.sh.in: New file, from GNU gettext.
86847
86848 2005-05-31  Derek Price  <derek@ximbiot.com>
86849             Paul Eggert  <eggert@cs.ucla.edu>
86850
86851         Sync from cvs.
86852         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86853
86854 2005-05-31  Derek Price  <derek@ximbiot.com>
86855             Paul Eggert  <eggert@cs.ucla.edu>
86856
86857         Sync from cvs.
86858         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86859
86860 2005-05-29  Derek Price  <derek@ximbiot.com>
86861
86862         * config/srclist.txt (glob_.h, glob.c): Add these files.
86863
86864 2005-05-29  Derek Price  <derek@ximbiot.com>
86865
86866         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86867         * modules/glob: New file.
86868         * modules/getlogin_r: Add link to POSIX spec in description.
86869
86870 2005-05-29  Derek Price  <derek@ximbiot.com>
86871             Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         * m4/glob.m4: New file.
86874
86875 2005-05-29  Derek Price  <derek@ximbiot.com>
86876             Paul Eggert  <eggert@cs.ucla.edu>
86877
86878         * lib/glob_.h, lib/glob.c: New files.
86879
86880 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86881
86882         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86883         * modules/fts-lgpl (Depends-on): Remove gettext.
86884
86885 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86886
86887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86888         and don't require gt_INTTYPES_PRI.
86889
86890 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86891
86892         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86893
86894         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86895         the configuration hassle isn't worth it.
86896         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86897         (LONGEST_MODIFIER, PRIuMAX): Remove.
86898
86899 2005-05-27  Bruno Haible  <bruno@clisp.org>
86900
86901         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86902
86903 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86906         _POSIX_PTHREAD_SEMANTICS for Solaris.
86907
86908 2005-05-25  Derek Price  <derek@ximbiot.com>
86909
86910         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86911
86912 2005-05-25  Derek Price  <derek@ximbiot.com>
86913             Paul Eggert  <eggert@cs.ucla.edu>
86914
86915         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86916         * lib/getlogin_r.c, getlogin_r.h: New files.
86917
86918 2005-05-25  Bruno Haible  <bruno@clisp.org>
86919             Derek Price  <derek@ximbiot.com>
86920
86921         * lib/getlogin_r.h: Simplify API documentation.
86922
86923 2005-05-23  Derek Price  <derek@ximbiot.com>
86924
86925         * modules/minmax (Files): Add m4/minmax.m4.
86926         (configure.ac): Add gl_MINMAX.
86927
86928 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86929
86930         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86931         so that unistd-safer.h (GPL'ed code) need not be included.
86932
86933 2005-05-22  Bruno Haible  <bruno@clisp.org>
86934
86935         * m4/minmax.m4: New file.
86936         Based on a patch by Derek Price <derek@ximbiot.com>.
86937
86938 2005-05-22  Bruno Haible  <bruno@clisp.org>
86939
86940         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86941         (INT64_MIN): Fix definition.
86942         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86943
86944         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86945         NEED_SIGNED_INT_TYPES.
86946
86947         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86948         HAVE_SYSTEM_INTTYPES.
86949
86950 2005-05-22  Bruno Haible  <bruno@clisp.org>
86951
86952         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86953         Also include <sys/param.h> if it defines MIN, MAX.
86954         Based on a patch by Derek Price <derek@ximbiot.com>.
86955
86956 2005-05-21  Jim Meyering  <jim@meyering.net>
86957
86958         * modules/fts (Files): Add m4/inttypes-pri.m4.
86959         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86960
86961 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86962
86963         New fts module.
86964         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86965         (setup_dir, free_dir): New functions.
86966         (enter_dir, leave_dir): Define trivial
86967         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86968         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86969         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86970         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86971         Move to fts-cycle.c.
86972         (fts_open): Use setup_dir.
86973         (fts_close): Use free_dir.
86974         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86975         This adds a label and some gotos, but the alternatives were messier.
86976         Check for memory allocation failure when entering a dir.
86977         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86978         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86979         (FTS): New member fts_cycle, that is a union that contains the
86980         old active_dir_ht and cycle_state.  All uses changed to mention
86981         fts_cycle.ht and fts_cycle.state.
86982         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86983         fts.c, with the following changes:
86984         (setup_dir, free_dir): New functions.
86985         (enter_dir): Now returns bool.  Return true if successful, false
86986         if memory exhausted.  All callers changed.
86987         Do not bother partly cleaning up on
86988         memory allocation failure; that is free_dir's job.
86989         However, free ad if hash_insert fails, to avoid memory leak.
86990         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86991         fts->fts_options to see which union member to use.
86992
86993 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86994
86995         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86996         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86997
86998 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86999
87000         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87001
87002 2005-05-20  Jim Meyering  <jim@meyering.net>
87003
87004         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87005         Now a macro, to pacify GCC.
87006
87007 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87008
87009         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87010         of -1.
87011
87012 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87013
87014         * lib/chown.c (rpl_chown): Return -1 on failure.
87015
87016 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87017
87018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87019         Don't check for stddef.h.
87020         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87021         don't use its results.
87022         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87023         since we include them unconditionally.  Don't require
87024         AM_STDBOOL_H, since stdbool is a prerequisite.
87025         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87026         since we assume C89 or better.
87027         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87028         as we don't use their results.
87029         Don't check for fchdir, memmove, memset, strrchr, as we use
87030         them unconditionally.
87031         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87032         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87033
87034 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87035
87036         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87037         Include <stddef.h> unconditionally, since we assume C89 now.
87038         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87039         * lib/fts.c: Include fts_.h first, to check interface.
87040         Do not include intprops.h; no longer needed.
87041         Include cycle-check.h and hash.h, since fts_.h no longer does.
87042         Remove unnecessary casts of closedir to void.
87043         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87044         decide whether to decrement nlinks.
87045         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87046         (FTS): Use struct hash_table * instead of Hash_table, so that
87047         we no longer need to include hash.h here.
87048
87049 2005-05-18  Jim Meyering  <jim@meyering.net>
87050
87051         * modules/dirfd (License): Change to LGPL.  Most of the code
87052         is already in the public domain.
87053
87054 2005-05-18  Jim Meyering  <jim@meyering.net>
87055
87056         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87057         Reported by Yoann Vandoorselaere.
87058
87059 2005-05-17  Jim Meyering  <jim@meyering.net>
87060
87061         * m4/fts.m4: New file, from coreutils.
87062
87063 2005-05-17  Jim Meyering  <jim@meyering.net>
87064
87065         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87066
87067 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87068
87069         Sync from coreutils.
87070         * m4/unlinkdir.m4: New file.
87071
87072 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87073
87074         Sync from coreutils.
87075         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87076         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87077         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87078         White space changes only.
87079         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87080         special.
87081         * lib/yesno.c: Include getline.h, not ctype.h.
87082         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87083         Use getline to remove arbitrary restriction on response length.
87084
87085 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87086
87087         * config/srclist-update: Spell out "Street" in FSF postal
87088         mail address; this is the style the FSF seems to prefer.
87089
87090         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87091         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87092         this updates FSF postal mail address.
87093
87094         Sync from coreutils.
87095         * modules/unlinkdir: New file.
87096         * modules/yesno (Depends-on): Add getline.
87097         * MODULES.html.sh (File system functions): Add unlinkdir.
87098
87099 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87100
87101         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87102         lib/strsep.h:
87103         Change the initial comment to refer to GPL, not LGPL.
87104         gnulib-tool will change it to LGPL as needed.
87105
87106         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87107         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87108         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87109         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87110         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87111         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87112         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87113         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87114         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87115         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87116         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87117         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87118         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87119         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87120         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87121         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87122         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87123         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87124         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87125         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87126         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87127         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87128         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87129         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87130         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87131         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87132         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87133         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87134         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87135         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87136         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87137         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87138         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87139         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87140         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87141         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87142         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87143         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87144         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87145         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87146         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87147         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87148         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87149         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87150         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87151         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87152         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87153         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87154         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87155         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87156         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87157         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87158         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87159         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87160         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87161         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87162         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87163         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87164         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87165         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87166         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87167         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87168         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87169         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87170         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87171         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87172         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87173         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87174         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87175         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87176         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87177         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87178         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87179         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87180         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87181         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87182         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87183         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87184         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87185         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87186         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87187         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87188         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87189         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87190         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87191         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87192         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87193         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87194         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87195         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87196         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87197         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87198         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87199         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87200         lib/yesno.c, lib/yesno.h:
87201         Update FSF postal mail address.
87202
87203 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87204
87205         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87206         tests/test-memmem.c, tests/test-stpncpy.c:
87207         Update FSF postal mail address.
87208
87209 2005-05-13  Bruno Haible  <bruno@clisp.org>
87210
87211         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87212         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87213         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87214         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87215         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87216         Add support for 64-bit integers in the MSVC compiler.
87217
87218 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87219
87220         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87221
87222 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87223
87224         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87225
87226 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87227
87228         * doc/getdate.texi (General date syntax): Don't say that date
87229         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87230         Problem reported by Nic Ferrier.
87231
87232 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87233
87234         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87235         specified in ai_socktype. Fix invalid ai_protocol
87236         check. ai_protocol is usually set to 0 or depending on
87237         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87238         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87239         ai_socktype / ai_protocol in the returned addrinfo structure.
87240
87241 2005-05-10  Simon Josefsson  <jas@extundo.com>
87242
87243         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87244         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87245
87246 2005-05-10  Karl Berry  <karl@gnu.org>
87247
87248         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87249         (from http://www.gnu.org/licenses).
87250         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87251         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87252         fdl.texi suffices.
87253
87254 2005-05-10  Karl Berry  <karl@gnu.org>
87255
87256         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87257         (COPYING.DOC): remove.
87258
87259         * config/srclist-update: new FSF address.
87260
87261 2005-05-10  Derek Price  <derek@ximbiot.com>
87262
87263         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87264         possible.
87265
87266 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87267             Bruno Haible  <bruno@clisp.org>
87268
87269         * modules/inet_ntop: New file.
87270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87271         inet_ntop.
87272
87273 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87274             Bruno Haible  <bruno@clisp.org>
87275
87276         * m4/inet_ntop.m4: New file.
87277
87278 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87279             Bruno Haible  <bruno@clisp.org>
87280
87281         * lib/inet_ntop.h: New file.
87282         * lib/inet_ntop.c: New file, from glibc with modifications.
87283
87284 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         * modules/time_r (License): Change to LGPL.
87287         * modules/extensions (License): Change to LGPL.  Actually,
87288         the license is more permissive than that, but currently gnulib-tool
87289         doesn't know how to handle more-permissive licenses.
87290
87291         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87292         Problem reported by Dave Love.
87293
87294 2005-05-08  Jim Meyering  <jim@meyering.net>
87295
87296         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87297         blank.
87298
87299 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * modules/argmatch (Depends-on): Add stdbool.
87302         * modules/backupfile (Depends-on): Likewise.
87303         * modules/chdir-long (Depends-on): Likewise.
87304         * modules/closeout (Depends-on): Likewise.
87305         * modules/cycle-check (Depends-on): Likewise.
87306         * modules/dirname (Depends-on): Likewise.
87307         * modules/fnmatch (Depends-on): Likewise.
87308         * modules/fsusage (Depends-on): Likewise.
87309         * modules/fwriteerror (Depends-on): Likewise.
87310         * modules/getcwd (Depends-on): Likewise.
87311         * modules/getloadavg (Depends-on): Likewise.
87312         * modules/hard-locale (Depends-on): Likewise.
87313         * modules/makepath (Depends-on): Likewise.
87314         * modules/mountlist (Depends-on): Likewise.
87315         * modules/nanosleep (Depends-on): Likewise.
87316         * modules/posixtm (Depends-on): Likewise.
87317         * modules/quotearg (Depends-on): Likewise.
87318         * modules/readtokens (Depends-on): Likewise.
87319         * modules/readtokens0 (Depends-on): Likewise.
87320         * modules/readutmp (Depends-on): Likewise.
87321         * modules/save-cwd (Depends-on): Likewise.
87322         * modules/strftime (Depends-on): Likewise.
87323         * modules/userspec (Depends-on): Likewise.
87324         * modules/utimecmp (Depends-on): Likewise.
87325         * modules/xgetcwd (Depends-on): Likewise.
87326         * modules/xnanosleep (Depends-on): Likewise.
87327         * modules/xstrtod (Depends-on): Likewise.
87328         * modules/yesno (Depends-on): Likewise.
87329
87330 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87331
87332         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87333         needless checks.
87334
87335 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87336
87337         Merge from coreutils.  Among other things,
87338         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87339         * lib/fd-safer.c: New file.
87340         * lib/fcntl-safer.h, open-safer.c: Remove.
87341         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87342         * lib/dup-safer.c: Include unistd-safer.h first.
87343         Don't include errno.h.
87344         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87345         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87346         * lib/file-type.c: Rely on file-type.h change.
87347         * lib/getloadavg.c: Include unistd-safer.h.
87348         (getloadavg): Use safer open.
87349         * lib/getusershell.c: Include "stdio-safer.h".
87350         (getusershell): Use safer fopen.
87351         * lib/long-options.c (long_options): Use NULL rather than 0.
87352         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87353         'free'.
87354         * lib/modechange.c: Likewise.
87355         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87356         (MODE_DONE): New constant.
87357         (struct mode_change): Remove 'next' member.
87358         (make_node_op_equals): New function; like the old one of the
87359         same name, except it allocates an array.
87360         (mode_compile, mode_create_from_ref): Use it.
87361         (mode_compile): Allocate result as an array, not a linked list.
87362         Parse octal string ourself, so that we catch mistakes like "+0".
87363         (mode_adjust): Arg is an array, not a linked list.
87364         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87365         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87366         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87367         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87368         Remove.  This is now stat-macros.h's job.
87369         (talloc): Remove.  All callers replaced by xalloc, so that
87370         our invokers don't have to worry about reporting memory failures.
87371         (make_node_op_equals): Remove.
87372         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87373         New constants.
87374         (struct mode_change): Moved here from modechange.h.
87375         (mode_append_entry): Remove.
87376         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87377         apps to have incorrect behavior.  Use simpler algorithm for head
87378         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87379         Detect more invalid usages rather than having somewhat-random behavior.
87380         Don't insert an "a=" action, as that leads to incorrect behavior.
87381         (mode_compile, mode_create_from_ref): Return NULL on error instead
87382         of an enum, since now there's only one way to have an error.  All
87383         callers changed.
87384         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87385         at the correct time.  Simplify calculation of "+u" and its ilk.
87386         Don't mishandle "+X".
87387         (mode_free): Remove "register" and localize decls.
87388         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87389         (struct mode_change): Move to modechange.c; callers don't
87390         need to see this stuff.
87391         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87392         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87393         (mode_change, mode_adjust): Reflect the new signatures noted above.
87394         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87395         that might redefine system include files.
87396         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87397         (my_usleep): Use NULL rather than (void *) 0.
87398         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87399         Use siginterrupt to specify that system calls should be interrupted.
87400         (rpl_nanosleep): Move initialization of suspended closer to call of
87401         my_usleep.
87402         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87403         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87404         (desirable_utmp_entry): New function.
87405         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87406         using x2nrealloc, to simplify logic.
87407         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87408         size calculation.  Do not assume utmp file is a regular file.
87409         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87410         (READ_UTMP_CHECK_PIDS): New constant.
87411         * lib/save-cwd.c: Include unistd-safer.h.
87412         (save_cwd): Use fd_safer.
87413         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87414         [!_LIBC] Include "stat-macros.h" instead.
87415         * lib/unistd-safer.h (fd_safer): New decl.
87416
87417 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87418
87419         * modules/getloadavg (Depends-on): Add unistd-safer.
87420         * modules/getusershell (Depends-on): Add stdio-safer.
87421         * modules/lstat (Depends-on): Remove xalloc.
87422         * modules/mkstemp (Depends-on): Add stat-macros.
87423         * modules/modechange (Depends-on): Remove xstrtol.
87424         Add stat-macros, xalloc.
87425         * modules/save-cwd (Depends-on): Add unistd-safer.
87426         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87427         * modules/unistd-safer (Files): Add lib/fd-safer.c
87428         (Makefile.am): Remove lib_SOURCES.
87429
87430         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87431         Remove fcntl-safer; unistd-safer supersedes it.
87432
87433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87434
87435         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87436         AC_HEADER_STAT.
87437         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87438         (gl_PREREQ_CHOWN): Remove.
87439         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87440         it.  Don't require AC_HEADER_STAT.
87441         (gl_PREREQ_LSTAT): Remove.
87442         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87443         Don't require AC_HEADER_STAT.
87444         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87445         (gl_PREREQ_RMDIR): Remove.
87446         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87447         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87448         the stat-macros module a prerequisite.
87449         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87450         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87451         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87452         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87453         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87454         variable names.
87455         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87456         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87457         variable prefixes.
87458         * m4/fcntl-safer.m4: Remove.
87459         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87460         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87461         Invoke gl_PREREQ_FD_SAFER.
87462         (gl_PREREQ_FD_SAFER): New macro.
87463         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87464         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87465         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87466         Remove duplicate call to AC_LIBOBJ(readutmp).
87467         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87468
87469         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87470         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87471
87472 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87473
87474         * MODULES.html.sh (Misc): Add byteswap.
87475
87476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87477
87478         * modules/getcwd (Depends-on): Add extensions.
87479         * modules/openat (Depends-on): Likewise.
87480
87481 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87482
87483         * modules/byteswap: New file.
87484
87485 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87486
87487         * m4/byteswap.m4: New file.
87488
87489 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87490
87491         * lib/byteswap_.h: New file.
87492
87493 2005-04-25  Karl Berry  <karl@gnu.org>
87494
87495         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87496
87497 2005-04-25  Albert Chin  <china@thewrittenword.com>
87498
87499         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87500         Toolkit C bug.
87501
87502 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87503
87504         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87505         (func_ln_if_changed): Remove forcibly for no error message
87506         in case file does not exist.
87507
87508 2005-04-19  Simon Josefsson  <jas@extundo.com>
87509
87510         * gnulib-tool (Options): Make --symlink mean --symbolic.
87511
87512 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87513
87514         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87515
87516 2005-04-16  Simon Josefsson  <jas@extundo.com>
87517
87518         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87519
87520 2005-04-15  Simon Josefsson  <jas@extundo.com>
87521
87522         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87523
87524 2005-04-15  Simon Josefsson  <jas@extundo.com>
87525
87526         * gnulib-tool: Rename --symlink to --symbolic.
87527
87528 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87529
87530         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87531         symbolic links to files instead of copying/moving.  Add --aux-dir,
87532         specifying directory relative --dir where auxiliary build tools
87533         are placed.
87534
87535 2005-04-14  Bruno Haible  <bruno@clisp.org>
87536
87537         * modules/allocsa (License): Change to LGPL.
87538         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87539
87540 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87541
87542         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87543         that "UTC +1 second" continues to work.  Problem reported
87544         by Dmitry V. Levin.
87545         (relunit_snumber): New rule.
87546         (relunit): Use it.
87547
87548 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87549
87550         * lib/getdate.y (universal_time_zone_table): New constant.
87551         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87552         universal_time_zone_table.
87553         (lookup_zone): Prefer universal_time_zone_table to
87554         local_time_zone_table, so that "GMT" time stamps are allowed in
87555         London during the summer.  Problem reported by Ian Abbott.
87556
87557 2005-04-12  Jim Meyering  <jim@meyering.net>
87558
87559         * lib/human.c (humblock): Set *options even when returning due to
87560         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87561         warning from gcc-4.
87562
87563 2005-04-09  Jim Meyering  <jim@meyering.net>
87564
87565         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87566         -Wuninitialized: initialize tm0.tm_year.
87567
87568 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87569
87570         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87571         count, since there's no maximum.  All uses changed.
87572         Add member dsts_seen.
87573         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87574         not being INT_MAX.
87575         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87576         Use pc_rels_seen to decide whether a date is absolute.
87577
87578         * lib/getdate.y (number): Don't overwrite year.
87579         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87580         check.
87581
87582 2005-04-02  Simon Josefsson  <jas@extundo.com>
87583
87584         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87585         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87586
87587 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87588
87589         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87590         where no absolute path name can be longer than PATH_MAX.
87591
87592 2005-03-27  Jim Meyering  <jim@meyering.net>
87593
87594         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87595
87596 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87597
87598         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87599         "one's complement" -> "ones' complement" in comment, as per Knuth.
87600         "value of type" -> "type or expression" in comment.
87601         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87602
87603 2005-03-26  Jim Meyering  <jim@meyering.net>
87604
87605         Comment nits.
87606         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87607         Correct typos: s/or/of/.
87608
87609 2005-03-26  Jim Meyering  <jim@meyering.net>
87610
87611         * modules/check-include-files: Move to ../ and rename to...
87612         * check-module: ...this.
87613
87614 2005-03-25  Jim Meyering  <jim@meyering.net>
87615
87616         * modules/xvasprintf (Files): Add xalloc.h.
87617
87618 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87619
87620         * modules/gettext (Files): config/config.rpath ->
87621         build-aux/config.rpath
87622         * modules/iconv (Files): Likewise.
87623         Problem reported by Oskar Liljeblad.
87624
87625 2005-03-23  Jim Meyering  <jim@meyering.net>
87626
87627         * modules/check-include-files: New script to check for
87628         missing dependencies, multiple includes, etc.
87629
87630         * modules/c-strtold (Depends-on): Add xalloc.
87631         * modules/c-strtod (Depends-on): Add xalloc.
87632         * modules/hash (Depends-on): Add xalloc.
87633         (Files): Remove lib/xalloc.h.
87634
87635         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87636         * modules/userspec (Files): Add lib/inttostr.h.
87637
87638 2005-03-23  Jim Meyering  <jim@meyering.net>
87639
87640         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87641
87642 2005-03-22  Jim Meyering  <jim@meyering.net>
87643
87644         * modules/stat-macros: New module.
87645         * modules/canonicalize, modules/euidaccess, modules/file-type,
87646         * modules/filemode, modules/lchown, modules/makepath,
87647         * modules/rmdir, modules/stat: Depend on new stat-macros module
87648         rather than listing lib/stat-macros.h manually.
87649         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87650
87651 2005-03-22  Jim Meyering  <jim@meyering.net>
87652
87653         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87654
87655 2005-03-22  Bruno Haible  <bruno@clisp.org>
87656
87657         * config/srclist.txt: Replace target directory 'config' with
87658         'build-aux'.
87659         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87660         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87661         ../build-aux/.
87662
87663 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87664
87665         * modules/chdir-long (Depends-on): Add mempcpy.
87666
87667         * modules/acl, modules/backupfile, modules/c-strtod,
87668         modules/c-strtold, modules/canon-host, modules/canonicalize,
87669         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87670         modules/exclude, modules/exitfail, modules/file-type,
87671         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87672         modules/getdate, modules/getline, modules/getpagesize,
87673         modules/getpass, modules/getugroups, modules/group-member,
87674         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87675         modules/inttostr, modules/long-options, modules/makepath,
87676         modules/md5, modules/memcasecmp, modules/memcoll,
87677         modules/modechange, modules/mountlist, modules/path-concat,
87678         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87679         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87680         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87681         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87682         modules/strftime, modules/strndup, modules/strverscmp,
87683         modules/timespec, modules/unlocked-io, modules/userspec,
87684         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87685         modules/yesno:
87686         Remove lib_SOURCES line from Makefile.am section, as this is now
87687         done automatically by the corresponding Autoconf macro.
87688
87689 2005-03-21  Jim Meyering  <jim@meyering.net>
87690
87691         Changes imported from coreutils.
87692
87693         * lib/cycle-check.c: Don't include xalloc.h.
87694
87695         * lib/path-concat.c: Don't include assert.h.
87696         (path_concat): Remove assertion that would have triggered
87697         for ABASE starting with more than one slash.
87698         Reported by Andreas Schwab.
87699
87700         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87701         properly when ABASE is an absolute file name.
87702         Correct the description of this function.
87703         Include <assert.h>.
87704         Add an assertion and a test driver.
87705         This fixes a bug introduced on 2004-07-02.
87706         Andreas Schwab reported the resulting failure of cp --parents:
87707         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87708
87709 2005-03-21  Jim Meyering  <jim@meyering.net>
87710
87711         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87712         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87713
87714 2005-03-21  Jim Meyering  <jim@meyering.net>
87715         and  Paul Eggert  <eggert@cs.ucla.edu>
87716
87717         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87718         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87719         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87720         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87721         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87722         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87723         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87724         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87725         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87726         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87727         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87728         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87729         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87730         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87731         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87732         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87733         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87734         for these modules.
87735
87736 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87737
87738         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87739         (which shouldn't happen), generate nothing instead of returning 0
87740         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87741
87742 2005-03-16  Bruno Haible  <bruno@clisp.org>
87743
87744         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87745         HAVE_LONGLONG_64BIT.
87746
87747 2005-03-16  Bruno Haible  <bruno@clisp.org>
87748
87749         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87750         HAVE_LONGLONG_64BIT.
87751
87752 2005-03-16  Bruno Haible  <bruno@clisp.org>
87753
87754         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87755         HAVE_LONGLONG_64BIT.
87756
87757 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87758
87759         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87760         reliably distinguish strftime failure from empty output on POSIX
87761         hosts.
87762
87763 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87764
87765         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87766         (iconv_string): Don't guess a size-zero buffer, as that might cause
87767         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87768         result would be 'too large', where 'too large' is (heuristically)
87769         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87770         overflow concerns.  This will prevent some unwanted malloc failures
87771         when the inputs are very large.
87772
87773 2005-03-15  Karl Berry  <karl@gnu.org>
87774
87775         * config/srclist.txt (config.rpath): from gettext.
87776         * config/config.rpath: update.
87777
87778 2005-03-15  Bruno Haible  <bruno@clisp.org>
87779
87780         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87781         to 'negate'.
87782
87783         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87784         variable.
87785
87786         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87787         results.
87788
87789 2005-03-14  Simon Josefsson  <jas@extundo.com>
87790
87791         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87792         <fx@gnu.org>.
87793
87794 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87795
87796         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87797         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87798         intprops.h.
87799         * lib/strtol.c: Likewise.
87800
87801 2005-03-14  Jim Meyering  <jim@meyering.net>
87802
87803         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87804         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87805         to be nonzero so that we (and caller) can detect the difference
87806         between a valid zero-length expansion and an error return, even
87807         when the underlying strftime fails before writing anything into
87808         that location.
87809
87810 2005-03-14  Bruno Haible  <bruno@clisp.org>
87811
87812         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87813         Update from GNU gettext 0.14.3.
87814
87815 2005-03-10  Jim Meyering  <jim@meyering.net>
87816
87817         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87818
87819 2005-03-10  Jim Meyering  <jim@meyering.net>
87820
87821         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87822         so that this module works on systems without fchdir.
87823
87824 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87825
87826         Factor int-properties macros into a single file, except for
87827         glibc-related files.
87828         * lib/intprops.h: New file.
87829         * lib/getloadavg.c: Include it instead of limits.h.
87830         (INT_STRLEN_BOUND): Remove.
87831         * lib/human.c: Include intprops.h.
87832         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87833         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87834         302/1000.
87835         * lib/inttostr.h: Include intprops.h instead of limits.h.
87836         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87837         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87838         for consistency with intprops.h.
87839         (time_t_is_integer, twos_complement_arithmetic): Use them.
87840         * lib/sig2str.h: Include <signal.h>, intprops.h.
87841         (INT_STRLEN_BOUND): Remove.
87842         * lib/strftime.c (TYPE_SIGNED): Remove.
87843         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87844         * lib/strtol.c: Adjust comments to match intprops.h.
87845         * lib/userspec.c: Include intprops.h.
87846         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87847         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87848         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87849         instead of rolling our own expressions.
87850         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87851
87852         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87853         instead of int.
87854         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87855         the right thing even if adding 1900 would overflow.  Similarly
87856         for tm_mon + 1 and tm_yday + 1.
87857         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87858         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87859         (DO_SIGNED_NUMBER): New macro.
87860         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87861
87862 2005-03-07  Bruno Haible  <bruno@clisp.org>
87863
87864         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87865
87866 2005-03-07  Bruno Haible  <bruno@clisp.org>
87867
87868         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87869
87870 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87871
87872         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87873         (func_import): Only replace files via --import when they have actually
87874         changed.
87875
87876 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87877
87878         * m4/mmap-anon.m4: New file.
87879         * m4/pagealign_alloc.m4: New file.
87880
87881 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87882             Bruno Haible  <bruno@clisp.org>
87883
87884         * modules/pagealign_alloc: New file.
87885         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87886
87887 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87888             Bruno Haible  <bruno@clisp.org>
87889
87890         * lib/pagealign_alloc.h: New file.
87891         * lib/pagealign_alloc.c: New file.
87892
87893 2005-03-03  Bruno Haible  <bruno@clisp.org>
87894
87895         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87896         Use an all-permissive copyright notice, recommended by RMS.
87897
87898 2005-03-02  Bruno Haible  <bruno@clisp.org>
87899
87900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87901         of AIX, the replacement has to be done only after <string.h> is
87902         included, therefore not in config.h. stpncpy.h does the replacement,
87903         and stpncpy.c uses it.
87904
87905 2005-03-02  Bruno Haible  <bruno@clisp.org>
87906
87907         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87908         stpncpy.c uses it.
87909
87910 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87911
87912         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87913         The workaround isn't strictly needed for POSIX conformance, and
87914         it's too much of a pain to configure and maintain.  We'll ask
87915         people to fix their kernels instead.
87916         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87917         (NANOSLEEP_BUG_WORKAROUND): Remove.
87918         (xnanosleep): Remove the workaround.
87919
87920 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87923         Reported by Derek Price.
87924         (Include): Add "timespec.h".
87925
87926         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87927
87928 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87929
87930         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87931         to detect nanosleep bug.
87932
87933 2005-03-01  Bruno Haible  <bruno@clisp.org>
87934
87935         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87936
87937 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87938
87939         * modules/gethrxtime: New file.
87940         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87941         (Depends-on): Add gethrxtime.
87942         (configure.ac): Add gl_XNANOSLEEP.
87943         (Makefile.am): Remove lib_SOURCES line.
87944
87945 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87946
87947         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87948         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87949
87950 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87951
87952         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87953         * lib/timespec.h (gettime): Return void, since it always
87954         succeeds now.  All uses changed.
87955         * lib/gettime.c (gettime): Likewise.
87956         [HAVE_NANOTIME]: Prefer nanotime.
87957         Assume gettimeofday succeeds, as POSIX requires.
87958         Assime time () succeeds, since other code already does.
87959         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87960         (timespec_subtract): Remove.
87961         (NANOSLEEP_BUG_WORKAROUND): New constant.
87962         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87963         things considerably.  Use it only on GNU/Linux hosts, since the
87964         workaround shouldn't be needed elsewhere.
87965
87966 2005-02-24  Bruno Haible  <bruno@clisp.org>
87967
87968         * modules/gettext (Files): Add m4/glibc2.m4.
87969
87970 2005-02-24  Bruno Haible  <bruno@clisp.org>
87971
87972         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87973         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87974         * m4/progtest.m4:
87975         Update from GNU gettext 0.14.2.
87976         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87977
87978 2005-02-24  Bruno Haible  <bruno@clisp.org>
87979
87980         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87981         * lib/config.charset: Update from GNU gettext 0.14.2.
87982
87983 2005-02-24  Bruno Haible  <bruno@clisp.org>
87984
87985         * lib/gettext.h: Update from GNU gettext 0.14.2.
87986
87987 2005-02-23  Simon Josefsson  <jas@extundo.com>
87988
87989         * m4/iconvme.m4: New file.
87990
87991 2005-02-23  Jim Meyering  <jim@meyering.net>
87992
87993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87994         change.
87995         Thanks to Bruno Haible for catching it.
87996
87997 2005-02-22  Simon Josefsson  <jas@extundo.com>
87998
87999         * modules/iconvme: New file.
88000
88001         * MODULES.html.sh: Add iconvme.
88002
88003 2005-02-22  Simon Josefsson  <jas@extundo.com>
88004
88005         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88006
88007 2005-02-22  Simon Josefsson  <jas@extundo.com>
88008
88009         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88010
88011 2005-02-22  Jim Meyering  <jim@meyering.net>
88012
88013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88014         s/ifndef/ifdef/.
88015
88016 2005-02-20  Neil Conway  <neilc@samurai.com>
88017
88018         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88019         returned by OSX/Darwin if the specified buffer is not large
88020         enough for the hostname.
88021
88022 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88023
88024         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88025         pass it to _help, otherwise the latter coredumps trying to
88026         dereference state.root_argp.
88027
88028 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88029
88030         * modules/chdir-long (Depends-on): Add memrchr.
88031         * modules/memrchr (Files): Add lib/memrchr.h.
88032         (Include): "memrchr.h".
88033
88034 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88035
88036         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88037
88038 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         * lib/memrchr.h: New file.
88041         * lib/chdir-long.c: Include it.
88042         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88043         Don't bother including stddef.h.
88044
88045 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88046
88047         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88048         inclusion.
88049         Include <sys/types.h>, for dev_t.
88050         (ME_DUMMY, ME_REMOTE): Move from here....
88051         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88052         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88053         Dmitry V. Levin.
88054         Include mountlist.h first, to test the interface.
88055
88056 2005-01-29  Bruno Haible  <bruno@clisp.org>
88057
88058         * lib/progname.c (program_name): Initialize.
88059         Needed when linking statically on MacOS X.
88060
88061 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88062
88063         Sync from coreutils.
88064         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88065         (Depends-on): Add c-strtod.
88066         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88067
88068 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88069
88070         Sync from coreutils.
88071         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88072
88073         Remove files that are specific to coreutils.
88074         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88075
88076 2005-01-28  Bruno Haible  <bruno@clisp.org>
88077
88078         * modules/javacomp: New file.
88079         * MODULES.html.sh (Java): Add javacomp.
88080
88081 2005-01-28  Bruno Haible  <bruno@clisp.org>
88082
88083         * m4/javacomp.m4: New file, from GNU gettext.
88084
88085 2005-01-28  Bruno Haible  <bruno@clisp.org>
88086
88087         * lib/javacomp.sh.in: New file, from GNU gettext.
88088         * lib/javacomp.h: New file, from GNU gettext.
88089         * lib/javacomp.c: New file, from GNU gettext.
88090
88091 2005-01-26  Simon Josefsson  <jas@extundo.com>
88092
88093         * lib/gai_strerror.c: Use GPL in header.
88094
88095 2005-01-26  Bruno Haible  <bruno@clisp.org>
88096
88097         * modules/javaexec: New file.
88098         * MODULES.html.sh (Java): Add javaexec.
88099
88100 2005-01-26  Bruno Haible  <bruno@clisp.org>
88101
88102         * m4/javaexec.m4: New file, from GNU gettext.
88103
88104 2005-01-26  Bruno Haible  <bruno@clisp.org>
88105
88106         * lib/javaexec.sh.in: New file, from GNU gettext.
88107         * lib/javaexec.h: New file, from GNU gettext.
88108         * lib/javaexec.c: New file, from GNU gettext.
88109
88110 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88111
88112         * modules/lchown (Depends-on): Remove lchown.h
88113
88114 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88115
88116         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88117         must be defined if the header file was not found, in order
88118         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88119
88120 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88121
88122         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88123         initializers for struct pentry_state.
88124         (__argp_error): Check return value of __asprintf
88125         (__argp_failure): Translate error message
88126
88127         * lib/argp-parse.c: Removed braces around the expansion of N_()
88128
88129 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88130
88131         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88132         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88133         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88134         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88135         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88136         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88137         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88138         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88139         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88140         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88141         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88142         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88143         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88144         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88145         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88146         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88147         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88148         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88149         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88150         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88151         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88152         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88153         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88154         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88155         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88156         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88157         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88158         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88159         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88160         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88161         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88162         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88163         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88164         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88165         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88166         Use an all-permissive copyright notice, recommended by RMS.
88167
88168 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88169
88170         * modules/chdir-long (Depends-on): Remove mempcpy.
88171
88172 2005-01-21  Jim Meyering  <jim@meyering.net>
88173
88174         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88175         same value as for Solaris 9.
88176
88177         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88178         component length.  This included changing the parameter to be
88179         of type `char *' rather than `char const *'.
88180         * lib/chdir-long.h (chdir_long): Update prototype.
88181
88182         * lib/openat.c (fdopendir, fstatat): New functions.
88183         * lib/openat.h: Include headers required for use of DIR and struct
88184         stat.
88185         [AT_SYMLINK_NOFOLLOW]: Define.
88186         (fdopendir, fstatat): Add prototypes.
88187
88188 2005-01-21  Bruno Haible  <bruno@clisp.org>
88189
88190         * modules/classpath: New file.
88191         * MODULES.html.sh (Java): Add classpath.
88192
88193 2005-01-21  Bruno Haible  <bruno@clisp.org>
88194
88195         * lib/classpath.h: New file, from GNU gettext.
88196         * lib/classpath.c: New file, from GNU gettext.
88197
88198 2005-01-20  Simon Josefsson  <jas@extundo.com>
88199
88200         * modules/version-etc-fsf: New file.
88201
88202 2005-01-20  Simon Josefsson  <jas@extundo.com>
88203
88204         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88205         * lib/version-etc.c: Remove version_etc_copyright.
88206         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88207         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88208
88209 2005-01-20  Simon Josefsson  <jas@extundo.com>
88210
88211         * lib/base64.h (isbase64): Add.
88212
88213         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88214         using a unsigned prototype, don't inline.
88215         (base64_decode): Use it.
88216
88217 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88218
88219         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88220         it.
88221
88222 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88223
88224         * lib/save-cwd.c (save_cwd): Remove code to support the case
88225         where fchdir is missing or flaky.
88226
88227 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88228
88229         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88230
88231 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88232
88233         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88234         AC_LIBSOURCES now does this.
88235         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88236         with new ullong_max module.
88237
88238 2005-01-19  Bruno Haible  <bruno@clisp.org>
88239
88240         * modules/sh-quote: New file.
88241         * MODULES.html.sh (Executing programs): Add sh-quote.
88242
88243 2005-01-19  Bruno Haible  <bruno@clisp.org>
88244
88245         * lib/sh-quote.h: New file, from GNU gettext.
88246         * lib/sh-quote.c: New file, from GNU gettext.
88247
88248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88249
88250         Merge from coreutils.
88251         * m4/ullong_max.m4: New file.
88252         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88253         (gl_MACROS): Assume localeconv exists.
88254
88255 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88256
88257         Merge changes from coreutils, as described below in several
88258         changelogs dated today.
88259
88260         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88261         (O_DIRECTORY): Remove; not needed here, since "." must be
88262         a directory.  All uses removed.
88263         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88264         universal on Suns, and we also need to test for IRIX.
88265         Revamp code to use 'if' rather than '#if'.
88266         Avoid unnecessary comparison of cwd->desc to 0.
88267
88268         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88269         for known valid error numbers rather than observed invalid ones.
88270
88271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88272
88273         * modules/ullong_max: New file.
88274
88275         * modules/chdir-long, modules/openat: New files.
88276         * modules/save-cwd (Depends-on): Depend on chdir-long.
88277         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88278
88279 2005-01-18  Jim Meyering  <jim@meyering.net>
88280
88281         Merge from coreutils.
88282         * m4/chdir-long.m4, m4/openat.m4: New files.
88283         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88284         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88285         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88286         is sane and DOES follow symlinks.  Besides, testing 20 different
88287         systems found no broken chown implementations.
88288         Prompted by a change in rsync's copy of this macro.
88289         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88290
88291         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88292
88293         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88294         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88295         NULL-means-set-to-current-time semantics.
88296         Remove temporary file immediately, rather than waiting
88297         for configure's at-exit trap code to do it.
88298
88299 2005-01-18  Jim Meyering  <jim@meyering.net>
88300
88301         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88302
88303         * lib/utimens.c (futimens): Account for the fact that futimes
88304         can also fail with errno == ENOSYS or errno == ENOENT.
88305         Patch from Dmitry V. Levin.
88306
88307         Change the name of the robust chdir function from chdir to chdir_long.
88308         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88309         (restore_cwd): Use chdir_long, not chdir.
88310         * lib/chdir-long.c: Renamed from chdir.c.
88311         * lib/chdir-long.h: Renamed from chdir.h.
88312         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88313         Hurd.
88314
88315 2005-01-18  Bruno Haible  <bruno@clisp.org>
88316
88317         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88318         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88319         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88320         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88321         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88322         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88323         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88324         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88325         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88326         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88327         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88328         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88329         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88330         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88331         Use an all-permissive copyright notice, recommended by RMS.
88332
88333 2005-01-18  Bob Proulx  <bob@proulx.com>
88334
88335         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88336         simplify offsetof() macro construct to avoid compile failure with
88337         native HP-UX 11.0 ANSI C compiler.
88338
88339 2005-01-17  Bruno Haible  <bruno@clisp.org>
88340
88341         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88342         redundant because stpncpy.m4 takes care of it.
88343
88344 2005-01-17  Bruno Haible  <bruno@clisp.org>
88345
88346         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88347
88348 2005-01-17  Bruno Haible  <bruno@clisp.org>
88349
88350         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88351         used.
88352
88353 2005-01-17  Bruno Haible  <bruno@clisp.org>
88354
88355         * lib/fwriteerror.h (fwriteerror): Change specification to include
88356         fclose.
88357         * lib/fwriteerror.c: Include <stdbool.h>.
88358         (fwriteerror): At the end, close the file stream. Record whether
88359         stdout was already closed.
88360
88361 2005-01-17  Bruno Haible  <bruno@clisp.org>
88362
88363         * lib/execute.c (environ): Declare if needed.
88364         * lib/pipe.c (environ): Likewise.
88365         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88366
88367 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88368
88369         * modules/argp: Depend on vsnprintf
88370
88371 2005-01-10  Jim Meyering  <jim@meyering.net>
88372
88373         * modules/closeout (Depends-on): Add atexit.
88374
88375 2005-01-06  Bruno Haible  <bruno@clisp.org>
88376
88377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88378
88379 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88380
88381         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88382         definitions to be after all include files, to avoid collisions.
88383         Problem reported by Bob Proulx.
88384
88385 2005-01-04  Jim Meyering  <jim@meyering.net>
88386
88387         Changes imported from coreutils.
88388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88389         as the mkstemp template, use a temporary directory and an
88390         8.3-friendly template to avoid trouble on systems like DJGPP.
88391         Reported by Juan M. Guerrero via Stepan Kasal.
88392         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88393         close. Remove the temporary directory right away, rather than waiting
88394         for configure's at-exit trap code to do it.
88395         Suggestion from Stepan Kasal.
88396
88397 2005-01-01  Simon Josefsson  <jas@extundo.com>
88398
88399         * gnulib-tool: Print #include directives when --import'ing.
88400
88401 2004-12-28  Simon Josefsson  <jas@extundo.com>
88402
88403         * tests/test-base64.c: Include required header files.  Remove
88404         unused variables.
88405
88406 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88407
88408         * modules/error (Depends-on): Remove gettext.
88409
88410 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88411
88412         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88413         not needed.  This removes a dependency on the gettext module.
88414         [defined _LIBC]: Do not include <libintl.h>; not needed.
88415
88416 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88417
88418         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88419         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88420
88421 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88422
88423         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88424         HAVE_DECL_STRTOLD.
88425
88426 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88427
88428         * modules/getdate (Depends-on): Remove alloca-opt.
88429
88430 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88431
88432         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88433
88434 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88435
88436         * lib/argp-parse.c: Include <stddef.h>.
88437         (alignof, alignto): New macros.
88438         (parser_init): Don't assume that void * is aligned sufficiently
88439         for struct option.
88440
88441         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88442         need to extend the stack.
88443         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88444         large.
88445
88446 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88447
88448         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88449
88450 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88451
88452         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88453         (2004-10-24) change.  Apparently this was a false alarm.
88454
88455         * modules/getdate: Depend on alloca-opt, not alloca.
88456
88457 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88458
88459         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88460         Remove now-obsolete comment about AIX.
88461         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88462         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88463         (YYMAXDEPTH): New macro.
88464
88465 2004-12-18  Simon Josefsson  <jas@extundo.com>
88466
88467         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88468
88469 2004-12-18  Bruno Haible  <bruno@clisp.org>
88470
88471         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88472
88473 2004-12-18  Bruno Haible  <bruno@clisp.org>
88474
88475         * lib/fatal-signal.c (fatal_signals): Make non-const.
88476         (init_fatal_signals): New function.
88477         (uninstall_handlers, install_handlers): Ignore signals that were set to
88478         SIG_IGN.
88479         (at_fatal_signal): Call init_fatal_signals.
88480         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88481         SIG_IGN.
88482         Reported by Paul Eggert.
88483
88484 2004-12-18  Bruno Haible  <bruno@clisp.org>
88485
88486         * doc/alloca.texi: New file.
88487         * doc/alloca-opt.texi: New file.
88488
88489 2004-12-17  Jim Meyering  <jim@meyering.net>
88490
88491         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88492         Otherwise, install-sh could exit with improper exit status when
88493         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88494
88495 2004-12-16  Simon Josefsson  <jas@extundo.com>
88496
88497         * tests/test-base64.c: Add license.
88498
88499 2004-12-15  Stepan Kasal  <address@hidden>
88500
88501         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88502
88503 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88504
88505         * modules/getcwd (Files): Add m4/d-ino.m4.
88506         Suggested by Mark D. Baushke.
88507
88508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88509
88510         * lib/getdate.y (textint): New member "negative".
88511         (time_zone_hhmm): New function.
88512         Expect 14 shift-reduce conflicts, not 13.
88513         (o_colon_minutes): New rule.
88514         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88515         (yylex): Set the "negative" member of signed numbers.
88516
88517 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88518
88519         * doc/getdate.texi (Time of day items, Time zone items):
88520         Describe new formats +00:00, UTC+00:00.
88521
88522 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88523
88524         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88525         spurious "-l"s.  Problem reported by Stepan Kasal.
88526
88527 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88528
88529         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88530         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88531
88532 2004-12-04  Simon Josefsson  <jas@extundo.com>
88533
88534         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88535         Vandoorselaere <yoann@prelude-ids.org>.
88536
88537 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88538
88539         Changes imported from coreutils.
88540         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88541         exist.
88542         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88543
88544 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88545
88546         Changes imported from coreutils.
88547         * lib/hard-locale.c: Assume <locale.h> exists.
88548         Include "strdup.h".
88549         (GLIBC_VERSION): New macro.
88550         (hard_locale): Assume setlocale exists.
88551         Rewrite to avoid #ifdef.
88552         Use strdup rather than malloc + strcpy.
88553         * lib/human.c: Assume <locale.h> exists.
88554         (human_readable): Assume localeconv exists.
88555
88556 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * modules/hard-locale (Depends-on): Add strdup.
88559
88560 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88561
88562         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88563         convert T2, not T.  (Imported from libc.)
88564
88565 2004-11-30  Simon Josefsson  <jas@extundo.com>
88566
88567         * modules/restrict (License): Change to LGPL.
88568
88569 2004-11-30  Simon Josefsson  <jas@extundo.com>
88570
88571         * m4/restrict.m4: Add copyright and copying conditions.
88572
88573 2004-11-30  Simon Josefsson  <jas@extundo.com>
88574
88575         * m4/base64.m4: New file.
88576
88577 2004-11-30  Simon Josefsson  <jas@extundo.com>
88578
88579         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88580         base64.
88581
88582         * tests/test-base64.c: New file.
88583
88584         * modules/base64: New file.
88585
88586 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88587
88588         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88589         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88590
88591         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88592
88593 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88594
88595         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88596         (__getcwd.c): Don't restore errno; glibc doesn't.
88597         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88598         first, falling back to our code only if its results look suspicious.
88599         Ensure that the resulting buffer is only as large as necessary.
88600
88601         * lib/readutmp.c: Include readutmp.h first.
88602         Include <errno.h>, since readutmp.h no longer does that.
88603         * lib/readutmp.h: Don't include <errno.h>,
88604         <sys/param.h>, <time.h>; not needed to establish interface.
88605         (errno): Remove decl.
88606         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88607         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88608         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88609
88610 2004-11-28  Simon Josefsson  <jas@extundo.com>
88611
88612         * lib/base64.h, base64.c: New file.
88613
88614 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88615
88616         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88617
88618 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88619
88620         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88621         (Depends-on): Remove pathmax, same.  Add mempcpy.
88622         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88623         (Makefile.am): Append getcwd.h to lib_SOURCES.
88624         (Include): Add getcwd.h.
88625         (Maintainer): Change from Jim Meyering to "all, glibc",
88626         since getdate now uses intended-for-glibc code.
88627         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88628         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88629
88630 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88631
88632         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88633         HP's ANSI C compiler.
88634         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88635         Declaring int functions causes warnings on some modern systems and
88636         shouldn't be needed to compile on ancient ones.
88637         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88638         defined.
88639
88640         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88641         with the following changes.
88642         (__set_errno): Parenthesize properly.
88643         Include <stdbool.h>.
88644         (MIN, MAX, MATCHING_INO): New macros.
88645         (__getcwd): Define with prototype, not K&R form.
88646         Use heuristics to allocate default buffer on stack if possible.
88647         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88648         behavior, and to avoid the PATH_MAX limit when computing
88649         ../../../../...
88650         Use MATCHING_INO to compare inode number to file.
88651         Check for arithmetic overflow in size calculations.
88652         Fix bug in reallocation of dot array that caused getcwd to fail
88653         on directories nested deeper than 75.
88654         Be more careful about saving errno on error.
88655         Do not use realloc; use only free+malloc, as this is a bit
88656         more flexible and avoids a needless copy operation.
88657         Do not inspect st_dev and st_ino for symbolic links; POSIX
88658         doesn't specify the latter.
88659         Check for closedir errors.
88660         Avoid needless casts.
88661         Use "#ifdef weak_alias" around weak_alias, to be like other
88662         glibc code.
88663         The following changes to getcwd.c have effect only when used in
88664         gnulib; they have no effect inside glibc proper.
88665         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88666         as alloca isn't used.
88667         (alloca, __alloca): Likewise.
88668         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88669         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88670         unconditionally, as gnulib assumes C89 or better.
88671         Do not include <sys/param.h>.
88672         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88673         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88674         better.
88675         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88676         Include <dirent.h> in a way that is compatible with modern Autoconf.
88677         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88678         New macros, if not already defined.
88679         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88680         Use "_LIBC", not "defined _LIBC", for consistency.
88681         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88682         a mempcpy module.
88683         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88684         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88685         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88686         credit only to Jim Meyering and adjust the copyright dates.
88687         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88688         <stdlib.h>, <unistd.h>, "pathmax.h".
88689         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88690         (INITIAL_BUFFER_SIZE): Remove.
88691         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88692
88693 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88694
88695         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88696         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88697         Use the _ONCE methods, for efficiency.
88698         Check for fcntl.h.  In test program, include <errno.h>
88699         and <fcntl.h> if available.  Remove old K&R cruft from
88700         test program.  Check for common errors in GNU/Linux,
88701         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88702         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88703         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88704         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88705         name accordingly.
88706         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88707         accommodate new getcwd.c.
88708         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88709         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88710         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88711         that's all we need now.
88712
88713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88714
88715         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88716         argp-parse.c depends on getopt internals, that means we should
88717         always use our getopt, to be on the safe side.
88718         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88719         order not to spoil the result of an eventual previous invocation
88720         of gl_GETOPT_SUBSTITUTE.
88721
88722 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88723
88724         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88725         redefinition warnings. To avoid them, include the defines
88726         in `#if !defined __need_getopt ... #endif'. The only place
88727         where __getopt_argv_const is used is in definitions
88728         of getopt_long and getopt_long_only below, which are as well
88729         protected by `#ifndef __need_getopt'.
88730         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88731         __need_getopt after including <stdio.h> and <unistd.h> These
88732         headers might have defined it.
88733
88734 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88735
88736         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88737
88738 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88739
88740         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88741         (futimens): New function, which uses futimes if available.
88742         (futimens, utimens): Support timespec==NULL, with same semantics
88743         as utime and utimens.
88744         * lib/utimens.h (futimens): New decl.
88745
88746 2004-11-23  Jim Meyering  <jim@meyering.net>
88747
88748         * lib/getopt_.h: Remove trailing blanks.
88749
88750 2004-11-23  Jim Meyering  <jim@meyering.net>
88751
88752         * lib/__fpending.c: Add comment.
88753
88754 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88755
88756         * modules/canonicalize (Depends-on): Add xreadlink.
88757         Problem reported by James Youngman.
88758
88759 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88760
88761         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88762         New macros.
88763         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88764         optopt): Use them instead of invoking ## directly; otherwise, the
88765         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88766
88767 2004-11-19  Bruno Haible  <bruno@clisp.org>
88768
88769         * lib/strtok_r.c: Move comments from here...
88770         * lib/strtok_r.h: ... to here.
88771
88772 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88773
88774         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88775         implementations that mishandle size_t overflow.
88776
88777 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88778
88779         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88780         might fail.  Problem reported by Yoann Vandoorselaere.
88781         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88782         implementations that mishandle size_t overflow.
88783
88784 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88785
88786         * modules/canon-host (Depends-on): Add strdup.
88787
88788 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88789
88790         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88791
88792 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88793
88794         * lib/canon-host.c: Include "strdup.h".
88795         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88796         Use strdup instead of malloc/strcpy to duplicate strings.
88797
88798         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88799         (human_space_before_unit): New constant.
88800         * lib/human.c (human_readable): Support it.
88801
88802         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88803         (xgetcwd): Set errno correctly when failing.
88804         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88805         the failure is actually due to a PATH_MAX problem.
88806
88807         Further getopt changes to make it more likely that glibc will
88808         buy the changes back.
88809         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88810         (getopt): Use it, so to preserve glibc semantic
88811         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88812         when compiling for libc.
88813         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88814         (getopt_long, getopt_long_only): Use it.
88815
88816         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88817         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88818         (getopt): Argv is now char * const *, as per standard.
88819         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88820         not char *__getopt_argv_const *.
88821         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88822         _getopt_long_only_r): Likewise.
88823         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88824         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88825         _getopt_long_r, _getopt_long_only_r): Likewise.
88826         * lib/getopt_.h (__getopt_argv_const): Remove.
88827         (getopt): Argv is now char * const *, as per standard.
88828
88829         * lib/getdate.y (tORDINAL): New token.
88830         (day, relunit): Allow it for relative times.
88831         (relative_time_table): Use tORDINAL for ordinals.
88832
88833 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88834
88835         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88836         Document that "second" isn't allowed as an ordinal number.
88837
88838 2004-11-16  Jim Meyering  <jim@meyering.net>
88839
88840         * modules/closeout (Depends-on): Add fpending.
88841
88842 2004-11-15  Jim Meyering  <jim@meyering.net>
88843
88844         * lib/closeout.c: Include "__fpending.h" once again.
88845         Include <stdbool.h>.
88846         (close_stdout): Don't fail just because stdout was closed initially,
88847         since some programs don't write to stdout in the normal course of
88848         operation (other than --version and --help), and we don't want this
88849         function to make e.g. `touch file >&-' fail.
88850         But do fail if it was closed and someone has tried to write to it.
88851         E.g., `printf foo >&-' must fail.
88852
88853 2004-11-13  Jim Meyering  <jim@meyering.net>
88854
88855         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88856
88857 2004-11-12  Simon Josefsson  <jas@extundo.com>
88858
88859         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88860         small doc fix is still pending.
88861
88862 2004-11-11  Simon Josefsson  <jas@extundo.com>
88863
88864         * modules/strtok_r: New file.
88865
88866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88867         strtok_r.
88868
88869 2004-11-11  Simon Josefsson  <jas@extundo.com>
88870
88871         * m4/strtok_r.m4: New file.
88872
88873         * m4/getopt.m4: Replace opterr.
88874
88875 2004-11-11  Simon Josefsson  <jas@extundo.com>
88876
88877         * lib/strtok_r.h, strtok_r.c: New file.
88878
88879 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88880
88881         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88882         of replacing opterr, getopt, etc.  This should handle the
88883         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88884
88885 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88886
88887         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88888         we can stop lying to compilers about the constness of argv when we
88889         are compiled outside glibc.
88890         (getopt, getopt_long, getopt_long_only): Use it.
88891         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88892         _getopt_internal, getopt): Likewise.
88893         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88894         _getopt_long_only_r): Likewise.
88895         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88896         _getopt_long_r, _getopt_long_only_r): Likewise.
88897
88898         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88899         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88900         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88901         the other external symbols.
88902         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88903         declaration, since the above renaming now works around collisions.
88904
88905 2004-11-11  Jim Meyering  <jim@meyering.net>
88906
88907         * lib/linebreak.c: Remove trailing blanks.
88908         * lib/alloca_.h: Likewise.
88909         * lib/acosl.c: Likewise.
88910         * lib/euidaccess.c: Likewise.
88911         * lib/allocsa.h: Likewise.
88912
88913 2004-11-10  Simon Josefsson  <jas@extundo.com>
88914
88915         * m4/getaddrinfo.m4: New file.
88916
88917 2004-11-10  Simon Josefsson  <jas@extundo.com>
88918
88919         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88920
88921 2004-11-10  Simon Josefsson  <jas@extundo.com>
88922
88923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88924         getaddrinfo.
88925
88926         * modules/getaddrinfo: New file.
88927
88928 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88929
88930         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88931
88932 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88933
88934         * lib/mktime.c (SHR): New macro, which is a portable
88935         substitute for >> that should work even on Crays.
88936         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88937         Problem reported by Mark D. Baushke in
88938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88939         * lib/getdate.y (SHR): Likewise.
88940         (tm_diff): Use it.
88941         * lib/strftime.c (SHR): Likewise.
88942         (tm_diff): Use it.
88943         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88944         quote_these_too, so that right shifts are well defined.  All uses
88945         changed.
88946
88947 2004-11-10  Jim Meyering  <jim@meyering.net>
88948
88949         Ensure that no close failure goes unreported.
88950         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88951         return early when it seems there's nothing to flush.
88952         Don't include __fpending.h.
88953
88954 2004-11-10  Jim Meyering  <jim@meyering.net>
88955
88956         * modules/closeout (Depends-on): Remove fpending.
88957
88958 2004-11-10  Jim Meyering  <jim@meyering.net>
88959
88960         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88961
88962 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88963
88964         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88965         gl_FUNC_STRFTIME.
88966         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88967         and AC_REQUIRE when possible, to avoid duplicate checks.
88968         Check for <wchar.h>.
88969
88970 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88973
88974 2004-11-09  Bruno Haible  <bruno@clisp.org>
88975
88976         * m4/sockpfaf.m4: New file.
88977
88978 2004-11-05  Bruno Haible  <bruno@clisp.org>
88979
88980         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88981         Reported by Mark D. Baushke <mdb@cvshome.org>.
88982
88983 2004-11-04  Bruno Haible  <bruno@clisp.org>
88984
88985         2004-09-11  Bruno Haible  <bruno@clisp.org>
88986                 * allocsa.valgrind: New file.
88987         2004-02-06  Bruno Haible  <bruno@clisp.org>
88988                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88989                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88990                 Reported by Christopher Seip <chris.seip@hp.com>.
88991
88992 2004-11-04  Bruno Haible  <bruno@clisp.org>
88993
88994         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88995         (Makefile.am): Distribute it.
88996
88997 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88998
88999         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89000         with errno == ERANGE if the buffer is too small.
89001         Problem reported by Mark D. Baushke.
89002
89003 2004-11-03  Albert Chin  <china@thewrittenword.com>
89004             Paul Eggert  <eggert@cs.ucla.edu>
89005
89006         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89007         equivalent, substitute $ac_type for equivalent type rather than
89008         blindly using uint32_t *always* which won't work if uint32_t is not
89009         available.  Define _UINT32_T to work around typedef of uint32_t if
89010         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89011         2.5.1.
89012
89013 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89014
89015         * m4/jm-macros.m4: Sync from coreutils.
89016         (gl_MACROS): Check for mbrlen, for pathchk.
89017         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89018
89019 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89020
89021         * lib/xreadlink.c (MAXSIZE): New macro.
89022         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89023         size does not exceed MAXSIZE.  Avoid cast.
89024         As suggested by Mark D. Baushke in
89025         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89026         if readlink fails with buffer size just under MAXSIZE, try again
89027         with MAXSIZE.
89028
89029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89030
89031         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89032
89033 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89034         and  Paul Eggert  <eggert@cs.ucla.edu>
89035
89036         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89037         (get_date): Overparenthesize to avoid GCC warning.
89038
89039 2004-11-02  Bruno Haible  <bruno@clisp.org>
89040
89041         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89042         returns void.
89043
89044 2004-11-02  Bruno Haible  <bruno@clisp.org>
89045
89046         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89047         function returns void.
89048
89049 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89050
89051         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89052         fflush_unlocked, flockfile, funlockfile, funlockfile,
89053         fputs_unlocked, putc_unlocked.
89054
89055 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89056
89057         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89058         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89059         already declared.
89060
89061 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89062
89063         * modules/getdate (Files): Add doc/getdate.texi.
89064         (Depends-on): Add setenv, xalloc.
89065
89066 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89067
89068         * lib/getdate.y: Add support for TZ="foo" within a date string.
89069         Fix some bugs near time_t boundaries.  Reject dates with
89070         out-of-range components, e.g., "Sept 31".
89071         Include <stdlib.h>, "setenv.h", "xalloc.h".
89072         (ISDIGIT_LOCALE): Remove; unused.
89073         Note that the TZ and time functions used here are not reentrant.
89074         (mktime_ok, get_tz): New functions.
89075         (TZBUFSIZE): New constant.
89076         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89077         This requires that we sometimes generate our own TZ="XXX..." setting.
89078
89079 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89080
89081         * doc/getdate.texi: New file, from coreutils with modifications for
89082         the new TZ parsing.
89083
89084 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89085
89086         * lib/mktime.c (not_equal_tm): Remove redundant check.
89087
89088 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89089
89090         * modules/regex (lib_SOURCES): Add regex.c.
89091         Reported by James Youngman in
89092         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89093
89094 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89095
89096         * lib/getdate.y: Use Bison 1.875 features, and some minor
89097         code cleanups.  This change does not affect semantics.
89098         Don't include <stdlib.h>; no longer needed.
89099         Don't include unlocked-io.h; only the "#if TEST" code uses
89100         stdio, and performance isn't crucial there.
89101         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89102         Bison 1.875 features as described below.
89103         All uses of "PC." replaced by "pc->".
89104         (YYSTYPE): Add a forward declaration.
89105         (yylex, yyerror): Use full prototypes in forward decls.
89106         Use "%pure-parser" rather than obsolescent "%pure_parser".
89107         Use %parse-param and %lex-param instead of obsolescent
89108         YYPARSE_PARAM and YYLEX_PARAM.
89109         (meridian_table, month_and_day_table, time_units_table,
89110         relative_time_table, time_zone_table, military_table,
89111         lookup_zone, lookup_word, get_date):
89112         Use NULL instead of 0 where appropriate.
89113         (to_hour): Avoid abort (), to avoid a dependency on
89114         stdlib.h.
89115         (yyerror, yylex): Now accepts parser_control * arg.
89116         (main) [TEST]: Use '\0' rather than 0 for char.
89117
89118 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89119
89120         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89121
89122 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89123
89124         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89125         It's now the caller's responsibility to handle the case where
89126         !HAVE_GETPAGESIZE && !defined getpagesize.
89127
89128         * lib/mktime.c (leapyear): Arg is long int, not int.
89129
89130 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89133
89134 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89135
89136         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89137         missing.  Problem reported by James Youngman.
89138
89139 2004-10-16  Simon Josefsson  <jas@extundo.com>
89140
89141         * gnulib-tool: Fix comments.  Fix parse problem.
89142         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89143
89144 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89145
89146         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89147         implementation of getopt_long.  Problem reported by Alexander Taler in:
89148         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89149
89150 2004-10-15  Bruno Haible  <bruno@clisp.org>
89151
89152         * gnulib-tool: Untabify. Initialize supplied_libname.
89153         (func_usage): More homogenous output.
89154         (func_modules_transitive_closure, func_modules_to_filelist,
89155         func_emit_lib_Makefile_am): New functions.
89156         (func_import): New function, extracted from big case statement. Use
89157         func_get_license, func_modules_transitive_closure,
89158         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89159         opt_lgpl. Don't use test -a, as it's not portable.
89160         (func_create_testdir): Use func_modules_transitive_closure,
89161         func_modules_to_filelist, func_emit_lib_Makefile_am.
89162
89163 2004-10-15  Bruno Haible  <bruno@clisp.org>
89164
89165         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89166
89167 2004-10-15  Bruno Haible  <bruno@clisp.org>
89168
89169         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89170         the portions belonging to each module.
89171         Suggested by Derek Robert Price <derek@ximbiot.com>.
89172
89173 2004-10-12  Simon Josefsson  <jas@extundo.com>
89174
89175         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89176         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89177         to real functions.
89178
89179 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89180
89181         * modules/vsnprintf: New file.
89182
89183 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89184
89185         * m4/vsnprintf.m4: New file.
89186
89187 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89188
89189         * lib/vsnprintf.h: New file.
89190         * lib/vsnprintf.c: New file.
89191
89192 2004-10-11  Bruno Haible  <bruno@clisp.org>
89193
89194         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89195         vsnprintf.
89196
89197 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89198
89199         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89200
89201 2004-10-07  Bruno Haible  <bruno@clisp.org>
89202
89203         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89204         fits into the provided buffer.
89205
89206 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89207
89208         * lib/diacrit.c, diacrit.h: Add GPL notice.
89209
89210         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89211         notice.
89212         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89213         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89214         This avoids a potential constant-folding bug.
89215
89216 2004-10-05  Bruno Haible  <bruno@clisp.org>
89217
89218         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89219         for the declaration of strsep.
89220
89221 2004-10-05  Bruno Haible  <bruno@clisp.org>
89222
89223         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89224
89225 2004-10-04  Simon Josefsson  <jas@extundo.com>
89226
89227         * modules/memmem: New file.
89228         * tests/test-memmem.c: New file.
89229         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89230
89231 2004-10-04  Simon Josefsson  <jas@extundo.com>
89232
89233         * m4/memmem.m4: New file.
89234
89235 2004-10-04  Simon Josefsson  <jas@extundo.com>
89236
89237         * lib/memmem.h: New file.
89238         * lib/memmem.c: New file, taken from glibc.
89239
89240 2004-10-04  Simon Josefsson  <jas@extundo.com>
89241
89242         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89243         '#ifdef USE_UNLOCKED_IO'.
89244
89245 2004-10-04  Simon Josefsson  <jas@extundo.com>
89246
89247         * config/srclist.txt: Add memmem from glibc.
89248
89249 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89250
89251         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89252
89253         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89254         modules/exclude, modules/getdate, modules/getline,
89255         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89256         modules/getusershell, modules/linebuffer, modules/md5,
89257         modules/mountlist, modules/posixtm, modules/readtokens,
89258         modules/readutmp, modules/regex, modules/sha1,
89259         modules/version-etc, modules/yesno:
89260         Remove dependency on unlocked-io.
89261
89262 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89263
89264         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89265
89266         * m4/unlocked-io.m4: Add copyright notice.
89267         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89268
89269 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89270
89271         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89272         * lib/xmalloc.c (xmemdup): Likewise.
89273         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89274         XFREE): Remove these long-obsolescent macros.
89275         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89276         * lib/xstrdup.c: Remove.
89277
89278         * lib/regex.c (re_comp): Cast gettext return value to char *,
89279         Problem reported by Martin Neitzel via Mark D. Baushke.
89280
89281 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89282
89283         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89284         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89285         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89286         regex.c, sha1.c, version-etc.c, yesno.c:
89287         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89288         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89289         the includer's responsibility.
89290
89291         Sync from coreutils.
89292
89293         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89294         points to the start of a string, as the C Standard says the
89295         resulting behavior is undefined.
89296
89297         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89298         simple -> simple_backups, numbered_existing ->
89299         numbered_existing_backups, numbered -> numbered_backups
89300         to avoid shadowing problems.  All uses changed.
89301         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89302         * lib/backupfile.c (check_extension, numbered_backup):
89303         Rename locals to avoid shadowing 'basename'.
89304         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89305         once.
89306
89307         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89308         * lib/.cvsignore: Add getopt.h.
89309
89310 2004-10-04  Bruno Haible  <bruno@clisp.org>
89311
89312         * modules/README: New file.
89313         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89314         not a module.
89315
89316 2004-10-02  Jim Meyering  <jim@meyering.net>
89317
89318         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89319
89320 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89321
89322         * modules/strsep: New file.
89323
89324 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89325
89326         * m4/strsep.m4: New file.
89327
89328 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89329
89330         * lib/strsep.h: New file.
89331         * lib/strsep.c: New file.
89332
89333 2004-10-01  Simon Josefsson  <jas@extundo.com>
89334
89335         * lib/snprintf.c (snprintf): Handle size==0.
89336
89337 2004-10-01  Simon Josefsson  <jas@extundo.com>
89338             Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89341         (snprintf): Declare 'args'.
89342
89343 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89344
89345         * lib/snprintf.c: Remove comments as to why each header is needed.
89346
89347 2004-10-01  Bruno Haible  <bruno@clisp.org>
89348
89349         * MODULES.html.sh: Add strsep.
89350
89351 2004-09-30  Simon Josefsson  <jas@extundo.com>
89352
89353         * modules/snprintf: New file.
89354
89355 2004-09-30  Simon Josefsson  <jas@extundo.com>
89356
89357         * m4/snprintf.m4: New file.
89358
89359 2004-09-30  Simon Josefsson  <jas@extundo.com>
89360
89361         * lib/snprintf.h, lib/snprintf.c: New files.
89362
89363 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89364
89365         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89366         (hol_entry_help): Never translate an empty string.
89367         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89368         * lib/argp.h (OPTION_NO_TRANS): New option.
89369
89370 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89371
89372         * modules/argp (Maintainer): Replace Simon Josefsson
89373         by Sergey Poznyakoff.
89374
89375 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89376
89377         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89378         changes merged back into glibc.
89379
89380 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89381
89382         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89383
89384 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89385
89386         * lib/xvasprintf.c: Include xalloc.h.
89387         (xvasprintf): Use xalloc_die, not xmalloc_die.
89388
89389 2004-09-29  Bruno Haible  <bruno@clisp.org>
89390
89391         * modules/alloca-opt: New file, derived from modules/alloca.
89392         * modules/allocsa: Depend on alloca-opt instead of alloca.
89393         * modules/setenv: Likewise.
89394         * modules/vasnprintf: Likewise.
89395         * MODULES.html.sh: Add alloca-opt.
89396
89397 2004-09-28  Simon Josefsson  <jas@extundo.com>
89398
89399         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89400         LGPL, and to replace license template from GPL to LGPL.
89401
89402 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89403
89404         * modules/dummy: Change license to LGPL.
89405
89406 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89407
89408         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89409
89410 2004-09-24  Simon Josefsson  <jas@extundo.com>
89411
89412         * modules/minmax (License): Change from GPL to LGPL.
89413
89414 2004-09-23  Simon Josefsson  <jas@extundo.com>
89415
89416         * gnulib-tool (--import): Typo.
89417
89418 2004-09-23  Simon Josefsson  <jas@extundo.com>
89419
89420         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89421
89422 2004-09-22  Bruno Haible  <bruno@clisp.org>
89423
89424         * modules/*: Add 'License' field.
89425         * gnulib-tool: Accept --extract-license option.
89426         (func_get_license): New function.
89427
89428 2004-09-21  Bruno Haible  <bruno@clisp.org>
89429
89430         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89431         Reported by Simon Josefsson.
89432
89433 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89434
89435         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89436         gl_AC_TYPE_LONG_LONG.
89437
89438 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89439
89440         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89441
89442 2004-09-18  Simon Josefsson  <jas@extundo.com>
89443         and  Paul Eggert  <eggert@cs.ucla.edu>
89444
89445         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89446         calls with autoreconf.  Define GL_LIB.
89447
89448 2004-09-14  Karl Berry  <karl@gnu.org>
89449
89450         * config/srclist.txt: unsync setenv.c, sigh.
89451
89452 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89453
89454         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89455         Problem reported by Bruno Haible in:
89456         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89457
89458 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89459
89460         * config/srclist.txt: Comment out argp-pvh.c.
89461
89462 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89463
89464         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89465         in case some system header has #define'd it.  Problem reported by
89466         Soeren D. Schulze in
89467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89468
89469 2004-09-09  Karl Berry  <karl@gnu.org>
89470
89471         * regex.[ch]: delete from the root.  These were supposed to be
89472                 synced with emacs cvs, but this has not happened for about
89473                 a year, and anyway nothing else uses emacs regex.[ch].
89474                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89475                 lib/regex[.ch] is untouched.
89476
89477 2004-09-09  Bruno Haible  <bruno@clisp.org>
89478
89479         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89480
89481 2004-09-09  Bruno Haible  <bruno@clisp.org>
89482
89483         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89484         modifications.
89485         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89486
89487 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89488
89489         * modules/xvasprintf: New file.
89490         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89491
89492 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89493
89494         * lib/xvasprintf.h: New file.
89495         * lib/xvasprintf.c: New file.
89496         * lib/xasprintf.c: New file.
89497
89498 2004-09-08  Bruno Haible  <bruno@clisp.org>
89499
89500         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89501
89502 2004-09-08  Bruno Haible  <bruno@clisp.org>
89503
89504         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89505         length is > INT_MAX.
89506         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89507         more.
89508
89509 2004-09-08  Bruno Haible  <bruno@clisp.org>
89510
89511         * lib/stdint_.h: New file, taken from GNU clisp.
89512
89513 2004-09-08  Bruno Haible  <bruno@clisp.org>
89514             Oskar Liljeblad  <oskar@osk.mine.nu>
89515
89516         * modules/stdint: New file.
89517         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89518
89519 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89520
89521         Import from coreutils.
89522         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89523         strings on unbounded length.  alloca's performance benefits aren't
89524         that important here.
89525         (V_STRDUP): Remove.
89526         (parse_with_separator): New function, with most of the internals
89527         of the old parse_user_spec.  Allow user to omit both user and group,
89528         for compatibility with FreeBSD.
89529         Clone only the user name, not the entire spec.
89530         Do not set *uid, *gid unless entirely successful.
89531         Avoid memory leak in some failing cases.
89532         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89533         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89534         (parse_user_spec): Rewrite to use parse_with_separator.
89535
89536 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89537
89538         * modules/userspec: Don't depend on alloca.
89539
89540 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89541
89542         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89543
89544 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89545
89546         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89547         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89548         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89549
89550 2004-08-16  Simon Josefsson  <jas@extundo.com>
89551
89552         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89553         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89554         Add --dry-run for --import.
89555         Let user provided command line parameters override configure.ac
89556         settings.
89557
89558 2004-08-12  Simon Josefsson  <jas@extundo.com>
89559
89560         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89561         as discussed with Paul Eggert in threads rooted at
89562         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89563         and
89564         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89565         Before, the test was empty, and relied on ELIDE_CODE in source
89566         code.)
89567         (gl_PREREQ_GETOPT): New macro.
89568         (gl_GETOPT): Use them.
89569
89570 2004-08-12  Simon Josefsson  <jas@extundo.com>
89571
89572         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89573         * lib/getopt_.h: Renamed from getopt.h.
89574
89575 2004-08-12  Simon Josefsson  <jas@extundo.com>
89576
89577         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89578         Change default library name from libfoo to libgnu.
89579         Now, if you have a configure.ac that says:
89580                 gl_SOURCE_BASE(gl)
89581                 gl_M4_BASE(gl/m4)
89582                 gl_MODULES(error getopt etcetera)
89583                 gl_INIT
89584         you can import all you need by running:
89585                 ../gnulib/gnulib-tool --import
89586
89587         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89588         (Makefile.am): Rewrite, use logic from argz.
89589         (Include): Use <getopt.h> instead of "getopt.h".
89590
89591 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89592
89593         * modules/argp (Files): Add m4/unlocked-io.m4.
89594         (Depends-on): Add extensions.
89595
89596 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89597
89598         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89599         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89600         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89601         Check for program_invocation_name, program_invocation_short_name,
89602         flockfile, funlockfile, features.h, _getopt_long_only_r.
89603
89604 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89605
89606         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89607         its complicated substitute.
89608         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89609         and program_invocation_name.
89610         (__argp_basename) [!_LIBC]: Remove; the only use was
89611         replaced by its body.
89612         (__argp_short_program_name): Change condition from
89613         !defined __argp_short_program_name to
89614         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89615         to match argp-namefrob.h.
89616         (__argp_failure): Don't assume strerror_r returns char *.
89617         * lib/argp-parse.c (N_): Define unconditionally.
89618         (argp_default_options): Fill out initializers with 0 to avoid
89619         gcc warnings.
89620
89621 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89622
89623         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89624         getopt1.c.
89625
89626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89627
89628         Merge from coreutils.
89629
89630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89631
89632         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89633         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89634
89635 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89636
89637         Merge from coreutils.
89638
89639         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89640         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89641         for Reliant Unix 5.43.
89642
89643         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89644         (union fooround): Use uintmax_t, not long int.
89645         The rest is a merge from libc:
89646         [defined _LIBC]: Include <shlib-compat.h>.
89647         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89648
89649         * lib/settime.c (settime): Recode to avoid warning with
89650         Sun Forte C 6U2.
89651
89652         * lib/strverscmp.c: Convert to UTF-8.
89653
89654 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89655
89656         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89657         m4/uintmax_t.m4.
89658
89659 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89660
89661         * modules/xalloc-die: New file.
89662         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89663
89664         * modules/md5 (Files): Add m4/uint32_t.m4.
89665         * modules/sha1: Renamed from modules/sha.
89666         (Files):
89667         Rename lib/sha.h to lib/sha1.h.
89668         Rename lib/sha.c to lib/sha1.c.
89669         Rename m4/sha.m4 to m4/sha1.m4.
89670         (lib_SOURCES): Likewise.
89671         (configure.ac): Rename gl_SHA to gl_SHA1.
89672         (Include): sha.h -> sha1.h.
89673
89674 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89675
89676         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89677         * m4/sha1.m4: Renamed from sha.m4.
89678         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89679
89680 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89681
89682         * lib/obstack.h (obstack_empty_p):
89683         Don't assume that chunk->contents is suitably aligned.
89684         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89685         Likewise. Problem reported by Benno in
89686         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89687
89688         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89689         readable.  This could be improved further but it'd take some work.
89690
89691 2004-08-08  Simon Josefsson  <jas@extundo.com>
89692
89693         * modules/xgethostname (Depends-on): Remove exit and error (not
89694         used).
89695
89696         * modules/getpass-gnu: Add getpass.h.
89697         (Depends-on): Add stdbool.
89698         * modules/getpass: Add getpass.h.
89699
89700 2004-08-08  Simon Josefsson  <jas@extundo.com>
89701
89702         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89703         Check getpass declaration.
89704
89705 2004-08-08  Simon Josefsson  <jas@extundo.com>
89706
89707         * lib/xgethostname.c: Don't include error.h (not used).
89708
89709         * lib/getpass.h: Add.
89710         * lib/getpass.c: Include getpass.h first.
89711
89712 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89713
89714         * lib/xalloc-die.c: New file.
89715         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89716         All uses removed.
89717         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89718         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89719         xalloc-die.c.
89720         (_, N_, xalloc_die): Move to xalloc-die.c.
89721         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89722         so that we needn't mess with xalloc_msg_memory_exhausted.
89723
89724         * lib/sha1.h: Renamed from sha.h.
89725         (SHA1_H): Renamed from _SHA_H.
89726         (sha1_ctx): Renamed from sha_ctx.
89727         (sha1_init_ctx): Renamed from sha_init_ctx.
89728         (sha1_process_block): Renamed from sha_process_block.
89729         (sha1_process_bytes): Renamed from sha_process_bytes.
89730         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89731         (sha1_read_ctx): Renamed from sha_read_ctx.
89732         (sha1_stream): Renamed from sha_stream.
89733         (sha1_buffer): Renamed from sha_buffer.
89734         * lib/sha1.c: Likewise; renamed from sha.c.
89735         Do not include <sys/types.h>.
89736         Include <stddef.h> rather than <stdlib.h>.
89737
89738 2004-08-08  Bruno Haible  <bruno@clisp.org>
89739
89740         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89741         FILESYSTEM_PREFIX_LEN.
89742         * lib/progreloc.c: Likewise.
89743         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89744
89745 2004-08-06  Simon Josefsson  <jas@extundo.com>
89746
89747         * modules/progname (Depends-on): Don't depend on stdbool.
89748
89749 2004-08-06  Simon Josefsson  <jas@extundo.com>
89750
89751         * modules/getsubopt: New file.
89752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89753         getsubopt.
89754
89755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89756
89757         More merge from coreutils.
89758
89759         * m4/utimens.m4, m4/utimecmp.m4: New files.
89760         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89761         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89762         prereq.m4, sha.m4: Import changes from coreutils.
89763
89764 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89765
89766         More merge from coreutils.
89767         * modules/raise, modules/readtokens0, modules/utimens:
89768         * modules/utimecmp, module/xnanosleep: New files.
89769         * modules/strftime: Add lib/strftime.h.
89770         Change include from <time.h> to "strftime.h".
89771         * modules/yesno: Add lib/yesno.h.
89772         * modules/backupfile: Remove lib/addext.c.
89773         * modules/euidaccess: Add stat-macros.h.
89774         * modules/canonicalize, modules/euidaccess,
89775         modules/filemode, modules/lchown, modules/makepath,
89776         modules/rmdir, modules/stat: Likewise.
89777
89778 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89779
89780         Merge from tar.
89781         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89782         SIZE_MAX is a valid preprocessor constant.
89783         (__argp_basename): Change from "#ifndef _LIBC"
89784         to "#ifndef __argp_short_program_name", so that
89785         we don't compile these functions for tar.
89786
89787         More merges from coreutils.
89788         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89789         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89790         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89791         * lib/addext.c: Remove; no longer needed.
89792         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89793         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89794         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89795         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89796         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89797         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89798         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89799         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89800         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89801         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89802         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89803         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89804         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89805         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89806         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89807         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89808         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89809         Import changes from coreutils.
89810
89811 2004-08-05  Simon Josefsson  <jas@extundo.com>
89812
89813         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89814
89815 2004-08-05  Simon Josefsson  <jas@extundo.com>
89816
89817         * m4/getsubopt.m4: New file.
89818
89819 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89820
89821         Merge from coreutils.
89822
89823         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89824         * m4/getcwd-path-max.m4: New files.
89825
89826         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89827         FILESYSTEM_PREFIX_LEN ->
89828         FILE_SYSTEM_PREFIX_LEN.
89829         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89830         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89831         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89832         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89833
89834         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89835         prerequisite modules now handle the DOS stuff.
89836         Don't check for unistd.h.
89837
89838 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89839
89840         Merge from coreutils.
89841
89842         * lib/.gdb-history: Remove; this doesn't belong here.
89843
89844         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89845         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89846         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89847         * lib/getcwd.c: New files.
89848
89849         * lib/dirname.h: Include <stdbool.h>.
89850         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89851         for consistency with POSIX terminology.  All uses changed.
89852         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89853         (strip_trailing_slashes): Use bool for booleans.
89854         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89855
89856         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89857         sometimes returns a positive errno value even when it succeeds.
89858         (print_errno_message) [!LIBC]: Fall back on strerror if
89859         __strerror_r fails.
89860
89861         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89862         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89863         (longest_relative_suffix): New function.
89864         (path_concat): Use it.  Assume first argument is not NULL.
89865         Port to DOS.  Omit redundant separators.
89866         Report an error instead of returning NULL.
89867         Use mempcpy instead of memcpy.
89868         (xpath_concat): Remove: not declared or used.
89869
89870         * lib/same.h: Include <stdbool.h>
89871         (same_name): Return bool, not int.
89872         * lib/same.c (same_name): Likewise.
89873         (errno): Don't declare; we assume C89 or better now.
89874
89875         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89876         if not already defined.
89877
89878         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89879         * lib/dup-safer.c (errno): Likewise.
89880
89881 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89882
89883         Merge from coreutils.
89884         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89885         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89886         * modules/path-concat: Don't depend on strdup.
89887
89888 2004-08-03  Simon Josefsson  <jas@extundo.com>
89889
89890         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89891         * lib/progname.h: Don't include stdbool.h.
89892
89893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89894
89895         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89896         * MODULES.html.sh (func_all_modules): Remove fatal.
89897
89898 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89899
89900         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89901
89902 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89903
89904         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89905         working.
89906
89907 2004-08-02  Simon Josefsson  <jas@extundo.com>
89908
89909         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89910         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89911         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89912
89913 2004-08-01  Simon Josefsson  <jas@extundo.com>
89914
89915         * lib/xgetdomainname.c: Include stdlib.h, for free().
89916
89917 2004-07-19  Bruno Haible  <bruno@clisp.org>
89918
89919         * MODULES.html.sh (func_all_modules): Add dummy.
89920
89921 2004-07-16  Simon Josefsson  <jas@extundo.com>
89922
89923         * modules/dummy: New file.
89924
89925 2004-07-16  Simon Josefsson  <jas@extundo.com>
89926
89927         * lib/dummy.c: New file.
89928
89929 2004-07-16  Bruno Haible  <bruno@clisp.org>
89930
89931         * lib/backupfile.h: Add extern "C" for C++.
89932         * lib/closeout.h: Likewise.
89933         * lib/copy-file.h: Likewise.
89934         * lib/findprog.h: Likewise.
89935         * lib/full-write.h: Likewise.
89936         * lib/pathname.h: Likewise.
89937         * lib/progname.h: Likewise.
89938         * lib/stpcpy.h: Likewise.
89939         * lib/stpncpy.h: Likewise.
89940         * lib/strcase.h: Likewise.
89941         * lib/strstr.h: Likewise.
89942         * lib/xalloc.h: Likewise.
89943
89944         * lib/mbswidth.h: Add extern "C" for C++.
89945         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89946
89947 2004-07-13  Robert Millan  <robertmh@gnu.org>
89948
89949         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89950
89951 2004-07-09  Simon Josefsson  <jas@extundo.com>
89952
89953         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89954         failed without this.)
89955
89956 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89957
89958         * modules/chown (Files): Add lib/fchown-stub.c, since
89959         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89960
89961 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89962
89963         * lib/fchown-stub.c: New file.
89964
89965 2004-06-24  Jim Meyering  <jim@meyering.net>
89966
89967         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89968
89969 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89970
89971         * modules/argz: Omit "#include".
89972
89973         * MODULES.html.sh (func_all_modules): Add calloc, to match
89974         2004-06-01 addition of calloc module.
89975
89976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89977
89978         * m4/argz.m4: New file, which is autoupdated from libtool.
89979
89980 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89981
89982         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89983         libtool.
89984
89985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89986
89987         * config/srclist-update: Don't insist on "USA." before the
89988         close-comment, as libtool omits the period and puts the */ on a
89989         separate line.
89990         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89991         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89992
89993 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89994
89995         * modules/argz: New file.
89996         * MODULES.html.sh (func_all_modules): Add argz.
89997
89998 2004-06-12  Jim Meyering  <jim@meyering.net>
89999         and  Paul Eggert  <eggert@cs.ucla.edu>
90000
90001         * modules/hash (Files): Add lib/xalloc.h.
90002         * modules/pipe (Depends-on): Add wait-process.
90003         * modules/stat (Depends-on): Add xalloc.
90004         * modules/userspec (Files): Add lib/userspec.h.
90005         * modules/xstrto
90006
90007         Upgrade from gettext-0.13.
90008         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90009         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90010         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90011
90012 2004-06-10  Jim Meyering  <jim@meyering.net>
90013
90014         * lib/calloc.c: New file.
90015
90016 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90017
90018         * lib/getdate.y (yylex): Allow space between sign and number.
90019         Problem reported by Dan Jacobson.
90020
90021 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90022
90023         Merge from coreutils CVS.
90024
90025         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90026         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90027         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90028         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90029         xstrtol.m4: Fix copyright date and/or serial number.
90030
90031         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90032         See if we need an fchown replacement.
90033         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90034         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90035         and use the replacement function if we detect either defect.
90036
90037         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90038         gl_UTIMECMP.
90039
90040 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90041         and  Jim Meyering  <jim@meyering.net>
90042
90043         Merge from coreutils CVS.
90044
90045         * lib/stat-macros.h: New file, with contents from file-type.h
90046         and coreutils' system.h.
90047         * lib/file-type.c: Include "stat-macros.h".
90048         * lib/file-type.h (file_type): Move all macro definitions to new file,
90049         stat-macros.h.
90050
90051         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90052         Wrap old code with this conditional.
90053         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90054         function that does not dereference symlinks.
90055         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90056
90057         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90058         dependency problems.
90059         (xreadlink): Accept new arg SIZE, for efficiency.
90060         All decls and uses changed.
90061         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90062
90063         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90064         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90065
90066         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90067         sysexits.h.
90068
90069 2004-06-01  Jim Meyering  <jim@meyering.net>
90070
90071         * m4/calloc.m4: New file.
90072
90073 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90074
90075         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90076         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90077         Also, fix a typo in a diagnostic.
90078
90079 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90080
90081         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90082         or AC_FUNC_REALLOC.
90083
90084 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90085
90086         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90087         macros to be defined.
90088         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90089         the allocator returns NULL because the requested size is zero.
90090
90091 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90092
90093         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90094         var.  Add comment explaining why libc still defines it.  This
90095         merges the following patch from glibc:
90096         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90097
90098 2004-05-20  Andreas Schwab  <schwab@suse.de>
90099
90100         * m4/free.m4: Replace free if it not known to work, not the other
90101         way round.
90102
90103 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90104
90105         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90106         present in glibc since revision 1.1 of this file.
90107         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90108         obstack_alignment_mask, obstack_alloc, obstack_base,
90109         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90110         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90111         obstack_grow0, obstack_init, obstack_int_grow,
90112         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90113         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90114         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90115         nonexistent functions.
90116
90117 2004-05-18  Karl Berry  <karl@gnu.org>
90118
90119         * config/srclist.txt: break link for vasnprintf.c.
90120
90121 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90122
90123         Port obstack to the AS/400, where pointers are 16 bytes wide and
90124         you cannot cast an integer to a valid pointer.  This patch is
90125         currently waiting to be integrated into glibc; see
90126         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90127
90128         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90129         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90130         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90131         (struct obstack): temp member is now a union of a pointer and
90132         an integer, instead of an integer.  All integer uses changed.
90133         This does not affect the physical layout of struct obstack,
90134         except on hosts (like the AS/400) where the size or alignment of
90135         void * is greater than that of ptrdiff_t.
90136         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90137         __STDC__)]: Store temporary in pointer member of union, not
90138         integer member.
90139         * lib/obstack.c: Include <stddef.h>, for offsetof.
90140         (struct fooalign): Remove; it doesn't need a name.
90141         (union fooround): Change double to long double, and add void *.
90142         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90143         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90144         not a macro.  Hence the values are always int; so remove all
90145         casts-to-int in uses.
90146
90147 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90148
90149         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90150         we can get this patch merged into glibc.
90151
90152 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90153             Paul Eggert  <eggert@cs.ucla.edu>
90154
90155         * m4/argp: Depend on alloca.
90156
90157 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90158             Paul Eggert  <eggert@cs.ucla.edu>
90159
90160         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90161         freecoding.
90162
90163 2004-05-17  Bruno Haible  <bruno@clisp.org>
90164
90165         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90166         precision that consists of a '.' followed by an empty digit string.
90167         Patch by Tor Lillqvist <tml@iki.fi>.
90168
90169 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90170
90171         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90172         for backward compatibility with older code.  We need our own
90173         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90174         it under some other name, and our alloca.h will define it.
90175
90176 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90177             Derek Price  <derek@ximbiot.com>
90178
90179         * lib/alloca.c: Include <alloca.h>, to get our interface.
90180         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90181         include <alloca.h> first.  Use C89 prototype for alloca; this
90182         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90183         Use #elif for simplicity, since we can assume C89 now.
90184         Don't try to source the system alloca.h since it will not be found
90185         and to prevent recursively including its replacement.
90186         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90187         * lib/regex.c: Likewise.
90188
90189 2004-05-16  Derek Price  <derek@ximbiot.com>
90190             Paul Eggert  <eggert@cs.ucla.edu>
90191
90192         getline cleanup.  This changes the getndelim2 API: both order of
90193         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90194         no delimiter).
90195
90196         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90197         interface does that.
90198         (getline): Always use getdelim, so that we don't have two
90199         copies of this code.
90200         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90201         if available.
90202         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90203         (GETNDELIM2_MAXIMUM): New macro.
90204         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90205         instead of the old practice of delim2==0.  All callers changed.
90206         Return -1 on overflow, instead of returning junk.
90207         Do not set *linesize unless allocation succeeds.
90208         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90209         that we include sys/types.h.
90210         * lib/getnline.h: Likewise.
90211         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90212         (getndelim2): Reorder arguments.
90213         * lib/getnline.c (getnline, getndelim):
90214         Don't discard the NMAX argument.
90215         (getnline): Invoke getndelim, to avoid code duplication.
90216         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90217         of (size_t) -1 by callers of the getnline family.
90218
90219 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90220
90221         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90222         Check for gettimeofday.
90223         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90224         Check for settimeofday, stime.
90225
90226 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90227
90228         * lib/nanosleep.c (suspended): Change its type from int to
90229         sig_atomic_t volatile.
90230         (first_call): Make it private to rpl_nanosleep, and have it
90231         be zero initially as that's a bit faster.
90232         (my_usleep): Round up fractional times instead of truncating them,
90233         as this is the usual meaning for 'sleep'.
90234
90235         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90236         doesn't work.
90237         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90238         (ENOSYS): Define if not defined.
90239         (settime): Fall back on stime if it exists and settimeofday fails.
90240         But don't bother with fallbacks if a method fails with errno == EPERM.
90241
90242 2004-05-11  Jim Meyering  <jim@meyering.net>
90243
90244         Prior to this change, the save_cwd caller required read access to the
90245         current directory on most systems (ones with the fchdir function).
90246
90247         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90248         fails, try write-only, and finally, resort to using xgetcwd.
90249
90250 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90251
90252         * lib/obstack.c, obstack.h: Import changes from libc.
90253
90254 2004-04-28  Bruno Haible  <bruno@clisp.org>
90255
90256         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90257         also implicitly appends .exe to executables.
90258         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90259         accepts Windows pathnames.
90260         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90261         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90262         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90263         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90264         Reported by Derek Robert Price <derek@ximbiot.com>.
90265
90266 2004-04-21  Karl Berry  <karl@gnu.org>
90267
90268         * config/srclist.txt (localcharset.c): break sync.
90269
90270 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90271
90272         * m4/host-os.m4: Add a copyright notice.
90273
90274 2004-04-20  Jim Meyering  <jim@meyering.net>
90275
90276         Change UTILS_ to gl_ in AC_DEFINE'd names.
90277         Change utils_- and jm_-prefixed variables, too.
90278         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90279         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90281
90282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90283         Don't emit trailing blanks.
90284         Also rename jm_-prefixed variables to have gl_ prefix.
90285
90286         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90287         Also rename jm_-prefixed variables to have gl_ prefix.
90288
90289         * m4/jm-macros.m4: Reflect the renamings.
90290         * m4/prereq.m4: Likewise.
90291
90292 2004-04-20  Jim Meyering  <jim@meyering.net>
90293
90294         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90295         memory.
90296
90297 2004-04-20  Jim Meyering  <jim@meyering.net>
90298             Bruno Haible  <bruno@clisp.org>
90299
90300         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90301         memory when realloc fails.
90302
90303 2004-04-19  Jim Meyering  <jim@meyering.net>
90304
90305         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90306         now that readutmp.c may call `free (0)'.
90307
90308 2004-04-19  Bruno Haible  <bruno@clisp.org>
90309
90310         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90311         * m4/inttypes_h.m4: Likewise.
90312         * m4/stdint_h.m4: Likewise.
90313         * m4/intmax_t.m4: Likewise.
90314         * m4/uintmax_t.m4: Likewise.
90315
90316 2004-04-18  Jim Meyering  <jim@meyering.net>
90317
90318         * m4/prereq.m4: Don't forbid jm_ prefix.
90319
90320         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90321         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90322         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90323         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90324         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90325         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90326         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90327         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90328         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90329         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90330         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90331         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90332         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90333         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90334         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90335         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90336         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90337         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90338         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90339
90340 2004-04-18  Jim Meyering  <jim@meyering.net>
90341
90342         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90343         failure, don't leak memory and do call END_UTMP_ENT.
90344
90345 2004-04-16  Jim Meyering  <jim@meyering.net>
90346
90347         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90348         coreutils' stat program.
90349         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90350
90351 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90352
90353         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90354         C89.
90355         (CHAR_BIT): Remove, since we assume C89.
90356         Include <stdint.h> if available, as per current Autoconf CVS advice.
90357
90358 2004-03-31  Jim Meyering  <jim@meyering.net>
90359
90360         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90361         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90362         * m4/xalloc.m4: Likewise.
90363
90364 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90365
90366         Merge from coreutils.
90367
90368         * m4/inttostr.m4: New file.
90369         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90370         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90371         Require gl_CLOCK_TIME.
90372         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90373
90374 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90375
90376         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90377         not bool, to be more consistent with Unix conventions.
90378         Suggested by Bruno Haible.
90379
90380         Merge from coreutils.
90381
90382         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90383         * lib/umaxtostr.c: New files.
90384
90385         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90386         the usual <time.h> dance.
90387         (get_date): Change signature to support fractional time stamps.
90388         All callers changed.
90389         * lib/getdate.y: Include "getdate.h" first, as we can now
90390         assume C89 and don't need to worry about 'const'.
90391         Similarly, include "unlocked-io.h" near start, not in middle.
90392         Include <limits.h>.
90393         (textint.value): Use long int rather than int.
90394         (textint.digits): Use size_t rather than int.
90395         (BILLION, LOG10_BILLION): New constants.
90396         (parser_control): New member rel_ns.  Members day_ordinal,
90397         time_zone, month, day, hour, minutes, rel_year, rel_month,
90398         rel_day, rel_hour, rel_minutes, rel_seconds
90399         are now long int, not int.  Member seconds is now struct timespec,
90400         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90401         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90402         not int.
90403         (%union.intval): Now long int, not int.
90404         New member timespec.
90405         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90406         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90407         (spec): Now is a timespec or an item list.
90408         (timespec, items): New nonterminals.
90409         (time, rel, relunit, number, get_date):
90410         Add support for fractional seconds.
90411         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90412         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90413         (to_hour): First arg is now long int, not int.
90414         (to_year): Returns long int, not int.
90415         Don't treat year -70 like 70.
90416         (tm_diff): Returns long int, not int.
90417         (lookup_word): Use bool instead of int when appropriate.
90418         (yylex): Use size_t for count, not int.
90419         Detect overflow when parsing large integer constants.
90420         Add support for fractions.
90421         (get_date): Make pointers 'const' if possible.
90422         Use more-portable code to detect integer overflow.
90423         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90424         Don't use ctime; it's not reliable if the year has >4 digits.
90425
90426         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90427         This is for compatibility with BSD.
90428
90429         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90430         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90431         From coreutils' system.h.
90432
90433         * lib/userspec.c: Don't include "posixver.h".
90434         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90435         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90436         compatible extension.  Simplify code by removing a boolean int
90437         that was always nonzero if a string was nonnull.
90438
90439 2004-03-30  Jim Meyering  <jim@meyering.net>
90440
90441         Merge from coreutils.
90442
90443         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90444         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90445         on some systems one must include <grp.h> before it.
90446         Reported by Christian Krackowizer.
90447
90448 2004-03-30  Jim Meyering  <jim@meyering.net>
90449
90450         Merge from coreutils.
90451
90452         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90453
90454         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90455         an empty input stream.
90456
90457         * lib/readtokens.c: Include <stdbool.h>.
90458         (readtoken): Use `size_t' rather than int/long.
90459         All callers adjusted.
90460         Use `bool' rather than `int' where appropriate.
90461         Use memset rather than an explicit loop.
90462         Use x2nrealloc rather than xrealloc.
90463         Allow the use of `\0' as a delimiter.
90464         (readtokens): Likewise.
90465         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90466
90467 2004-03-30  Jim Meyering  <jim@meyering.net>
90468
90469         * m4/realloc.m4: Remove file, since now it does no more than
90470         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90471         the `configure.ac' section of module/realloc.
90472         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90473
90474 2004-03-30  Bruno Haible  <bruno@clisp.org>
90475
90476         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90477         nonnull.
90478
90479 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90480
90481         Merge changes to getloadavg.c from coreutils and Emacs.
90482
90483         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90484         Define to an expression, not to the empty string.
90485         Include cloexec.h and xalloc.h.
90486         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90487         Use set_cloexec_flag rather than rolling our own.
90488         * lib/cloexec.c, lib/cloexec.h: New files.
90489
90490 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90491
90492         * m4/cloexec.m4: New file.
90493
90494 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90495
90496         * lib/getopt.h: Sync with libc CVS.
90497
90498 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90499             Bruno Haible  <bruno@clisp.org>
90500
90501         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90502         mbswidth.
90503
90504 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90505             Bruno Haible  <bruno@clisp.org>
90506
90507         * lib/mbswidth.h: Include <wchar.h> only if
90508         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90509         <wchar.h>.
90510         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90511
90512 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90513
90514         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90515         Sync with libc CVS.
90516         * lib/getopt_int.h: New file, also synced from libc.
90517
90518 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90519
90520         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90521         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90522         Bring back getopt.c, getopt.h, getopt1.c.
90523
90524 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90525
90526         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90527         All uses changed.  Check for sa_sigaction member; this fixes
90528         a bug first reported by Jason Andrade in
90529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90530
90531 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90532
90533         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90534         '#if' expressions.  Unlike the code it replaces, it does not
90535         depend on (defined _SC_PAGESIZE).  However, it does depend on
90536         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90537         first reported by Jason Andrade in
90538         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90539
90540 2004-02-25  Simon Josefsson  <jas@extundo.com>
90541
90542         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90543
90544 2004-02-25  Simon Josefsson  <jas@extundo.com>
90545
90546         * lib/strdup.h: New file.
90547         * lib/strdup.c: Include it.
90548         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90549         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90550
90551 2004-02-23  Karl Berry  <karl@gnu.org>
90552
90553         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90554         (from fencepost.gnu.org:/gd/gnuorg).
90555
90556 2004-02-23  Karl Berry  <karl@gnu.org>
90557
90558         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90559         * config/srclist.txt: add maintain/standards documents.
90560
90561 2004-02-18  Bruno Haible  <bruno@clisp.org>
90562
90563         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90564         Reported by Derek Robert Price <derek@ximbiot.com>.
90565
90566 2004-02-16  Karl Berry  <karl@gnu.org>
90567
90568         * config/mkinstalldirs, install-sh: update from automake.
90569
90570 2004-02-06  Karl Berry  <karl@gnu.org>
90571
90572         * m4/po.m4: update from gettext 0.14.1.
90573
90574 2004-02-06  Karl Berry  <karl@gnu.org>
90575
90576         * lib/config.charset: update from gettext 0.14.1.
90577
90578 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90579
90580         Add comments and code, prompted by suggestions from Bruno Haible
90581         for sh-quote.
90582         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90583         describing the enum quoting_style values.
90584         * lib/quotearg.c (quotearg_alloc): New function.
90585         (quotearg_buffer_restyled): Treat lone { and } as special.
90586         Treat = as special.  Work around bug with older shells
90587         that "see" a '\' that is really the 2nd byte of a multibyte char.
90588         Quote empty string with shell_quoting_style.
90589
90590 2004-02-03  Bruno Haible  <bruno@clisp.org>
90591
90592         * m4/pipe.m4: New file, from GNU gettext.
90593
90594 2004-02-03  Bruno Haible  <bruno@clisp.org>
90595
90596         * lib/pipe.h: New file, from GNU gettext.
90597         * lib/pipe.c: New file, from GNU gettext.
90598
90599 2004-01-27  Bruno Haible  <bruno@clisp.org>
90600
90601         * m4/execute.m4: New file, from GNU gettext.
90602
90603 2004-01-27  Bruno Haible  <bruno@clisp.org>
90604
90605         * lib/execute.h: New file, from GNU gettext.
90606         * lib/execute.c: New file, from GNU gettext.
90607         * lib/w32spawn.h: New file, from GNU gettext.
90608
90609 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90610
90611         Merge from diffutils.
90612
90613         * lib/file-type.c (file_type): Add typed memory objects.
90614         * lib/file-type.h (S_TYPEISTMO): New macro.
90615
90616         * lib/c-stack.h (c_stack_action): Remove argv argument.
90617         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90618         (die): Don't calculate message unless segv_action returns.
90619         (get_stack_location, min_address_from_argv, max_address_from_argv,
90620         volatile stack_base, volatile_stack_size): Remove.
90621         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90622         that every segmentation violation is a stack overflow.  (Ouch!)
90623         See Debian bug 136249 (still outstanding) for more info about why
90624         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90625
90626 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90627
90628         Exit-status fix from coreutils.
90629
90630         Use exit_failure consistently in place of EXIT_FAILURE,
90631         so that program exit statuses are consistent on failure.
90632
90633         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90634         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90635         * lib/argmatch.h: Comment fix to match the above.
90636         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90637         Now a macro referring to exit_failure, instead of a separate
90638         variable.  Include "exitfail.h" to get it.
90639         * lib/xstrtol.h: Include "exitfail.h".
90640         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90641
90642         * lib/long-options.c (parse_long_options): Use prototype
90643         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90644         for clarity.
90645
90646 2004-01-21  Jim Meyering  <jim@meyering.net>
90647
90648         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90649         so as not to conflict with a different-sized __mktime_internal
90650         function in GNU libc.
90651         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90652         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90653
90654 2004-01-20  Karl Berry  <karl@gnu.org>
90655
90656         * config/config.guess: update from config.
90657
90658         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90659
90660 2004-01-20  Bruno Haible  <bruno@clisp.org>
90661
90662         Safer stack allocation.
90663         * lib/setenv.c: Include allocsa.h.
90664         (alloca): Remove fallback definition.
90665         (freea): Remove macro.
90666         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90667         instead of freea.
90668
90669 2004-01-20  Bruno Haible  <bruno@clisp.org>
90670
90671         * m4/eealloc.m4: New file, from GNU gettext.
90672
90673 2004-01-20  Bruno Haible  <bruno@clisp.org>
90674
90675         * m4/allocsa.m4: New file, from GNU gettext.
90676
90677 2004-01-20  Bruno Haible  <bruno@clisp.org>
90678
90679         * lib/xallocsa.h: New file, from GNU gettext.
90680         * lib/xallocsa.c: New file, from GNU gettext.
90681
90682 2004-01-20  Bruno Haible  <bruno@clisp.org>
90683
90684         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90685
90686 2004-01-20  Bruno Haible  <bruno@clisp.org>
90687
90688         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90689         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90690         specially.
90691
90692 2004-01-20  Bruno Haible  <bruno@clisp.org>
90693
90694         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90695         patch.
90696
90697 2004-01-20  Bruno Haible  <bruno@clisp.org>
90698
90699         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90700
90701 2004-01-20  Bruno Haible  <bruno@clisp.org>
90702
90703         * lib/eealloc.h: New file.
90704
90705 2004-01-20  Bruno Haible  <bruno@clisp.org>
90706
90707         * lib/binary-io.h: Avoid warnings on Cygwin.
90708
90709 2004-01-20  Bruno Haible  <bruno@clisp.org>
90710
90711         * lib/allocsa.h: New file, from GNU gettext.
90712         * lib/allocsa.c: New file, from GNU gettext.
90713
90714 2004-01-18  Karl Berry  <karl@gnu.org>
90715
90716         * doc/gpl.texi, doc/lgpl.texi: new files.
90717
90718 2004-01-18  Karl Berry  <karl@gnu.org>
90719
90720         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90721         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90722
90723 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90724
90725         Merge from coreutils.
90726
90727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90728         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90729         (gl_DEFAULT_POSIX2_VERSION): Move
90730         the documentation from 'configure' into 'config.hin',
90731         so that 'configure --help' isn't burdened by it and
90732         we don't have to worry about its formatting there.
90733         Reword the documentation so that it's more succinct
90734         and can be run together into a single paragraph.
90735         * m4/same.m4 (gl_SAME): Check for pathconf.
90736
90737 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90738
90739         Merge from coreutils.
90740
90741         * lib/posixver.c: Include posixver.h.
90742
90743         * lib/same.c: Include <stdbool.h>, <limits.h>.
90744         (_POSIX_NAME_MAX): Define if not defined.
90745         (MIN): New macro.
90746         (same_name): If file names are silently truncated, report
90747         that the file names are the same if they are the same after
90748         the silent truncation.
90749
90750         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90751         conversion function.
90752         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90753         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90754         longer needed.
90755
90756 2004-01-15  Jim Meyering  <jim@meyering.net>
90757
90758         Merge from coreutils.
90759
90760         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90761         if no library is required.
90762         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90763         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90764         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90765         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90766         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90767         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90768         value, $ac_cv_search_crypt, if it's "none required".
90769         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90770         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90771         not gl_FUNC_GETLOADAVG.
90772         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90773         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90774
90775 2004-01-15  Jim Meyering  <jim@meyering.net>
90776
90777         Merge from coreutils.
90778
90779         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90780         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90781         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90782
90783         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90784         optional configure-time default.
90785
90786         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90787
90788         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90789
90790 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90791
90792         Merge from coreutils.
90793
90794         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90795         value, $ac_cv_search_nanosleep, if it's "none required".
90796
90797 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90798
90799         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90800         with like-named macro in fnmatch.c.
90801         (EXT): Use an internal constant instead.
90802
90803         Merge fnmatch patches from glibc.
90804         * lib/fnmatch.c (mbsinit): Remove define.
90805         Add libc_hidden_ver (__fnmatch, fnmatch).
90806         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90807         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90808
90809 2004-01-14  Karl Berry  <karl@gnu.org>
90810
90811         * config/install-sh: update from automake.
90812
90813 2004-01-13  Karl Berry  <karl@gnu.org>
90814
90815         * config/install-sh: update from automake.
90816
90817 2004-01-09  Karl Berry  <karl@gnu.org>
90818
90819         * config/install-sh: update from automake.
90820
90821 2004-01-05  Karl Berry  <karl@gnu.org>
90822
90823         * config/config.{sub,guess}: update from config.
90824
90825 2003-12-31  Karl Berry  <karl@gnu.org>
90826
90827         * config/depcomp: update from automake.
90828
90829 2003-12-14  Karl Berry  <karl@gnu.org>
90830
90831         * lib/config.charset: update from gettext-runtime.
90832
90833 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90834
90835         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90836         Bug reported by Alfred M. Szmidt.
90837
90838 2003-12-03  Bruno Haible  <bruno@clisp.org>
90839
90840         * m4/gettext.m4: Upgrade from gettext-0.13.
90841         * m4/po.m4: Upgrade from gettext-0.13.
90842         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90843         * m4/intmax.m4: New file, from gettext-0.13.
90844         * m4/printf-posix.m4: New file, from gettext-0.13.
90845
90846 2003-11-29  Karl Berry  <karl@gnu.org>
90847
90848         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90849
90850 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90851             Bruno Haible  <bruno@clisp.org>
90852
90853         * lib/printf-parse.h: Don't include sys/types.h.
90854         (ARG_NONE): New macro.
90855         (char_directive): Change type of *arg_index fields to size_t.
90856         * lib/printf-parse.c: Don't include sys/types.h.
90857         (SSIZE_MAX): Remove macro.
90858         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90859         Remove unnecessary overflow check.
90860         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90861         fields.
90862
90863 2003-11-25  Bruno Haible  <bruno@clisp.org>
90864
90865         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90866
90867 2003-11-25  Bruno Haible  <bruno@clisp.org>
90868
90869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90870         gt_TYPE_SSIZE_T.
90871
90872 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90873
90874         * modules/alloca: Remove dependency on xalloc.
90875
90876 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90877
90878         * lib/alloca.c: Remove dependency on xalloc module.
90879         (xalloc_die): Remove.
90880         (memory_full) [!defined emacs]: New macro.
90881         [!defined emacs]: Don't include xalloc.h.
90882         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90883         address arithmetic overflows.  Change datatypes a bit to avoid
90884         unnecessary casts.
90885
90886 2003-11-22  Jim Meyering  <jim@meyering.net>
90887
90888         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90889         s/size/size_t/.
90890
90891 2003-11-21  Karl Berry  <karl@gnu.org>
90892
90893         * config/config.{sub,guess}: update from config.
90894
90895 2003-11-18  Karl Berry  <karl@gnu.org>
90896
90897         * config/config.{sub,guess}: update from config.
90898
90899         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90900
90901 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90902
90903         * README: Mention that S+T cannot overflow if S is the size of
90904         an existing object and T is sufficiently small.
90905
90906 2003-11-17  Jim Meyering  <jim@meyering.net>
90907
90908         On systems without utime and without a utimes function capable of
90909         dealing with a NULL struct utimbuf* argument, this utime replacement
90910         could -- in unusual circumstances -- leak a file descriptor.
90911         * lib/utime.c: Include <unistd.h> and <errno.h>.
90912         (utime_null): Be sure to close `fd' and to preserve errno.
90913         Reported by Geoff Collyer via Arnold Robbins.
90914
90915 2003-11-17  Bruno Haible  <bruno@clisp.org>
90916
90917         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90918         (Depends-on): Add xsize.
90919
90920 2003-11-17  Bruno Haible  <bruno@clisp.org>
90921
90922         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90923
90924 2003-11-17  Bruno Haible  <bruno@clisp.org>
90925
90926         * lib/vasnprintf.c (alloca): Remove fallback definition.
90927         (freea): Remove definition.
90928         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90929         Reported by Paul Eggert.
90930
90931 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90932             Bruno Haible  <bruno@clisp.org>
90933
90934         Protect against address arithmetic overflow.
90935         * lib/printf-args.h: Include stddef.h.
90936         (arguments): Change type of field 'count' to size_t.
90937         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90938         'unsigned int' where appropriate.
90939         * lib/printf-parse.h: Include sys/types.h.
90940         (char_directive): Change type of *arg_index fields to ssize_t.
90941         (char_directives): Change type of fields 'count', max_*_length to
90942         size_t.
90943         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90944         (SSIZE_MAX): Define fallback value.
90945         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90946         instead of 'int' where appropriate. Check a_allocated, d_allocated
90947         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90948         * lib/vasnprintf.c: Include xsize.h.
90949         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90950         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90951         overflow. Avoid wraparound when converting a width or precision from
90952         decimal to binary.
90953
90954 2003-11-16  Bruno Haible  <bruno@clisp.org>
90955
90956         Update from GNU gettext.
90957         * lib/printf-parse.c: Generalize to it can be compiled for wide
90958         strings.
90959         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90960         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90961         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90962         SNPRINTF): New macros.
90963         Don't include <alloca.h> if the file is used inside libintl.
90964         (local_wcslen): New function, for Solaris 2.5.1.
90965         (VASNPRINTF): Use it instead of wcslen.
90966
90967 2003-11-16  Bruno Haible  <bruno@clisp.org>
90968
90969         * lib/xsize.h (xmax): New function.
90970         (xsum, xsum3, xsum4): Declare as "pure" functions.
90971
90972 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90973
90974         * modules/xalloc (Files): Undo latest change, since xalloc.h
90975         no longer needs SIZE_MAX or PTRDIFF_MAX.
90976
90977 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90978
90979         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90980         gl_PTRDIFF_MAX.
90981
90982 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90983
90984         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90985         "return", to pacify some unknown compiler.  Problem reported
90986         by Joerg Schilling.
90987
90988 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90989
90990         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90991         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90992         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90993         heuristic is just as accurate as far as we know, and it removes a
90994         dependency on size_max.m4 and ptrdiff_max.m4.
90995
90996 2003-11-11  Bruno Haible  <bruno@clisp.org>
90997
90998         * modules/xsize (Files): Add m4/size_max.m4.
90999         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91000
91001 2003-11-11  Bruno Haible  <bruno@clisp.org>
91002
91003         * m4/size_max.m4: New file.
91004         * m4/ptrdiff_max.m4: New file.
91005         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91006         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91007         (gl_XALLOC): Invoke it.
91008
91009 2003-11-11  Bruno Haible  <bruno@clisp.org>
91010
91011         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91012         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91013         defined.
91014
91015 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91016
91017         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91018         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91019         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91020         From Bruno Haible.
91021         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91022         not (size_t) -1, since it's defined here.
91023
91024 2003-11-09  Karl Berry  <karl@gnu.org>
91025
91026         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91027
91028 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91029
91030         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91031         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91032         Reject sizes of exactly SIZE_MAX bytes.
91033         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91034         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91035
91036 2003-11-05  Bruno Haible  <bruno@clisp.org>
91037
91038         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91039         SIZE_MAX defined in <limits.h> on Solaris.
91040
91041 2003-11-04  Jim Meyering  <jim@meyering.net>
91042
91043         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91044         variable names, rather than @VAR@.
91045         * modules/poll: Likewise.
91046
91047 2003-11-04  Bruno Haible  <bruno@clisp.org>
91048
91049         * modules/xsize: New file.
91050         * modules/linebreak: Depend on xsize.
91051         * MODULES.html.sh (func_all_modules): Add xsize.
91052
91053 2003-11-04  Bruno Haible  <bruno@clisp.org>
91054
91055         * m4/xsize.m4: New file.
91056
91057 2003-11-04  Bruno Haible  <bruno@clisp.org>
91058
91059         * lib/xsize.h: New file.
91060         * lib/linebreak.c: Include xsize.h.
91061         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91062         argument for overflow.
91063         Suggested by Paul Eggert.
91064
91065 2003-11-03  Karl Berry  <karl@gnu.org>
91066
91067         * config/config.{guess,sub}: update from config.
91068
91069 2003-11-03  Jim Meyering  <jim@meyering.net>
91070
91071         * modules/userspec (lib_SOURCES): Add userspec.h.
91072         (Include): Add "userspec.h".
91073         Improve description.
91074
91075 2003-11-03  Jim Meyering  <jim@meyering.net>
91076
91077         * lib/userspec.c: Include "userspec.h".
91078         * lib/userspec.h: New file.
91079
91080 2003-11-03  Bruno Haible  <bruno@clisp.org>
91081
91082         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91083
91084 2003-11-03  Bruno Haible  <bruno@clisp.org>
91085
91086         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91087         available, to avoid (extremely rare) race condition.
91088         Suggested by Paul Eggert.
91089
91090 2003-11-02  Karl Berry  <karl@gnu.org>
91091
91092         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91093
91094 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91095
91096         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91097         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91098         (read_filesystem_list): Set and use me_type_malloced.
91099         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91100         whatever the type happens to be), for brevity and consistency.
91101         Check for size calculation overflow on Alphas running OSF/1.
91102
91103 2003-10-31  Jim Meyering  <jim@meyering.net>
91104
91105         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91106
91107         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91108
91109 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91110             Bruno Haible  <bruno@clisp.org>
91111
91112         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91113         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91114
91115 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91116
91117         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91118         netbsd*-gnu*.  Suggested by Robert Millan.
91119
91120 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91121
91122         * modules/group-member: Depend on stdbool.
91123
91124 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91125
91126         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91127
91128 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91129
91130         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91131         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91132         after the 'gnu' in these cases.  This fixes some bugs in the
91133         previous change, and is based on suggestions by Robert Millan.
91134
91135 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91136
91137         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91138         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91139         no longer needed.
91140         * lib/quotearg.c (quotearg_n_options): Use it.
91141         * lib/group-member.c: Include <stdbool.h>.
91142         (free_group_info): Arg is now const *; don't free arg.
91143         (get_group_info): Now returns bool and accepts struct group_info *,
91144         rather than returning a malloc'ed struct group_info *.
91145         All uses changed.  Check for overflow in internal size calculation.
91146
91147         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91148         rather than xmalloc/xrealloc.
91149         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91150         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91151         conformance bug: the old code used a pointer after freeing the
91152         storage that it addressed.
91153         * lib/hash.c (hash_initialize): Simplify the code by using
91154         xalloc_oversized rather than doing it by hand.
91155         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91156         the buffer preserved.  Use free and xmalloc instead.
91157         * lib/quotearg.c (quotearg_n_options): Likewise.
91158         Use a simpler test for size overflow.  Don't use xalloc_oversized
91159         because unsigned int might be wider than size_t (!); this suggests
91160         that we should switch from unsigned int to size_t for slot numbers.
91161
91162 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91163
91164         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91165         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91166         NetBSD kernels.  Requested by Richard Stallman.
91167
91168 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91169
91170         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91171         to allocate the returned structure.  Do not allocate a subarray,
91172         as x2nrealloc will do that.
91173         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91174         instead of xnrealloc.
91175         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91176
91177 2003-10-27  Bruno Haible  <bruno@clisp.org>
91178
91179         * lib/stdbool_.h: Better support for BeOS.
91180
91181 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91182
91183         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91184         now uses inline.
91185
91186 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91187
91188         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91189         callers that want to do their own size-overflow checking.  Include
91190         <stdbool.h>, since xalloc_oversized returns bool.
91191         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91192         to use xalloc_oversized.
91193
91194         Add two functions x2realloc, x2nrealloc, for programs that grow
91195         arrays dynamically by doubling their sizes.
91196         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91197         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91198         New functions.
91199
91200         Port to C99 semantics for 'inline' of external functions.
91201         Bug reported by Bruno Haible.
91202         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91203         with the old contents of xnmalloc.
91204         (xnmalloc, xmalloc): Use it.
91205         (xnrealloc_inline): New static inline function,
91206         with the old contents of xnrealloc.
91207         (xnrealloc, xrealloc): Use it.
91208
91209         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91210         that.
91211
91212 2003-10-26  Karl Berry  <karl@gnu.org>
91213
91214         * config/srclist.txt (COPYING.DOC): no longer available from
91215         /gd/gnuorg; don't know where the ultimate source is.
91216
91217 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91218
91219         Fix several address-calculation bugs in the hash modules,
91220         plus some minor code cleanup.
91221
91222         * lib/hash.h: Include <stdbool.h>, for bool.
91223         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91224         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91225         hash_get_n_entries, hash_get_max_bucket_length,
91226         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91227         hash_rehash): Use size_t rather than unsigned.
91228         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91229         hash_get_n_buckets_used, hash_get_n_entries,
91230         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91231         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91232         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91233         Likewise.
91234         (SIZE_MAX): Define if not defined.
91235         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91236         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91237         hash_print):
91238         Use const * when possible.
91239         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91240         (check_tuning): Fix bug: if tuning parameters were very close to
91241         0 or 1, rounding errors could have caused subscript violations.
91242         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91243         (hash_initialize): Add 'fail:' label
91244         to free table and return NULL, and use it to simplify code.
91245         Use calloc rather than clearing the storage ourself.
91246         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91247         buffer size calculations.
91248         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91249         Include <stddef.h>, for size_t.
91250         * lib/hash-pjw.c (hash_pjw): Likewise.
91251         Switch to method described by Bruno Haible.
91252         Include <limits.h>, for CHAR_BIT.
91253         (SIZE_BITS): New macro.
91254
91255 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91256
91257         * m4/getline.m4 (AM_FUNC_GETLINE):
91258         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91259         hosts.  Problem reported by Derek Robert Price in
91260         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91261         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91262         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91263
91264 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91265
91266         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91267         ceiling the allocation at NMAX bytes rather than silently
91268         discarding input bytes before NMAX is reached.  This makes
91269         a difference only if NMAX exceeds SIZE_MAX / 2.
91270
91271         * lib/obstack.c: Merge from glibc.
91272         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91273         Add libc_hidden_def (_obstack_newchunk).
91274         (_obstack_free) [! defined _LIBC]: Remove.
91275         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91276         a clone of the function body.
91277         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91278         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91279
91280         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91281         glibc.
91282         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91283         arg to memcpy.
91284
91285         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91286         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91287         Don't use lvalue casts, as GCC plans to remove support for them
91288         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91289         was also present in the non-GCC version, indicating that this
91290         code had always been buggy and had never been widely used.
91291         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91292         Use the fast variant of each macro, rather than copying the
91293         definiens of the fast variant; that way, we'll be more likely to
91294         catch future bugs in the fast variants.
91295
91296 2003-10-20  Bruno Haible  <bruno@clisp.org>
91297
91298         * modules/wait-process: New file.
91299         * MODULES.html.sh (func_all_modules): Add wait-process.
91300
91301 2003-10-20  Bruno Haible  <bruno@clisp.org>
91302
91303         * m4/wait-process.m4: New file.
91304
91305 2003-10-20  Bruno Haible  <bruno@clisp.org>
91306
91307         * lib/wait-process.h: New file, from GNU gettext.
91308         * lib/wait-process.c: New file, from GNU gettext.
91309
91310 2003-10-19  Jim Meyering  <jim@meyering.net>
91311
91312         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91313         HPUX 10.20.
91314
91315 2003-10-18  Karl Berry  <karl@gnu.org>
91316
91317         * config/config.guess: update from config.
91318
91319 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91320
91321         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91322         (getgroups): First arg is int, not size_t.
91323         Don't let 'free' mangle errno.
91324
91325 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91326
91327         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91328
91329 2003-10-16  Karl Berry  <karl@gnu.org>
91330
91331         * config/config.{guess,sub}: update from config.
91332
91333 2003-10-16  Jim Meyering  <jim@meyering.net>
91334
91335         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91336         memcpy.
91337
91338 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91339
91340         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91341         (SIZE_MAX): Remove.
91342         (new_exclude, add_exclude_file): Initial size no longer needs to
91343         be a power of 2.
91344         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91345         our own address arithmetic overflow checking.
91346
91347         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91348         (fnmatch): Do not alloca more than 2000 wide characters;
91349         instead, use malloc for large buffers.
91350         Check for address arithmetic overflow, and return -1
91351         with errno set to ENOMEM in that case.
91352         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91353         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91354         instead, return -1.  Check for address arithmetic overflow.
91355
91356 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91357
91358         Handle invalid suffixes and overflow independently, so that
91359         callers can treat them independently as needed.  Fix some bugs in
91360         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91361         suffix for a human-readable blocksize.  The major caller-visible
91362         change is the addition of a new
91363         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91364         that both overflow and suffix chars were found.
91365
91366         * lib/human.c (humblock): Don't check separately for invalid suffix
91367         char; that is xstrtoumax's job (now that its bug is fixed).
91368         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91369         INTMAX_MAX]: New macros.
91370         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91371         TYPE_MAXIMUM): New macros.
91372         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91373         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91374         if overflow occurs, as it's what __strtol does and it's more useful
91375         in practice.
91376         (__xstrtol): If __strtol reports some error other than ERANGE,
91377         reflect it to the caller as LONGINT_INVALID.  If it reports
91378         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91379         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91380         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91381         value.
91382         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91383         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91384         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91385         [defined UINTMAX_MAX]: New macros.
91386
91387 2003-10-14  Bruno Haible  <bruno@clisp.org>
91388
91389         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91390
91391 2003-10-14  Bruno Haible  <bruno@clisp.org>
91392
91393         * m4/sig_atomic_t: New file, from GNU gettext.
91394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91395
91396 2003-10-14  Bruno Haible  <bruno@clisp.org>
91397
91398         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91399         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91400         Also use volatile where needed.
91401
91402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91403
91404         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91405         Change maintainer from Bruno Haible to 'all'.
91406
91407 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91408
91409         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91410
91411 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91412
91413         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91414         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91415         and define in terms of the other primitives.
91416         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91417         (SIZE_MAX): Define if not already defined.
91418         (array_size_overflow): New function.
91419         (xalloc_die): Abort instead of exiting if 'error' returns.
91420         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91421         (xmalloc, xrealloc): Use them.
91422         (xcalloc): Check for address arithmetic overflow.
91423         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91424         a bit faster than strcpy.
91425
91426 2003-10-10  Simon Josefsson  <jas@extundo.com>
91427
91428         * modules/argp (Depends-on): Add restrict and strcase.
91429
91430 2003-10-10  Simon Josefsson  <jas@extundo.com>
91431
91432         * m4/argp.m4: Add AC_C_INLINE.
91433
91434 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91435
91436         Merge getpass from libc, plus a few fixes.
91437
91438         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91439         Include <stdbool.h>.
91440         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91441         __fsetlocking to empty.
91442         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91443         do include <bits/libc-lock.h>.
91444         Do not include <fcntl.h>; not needed.
91445         [_LIBC]: Include <wchar.h>.
91446         (NOTCANCEL_MODE): New macro.
91447         (flockfile, funlockfile) [_LIBC]: New macros.
91448         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91449         [!_LIBC]: New macros.
91450         (call_fclose): New function.
91451         (getpass): Use it.  Save tty stream separately; this simplifies the
91452         code and makes it more reliable if stdin happens to equal stdout.
91453         Invoke __fsetlocking on tty.
91454         Handle thread cancellation if needed.
91455         Namespace cleanup (use __tcgetattr, __getline).
91456         Use bool for Booleans.
91457         [USE_IN_LIBIO]: Handle wide streams.
91458         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91459         stream might go where.
91460
91461         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91462         doesn't have to include <stdio.h> before us.
91463         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91464         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91465         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91466         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91467         if not declared, so that we can use getpass.c code from libc without
91468         rewriting it.
91469         (flockfile, ftrylockfile, funlockfile): New macros.
91470
91471 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91472
91473         * modules/getpass: Depend on stdbool.
91474
91475 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91476
91477         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91478
91479 2003-10-07  Karl Berry  <karl@gnu.org>
91480
91481         * config/config.{guess,sub}: update from config.
91482
91483 2003-10-06  Jim Meyering  <jim@meyering.net>
91484             Bruno Haible  <bruno@clisp.org>
91485
91486         This lets translators provide better translations for the
91487         "Written by ..." part of --version output.
91488         * lib/version-etc.h: Include stdarg.h.
91489         (version_etc_copyright): Declare as readonly.
91490         (version_etc): Make this function variadic with a NULL-terminated list
91491         of author name strings.
91492         (version_etc_va): New declaration.
91493         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91494         (version_etc_copyright): Declare as readonly.
91495         (version_etc_va): New function. Provide a different translatable string
91496         for each possible number of authors < 10. Abbreviate when there are 10
91497         authors or more.
91498         (version_etc): Make this function variadic. Call version_etc_va.
91499         Suggestion from Gary V. Vaughan.
91500
91501         * lib/long-options.h (parse_long_options): Change prototype: the
91502         authors string is moved to the end and becomes variadic.
91503         * lib/long-options.c: Include stdarg.h.
91504         (parse_long_options): Make this function variadic, too.
91505         Call version_etc_va, not version_etc.
91506
91507 2003-10-06  Bruno Haible  <bruno@clisp.org>
91508
91509         * modules/version-etc-2: Remove file.
91510         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91511
91512 2003-10-06  Bruno Haible  <bruno@clisp.org>
91513
91514         * modules/fatal-signal: New file.
91515         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91516
91517 2003-10-06  Bruno Haible  <bruno@clisp.org>
91518
91519         * m4/fatal-signal.m4: New file.
91520         * m4/signalblocking.m4: New file, from GNU gettext.
91521
91522 2003-10-06  Bruno Haible  <bruno@clisp.org>
91523
91524         * lib/version-etc-2.h: Remove file.
91525         * lib/version-etc-2.c: Remove file.
91526
91527 2003-10-06  Bruno Haible  <bruno@clisp.org>
91528
91529         * lib/fatal-signal.h: New file, from GNU gettext.
91530         * lib/fatal-signal.c: New file, from GNU gettext.
91531
91532 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91533
91534         * README: Rework advice for preventing empty .o files.
91535         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91536         not <sys/types.h>.
91537
91538 2003-10-04  Karl Berry  <karl@gnu.org>
91539
91540         * lib/argp*: update from libc.
91541
91542 2003-10-04  Karl Berry  <karl@gnu.org>
91543
91544         * config/config.{guess,sub}: update from config.
91545
91546 2003-10-02  Bruno Haible  <bruno@clisp.org>
91547
91548         * modules/lchown (Include): Add lchown.h.
91549         * modules/time_r (Include): Use "..." syntax.
91550         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91551
91552 2003-10-01  Simon Josefsson  <jas@extundo.com>
91553
91554         * MODULES.html.sh (func_all_modules): Move gethostname from section
91555         'based on' to section 'lacking' POSIX:2001.
91556
91557 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91558
91559         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91560         to output mode on the same stream.
91561
91562 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91563
91564         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91565         Fix arg typo in previous patch.
91566
91567 2003-09-28  Jim Meyering  <jim@meyering.net>
91568
91569         * lib/error.c: Correct cpp indentation.
91570
91571 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91572
91573         * modules/free: New file.
91574
91575 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91576
91577         * m4/free.m4: New file.
91578
91579 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91580
91581         * lib/minmax.h (MIN, MAX)
91582         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91583         Omit the special code that used __typeof__, since we worry that
91584         it could be more trouble than it's worth.  See:
91585         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91586         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91587
91588         * lib/free.c: New file.
91589
91590 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91591
91592         Trivial fixes to Makefile.am parts of module listings.
91593         * modules/strstr: Append strstr.h to lib_SOURCES.
91594         * modules/strcase: Likewise, for strcase.h.
91595
91596 2003-09-27  Karl Berry  <karl@gnu.org>
91597
91598         * config/mkinstalldirs: update from automake.
91599
91600 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91601
91602         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91603         (error_tail): Do not loop, reallocating temporary buffer, since
91604         the output cannot contain more wide characters than the input
91605         contains bytes, the size must be big enough already.  This avoids
91606         one potential size overflow calculation.  Check for size overflow
91607         when calculating temporary buffer size.  Free temporary buffer
91608         when done, if it was allocated with malloc; this plugs a memory
91609         leak.  Remove casts from void * to pointers, that are no longer
91610         needed now that we're assuming C89 or better.
91611
91612         Merge error changes from glibc.
91613
91614         * lib/error.c, error.h: Update copyright notice header to match glibc.
91615         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91616         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91617         Disable cancellation while printing error.
91618         * lib/error.h: Prepend __ to parameter names.
91619
91620 2003-09-26  Jim Meyering  <jim@meyering.net>
91621
91622         * lib/error.c (error_tail): Move some declarations
91623         into inner scope where the local variables are used.
91624
91625 2003-09-26  Bruno Haible  <bruno@clisp.org>
91626
91627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91628         stpncpy().
91629         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91630
91631 2003-09-26  Bruno Haible  <bruno@clisp.org>
91632
91633         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91634         (stpncpy): Define as alias for gnu_stpncpy.
91635         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91636
91637 2003-09-25  Simon Josefsson  <jas@extundo.com>
91638
91639         * lib/xgetdomainname.h: New file.
91640         * lib/xgetdomainname.c: New file.
91641
91642 2003-09-25  Simon Josefsson  <jas@extundo.com>
91643             Bruno Haible  <bruno@clisp.org>
91644
91645         * modules/getdomainname: New file.
91646         * modules/xgetdomainname: New file.
91647         * MODULES.html.sh (func_all_modules): Add getdomainname,
91648         xgetdomainname.
91649
91650 2003-09-25  Simon Josefsson  <jas@extundo.com>
91651             Bruno Haible  <bruno@clisp.org>
91652
91653         * m4/getdomainname.m4: New file.
91654
91655 2003-09-25  Simon Josefsson  <jas@extundo.com>
91656             Bruno Haible  <bruno@clisp.org>
91657
91658         * lib/getdomainname.h: New file.
91659         * lib/getdomainname.c: New file.
91660
91661 2003-09-25  Karl Berry  <karl@gnu.org>
91662
91663         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91664
91665 2003-09-25  Karl Berry  <karl@gnu.org>
91666
91667         * config/install-sh: update from automake.
91668
91669 2003-09-25  Bruno Haible  <bruno@clisp.org>
91670
91671         * modules/version-etc-2: New file, from modules/version-etc with
91672         modifications.
91673         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91674
91675 2003-09-25  Bruno Haible  <bruno@clisp.org>
91676
91677         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91678         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91679
91680 2003-09-24  Simon Josefsson  <jas@extundo.com>
91681
91682         * modules/xgethostname: Add xgethostname.h.
91683
91684 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91685
91686         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91687         the buffer associated with the argument.  Bug reported by
91688         Simon Josefsson.
91689
91690 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91691
91692         * README: Document assumptions that 'int' is at least 32 bits
91693         wide, that integer arithmetic is 2's complement without overflow,
91694         that there are no holes in integer values, that adding sizes of
91695         two nonoverlapping objects can't overflow, and that all-bits-zero
91696         yields scalar zero.  Fix spelling and capitalization typos.
91697
91698 2003-09-19  Karl Berry  <karl@gnu.org>
91699
91700         * lib/argp.h: update from libc.
91701
91702 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91703
91704         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91705         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91706         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91707
91708 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91709
91710         * gnulib-tool: Use "test -h", not "test -L", for portability
91711         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91712         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91713         (sed_extract_prog): Issue s commands one-by-one, rather than
91714         using \| in one s command.
91715
91716 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91717
91718         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91719         input error, instead of returning NULL the next time we are called
91720         (and therefore losing track of errno).
91721
91722 2003-09-16  Bruno Haible  <bruno@clisp.org>
91723
91724         * gnulib-tool (func_create_testdir): Warn about duplicated
91725         dependencies.
91726
91727 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91728
91729         * modules/argmatch, modules/fatal, modules/obstack,
91730         modules/xalloc, modules/xgethostname: Sort dependencies by
91731         importance, not alphabetically.
91732
91733 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91734
91735         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91736         fails, so that the caller gets the proper errno.
91737
91738         * lib/readutmp.c (read_utmp): Likewise.
91739         Check for fstat error.  Close stream and free storage
91740         when failing.
91741
91742 2003-09-14  Karl Berry  <karl@gnu.org>
91743
91744         * config/srclist.txt (strdup.c): disable for c89 changes.
91745
91746 2003-09-14  Jim Meyering  <jim@meyering.net>
91747
91748         * lib/getloadavg.c: Correct cpp indentation.
91749         * lib/strdup.c: Likewise.
91750         * lib/vasnprintf.c: Likewise.
91751
91752 2003-09-14  Bruno Haible  <bruno@clisp.org>
91753
91754         * modules/fwriteerror: New file.
91755         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91756
91757 2003-09-14  Bruno Haible  <bruno@clisp.org>
91758
91759         * lib/fwriteerror.h: New file.
91760         * lib/fwriteerror.c: New file.
91761
91762 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91763
91764         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91765         modules/xgethostname, modules/xalloc: Depend on exit.
91766
91767 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91768
91769         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91770
91771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91772         and AC_MINIX, too, so that their extensions are available.
91773
91774         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91775         This macro has been superseded by gl_BACKUPFILE.
91776
91777         More patches to assume C89 or better.
91778
91779         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91780
91781         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91782         unconditionally.
91783         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91784         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91785         Include <string.h>, <stdlib.h> unconditionally.
91786         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91787         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91788         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91789         headers or for string.h.
91790         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91791         or strtoul.
91792
91793         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91794         headers.
91795         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91796         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91797         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91798         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91801         memcpy, memset.
91802         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91803         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91804         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91805         strtol.
91806         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91807         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91809         strtoul.
91810
91811 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91812
91813         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91814         * lib/obstack.c [!defined _LIBC]: Likewise.
91815         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91816         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91817         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91818
91819         More changes to assume C89 or better.
91820
91821         * lib/error.c (error_tail): Assume vprintf.
91822
91823         * lib/argmatch.c (getenv): Remove decl.
91824         * lib/progreloc.c (get_full_program_name): Define via prototype.
91825         * lib/setenv.c (clearenv): Likewise.
91826         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91827         needed.
91828         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91829         (malloc, memcpy): Remove decls.
91830         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91831         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91832         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91833         (memcpy): Remove macro.
91834         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91835         (__P): Remove.  All uses removed.
91836         (PTR): Remove.  All uses changed to void *.
91837         (CHAR_BIT, NULL): Remove.
91838         (spaces, zeros, memset_space, memset_zero)
91839         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91840         Remove.
91841         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91842         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91843         Define with prototype.
91844         Remove now-unnecessary prototype decl.
91845         (extra_args_spec): Assume ANSI C.  All uses changed.
91846         (extra_args_spec_iso): Remove.
91847         (my_strftime, emacs_strftimeu): Define via prototype.
91848         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91849         unconditionally.
91850         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91851         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91852         (strtoul, strtol): Remove decls.
91853         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91854         LONG_MAX): Remove.
91855         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91856         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91857         (LOCALE_PARAM_PROTO): New macro.
91858         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91859         (INTERNAL (strtol), strtol): Define with a prototype.
91860         (PARAMS): Remove.  All uses removed.
91861         * lib/tempname.c: Include <string.h> unconditionally.
91862         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91863         * lib/xgethostname.c (main): Define with a prototype.
91864         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91865         Include <stdlib.h> unconditionally.
91866         (calloc, malloc, realloc, free): Remove decls.
91867         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91868         Include <stdlib.h> unconditionally.  Sort include file names.
91869         (strtod): Remove.
91870         (xstrtod): Define with a prototype.
91871         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91872         (strtol, strtoul): Remove decls.
91873
91874 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91875
91876         More patches to assume C89 or better.
91877         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91878         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91879         string.h, memchr, STDC_HEADERS.
91880
91881 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91882
91883         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91884         Include <stdlib.h>, <string.h> unconditionally.
91885         Remove now-unnecessary cast to char *.
91886         * lib/strnlen.c: Include <string.h> unconditionally.
91887         * lib/yesno.c (yesno): Define with a prototype.
91888
91889 2003-09-11  Bruno Haible  <bruno@clisp.org>
91890
91891         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91892
91893 2003-09-10  Jim Meyering  <jim@meyering.net>
91894
91895         * lib/error.c: Correct indentation of cpp directives.
91896
91897 2003-09-10  Bruno Haible  <bruno@clisp.org>
91898
91899         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91900         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91901         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91902         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91903         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91904         <stdlib.h> and <string.h> checks.
91905         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91906         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91907
91908 2003-09-10  Bruno Haible  <bruno@clisp.org>
91909
91910         * lib/strcspn.c: Include <string.h> unconditionally.
91911         * lib/strpbrk.c: Include <string.h> unconditionally.
91912         * lib/strstr.c: Include <string.h> unconditionally.
91913         * lib/unicodeio.c: Include <string.h> unconditionally.
91914         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91915         * lib/unsetenv.c: Likewise.
91916         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91917         * lib/yesno.c: Include <stdlib.h> unconditionally.
91918         (rpmatch): Add prototype.
91919
91920 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91921
91922         More patches to assume C89 or better.
91923         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91924         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91925         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91926         or for string.h.
91927         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91928         stdlib.h.
91929         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91930         C headers.
91931         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91932         string.h.
91933         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91934         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91935         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91936         or for string.h.
91937         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91938         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91939         C headers.
91940         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91941         memcpy.
91942         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91943         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91944         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91945         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91946         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91947         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91948         string.h, free.
91949         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91950         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91951         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91952         C headers, or for string.h.
91953         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91954         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91955         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91956         headers, memory.h, stdlib.h, string.h, strings.h.
91957         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91958         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91959         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91960         strchr.
91961         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91962         headers, memory.h, string.h.
91963         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91964         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91965         free.
91966         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91967         headers.
91968         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91969         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91970         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91971         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91972         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91973
91974 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91975
91976         More K&R removal.
91977
91978         * lib/acosl.c (main): Use a prototype.
91979         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91980         tanl.c: Likewise.
91981
91982         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91983
91984         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91985         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91986         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91987         with a prototype.
91988         * lib/getopt.c (const): Remove macro.
91989         Include <string.h> unconditionally.
91990         (my_index): Remove; all uses changed to strchr.
91991         (strlen): Remove decl.
91992         (exchange): Remove forward decl; no longer needed.
91993         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91994         Define with prototype.
91995         * lib/getopt1.c (const): Remove macro.
91996         (getopt_long, getopt_long_only, main): Define with prototype.
91997
91998         * lib/getugroups.c: Include <string.h> unconditionally.
91999
92000         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92001         (getusershell, setusershell, endusershell, readname, main):
92002         Define with prototypes.
92003
92004         * lib/group-member.c: Include group-member.h first.
92005         Include <stdlib.h> unconditionally.
92006
92007         * lib/hard-locale.c: Include hard-locale.h first.
92008         Include <stdlib.h>, <string.h> unconditionally.
92009
92010         * lib/hash.c (free, malloc): Remove decls.
92011         Include <stdlib.h> unconditionally.
92012
92013         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92014         (getenv): Do not declare.
92015
92016         * lib/idcache.c: Include <string.h> unconditionally.
92017
92018         * lib/long-options.c: Include long-options.h first, to test interface.
92019         Include <stdlib.h> unconditionally.
92020
92021         * lib/makepath.c: Include makepath.h first, to test interface.
92022         Include <stdlib.h> and <string.h> unconditionally.
92023
92024         * lib/linebuffer.c: Include <stdlib.h>.
92025         (free): Remove decl.
92026
92027         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92028         stddef.h. rpl_malloc returns void *, not char *.
92029         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92030         prototype.
92031
92032         * lib/md5.h: Include <limits.h> unconditionally.
92033         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92034         (__P): Remove; all uses removed.
92035         * lib/md5.c: Include "md5.h" first.
92036         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92037         md5_buffer, md5_process_bytes, md5_process_block):
92038         Define with prototypes.
92039         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92040         * lib/sha.c: Include "sha.h" first.
92041         Include <stdlib.h>, <string.h> unconditionally.
92042
92043         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92044         * lib/memcmp.c (__ptr_t): Likewise.
92045         * lib/memrchr.c (__ptr_t): Likewise.
92046         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92047         Include <string.h> unconditionally.
92048         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92049         * lib/memchr.c: Include <stdlib.h> unconditionally.
92050         * lib/memchr.c (LONG_MAX): Remove.
92051         * lib/memrchr.c (LONG_MAX): Likewise.
92052         * lib/memchr.c (__memchr): Define via a prototype.
92053         * lib/memrchr.c (__memrchr): Likewise.
92054         * lib/memcmp.c (__P): Remove, and remove all uses.
92055         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92056         Remove forward decls; no longer needed.
92057         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92058         Use types required by C89 in prototype.
92059
92060         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92061         * lib/savedir.c: Likewise.
92062         * lib/mkdir.c (free): Remove decl.
92063         * lib/rmdir.c (rmdir): Define with a prototype.
92064         * lib/savedir.c: Include savedir.h first, to test interface.
92065
92066         * lib/mktime.c (STDC_HEADERS): Remove.
92067         Include <stdlib.h>, <string.h> unconditionally.
92068
92069         * lib/modechange.c: Include <stdlib.h> unconditionally.
92070         (malloc): Remove decl.
92071
92072         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92073         (free): Remove decl.
92074
92075         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92076         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92077         (This type really should be intptr_t, but that's a C99ism.)
92078         (_obstack_memcpy): Remove: all uses changed to memcpy.
92079         Include <string.h> unconditionally.
92080         (struct obstack): Assume __STDC__ for types of members
92081         chunkfun, freefun, extra_arg.
92082         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92083         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92084         obstack_begin, obstack_specify_allocation,
92085         obstack_specify_allocation_with_arg, obstack_chunkfun,
92086         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92087         Remove unprototyped decls and the macros that use them.
92088         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92089         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92090         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92091         (defined __STDC__ && __STDC__)]:
92092         Remove nonprototyped code.
92093         Include <stdlib.h> unconditionally.
92094         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92095         _obstack_allocated_p, _obstack_free, obstack_free,
92096         _obstack_memory_used, print_and_abort):
92097         Define using prototypes.
92098         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92099         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92100         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92101         obstack_next_free, obstack_object_size, obstack_room) [0]:
92102         Remove unused, unprototyped code.
92103
92104         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92105
92106         * lib/physmem.c (physmem_total, physmem_available, main): Define
92107         with prototypes.
92108
92109         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92110         (main): Define with a prototype.
92111
92112         * lib/posixver.c (getenv): Remove decl.
92113
92114         * lib/putenv.c (malloc): Returns void *, not char *.
92115         Include <string.h> unconditionally.
92116         (strchr, memcpy, NULL): Do not define.
92117
92118         * lib/readtokens.c: Include readtokens.h first, to test interface.
92119         Include <stdlib.h>, <string.h> unconditionally.
92120         (init_tokenbuffer): Define with a prototype.
92121
92122         * lib/regex.c (PARAMS): Remove.  All uses removed.
92123         All uses of _RE_ARGS removed, too.
92124         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92125         unconditionally.
92126         (bzero): Assume memset exists.
92127         (memcmp, memcpy, NULL): Remove.
92128         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92129         char, or assignments to local vars of type signed char.
92130         (init_syntax_once, PREFIX(extract_number_and_incr),
92131         PREFIX(print_partial_compiled_pattern),
92132         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92133         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92134         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92135         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92136         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92137         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92138         wcs_compile_range, byte_compile_range, truncate_wchar,
92139         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92140         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92141         count_mbs_length, wcs_re_match_2_internal,
92142         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92143         PREFIX(alt_match_null_string_p),
92144         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92145         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92146         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92147         now-unnecessary declaration, if any.
92148         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92149         regcomp, regexec):
92150         Remove now-unnecessary casts among pointer types.
92151         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92152
92153         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92154         (free): Remove decl.
92155
92156         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92157
92158         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92159         (free): Remove decl.
92160
92161         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92162         * lib/xgetcwd.c: Likewise.
92163
92164         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92165         (free): Remove decl.
92166
92167         * lib/strchrnul.c (strchrnul): Define with a prototype.
92168         Fix bug: c_in was not converted to char before searching.
92169
92170         The following changes are not K&R related:
92171
92172         * lib/group-member.h: Include <sys/types.h>, so that this file is
92173         self-contained.
92174         * lib/makepath.h: Likewise.
92175
92176         * lib/getusershell.c (readname, default_index, line_size, readname):
92177         Use size_t, not int, for sizes.
92178         (readname): If the size overflows, report an error instead of
92179         looping forever.
92180
92181 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92182
92183         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92184         libc.
92185
92186 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92187
92188         * README: New section: portability guidelines.
92189
92190 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92191
92192         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92193         C89 spec.
92194
92195 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92196
92197         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92198
92199 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92200
92201         Assume C89 or better; remove K&R cruft.
92202         A few of these changes were first proposed by Derek Robert Price
92203         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92204
92205         * lib/addext.c: Include <string.h> unconditionally.
92206         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92207         Don't declare getenv or malloc.
92208
92209         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92210         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92211         (NULL): Remove.
92212         (find_stack_direction, alloca): Use prototypes.
92213
92214         * lib/atexit.c (atexit): Define using a prototype.
92215
92216         * lib/basename.c, dirname.c, stripslash.c:
92217         Include <string.h> unconditionally.
92218
92219         * lib/bcopy.c: Include <stddef.h>.
92220         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92221
92222         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92223
92224         * lib/error.h (error, error_at_line, error_print_progname)
92225         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92226         * lib/error.c: Include error.h first, to check interface.
92227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92228         (VA_START): Remove; all uses changeed to va_start.
92229         (exit, strerror): Remove decls.
92230         (error_print_progname): Prototype uncondionally.
92231         Don't include <errno.h>; no longer needed.
92232         (private_strerror): Remove.
92233         (error_tail): Always define.
92234         (error, error_at_line): Assume C89 or better; always use prototypes.
92235         * lib/fatal.c: Include "fatal.h" first, to test interface.
92236         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92237         (VA_START): Remove; all uses changed to va_start.
92238         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92239         this case.
92240         (exit): Remove decl.
92241         (fatal): Prototype unconditionally.  Assume va_start works.
92242         Abort at end, to pacify gcc.
92243
92244         * lib/euidaccess.c (main): Define with a prototype.
92245
92246         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92247
92248         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92249
92250         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92251         prototypes.
92252         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92253         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92254         (getenv): Remove decl.
92255         (fnmatch): Define using a prototype.
92256         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92257         (FCT): Define using a prototype.
92258
92259         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92260
92261         * lib/gethostname.c: Include <stddef.h>.
92262         (gethostname): Define with prototype.  Length is size_t, not int.
92263
92264 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92265
92266         Assume C89 or better; remove K&R cruft.
92267         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92268         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92269         string.h, getenv, malloc.
92270         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92271         headers.
92272         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92273         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92274         do not check for strerror.
92275         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92276         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92277         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92278         do not check for doprnt or vprintf.
92279         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92280         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92281
92282 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92283
92284         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92285         getversion.c should have been removed then, but was accidentally
92286         preserved.
92287
92288         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92289         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92290
92291 2003-09-08  Karl Berry  <karl@gnu.org>
92292
92293         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92294                 config, forget about prep.
92295
92296         * config/depcomp, missing: update from automake.
92297
92298 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92299
92300         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92301         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92302
92303 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92304
92305         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92306         copy_tm_result.  Bug reported by Simon Josefsson in
92307         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92308
92309 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92310
92311         * m4/time_r.m4: New file.
92312         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92313         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92314         is. Check for timegm declaration.
92315         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92316         Do not check for gmtime_r.
92317         Replace mktime if __mktime_internal does not exist and if mktime
92318         hasn't been replaced already.
92319
92320 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92321
92322         * lib/time_r.c, lib/time_r.h: New files.
92323
92324         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92325         __localtime_r.
92326         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92327         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92328
92329         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92330         __gmtime_r.
92331         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92332         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92333         Include <time_r.h>.
92334
92335         * lib/timegm.c: Switch to glibc implementation, with the following
92336         changes:
92337         [defined HAVE_CONFIG_H]: Include <config.h>.
92338         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92339         (__mktime_internal) [!defined _LIBC]: New decl.
92340         (__gmtime_r) [!defined _LIBC]: New macro and function.
92341         (timegm): Use a prototype, since gnulib assumes C89.
92342         Do not bother declaring tmp to be const, as it's not really usefu.
92343         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92344         (timegm): Declare only if HAVE_DECL_TIMEGM.
92345
92346 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92347
92348         * MODULES.html.sh (func_all_modules): Add time_r.
92349         * modules/time_r: New file.
92350         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92351         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92352
92353 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92354
92355         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92356         Bug reported by Lute Kamstra in
92357         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92358
92359         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92360         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92361         course with correspondingly smaller numbers for tomorrow and
92362         yesterday.  From Tadayoshi Funaba.  Originally installed into
92363         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92364         coreutils merge?).
92365
92366 2003-08-31  Simon Josefsson  <jas@extundo.com>
92367
92368         * modules/timegm: New file.
92369         * MODULES.html.sh (func_all_modules): Add timegm.
92370
92371 2003-08-31  Simon Josefsson  <jas@extundo.com>
92372
92373         * m4/timegm.m4: New file.
92374
92375 2003-08-31  Simon Josefsson  <jas@extundo.com>
92376
92377         * lib/timegm.h: New file.
92378         * lib/timegm.c: New file.  Based on
92379         wget-1.8.2/src/http.c:mktime_from_utc.
92380
92381 2003-08-31  Karl Berry  <karl@gnu.org>
92382
92383         * lib/argp.h: update from libc.
92384
92385 2003-08-28  Bruno Haible  <bruno@clisp.org>
92386
92387         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92388         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92389         followed by '#define fnmatch fnmatch_posix' gives an error.
92390
92391 2003-08-28  Bruno Haible  <bruno@clisp.org>
92392
92393         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92394         warning on QNX, which defines O_BINARY to 000000.
92395
92396 2003-08-27  Jim Meyering  <jim@meyering.net>
92397
92398         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92399         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92400         would fail after 32.  Reported by Danny Levinson.  Details here:
92401         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92402
92403 2003-08-24  Bruno Haible  <bruno@clisp.org>
92404
92405         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92406         MSVC7 <stdio.h> is included later.
92407
92408 2003-08-22  Simon Josefsson  <jas@extundo.com>
92409
92410         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92411
92412 2003-08-20  Karl Berry  <karl@gnu.org>
92413
92414         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92415
92416 2003-08-20  Bruno Haible  <bruno@clisp.org>
92417
92418         * modules/progname: New file.
92419         * MODULES.html.sh (func_all_modules): Add progname.
92420
92421 2003-08-20  Bruno Haible  <bruno@clisp.org>
92422
92423         * lib/progname.h: New file, from GNU gettext.
92424         * lib/progname.c: New file, from GNU gettext.
92425         * lib/progreloc.c: New file, from GNU gettext.
92426
92427 2003-08-19  Jim Meyering  <jim@meyering.net>
92428
92429         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92430         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92431
92432 2003-08-19  Bruno Haible  <bruno@clisp.org>
92433
92434         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92435         more.
92436
92437 2003-08-19  Bruno Haible  <bruno@clisp.org>
92438
92439         * lib/xstrdup.c: Assume <string.h> exists.
92440
92441 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92442
92443         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92444         in makefile rules.
92445
92446 2003-08-18  Jim Meyering  <jim@meyering.net>
92447
92448         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92449         * m4/lib-ld.m4: Likewise.
92450
92451 2003-08-18  Jim Meyering  <jim@meyering.net>
92452
92453         * lib/setenv.h: Indent nested cpp directive.
92454         * lib/vasnprintf.c: Remove trailing blanks.
92455
92456 2003-08-17  Simon Josefsson  <jas@extundo.com>
92457
92458         * modules/xstrndup: New file.
92459         * MODULES.html.sh (func_all_modules): Add xstrndup.
92460
92461 2003-08-17  Simon Josefsson  <jas@extundo.com>
92462
92463         * modules/argp: Fix autoconf macro name. Add more dependencies.
92464
92465 2003-08-17  Simon Josefsson  <jas@extundo.com>
92466
92467         * m4/xstrndup.m4: New file.
92468
92469 2003-08-17  Simon Josefsson  <jas@extundo.com>
92470
92471         * m4/argp.m4: New file.
92472
92473 2003-08-17  Simon Josefsson  <jas@extundo.com>
92474             Bruno Haible  <bruno@clisp.org>
92475
92476         * lib/xstrndup.h: New file.
92477         * lib/xstrndup.c: New file.
92478
92479 2003-08-17  Bruno Haible  <bruno@clisp.org>
92480
92481         * modules/strndup (Files, Include): Add lib/strndup.h.
92482
92483 2003-08-17  Bruno Haible  <bruno@clisp.org>
92484
92485         * modules/euidaccess (Files): Add lib/euidaccess.h.
92486
92487 2003-08-17  Bruno Haible  <bruno@clisp.org>
92488
92489         * lib/strndup.h: New file.
92490
92491 2003-08-17  Bruno Haible  <bruno@clisp.org>
92492
92493         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92494         like AC_GNU_SOURCE.
92495         * modules/extensions (configure.ac): Comment out the invocation of
92496         gl_USE_SYSTEM_EXTENSIONS.
92497
92498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92499
92500         Merges from coreutils, etc.
92501         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92502         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92503         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92504         fixing a typo.
92505         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92506         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92507
92508 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92509
92510         Document merge from coreutils.
92511         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92512         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92513         * modules/utime: Add m4/utimes-null.m4.
92514
92515 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92516
92517         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92518         space, undoing this 2003-08-12 change:
92519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92520
92521 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92522
92523         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92524         strtoul.c from libc, undoing this 2003-08-12 change:
92525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92526
92527 2003-08-16  Jim Meyering  <jim@meyering.net>
92528
92529         Merges from coreutils.
92530         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92531         prefix.  Adjust cache variables similarly.  Create 500 rather than
92532         just 300 files, to exercise bug on Darwin6.5, too.
92533         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92534         $missing_dir.
92535         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92536         AM_SYS_POSIX_TERMIOS.
92537         Reported by mkc@mathdogs.com.
92538         Also change use of $am_cv_sys_posix_termios
92539         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92540         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92541         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92542         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92543         in /proc/mounts until it finds one with matching device number.  This
92544         is unnecessary when the FILE argument *is* a mount point.  No stat call
92545         is necessary in that case.  So, disable the statvfs-testing code on
92546         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92547         as RedHat bug# 84846.
92548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92549         to 1MB, so as not to render systems with no stack size limit (e.g.,
92550         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92551         Include <unistd.h>.  On some systems,
92552         it is required for the definition of _SC_PAGESIZE.
92553
92554 2003-08-16  Jim Meyering  <jim@meyering.net>
92555
92556         Merge from coreutils.
92557         * lib/xstrtoimax.c: #else #if -> #elif.
92558         * lib/xstrtoumax.c: Likewise.
92559
92560 2003-08-16  Jim Meyering  <jim@meyering.net>
92561
92562         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92563         * m4/utimes.m4: Removed.
92564         * m4/utimes-null.m4: Renamed from utimes.m4.
92565
92566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92567         to 1MB, so as not to render systems with no stack size limit (e.g.,
92568         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92569         Include <unistd.h>.  On some systems,
92570         it is required for the definition of _SC_PAGESIZE.
92571
92572 2003-08-16  Jim Meyering  <jim@meyering.net>
92573         and Paul Eggert  <eggert@cs.ucla.edu>
92574
92575         Merges from coreutils, etc.
92576
92577         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92578         using the latest version from cvs.  This avoids problems with #line
92579         directives using a vendor (Sun) compiler.
92580         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92581         Don't set GETGROUPS_LIB here; now it's
92582         done via getgroups.m4's wrapper function.
92583         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92584         rather than just in sh-util/configure.in, so that the
92585         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92586         same.
92587         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92588         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92589         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92590         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92591         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92592         Remove code that is now done by the newly-required macros.
92593         Append $(EXEEXT) to DF_PROG.
92594         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92595         Do not invoke or require the following here,
92596         since prereq.m4 or some gnulib .m4 now does this for us:
92597         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92598         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92599         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92600         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92601         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92602         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92603         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92604         AC_FUNC_OBSTACK.
92605         Do not replace the following functions, as this is now the job
92606         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92607         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92608         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92609         atexit getpass, strdup, getpagesize.
92610         Replace 'raise'.
92611         Do not check for the following functions, as this is now the job
92612         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92613         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92614         setregid.
92615         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92616         Check for sys/sysctl.h.
92617         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92618         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92619         of checking for ssize_t ourselves.
92620
92621         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92622         Require every macro that gnulib/modules/* suggests for us.
92623         (jm_PREREQ_ADDEXT): New macro.
92624         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92625         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92626
92627         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92628         (gl_PHYSMEM): Use it.
92629         Also check for `table' function.
92630         Check for new headers and functions.
92631         Add check for sys/sysmp.h.
92632         With suggestions from Kaveh Ghazi.
92633         Ignore headers that are present but cannot be compiled.  This
92634         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92635         C 5.4.
92636
92637 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92638
92639         Document merge from coreutils.
92640         * modules/userspec: Depend on posixver.
92641         * modules/strftime: Depend on tzset.
92642
92643 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92644
92645         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92646         rather than tab, after '#' in shell-script copyright notices.
92647         Suggested by Bruno Haible.
92648
92649 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92650
92651         * config/srclist-update: Use three spaces, rather than tab, after '#'
92652         in shell-script copyright notices.  Suggested by Bruno Haible.
92653         Remove unnecessary parenthesization in regular expression.
92654
92655 2003-08-15  Jim Meyering  <jim@meyering.net>
92656
92657         Merge from coreutils.
92658         * lib/xgethostname.c: Include <stdlib.h>.
92659         (xghostname): Don't exit for anything other than memory-related
92660         failure; just return NULL.
92661         * lib/userspec.c: Include "posixver.h".
92662         (parse_user_spec): Accept `.' as a separator only
92663         in pre-POSIX-200112 mode.
92664         * lib/strtoimax.c: Use #elif rather than #else #if.
92665         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92666         Remove function, now that we can rely on a working tzset function.
92667         [!_LIBC]: Ensure that the required autoconf test has been run.
92668         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92669         Use underlying_strftime for %r.
92670         * lib/sha.c: Merge in some clean-up and optimization changes from
92671         glibc.
92672         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92673         Ensure that it is a multiple of 64.
92674         Rearrange loop exit tests so as to avoid performing an
92675         additional fread after encountering an error or EOF.
92676         * lib/realloc.c: Update copyright date.
92677
92678 2003-08-15  Jim Meyering  <jim@meyering.net>
92679         and Paul Eggert  <eggert@twinsun.com>
92680
92681         Merge from coreutils.
92682         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92683         member but strut utmpx does not.  Needed for AIX 4.3.3.
92684         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92685
92686 2003-08-15  Jim Meyering  <jim@meyering.net>
92687         and Paul Eggert  <eggert@cs.ucla.edu>
92688
92689         Merges from coreutils, etc.
92690         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92691         Require gl_FUNC_TZSET_CLOBBER.
92692         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92693         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92694         members.
92695
92696 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92697
92698         Help the merge from coreutils.
92699         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92700         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92701         * m4/tzset.m4: Use it too.
92702
92703 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92704
92705         * modules/tzset: New file.
92706
92707 2003-08-14  Jim Meyering  <jim@meyering.net>
92708
92709         Merges from coreutils.
92710         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92711         variable names, rather than @FNMATCH_H@.
92712         * modules/alloca: Likewise for $(ALLOCA_H).
92713
92714         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92715         the three copies of the literal target, `fnmatch.h'.
92716         * modules/alloca (alloca.h): Likewise.
92717
92718 2003-08-14  Jim Meyering  <jim@meyering.net>
92719
92720         Merge from coreutils.
92721         * m4/tzset.m4: New file.
92722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92723         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92724         otherwise, AIX 5.1 systems would end up using the latter.
92725         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92726         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92727         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92728         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92729
92730 2003-08-14  Jim Meyering  <jim@meyering.net>
92731
92732         Merge from coreutils.
92733         * lib/obstack.h: Whitespace changes.
92734         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92735         and xcalloc return values.
92736         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92737         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92738         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92739         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92740         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92741         error from mntctl.
92742         Use mntctl's return value to drive the entry-processing loop, since
92743         we can't rely on the value of the vmt_length member in the last
92744         entry.  On some systems doing so could result in exhausting
92745         virtual memory.  Based in part on a patch from Mike Jetzer.
92746
92747 2003-08-14  Jim Meyering  <jim@meyering.net>
92748         and Paul Eggert  <eggert@twinsun.com>
92749
92750         Merges from coreutils, plus other fixes.
92751         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92752         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92753         for credits and details.  Thanks to Kaveh Ghazi for helping
92754         to keep these files in sync.
92755         (ARRAY_SIZE): Define it.
92756         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92757         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92758         (memcasecmp): Don't assume size_t fits in unsigned int.
92759         Remove casts and duplicate code.
92760         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92761         (memcpy): Remove definition.
92762         Merge in some clean-up and optimization changes from glibc.
92763         [BLOCKSIZE]: Move definition to top of file.
92764         Ensure that it is a multiple of 64.
92765         Rearrange loop exit tests so as to avoid performing an
92766         additional fread after encountering an error or EOF.
92767         * lib/md5.h (md5_uintptr): Define.
92768         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92769         return to the initial working directory.  Preserve errno
92770         for caller.
92771         * lib/idcache.c: Include "xalloc.h".
92772         (xmalloc, xrealloc): Remove decls.
92773         (getuser): Remove casts no longer required in C89.
92774         * lib/human.c: Include stdio.h, for sprintf.
92775         * lib/group-member.c: Include "xalloc.h".
92776         (xmalloc, xrealloc): Remove decls.
92777         (get_group_info): Remove casts no longer required in C89.
92778         * lib/getusershell.c (readname): Remove casts no longer required in
92779         C89.
92780         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92781         * lib/getline.c: Whitespace fix, from coreutils.
92782
92783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92784
92785         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92786         Check for isascii.
92787
92788         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92789         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92790         Undo previous (whitespace-only) change.
92791
92792 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92793
92794         * lib/exclude.c: Include <ctype.h>
92795         (IN_CTYPE_DOMAIN): New macro.
92796         (is_space): New fn.
92797         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92798         and empty lines.
92799
92800         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92801         Undo previous (whitespace-only) change.
92802
92803 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92804
92805         * config/srclist-update: Change update back to the old behavior,
92806         leaving whitespace alone.  Use one 'sed' command rather than a
92807         pipeline.
92808         (fixlicense): Now a variable, not a function.
92809         (remove_trailing_blanks): Remove.
92810         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92811         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92812         Undo previous (whitespace-only) change.
92813
92814 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92815
92816         Merge from coreutils.
92817         * modules/euidaccess: Add lib_SOURCES, include for new
92818         file euidaccess.h
92819
92820 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92821
92822         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92823         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92824         Normalize leading white space and remove trailing white space.
92825
92826         Merge from coreutils
92827         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92828
92829         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92830         0.12.1.  These files are now being upgraded automatically by
92831         ../config/srclist-update.
92832
92833 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92834
92835         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92836         Normalize leading white space and remove trailing white space.
92837         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92838         notice, as per ../config/srclist-update.
92839
92840         Merge from coreutils.
92841         * lib/euidaccess.h: New file.
92842         * lib/euidaccess.c: Include it.
92843         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92844         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92845         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92846
92847 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92848
92849         * config/srclist-update: Add copyright notice.
92850         (remove_id_lines, remove_trailing_blanks): New constants.
92851         (fixfile): Use them to normalize spacing a bit in copied files.
92852         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92853         Normalize leading white space and remove trailing white space.
92854
92855         * config/texinfo.tex: Sync with texinfo.
92856
92857         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92858         strtoul.c from libc, to merge coreutils whitespace changes.
92859
92860         * config/srclist.txt: Get the following m4 files from gettext:
92861         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92862         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92863         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92864         wint_t.m4.
92865
92866 2003-08-12  Karl Berry  <karl@gnu.org>
92867
92868         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92869         been made.
92870
92871 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92872
92873         * modules/gnu-source, m4/gnu-source.m4:
92874         Remove; we're assuming Autoconf 2.54 or later now.
92875         Suggested by Bruno Haible.
92876         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92877
92878 2003-08-11  Bruno Haible  <bruno@clisp.org>
92879
92880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92881
92882 2003-08-11  Bruno Haible  <bruno@clisp.org>
92883
92884         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92885         (vasnprintf): Use it instead of wcslen.
92886
92887 2003-08-11  Bruno Haible  <bruno@clisp.org>
92888
92889         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92890         value to ensure that _Bool promotes to int. Use #define for _Bool when
92891         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92892
92893 2003-08-10  Karl Berry  <karl@gnu.org>
92894
92895         * lib/regex.h: update from libc (whitespace fix).
92896
92897 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92898
92899         Merge some files from coreutils.  These changes were
92900         originally made by Jim Meyering.
92901         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92902         many older Unixes require this.
92903         * lib/alloca.c (alloca): Remove cast to argument of free;
92904         no longer needed in C89.
92905         * lib/alloca_.h, regex.h: Fix white space to match
92906         what GNU indent does.
92907
92908 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92909
92910         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92911         apparently Emacs's Unicode mode got confused before my 2003-08-05
92912         checkin.
92913
92914 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92915
92916         * m4/extensions.m4: New file.
92917         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92918         Require gl_USE_SYSTEM_EXTENSIONS.
92919         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92920         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92921
92922 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92923
92924         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92925         * modules/extensions, modules/gnu-source: New files.
92926         * modules/timespec, modules/unlocked-io: Depend on extensions.
92927
92928 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92929
92930         * modules/restrict: New file.
92931         * MODULES.html.sh (func_all_modules): Add restrict.
92932         * modules/regex: Depend on restrict.
92933
92934 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92935
92936         * m4/restrict.m4: New file.
92937         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92938
92939 2003-08-07  Bruno Haible  <bruno@clisp.org>
92940
92941         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92942         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92943
92944 2003-08-07  Bruno Haible  <bruno@clisp.org>
92945
92946         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92947         makes the module 'getndelim2' compatible with the module 'getline'.
92948
92949 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92950
92951         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92952         byte with "\201" to avoid glitches when editing that source file
92953         with multi-gnome-terminal.
92954
92955 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92956
92957         * lib/bumpalloc.h: Remove.
92958
92959 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92960
92961         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92962         * modules/bumpalloc: Remove.
92963
92964 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92965
92966         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92967         GNU coding style.
92968
92969         Merge from coreutils.
92970         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92971         1. From glibc.
92972         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92973         from Karl Berry, implemented by Jim Meyering.
92974         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92975         from Dmitry V. Levin.
92976         Remove anachronistic cast of xrealloc.
92977         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92978         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92979         type. Otherwise, it wouldn't compile with at least /bin/cc on
92980         ymp-cray-unicos9.0.2.X.
92981         Combine two mostly-identical uses of alloca into one.
92982         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92983
92984 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92985
92986         [From Emacs.]
92987
92988         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92989         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92990         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92991         obsolete NLIST_NAME_UNION.
92992         [__GNU__]: Undef BSD and FSCALE.
92993         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92994
92995 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92996
92997         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92998         an enum type, so that it's guaranteed to promote to int.  See:
92999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93000
93001 2003-08-03  Karl Berry  <karl@gnu.org>
93002
93003         * config/depcomp: update from automake.
93004
93005 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93006
93007         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93008         (strerror): Don't assume that a printable int fits in 14 bytes.
93009
93010 2003-07-31  Bruno Haible  <bruno@clisp.org>
93011
93012         * modules/getpass-gnu: New file.
93013         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93014
93015 2003-07-31  Bruno Haible  <bruno@clisp.org>
93016
93017         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93018
93019 2003-07-24  Karl Berry  <karl@gnu.org>
93020
93021         * config/missing: update from automake.
93022
93023 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93024             Bruno Haible  <bruno@clisp.org>
93025
93026         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93027         * lib/getline.c (getline, getdelim): Likewise.
93028         Remove _GNU_SOURCE define; now it's defined in config.h through
93029         m4/getline.m4.
93030
93031 2003-07-23  Karl Berry  <karl@gnu.org>
93032
93033         * config/config.sub: update from prep.
93034
93035 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93036
93037         * modules/xalloc (Depends-on): Add exitfail.
93038         * modules/xmemcoll: Likewise.
93039
93040 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93041
93042         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93043         over-parenthesization in macros.
93044
93045         Sync with coreutils.
93046
93047         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93048         required by C99.
93049
93050         Use `exit_failure' for xalloc and xmemcoll instead of their own
93051         private exit-failure variables.
93052         * lib/xalloc.h (xalloc_exit_failure): Remove.
93053         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93054         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93055         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93056         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93057         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93058
93059 2003-07-20  Jim Meyering  <jim@meyering.net>
93060
93061         * modules/closeout (Depends-on): Add exitfail.
93062         Suggestion from Bruno Haible.
93063
93064 2003-07-19  Karl Berry  <karl@gnu.org>
93065
93066         * config/config.sub: update from prep.
93067
93068 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93069
93070         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93071         Remove.
93072         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93073         to test that it can stand by itself.  Include "exitfail.h".
93074         Clients should set exit_failure instead.
93075         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93076
93077 2003-07-18  Bruno Haible  <bruno@clisp.org>
93078
93079         * modules/getndelim2: New file.
93080         * modules/getline: Share files with module getndelim2.
93081         * modules/getnline: Depend on getndelim2 instead of sharing files with
93082         it. Add getnline.c to lib_SOURCES.
93083         * MODULES.html.sh (func_all_modules): Add getndelim2.
93084
93085 2003-07-18  Bruno Haible  <bruno@clisp.org>
93086
93087         * m4/getndelim2.m4: New file.
93088         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93089         invoke gl_PREREQ_GETNDELIM2.
93090         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93091         gl_PREREQ_GETNDELIM2.
93092         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93093         gl_GETNDELIM2.
93094
93095 2003-07-18  Bruno Haible  <bruno@clisp.org>
93096
93097         * lib/getndelim2.h: New file.
93098         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93099         getndelim2.h.
93100         (getndelim2): Make non-static. Change return type to ssize_t.
93101         * lib/getline.h: Change argument names.
93102         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93103         * lib/getnline.c: Include getndelim2.h.
93104
93105 2003-07-18  Andreas Schwab  <schwab@suse.de>
93106
93107         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93108
93109 2003-07-17  Karl Berry  <karl@gnu.org>
93110
93111         * config/config.sub: update from prep.
93112
93113 2003-07-17  Bruno Haible  <bruno@clisp.org>
93114
93115         * modules/getnline: New file.
93116         * modules/getline: Add lib/getndelim2.c to source file list.
93117         * MODULES.html.sh (func_all_modules): Add getnline.
93118
93119 2003-07-17  Bruno Haible  <bruno@clisp.org>
93120
93121         * m4/getnline.m4: New file.
93122
93123 2003-07-17  Bruno Haible  <bruno@clisp.org>
93124
93125         * m4/Makefile.am.in: Remove file.
93126         * m4/Makefile.am: Remove file.
93127         * m4/Makefile.in: Remove file.
93128
93129 2003-07-17  Bruno Haible  <bruno@clisp.org>
93130
93131         * lib/getnline.h: New file.
93132         * lib/getnline.c: New file.
93133         * lib/getndelim2.c: New file, extracted from getline.c.
93134         (getndelim2): Renamed from getdelim2, with added nmax argument.
93135         * lib/getline.c: Include getndelim2.c.
93136         (getdelim2): Moved out to getndelim2.c.
93137         (getline, getdelim): Update.
93138
93139 2003-07-17  Bruno Haible  <bruno@clisp.org>
93140
93141         * lib/Makefile.am: Remove file.
93142         * lib/Makefile.in: Remove file.
93143
93144 2003-07-17  Bruno Haible  <bruno@clisp.org>
93145
93146         * configure.in: Remove file.
93147         * Makefile.in: Remove file.
93148
93149 2003-07-17  Bruno Haible  <bruno@clisp.org>
93150
93151         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93152
93153 2003-07-16  Karl Berry  <karl@gnu.org>
93154
93155         * config/srclist-update: was running fixlicense twice, which caused
93156                 texinfo.tex to be nullified for some reason.  Simplify,
93157                 $gplsrc is no longer needed as far as I can see?
93158
93159 2003-07-16  Jim Meyering  <jim@meyering.net>
93160
93161         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93162
93163 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93164
93165         * config/srclist.txt: Get the following files from gettext-runtime/intl
93166         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93167         ref-del.sin.  From Bruno Haible.
93168         * config/srclist-update (fixfile): Change grep pattern again, since the
93169         previous fix didn't work (there was another trailing $).  Use
93170         '[$]' to escape the $s.
93171
93172 2003-07-15  Karl Berry  <karl@gnu.org>
93173
93174         * lib/vasnprintf.c: update from gettext.
93175
93176 2003-07-15  Karl Berry  <karl@gnu.org>
93177
93178         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93179         gets expanded when surrounded by '$'.
93180
93181 2003-07-15  Jim Meyering  <jim@meyering.net>
93182
93183         * modules/save-cwd: Don't depend on error.  From Derek Price.
93184
93185 2003-07-15  Jim Meyering  <jim@meyering.net>
93186
93187         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93188
93189 2003-07-14  Simon Josefsson  <jas@extundo.com>
93190
93191         * modules/mempcpy: New file.
93192         * MODULES.html.sh (func_all_modules): Add mempcpy.
93193
93194 2003-07-14  Simon Josefsson  <jas@extundo.com>
93195
93196         * m4/mempcpy.m4: New file.
93197
93198 2003-07-14  Simon Josefsson  <jas@extundo.com>
93199
93200         * lib/mempcpy.h: New file.
93201         * lib/mempcpy.c: New file.
93202
93203 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93204
93205         * modules/getdate, modules/posixtm: Depend on mktime.
93206
93207 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93208
93209         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93210         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93211         unicodeio.c, unicodeio.h, unlocked-io.h:
93212         Switch from LGPL to GPL.
93213
93214 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93215
93216         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93217         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93218         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93219         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93220         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93221         updated automatically by ../config/srclist-update.  This changes
93222         their license from LPGL to GPL.
93223
93224 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93225
93226         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93227         assumed to refer to the root of the most recent stable gettext version.
93228         * config/srclistvars.sh: Add defaults for eggert.
93229         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93230         Match "This program" as well as "The program".  This is needed
93231         for gettext.
93232
93233 2003-07-14  Jim Meyering  <jim@meyering.net>
93234
93235         Don't emit diagnostics.  Let callers do that.
93236         * lib/save-cwd.c: Don't include "error.h".
93237         (save_cwd): Don't call error.  Ensure that errno is valid
93238         when returning nonzero.
93239
93240         * lib/save-cwd.h (restore_cwd): Update prototype.
93241         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93242         Simplify.  Don't call error upon failure.  Let callers do that.
93243         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93244         when auditing is enabled.  But don't bother updating the #if.
93245
93246 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93247
93248         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93249         it breaks C++ compilation.
93250         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93251
93252 2003-07-10  Simon Josefsson  <jas@extundo.com>
93253
93254         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93255
93256 2003-07-10  Jim Meyering  <jim@meyering.net>
93257
93258         * m4/clock_time.m4: Remove trailing blank.
93259         * m4/intmax_t.m4: Likewise.
93260
93261 2003-07-10  Jim Meyering  <jim@meyering.net>
93262
93263         * lib/vasnprintf.c: Remove trailing blanks.
93264         Make cpp indentation consistent.
93265
93266 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93267
93268         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93269         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93270         Switch from LGPL to GPL.
93271
93272 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93273
93274         * config/srclist.txt: Sort sublists.  Add
93275         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93276         that differ from gnulib for one reason or another; we'd like this list
93277         to be smaller but for now let's document what we have.
93278
93279 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93280
93281         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93282         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93283         and sweeter "eval x=$x".
93284         * config/srclist.txt: Get lib/argp* from glibc.
93285
93286 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93287
93288         * lib/mktime.c: Fix some boundary cases and remove need for floating
93289         point.
93290
93291         Issue a compile-time diagnostic if time_t is floating point, or if
93292         two's complement arithmetic is not in effect, or if arithmetic
93293         right shift does not propagate the sign.  These assumptions were
93294         all in the original code but they weren't checked.
93295
93296         (TIME_T_MIDPOINT, verify): New macros.
93297         (__isleap): Remove; it has integer overflow problems.
93298         (leapyear): New function, without those problems.
93299         (ydhms_tm_diff): Remove; splitting into two parts.
93300         (ydhms_diff): New function, containing the arithmetic part of
93301         the old ydhms_tm_diff function.  Issue a compile-time
93302         diagnostic if we are not using C99 integer division.
93303         Avoid casts when possible.
93304         (guess_time_tm): New function, containing the checking part of
93305         the old ydhms_tm_diff function.  Return the new value, rather than
93306         the difference between it and the old.  Accept a new argument T
93307         so that *T specifies the old value.  Check for overflow in the result.
93308
93309         (__mktime_internal): Use a time_t offset, not a long int offset.
93310         This undoes the 2003-06-04 change, which is no longer needed now
93311         that we have better overflow checking.
93312         (localtime_offset): Likewise.
93313
93314         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93315         and long are 64-bit but int is only 32-bit.
93316         (ydhms_diff): Use long int to store year1 and yday1.
93317         Issue a compile-time diagnostic if long int is not wide enough.
93318
93319         (__mktime_internal): Use long int to store adjusted year and yday.
93320         Use plain C rather than preprocessor commands, if that doesn't
93321         affect efficiency.
93322         Check for overflow (and try to repair) after each probe
93323         rather than checking only at the very end.  This avoids some bugs
93324         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93325         does not equal GMT offset at maximum time).
93326         Use integer to check for overflow rather than floating point; this
93327         is more portable to non-IEEE hosts, and is a tad faster.
93328         When we detect that we are oscillating between two values,
93329         don't check whether tm_isdst has the requested value, since
93330         we already know the answer.  When tm_isdst has the wrong value,
93331         use a different heuristic to find the right one, based on the
93332         extreme values actually observed in practice in tz2003a,
93333         rather than the (overly optimistic) "previous 3 calendar quarters".
93334
93335         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93336         "T const" to accommodate glibc style.
93337         (check_result): Use less-confusing report format.  "long" -> "long int.
93338         (main): Likewise.
93339         Don't loop if the iteration overflows time_t.
93340         Allow a negative step in the iteration.
93341
93342 2003-07-06  Karl Berry  <karl@gnu.org>
93343
93344         * config/depcomp: update from automake.
93345         * config/config.sub: update from prep.
93346
93347 2003-07-03  Karl Berry  <karl@gnu.org>
93348
93349         * config/config.guess: update from prep.
93350
93351 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93352
93353         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93354         xreadlink.c now includes it unconditionally.
93355
93356 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93357
93358         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93359         having it depend on HAVE_SYS_TYPES_H.
93360
93361 2003-07-01  Bruno Haible  <bruno@clisp.org>
93362
93363         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93364         <sys/types.h> should be sufficient.
93365         Reported by Paul Eggert.
93366
93367 2003-06-26  Karl Berry  <karl@gnu.org>
93368
93369         * config/depcomp: update from automake.
93370
93371 2003-06-26  Bruno Haible  <bruno@clisp.org>
93372
93373         * modules/human: Depend on module stdbool.
93374
93375 2003-06-25  Bruno Haible  <bruno@clisp.org>
93376
93377         * modules/readlink: New file.
93378         * modules/xreadlink: Depend on it.
93379         * MODULES.html.sh (func_all_modules): Add readlink.
93380
93381 2003-06-25  Bruno Haible  <bruno@clisp.org>
93382
93383         * m4/readlink.m4: New file.
93384
93385 2003-06-25  Bruno Haible  <bruno@clisp.org>
93386
93387         * lib/readlink.c: New file.
93388
93389 2003-06-22  Karl Berry  <karl@gnu.org>
93390
93391         * config/srclist.txt: update mkinstalldirs from automake.
93392         * config/mkinstalldirs: update.
93393
93394 2003-06-22  Bruno Haible  <bruno@clisp.org>
93395
93396         Portability to mingw32.
93397         * m4/ssize_t.m4: New file, from GNU gettext.
93398         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93399         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93400
93401 2003-06-22  Bruno Haible  <bruno@clisp.org>
93402
93403         * modules/safe-read: Add m4/ssize_t.m4.
93404         * modules/xreadlink: Add m4/ssize_t.m4.
93405
93406 2003-06-20  Bruno Haible  <bruno@clisp.org>
93407
93408         Assume C89, so PARAMS isn't needed.
93409         * lib/unicodeio.h (PARAMS): Remove.
93410         * lib/unicodeio.c: Don't use PARAMS.
93411
93412 2003-06-18  Karl Berry  <karl@gnu.org>
93413
93414         * config/config.{guess,sub}: update from prep.
93415
93416 2003-06-18  Jim Meyering  <jim@meyering.net>
93417
93418         Merge changes from coreutils.
93419         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93420         Remove explicit declarations of xmalloc and realloc.
93421         Include xalloc.h.
93422         (read_utmp): Remove anachronistic cast of xmalloc.
93423
93424 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93425
93426         Assume C89, so PARAMS isn't needed.
93427         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93428         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93429         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93430         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93431         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93432         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93433         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93434         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93435         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93436         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93437         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93438         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93439         no longer needed. Anyway, config.h should always be included before any
93440         other file.
93441
93442 2003-06-11  Simon Josefsson  <jas@extundo.com>
93443
93444         * modules/sysexits: New file.
93445         * MODULES.html.sh (func_all_modules): Add sysexits.
93446
93447 2003-06-11  Simon Josefsson  <jas@extundo.com>
93448
93449         * lib/sysexit_.h: New file.
93450
93451 2003-06-11  Derek Price  <derek@ximbiot.com>
93452
93453         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93454         necessary.
93455
93456 2003-06-11  Bruno Haible  <bruno@clisp.org>
93457
93458         * m4/sysexits.m4: New file.
93459
93460 2003-06-10  Simon Josefsson  <jas@extundo.com>
93461
93462         * lib/argp.h: New file, from glibc.
93463         * lib/argp-ba.c: New file, from glibc.
93464         * lib/argp-eexst.c: New file, from glibc.
93465         * lib/argp-fmtstream.c: New file, from glibc.
93466         * lib/argp-fmtstream.h: New file, from glibc.
93467         * lib/argp-fs-xinl.c: New file, from glibc.
93468         * lib/argp-help.c: New file, from glibc.
93469         * lib/argp-namefrob.h: New file, from glibc.
93470         * lib/argp-parse.c: New file, from glibc.
93471         * lib/argp-pv.c: New file, from glibc.
93472         * lib/argp-pvh.c: New file, from glibc.
93473         * lib/argp-xinl.c: New file, from glibc.
93474
93475 2003-06-10  Simon Josefsson  <jas@extundo.com>
93476
93477         * modules/strchrnul: New file.
93478
93479 2003-06-10  Simon Josefsson  <jas@extundo.com>
93480
93481         * modules/argp: New file.
93482
93483 2003-06-10  Simon Josefsson  <jas@extundo.com>
93484
93485         * m4/strchrnul.m4: New file.
93486
93487 2003-06-10  Simon Josefsson  <jas@extundo.com>
93488
93489         * lib/strchrnul.h: New file.
93490         * lib/strchrnul.c: New file.
93491
93492 2003-06-10  Bruno Haible  <bruno@clisp.org>
93493
93494         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93495
93496 2003-06-07  Karl Berry  <karl@gnu.org>
93497
93498         * config/config.{guess,sub}: update from prep.
93499
93500 2003-06-07  Jim Meyering  <jim@meyering.net>
93501
93502         * modules/strtod: Use $(...) notation, not @...@ for
93503         AC_REPLACE'd variables.
93504         * modules/localcharset: Likewise.
93505
93506 2003-06-07  Jim Meyering  <jim@meyering.net>
93507
93508         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93509         in place of my name in the copyright comment.
93510         Remove definition and uses of __P.
93511
93512         From coreutils.
93513         * lib/stat.c: Don't declare xmalloc explicitly.
93514         Instead, include "xalloc.h".
93515         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93516         xrealloc, and xcalloc return values.
93517         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93518         Improve comment.
93519         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93520
93521 2003-06-07  Bruno Haible  <bruno@clisp.org>
93522
93523         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93524         avoid AC_CONFIG_LINKS.
93525         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93526         fnmatch.h, to avoid AC_CONFIG_LINKS.
93527         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93528
93529 2003-06-07  Bruno Haible  <bruno@clisp.org>
93530
93531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93532         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93533         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93534         directory.
93535         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93536         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93537         directory.
93538
93539 2003-06-06  Jim Meyering  <jim@meyering.net>
93540
93541         Merge from coreutils.
93542         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93543         Consolidate declarations and initializations of *_base* locals.
93544
93545         Merge from coreutils.
93546         This avoids a core dump on systems without GNU putenv,
93547         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93548         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93549         (unsetenv): New static function, from GNU libc.
93550         (rpl_putenv): Use it.
93551
93552         * lib/modechange.c: Remove trailing blanks.
93553
93554         Merge from coreutils.
93555         * lib/fsusage.c: Remove declaration of statfs.
93556         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93557
93558         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93559
93560 2003-06-06  Jim Meyering  <jim@meyering.net>
93561
93562         * lib/stdbool_.h: Renamed from stdbool.h.in.
93563
93564 2003-06-06  Jim Meyering  <jim@meyering.net>
93565             Bruno Haible  <bruno@clisp.org>
93566
93567         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93568         Adjust Makefile.am snippet not to redirect directly to target.
93569         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93570
93571 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93572
93573         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93574         mismatch, look in future quarters as well as past.  This fixes a
93575         bug when processing fall-backwards gaps immediately after a long
93576         period of daylight-saving time.
93577
93578         * lib/mktime.c: Assume freestanding C89 or better.
93579         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93580         (__P): Remove; not used.
93581         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93582         (mktime, not_equal_tm, print_tm, check_result,
93583         main): Use prototypes.  Use const * where appropriate.
93584         (main): Fix typo in testing code that uncovered by above changes.
93585         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93586
93587 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93588
93589         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93590         locale.h, localeconv.  This merges changes from coreutils.
93591
93592         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93593         It can be removed after the next Autoconf is released.
93594         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93595         needed.
93596
93597 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93598
93599         * lib/mktime.c: Fix Debian bug 177940
93600         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93601         (localtime_offset): Now long int, not time_t, because we want it
93602         to be guaranteed to be signed.  All uses changed.
93603         (__mktime_internal): If overflow would occur when adding offset,
93604         don't add it.
93605
93606         Merge 'human' changes from coreutils.  Rewrite to support
93607         locale-specific notations like thousands separators.
93608         * lib/human.c: Simplify authorship notice.
93609         Include human.h immediately after config.h.
93610         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93611         <limits.h>: Do not include, since human.h does.
93612         (SIZE_MAX, UINTMAX_MAX): New macros.
93613         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93614         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93615         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93616         (power_letter): Renamed from suffixes.
93617         (generate_suffix_backwards): Remove.
93618         (adjust_value): Now takes int style (because of human.h changes)
93619         and long double value (for greater precision on some platforms).
93620         (group_number): New function.
93621         (human_readable): Use it.  Use integer options, not enum.
93622         Put the options before the sizes in the arg list.
93623         Support all the new options.
93624         The old human_readable function has been removed;
93625         use inttostr.h instead.
93626         (human_readable, default_block_size, humblock):
93627         Use uintmax_t, not int, for block sizes.
93628         (human_readable_inexact, block_size_types): Remove.
93629         (block_size_opts): New constant.
93630         (human_options): Renamed from human_block_size, with new signature
93631         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93632         * lib/human.h: Add copyright and authorship notice.
93633         Include <limits.h> and <stdbool.h> unconditionally.
93634         (PARAMS): Remove.  All uses removed.
93635         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93636         (enum human_inexact_style): Remove tag; now a nameless enum.
93637         (human_floor, human_ceiling, human_round_to_even): Now have
93638         values 2, 0, 1 rather than -1, 1, 0.
93639         (human_group_digits, human_suppress_point_zero, human_autoscale,
93640         human_base_1024, human_SI, human_B): New constants.
93641         (human_readable_inexact, human_block_size): Remove.
93642         (human_readable): Size args are now uintmax_t, not int.
93643         (human_options): New decl.
93644
93645         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93646         unnecessary now that we assume C89 or better.  This change
93647         imported from coreutils.
93648
93649         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93650         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93651         in the 2003-05-30 sync from glibc.
93652
93653         .h files should stand alone, but we shouldn't include <sys/types.h>
93654         if we can get away with just <stddef.h>.
93655
93656         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93657         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93658         rather than <sys/types.h>, as we merely need size_t.
93659         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93660         to get size_t.
93661         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93662         Include <stdio.h>, to get FILE.
93663         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93664         memcasecmp.h has included <stddef.h> and all we need is size_t.
93665         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93666         our interface, instead of including <sys/types.h>
93667
93668 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93669
93670         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93671         now, as glibc mktime is buggy on non-glibc systems.
93672
93673 2003-06-03  Karl Berry  <karl@gnu.org>
93674
93675         * config/config.sub: update from prep.
93676
93677 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93678
93679         [from coreutils]
93680         Fix some minor time-related bugs with POSIX time arguments.
93681         Some valid time stamps were being rejected (notably -1, and
93682         time stamps before 1900 on 64-bit hosts).  And some invalid
93683         time stamps were being accepted, e.g. September 31.
93684
93685         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93686         that we can return (time_t) -1 successfully.
93687         * lib/posixtm.c: Likewise.
93688         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93689         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93690         (t): Remove static var.
93691         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93692         of static var.  All uses changed.
93693         (year): Do not reject years before 1900; they can occur with
93694         64-bit time_t.
93695         (posix_time_parse): Do not check for out-of-range components;
93696         that is now the caller's responsibility, since our checks were
93697         only approximations.
93698         (posixtime): Use mktime to check for out-of-range components,
93699         since it knows them exactly.
93700         If mktime returns (time_t) -1, check whether an error actually occurred
93701         by invoking localtime on -1.
93702         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93703         posixtime failures better.
93704         Improve the test data (in comments only).
93705
93706 2003-06-02  Karl Berry  <karl@gnu.org>
93707
93708         * config/mkinstalldirs (version): new variable.
93709         (--version): new option.
93710         (usage): improve message.
93711
93712 2003-05-30  Karl Berry  <karl@gnu.org>
93713
93714         * lib/mktime.c: update from libc.
93715
93716 2003-05-30  Bruno Haible  <bruno@clisp.org>
93717
93718         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93719         * config/config.rpath: Upgrade to gettext-0.12.1.
93720
93721 2003-05-30  Bruno Haible  <bruno@clisp.org>
93722
93723         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93724         * m4/nls.m4: New file, from gettext-0.12.1.
93725         * m4/po.m4: New file, from gettext-0.12.1.
93726         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93727
93728 2003-05-30  Bruno Haible  <bruno@clisp.org>
93729
93730         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93731         * lib/localcharset.h: Likewise.
93732         * lib/localcharset.c: Likewise.
93733
93734 2003-05-29  Karl Berry  <karl@gnu.org>
93735
93736         * config/config.rpath: update from gettext.
93737
93738 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93739
93740         Assume the headers required for C89 freestanding compilers.
93741         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93742         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93743         * m4/human.m4 (gl_HUMAN): Likewise.
93744         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93745         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93746         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93747         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93749         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93750
93751 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93752
93753         Assume the headers required for C89 freestanding compilers.
93754         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93755         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93756         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93757         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93758         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93759         define, since <limits.h> is guaranteed to do that.
93760         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93761         * lib/exclude.c: Include <stdbool.h> unconditionally.
93762         * lib/tempname.c: Include <stddef.h> unconditionally.
93763         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93764         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93765         <stddef.h> does that.
93766         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93767         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93768         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93769         needed.
93770         * lib/xstrtol.c: Likewise.
93771         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93772         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93773
93774         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93775         warnings on some platforms.
93776
93777         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93778         arbitrarily.
93779
93780 2003-05-26  Jim Meyering  <jim@meyering.net>
93781
93782         Merge in a change from coreutils:
93783         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93784         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93785         that condition, rather than `-1' which is slightly misleading.
93786         Change the name of the cache variable to have the gl_ prefix.
93787         Prompted by a patch from Richard Dawe for DJGPP.
93788
93789 2003-05-24  Karl Berry  <karl@gnu.org>
93790
93791         * config/config.guess: update from prep.
93792
93793 2003-05-22  Karl Berry  <karl@gnu.org>
93794
93795         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93796
93797 2003-05-20  Karl Berry  <karl@gnu.org>
93798
93799         * config/config.guess: update from prep.
93800
93801 2003-05-18  Karl Berry  <karl@gnu.org>
93802
93803         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93804         might actually be set by the user.
93805
93806         * config/depcomp, install-sh, mdate-sh: update from automake.
93807
93808 2003-05-17  Bruno Haible  <bruno@clisp.org>
93809
93810         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93811         invalid expansion for AC_EGREP_CPP.
93812         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93813         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93814         Suggested by Akim Demaille <akim@epita.fr> in
93815         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93816
93817 2003-05-12  Jim Meyering  <jim@meyering.net>
93818
93819         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93820         the space-padded-by-default conversion specifiers, %e, %k, %l.
93821
93822 2003-05-12  Bruno Haible  <bruno@clisp.org>
93823
93824         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93825         the string is longer than 4 KB.
93826
93827 2003-05-11  Karl Berry  <karl@gnu.org>
93828
93829         * config/config.{guess,sub}: update from prep.
93830
93831 2003-05-09  Bruno Haible  <bruno@clisp.org>
93832
93833         * modules/error: Add m4/strerror_r.m4 to file list.
93834
93835 2003-05-03  Bruno Haible  <bruno@clisp.org>
93836
93837         Upgrade to Unicode-4.0.
93838         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93839         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93840         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93841         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93842         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93843         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93844         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93845         Change width of U+E0100..U+E01EF from 1 to 0.
93846
93847 2003-04-25  Jim Meyering  <jim@meyering.net>
93848
93849         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93850         of type size_t, not int.
93851
93852 2003-04-25  Bruno Haible  <bruno@clisp.org>
93853
93854         * lib/copy-file.c: Include <stddef.h>, for size_t.
93855
93856 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93857
93858         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93859         code which expansion is under static control.  Patch imported from
93860         Akim Demaille's patch to Bison; see
93861         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93862
93863 2003-04-14  Bruno Haible  <bruno@clisp.org>
93864
93865         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93866
93867 2003-04-11  Jim Meyering  <jim@meyering.net>
93868
93869         Merge changes from Coreutils.
93870
93871         2003-03-22  Jim Meyering  <jim@meyering.net>
93872
93873         * lib/strftime.c (widen): Cast alloca return value to proper type.
93874
93875         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93876
93877         From GNU libc.
93878         * lib/strftime.c (my_strftime): Handle very large width
93879         specifications for numeric values correctly.  Improve checks for
93880         overflow.
93881
93882         2003-01-19  Jim Meyering  <jim@meyering.net>
93883
93884         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93885         definitions.
93886         (nl_get_alt_digit) [! defined my_strftime]: Define.
93887         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93888         _nl_get_alt_digit and _nl_get_walt_digit.
93889
93890         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93891         libc. These changes have no effect outside of _LIBC.
93892
93893 2003-04-10  Bruno Haible  <bruno@clisp.org>
93894
93895         * modules/findprog: New file.
93896         * MODULES.html.sh (func_all_modules): Add it.
93897
93898 2003-04-10  Bruno Haible  <bruno@clisp.org>
93899
93900         * m4/findprog.m4: New file.
93901         * m4/eaccess.m4: New file.
93902
93903 2003-04-10  Bruno Haible  <bruno@clisp.org>
93904
93905         * lib/findprog.h: New file, from GNU gettext.
93906         * lib/findprog.c: New file, from GNU gettext.
93907
93908 2003-04-05  Jim Meyering  <jim@meyering.net>
93909
93910         Merge changes from Coreutils.
93911
93912         * lib/exclude.h (PARAMS): Remove definition and uses.
93913         * lib/exclude.c: Remove uses of `PARAMS'.
93914
93915         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93916         Add test-cases for DOS filenames. Declare program_name.
93917         (main): Set up program_name.  Patch by Rich Dawe.
93918
93919         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93920         error from mntctl.
93921         Use mntctl's return value to drive the entry-processing loop, since
93922         we can't rely on the value of the vmt_length member in the last
93923         entry.  On some systems doing so could result in exhausting
93924         virtual memory.  Based in part on a patch from Mike Jetzer.
93925
93926 2003-04-04  Bruno Haible  <bruno@clisp.org>
93927
93928         * modules/linebreak: New file.
93929         * MODULES.html.sh (func_all_modules): Add it.
93930
93931 2003-04-04  Bruno Haible  <bruno@clisp.org>
93932
93933         * m4/linebreak.m4: New file.
93934
93935 2003-04-04  Bruno Haible  <bruno@clisp.org>
93936
93937         * lib/linebreak.h: New file, from GNU gettext.
93938         * lib/linebreak.c: New file, from GNU gettext with slight
93939         modifications.
93940         * lib/lbrkprop.h: New file, from GNU gettext.
93941
93942 2003-04-03  Bruno Haible  <bruno@clisp.org>
93943
93944         * modules/utf8-ucs4: New file.
93945         * modules/utf16-ucs4: New file.
93946         * modules/ucs4-utf8: New file.
93947         * modules/ucs4-utf16: New file.
93948         * MODULES.html.sh (func_all_modules): Add them.
93949
93950 2003-04-03  Bruno Haible  <bruno@clisp.org>
93951
93952         * m4/utf-ucs4.m4: New file.
93953         * m4/ucs4-utf.m4: New file.
93954
93955 2003-04-03  Bruno Haible  <bruno@clisp.org>
93956
93957         * lib/utf8-ucs4.h: New file, from GNU gettext.
93958         * lib/utf16-ucs4.h: New file, from GNU gettext.
93959         * lib/ucs4-utf8.h: New file, from GNU gettext.
93960         * lib/ucs4-utf16.h: New file, from GNU gettext.
93961
93962 2003-04-02  Bruno Haible  <bruno@clisp.org>
93963
93964         * modules/binary-io: New file.
93965         * MODULES.html.sh (func_all_modules): Add it.
93966
93967 2003-04-02  Bruno Haible  <bruno@clisp.org>
93968
93969         * lib/binary-io.h: New file, from GNU gettext.
93970
93971 2003-04-01  Bruno Haible  <bruno@clisp.org>
93972
93973         * modules/pathname: New file.
93974         * MODULES.html.sh (func_all_modules): Add it.
93975
93976 2003-04-01  Bruno Haible  <bruno@clisp.org>
93977
93978         * lib/pathname.h: New file, from GNU gettext.
93979         * lib/concatpath.c: New file, from GNU gettext.
93980
93981 2003-03-30  Bruno Haible  <bruno@clisp.org>
93982
93983         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93984
93985 2003-03-30  Bruno Haible  <bruno@clisp.org>
93986
93987         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93988         function chown() doesn't exist.
93989
93990 2003-03-28  Bruno Haible  <bruno@clisp.org>
93991
93992         * modules/copy-file: New file.
93993         * MODULES.html.sh (func_all_modules): Add it.
93994
93995 2003-03-28  Bruno Haible  <bruno@clisp.org>
93996
93997         * m4/copy-file.m4: New file.
93998
93999 2003-03-28  Bruno Haible  <bruno@clisp.org>
94000
94001         * lib/copy-file.h: New file, from GNU gettext.
94002         * lib/copy-file.c: New file, from GNU gettext.
94003
94004 2003-03-18  Jim Meyering  <jim@meyering.net>
94005
94006         * lib/quote.c (quote_n): Fix typo in comment.
94007
94008 2003-03-18  Bruno Haible  <bruno@clisp.org>
94009
94010         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94011         checking.
94012         * m4/onceonly_2_57.m4: Likewise.
94013
94014 2003-03-17  Bruno Haible  <bruno@clisp.org>
94015
94016         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94017         (m4_quote): Remove macro.
94018         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94019
94020 2003-03-14  Jim Meyering  <jim@meyering.net>
94021
94022         Merge changes from Coreutils.
94023         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94024         to be const, in order to avoid warnings.
94025         (obstack_room): Likewise.
94026         (obstack_empty_p): Likewise.
94027
94028 2003-03-14  Bruno Haible  <bruno@clisp.org>
94029
94030         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94031         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94032
94033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94034
94035         Merge changes from Bison.
94036         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94037         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94038         when compiling Bison 1.875's `bitset bset = obstack_alloc
94039         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94040         * lib/hash.c: Include <stdbool.h> unconditionally.
94041
94042 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94043
94044         * m4/onceonly.m4 (m4_quote): New macro.
94045         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94046         Quote AC_FOREACH variable-expansions properly.
94047
94048 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94049
94050         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94051
94052 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94053
94054         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94055         Reported by Bruce Becker; see:
94056         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94057
94058 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94059             Bruno Haible  <bruno@clisp.org>
94060
94061         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94062         Reported by John Hughes, see
94063         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94064
94065 2003-02-20  Bruno Haible  <bruno@clisp.org>
94066
94067         * MODULES.html.sh (func_all_modules): Add poll.
94068
94069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94070
94071         * modules/poll: New file.
94072
94073 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94074
94075         * lib/poll_.h: New file.
94076         * lib/poll.c: New file.
94077
94078 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94079
94080         * m4/poll.m4: New file.
94081
94082 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94083
94084         * modules/mathl: New file.
94085
94086 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94087
94088         * lib/mathl.h: New file.
94089         * lib/acosl.c: New file.
94090         * lib/asinl.c: New file.
94091         * lib/atanl.c: New file.
94092         * lib/ceill.c: New file.
94093         * lib/cosl.c: New file.
94094         * lib/expl.c: New file.
94095         * lib/floorl.c: New file.
94096         * lib/frexpl.c: New file.
94097         * lib/ldexpl.c: New file.
94098         * lib/logl.c: New file.
94099         * lib/sincosl.c: New file.
94100         * lib/sinl.c: New file.
94101         * lib/sqrtl.c: New file.
94102         * lib/tanl.c: New file.
94103         * lib/trigl.c: New file.
94104         * lib/trigl.h: New file.
94105
94106 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94107
94108         * m4/mathl.m4: New file.
94109
94110 2003-02-18  Bruno Haible  <bruno@clisp.org>
94111
94112         * MODULES.html.sh (func_all_modules): Add mathl.
94113
94114 2003-02-17  Bruno Haible  <bruno@clisp.org>
94115
94116         * modules/mkdtemp: New module.
94117         * MODULES.html.sh (func_all_modules): Add it.
94118
94119 2003-02-17  Bruno Haible  <bruno@clisp.org>
94120
94121         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94122
94123 2003-02-17  Bruno Haible  <bruno@clisp.org>
94124
94125         * lib/mkdtemp.h: New file, from GNU gettext.
94126         * lib/mkdtemp.c: New file, from GNU gettext.
94127
94128 2003-02-02  Jim Meyering  <jim@meyering.net>
94129
94130         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94131         e.g. glibc-2.2.93.
94132
94133 2003-01-31  Bruno Haible  <bruno@clisp.org>
94134
94135         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94136         'rpl_rename'.
94137         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94138         'rpl_strnlen'.
94139         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94140         'rpl_strtod'.
94141         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94142         'rpl_utime'.
94143
94144 2003-01-31  Bruno Haible  <bruno@clisp.org>
94145
94146         * lib/rename.c: #undef rename before defining rpl_rename.
94147         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94148
94149 2003-01-30  Bruno Haible  <bruno@clisp.org>
94150
94151         * modules/vasnprintf, modules/vasprintf: New modules.
94152         * MODULES.html.sh (func_all_modules): Add them.
94153
94154 2003-01-30  Bruno Haible  <bruno@clisp.org>
94155
94156         * m4/signed.m4: New file, from GNU gettext.
94157         * m4/longdouble.m4: New file, from GNU gettext.
94158         * m4/wchar_t.m4: New file, from GNU gettext.
94159         * m4/wint_t.m4: New file, from GNU gettext.
94160         * m4/vasnprintf.m4: New file.
94161         * m4/vasprintf.m4: New file.
94162
94163 2003-01-30  Bruno Haible  <bruno@clisp.org>
94164
94165         * lib/printf-args.h: New file, from GNU gettext.
94166         * lib/printf-args.c: New file, from GNU gettext.
94167         * lib/printf-parse.h: New file, from GNU gettext.
94168         * lib/printf-parse.c: New file, from GNU gettext.
94169         * lib/vasnprintf.h: New file, from GNU gettext.
94170         * lib/vasnprintf.c: New file, from GNU gettext.
94171         * lib/asnprintf.c: New file, from GNU gettext.
94172         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94173         * lib/vasprintf.c: New file, from GNU gettext.
94174         * lib/asprintf.c: New file, from GNU gettext.
94175
94176 2003-01-29  Bruno Haible  <bruno@clisp.org>
94177
94178         * modules/stpncpy: New module.
94179         * MODULES.html.sh (func_all_modules): Add it.
94180
94181 2003-01-29  Bruno Haible  <bruno@clisp.org>
94182
94183         * m4/stpncpy.m4: New file.
94184
94185 2003-01-29  Bruno Haible  <bruno@clisp.org>
94186
94187         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94188         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94189
94190 2003-01-28  Bruno Haible  <bruno@clisp.org>
94191
94192         * modules/c-ctype: New module.
94193         * MODULES.html.sh (func_all_modules): Add it.
94194
94195 2003-01-28  Bruno Haible  <bruno@clisp.org>
94196
94197         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94198         Paul Eggert.
94199         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94200         Paul Eggert.
94201
94202 2003-01-27  Bruno Haible  <bruno@clisp.org>
94203
94204         * modules/xsetenv: New module.
94205         * MODULES.html.sh (func_all_modules): Add it.
94206
94207 2003-01-27  Bruno Haible  <bruno@clisp.org>
94208
94209         * lib/xsetenv.h: New file, from GNU gettext.
94210         * lib/xsetenv.c: New file, from GNU gettext.
94211
94212 2003-01-23  Jim Meyering  <jim@meyering.net>
94213
94214         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94215         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94216
94217 2003-01-23  Bruno Haible  <bruno@clisp.org>
94218
94219         * modules/minmax: New module.
94220         * MODULES.html.sh (func_all_modules): Add it.
94221
94222 2003-01-23  Bruno Haible  <bruno@clisp.org>
94223
94224         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94225         Eggert.
94226
94227 2003-01-22  Bruno Haible  <bruno@clisp.org>
94228
94229         * modules/exit: New module.
94230         * MODULES.html.sh (func_all_modules): Add it.
94231
94232 2003-01-22  Bruno Haible  <bruno@clisp.org>
94233
94234         * lib/exit.h: New file, from GNU gettext.
94235
94236 2003-01-19  Bruno Haible  <bruno@clisp.org>
94237
94238         * gnulib-tool: Recognize option --extract-maintainer.
94239         (func_get_maintainer): New function.
94240         * modules/*: Add Maintainer entry.
94241
94242 2003-01-16  Jim Meyering  <jim@meyering.net>
94243
94244         * m4/regex.m4: The `regex' struct is both input and output.
94245         Initialize it before each use.  Patch by Tim Waugh.
94246
94247 2003-01-16  Bruno Haible  <bruno@clisp.org>
94248
94249         * MODULES.html.sh: Add a table of contents. Add the module name as
94250         leftmost column. Add hyperlinks.
94251
94252 2003-01-15  Bruno Haible  <bruno@clisp.org>
94253
94254         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94255
94256 2003-01-15  Bruno Haible  <bruno@clisp.org>
94257
94258         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94259         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94260         suffix.
94261
94262 2003-01-15  Bruno Haible  <bruno@clisp.org>
94263
94264         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94265
94266 2003-01-15  Bruno Haible  <bruno@clisp.org>
94267
94268         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94269         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94270
94271 2003-01-14  Jim Meyering  <jim@meyering.net>
94272
94273         * lib/same.c (same_name): Tweak a comment.
94274
94275 2003-01-14  Bruno Haible  <bruno@clisp.org>
94276
94277         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94278         when a string comparison is sufficient.
94279
94280 2003-01-14  Bruno Haible  <bruno@clisp.org>
94281
94282         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94283         'unsigned int'.
94284
94285 2003-01-14  Bruno Haible  <bruno@clisp.org>
94286
94287         * lib/hash-pjw.c: Add comment about low quality of this function.
94288
94289 2003-01-13  Bruno Haible  <bruno@clisp.org>
94290
94291         * modules/stpcpy: Distribute lib/stpcpy.h.
94292         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94293
94294 2003-01-13  Bruno Haible  <bruno@clisp.org>
94295
94296         * modules/*: Add a description.
94297         * modules/strpbrk: Fix Makefile.am snippet.
94298         * modules/strtoimax: Fix dependencies.
94299         * modules/strtoumax: Likewise.
94300
94301 2003-01-13  Bruno Haible  <bruno@clisp.org>
94302
94303         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94304         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94305         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94306
94307 2003-01-13  Bruno Haible  <bruno@clisp.org>
94308
94309         * gnulib-tool (func_create_testdir): Store config/* files in the main
94310         directory.
94311         * config.rpath: Move to ...
94312         * config/config.rpath: ... here.
94313         * modules/gettext: Contains config/config.rpath, not config.rpath.
94314         * modules/iconv: Likewise.
94315
94316 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94317
94318         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94319         to avoid collisions with libcurses and libreadline.
94320
94321         * m4/getstr.m4: Remove.
94322         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94323
94324 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94325
94326         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94327         to avoid collisions with libcurses and libreadline.
94328
94329         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94330         * lib/getstr.h, getstr.c: Remove.
94331         * lib/getline.c: Include "getline.h", to check interface.
94332         Move body of old getstr.c here: this defines MIN_CHUNK and
94333         declares getdelim2, which is renamed from getstr.
94334         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94335
94336         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94337         All uses changed.
94338         * lib/linebuffer.h: Likewise.
94339         (readline): Remove backward-compatibility macro.
94340
94341 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94342
94343         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94344         to avoid collisions with libcurses and libreadline.
94345         * getstr: Remove.
94346         * MODULES.html.sh: Remove getstr.
94347         * modules/getline: Depend on unlocked-io, not getstr.
94348
94349 2003-01-12  Jim Meyering  <jim@meyering.net>
94350
94351         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94352
94353 2003-01-10  Bruno Haible  <bruno@clisp.org>
94354
94355         * modules/alloca: Change Makefile.am requirements. Simplify Include
94356         requirements. Add lib/alloca_.h to file list.
94357
94358 2003-01-10  Bruno Haible  <bruno@clisp.org>
94359
94360         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94361
94362 2003-01-10  Bruno Haible  <bruno@clisp.org>
94363
94364         * lib/alloca_.h: New file.
94365         * lib/getdate.y: Unconditionally include alloca.h.
94366         * lib/makepath.c: Likewise.
94367         * lib/setenv.c: Likewise.
94368         * lib/userspec.c: Likewise.
94369
94370 2003-01-09  Karl Berry  <karl@gnu.org>
94371
94372         * MODULES.html.sh: include `dirname $0` in PATH, to find
94373         gnulib-tool.
94374
94375 2003-01-09  Bruno Haible  <bruno@clisp.org>
94376
94377         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94378         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94379
94380 2003-01-09  Bruno Haible  <bruno@clisp.org>
94381
94382         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94383
94384 2003-01-09  Bruno Haible  <bruno@clisp.org>
94385
94386         * lib/stdbool.h.in: New file.
94387
94388 2003-01-09  Bruno Haible  <bruno@clisp.org>
94389
94390         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94391         * MODULES.html.sh: Likewise.
94392
94393 2003-01-08  Jim Meyering  <jim@meyering.net>
94394
94395         * lib/full-write.c: Undefine and define-away `const' after inclusion
94396         of errno.h, not before.  Suggestion from Bruno Haible.
94397
94398 2003-01-08  Bruno Haible  <bruno@clisp.org>
94399
94400         * modules/full-read: Depend on full-write.
94401
94402 2003-01-08  Bruno Haible  <bruno@clisp.org>
94403
94404         * lib/safe-read.c: Include specification header first, to ensure its
94405         selfcontainedness.
94406         * lib/full-write.c: Likewise.
94407
94408 2003-01-07  Jim Meyering  <jim@meyering.net>
94409
94410         * lib/full-write.c: Rework so that it may serve to define full_read,
94411         too.
94412         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94413
94414 2003-01-07  Bruno Haible  <bruno@clisp.org>
94415
94416         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94417         <inttypes.h>.
94418         * lib/xstrtol.h: Likewise.
94419         * lib/xstrtoimax.c: Likewise.
94420         * lib/xstrtoumax.c: Likewise.
94421         * lib/human.h: Likewise.
94422
94423         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94424         on systems that have <inttypes.h> but not <stdint.h>.
94425
94426 2003-01-07  Bruno Haible  <bruno@clisp.org>
94427
94428         * MODULES.html.sh: Add copyright notice.
94429         (missed_files): Omit CVS directory entries.
94430         (func_module): Make it work with sed-3.02.
94431         * MODULES.txt: Remove file.
94432
94433 2003-01-06  Jim Meyering  <jim@meyering.net>
94434
94435         * lib/version-etc.c: Update year in translatable copyright string.
94436
94437 2003-01-03  Karl Berry  <karl@gnu.org>
94438
94439         * config/config.{guess,sub}: update from prep.
94440
94441 2003-01-02  Karl Berry  <karl@gnu.org>
94442
94443         * doc/COPYING.DOC: belatedly updated to 1.2.
94444
94445 2003-01-01  Karl Berry  <karl@gnu.org>
94446
94447         * gnulib-tool (func_verify_module): report module name $module in
94448         error message, not $1.
94449         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94450         be created, only if it doesn't exist.
94451         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94452
94453 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94454
94455         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94456
94457 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94458
94459         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94460         memcmp if strcoll doesn't work.
94461
94462 2002-12-31  Bruno Haible  <bruno@clisp.org>
94463
94464         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94465         nonempty.
94466
94467 2002-12-31  Bruno Haible  <bruno@clisp.org>
94468
94469         * lib/memcoll.c (STRCOLL): New macro.
94470         (memcoll): Use it.
94471
94472 2002-12-31  Bruno Haible  <bruno@clisp.org>
94473
94474         * lib/localcharset.h: New file.
94475         * lib/localcharset.c: Include it.
94476         * lib/unicodeio.c: Likewise.
94477
94478 2002-12-31  Bruno Haible  <bruno@clisp.org>
94479
94480         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94481         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94482
94483 2002-12-31  Bruno Haible  <bruno@clisp.org>
94484
94485         * lib/getline.h: Include <stddef.h>, for size_t.
94486
94487         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94488         * lib/unicodeio.c: Don't include <stddef.h>.
94489
94490 2002-12-31  Bruno Haible  <bruno@clisp.org>
94491
94492         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94493         HAVE_TM_ZONE.
94494
94495 2002-12-24  Karl Berry  <karl@gnu.org>
94496
94497         * config/config.guess: update from prep.
94498
94499 2002-12-24  Bruno Haible  <bruno@clisp.org>
94500
94501         General infrasructure.
94502         * m4/README: Rewritten.
94503         * m4/onceonly.m4: New file.
94504         * m4/onceonly_2_57.m4: New file.
94505
94506         Module atexit.
94507         * m4/atexit.m4: New file.
94508
94509         Module strtod.
94510         * m4/strtod.m4: New file.
94511
94512         Module strtol.
94513         * m4/strtol.m4: New file.
94514
94515         Module strtoul.
94516         * m4/strtoul.m4: New file.
94517
94518         Module memchr.
94519         * m4/memchr.m4: New file.
94520
94521         Module memcmp.
94522         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94523         (jm_FUNC_MEMCMP): Invoke it.
94524
94525         Module memcpy.
94526         * m4/memcpy.m4: New file.
94527
94528         Module memmove.
94529         * m4/memmove.m4: New file.
94530
94531         Module memset.
94532         * m4/memset.m4: New file.
94533
94534         Module strcspn.
94535         * m4/strcspn.m4: New file.
94536
94537         Module strpbrk.
94538         * m4/strpbrk.m4: New file.
94539
94540         Module strstr.
94541         * m4/strstr.m4: New file.
94542
94543         Module strerror.
94544         * m4/strerror.m4: New file.
94545
94546         Module mktime.
94547         * m4/mktime.m4: Renamed from jm-mktime.m4.
94548         (gl_PREREQ_MKTIME): New macro.
94549         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94550
94551         Module malloc.
94552         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94553         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94554         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94555
94556         Module realloc.
94557         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94558         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94559         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94560
94561         Module strftime.
94562         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94563         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94564         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94565         gl_TM_GMTOFF.
94566         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94567
94568         Module xalloc.
94569         * m4/xalloc.m4: New file.
94570
94571         Module alloca.
94572         * m4/alloca.m4: New file.
94573
94574         Module putenv.
94575         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94576         (jm_FUNC_PUTENV): Invoke it.
94577
94578         Module setenv.
94579         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94580         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94581         when invoked twice.
94582         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94583         gt_FUNC_SETENV.
94584
94585         Module memrchr.
94586         * m4/memrchr.m4: New file.
94587
94588         Module stpcpy.
94589         * m4/stpcpy.m4: New file.
94590
94591         Module strcase.
94592         * m4/strcase.m4: New file.
94593
94594         Module strdup.
94595         * m4/strdup.m4: New file.
94596
94597         Module strnlen.
94598         * m4/strnlen.m4: New file.
94599
94600         Module strndup.
94601         * m4/strndup.m4: New file.
94602
94603         Module xstrtod.
94604         * m4/xstrtod.m4: New file.
94605
94606         Module xstrtol.
94607         * m4/xstrtol.m4: New file.
94608
94609         Module getdate.
94610         * m4/getdate.m4: New file.
94611
94612         Module unlocked-io.
94613         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94614         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94615         * m4/jm-glibc-io.m4n: Remove file.
94616
94617         Module long-options.
94618         * m4/long-options.m4: New file.
94619
94620         Module md5.
94621         * m4/md5.m4: New file.
94622
94623         Module sha.
94624         * m4/sha.m4: New file.
94625
94626         Module getstr.
94627         * m4/getstr.m4: New file.
94628
94629         Module getline.
94630         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94631         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94632         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94633         simply getline. Infoke gl_PREREQ_GETLINE.
94634
94635         Module obstack.
94636         * m4/obstack.m4: New file.
94637
94638         Module hash.
94639         * m4/hash.m4: New file.
94640
94641         Module readtokens.
94642         * m4/readtokens.m4: New file.
94643
94644         Module strverscmp.
94645         * m4/strverscmp.m4: New file.
94646
94647         Module stdbool.
94648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94649         OSF/1.
94650
94651         Module strtoll.
94652         * m4/strtoll.m4: New file.
94653
94654         Module strtoull.
94655         * m4/strtoull.m4: New file.
94656
94657         Module strtoimax.
94658         * m4/strtoimax.m4: New file.
94659
94660         Module strtoumax.
94661         * m4/strtoumax.m4: New file.
94662
94663         Module xstrtoimax.
94664         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94665         jm_AC_PREREQ_XSTRTOIMAX.
94666         Moved the strtol prerequisites to strtol.m4.
94667         Moved the strtoll prerequisites to strtoll.m4.
94668         Moved the strtoimax prerequisites to strtoimax.m4.
94669
94670         Module xstrtoumax.
94671         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94672         jm_AC_PREREQ_XSTRTOUMAX.
94673         Moved the strtoul prerequisites to strtoul.m4.
94674         Moved the strtoull prerequisites to strtoull.m4.
94675         Moved the strtoumax prerequisites to strtoumax.m4.
94676
94677         Module chown.
94678         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94679         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94680
94681         Module dup2.
94682         * m4/dup2.m4: New file.
94683
94684         Module ftruncate.
94685         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94686         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94687
94688         Module getgroups.
94689         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94690         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94691
94692         Module gettimeofday.
94693         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94694         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94695         gl_PREREQ_GETTIMEOFDAY.
94696
94697         Module mkdir.
94698         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94699         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94700
94701         Module mkstemp.
94702         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94703         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94704         jm_AC_TYPE_UINTMAX_T.
94705         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94706
94707         Module stat.
94708         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94709         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94710
94711         Module lstat.
94712         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94713         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94714
94715         Module timespec.
94716         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94717         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94718         * m4/st_mtim.m4: Indentation.
94719
94720         Module nanosleep.
94721         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94722         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94723         gl_PREREQ_NANOSLEEP.
94724
94725         Module regex.
94726         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94727         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94728         (gl_REGEX): New macro.
94729
94730         Module rename.
94731         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94732         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94733
94734         Module rmdir.
94735         * m4/rmdir.m4: New file.
94736
94737         Module utime.
94738         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94739         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94740         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94741
94742         Module dirname.
94743         * m4/dirname.m4: New file.
94744
94745         Module getopt.
94746         * m4/getopt.m4: New file.
94747
94748         Module unistd-safer.
94749         * m4/unistd-safer.m4: New file.
94750
94751         Module fnmatch.
94752         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94753         declaration.
94754         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94755         (gl_FUNC_FNMATCH_POSIX): New macro.
94756         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94757         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94758         simply fnmatch.
94759
94760         Module exclude.
94761         * m4/exclude.m4: New file.
94762
94763         Module human.
94764         * m4/human.m4: New file.
94765
94766         Module acl.
94767         * m4/acl.m4: Nop.
94768
94769         Module backupfile.
94770         * m4/backupfile.m4: New file.
94771         * m4/d-ino.m4: Indentation.
94772
94773         Module fsusage.
94774         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94775         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94776         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94777
94778         Module dirfd.
94779         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94780         requirements.
94781
94782         Module euidaccess.
94783         * m4/euidaccess.m4: New file.
94784
94785         Module file-type.
94786         * m4/file-type.m4: New file.
94787
94788         Module fileblocks.
94789         * m4/fileblocks.m4: New file.
94790
94791         Module filemode.
94792         * m4/filemode.m4: New file.
94793
94794         Module isdir.
94795         * m4/isdir.m4: New file.
94796
94797         Module lchown.
94798         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94799         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94800
94801         Module makepath.
94802         * m4/makepath.m4: New file.
94803
94804         Module modechange.
94805         * m4/modechange.m4: New file.
94806
94807         Module mountlist.
94808         * m4/mountlist.m4: New file.
94809         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94810         Indentation.
94811
94812         Module path-concat.
94813         * m4/path-concat.m4: New file.
94814
94815         Module pathmax.
94816         * m4/pathmax.m4: New file.
94817
94818         Module same.
94819         * m4/same.m4: New file.
94820
94821         Module save-cwd.
94822         * m4/save-cwd.m4: New file.
94823
94824         Module savedir.
94825         * m4/savedir.m4: New file.
94826
94827         Module xgetcwd.
94828         * m4/xgetcwd.m4: New file.
94829         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94830
94831         Module xreadlink.
94832         * m4/xreadlink.m4: New file.
94833
94834         Module safe-read.
94835         * m4/safe-read.m4: New file.
94836
94837         Module safe-write.
94838         * m4/safe-write.m4: New file.
94839
94840         Module closeout.
94841         * m4/closeout.m4: New file.
94842
94843         Module stdio-safer.
94844         * m4/stdio-safer.m4: New file.
94845
94846         Module getpass.
94847         * m4/getpass.m4: New file.
94848
94849         Module getugroups.
94850         * m4/getugroups.m4: New file.
94851
94852         Module group-member.
94853         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94854         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94855
94856         Module idcache.
94857         * m4/idcache.m4: New file.
94858
94859         Module userspec.
94860         * m4/userspec.m4: New file.
94861
94862         Module gettime.
94863         * m4/clock_time.m4: New file.
94864         * m4/gettime.m4: New file.
94865
94866         Module settime.
94867         * m4/settime.m4: New file.
94868
94869         Module posixtm.
94870         * m4/posixtm.m4: New file.
94871
94872         Module gethostname.
94873         * m4/gethostname.m4: New file.
94874
94875         Module canon-host.
94876         * m4/canon-host.m4: New file.
94877
94878         Module gettext.
94879         * m4/codeset.m4: New file, from gettext-0.11.5.
94880         * m4/gettext.m4: New file, from gettext-0.11.5.
94881         * m4/glibc21.m4: New file, from gettext-0.11.5.
94882         * m4/iconv.m4: New file, from gettext-0.11.5.
94883         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94884         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94885         * m4/inttypes.m4: New file, from gettext-0.11.5.
94886         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94887         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94888         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94889         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94890         * m4/lib-link.m4: New file, from gettext-0.11.5.
94891         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94892         * m4/progtest.m4: New file, from gettext-0.11.5.
94893         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94894         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94895         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94896
94897         Module localcharset.
94898         * m4/localcharset.m4: New file.
94899
94900         Module hard-locale.
94901         * m4/hard-locale.m4: New file.
94902
94903         Module mbswidth.
94904         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94905         onceonly macros.
94906         * m4/mbrtowc.m4: Add comment.
94907
94908         Module memcasecmp.
94909         * m4/memcasecmp.m4: New file.
94910
94911         Module memcoll.
94912         * m4/memcoll.m4: New file.
94913
94914         Module unicodeio.
94915         * m4/unicodeio.m4: New file.
94916
94917         Module rpmatch.
94918         * m4/rpmatch.m4: New file.
94919
94920         Module yesno.
94921         * m4/yesno.m4: New file.
94922
94923         Module exitfail.
94924         * m4/exitfail.m4: New file.
94925
94926         Module c-stack.
94927         * m4/c-stack.m4 (gl_C_STACK): New macro.
94928         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94929
94930         Module error.
94931         * m4/error.m4 (gl_ERROR): New macro.
94932         (jm_PREREQ_ERROR): Use onceonly macros.
94933
94934         Module fatal.
94935         * m4/fatal.m4: New file.
94936
94937         Module getloadavg.
94938         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94939         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94940
94941         Module getpagesize.
94942         * m4/getpagesize.m4: New file.
94943
94944         Module getusershell.
94945         * m4/getusershell.m4: New file.
94946
94947         Module physmem.
94948         * m4/physmem.m4: New file.
94949
94950         Module posixver.
94951         * m4/posixver.m4: New file.
94952
94953         Module quotearg.
94954         * m4/quotearg.m4: New file.
94955
94956         Module quote.
94957         * m4/quote.m4: New file.
94958
94959         Module readutmp.
94960         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94961
94962         Module sig2str.
94963         * m4/sig2str.m4: New file.
94964
94965         Other.
94966         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94967         ulonglong.m4.
94968         * m4/intmax_t.m4: New file.
94969         * m4/d-type.m4: Indentation.
94970         * m4/jm-macros.m4: Update.
94971         * m4/prereq.m4 (jm_PREREQ): Update.
94972         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94973         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94974         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94975         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94976         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94977         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94978         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94979         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94980         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94981         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94982         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94983         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94984         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94985         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94986         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94987         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94988         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94989         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94990         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94991
94992 2002-12-24  Bruno Haible  <bruno@clisp.org>
94993
94994         * MODULES.txt: Update according to m4/ changes.
94995
94996         Module gettext.
94997         * config.rpath: New file, from gettext-0.11.5.
94998
94999         * modules/*: New module descriptions.
95000         * gnulib-tool: New file.
95001         * MODULES.html.sh: New file.
95002
95003 2002-12-21  Karl Berry  <karl@gnu.org>
95004
95005         * doc/fdl.texi: update to version 1.2.
95006
95007 2002-12-19  Karl Berry  <karl@gnu.org>
95008
95009         * config/config.guess: update from prep.
95010
95011 2002-12-18  Bruno Haible  <bruno@clisp.org>
95012
95013         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95014         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95015
95016 2002-12-17  Bruno Haible  <bruno@clisp.org>
95017
95018         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95019         stdlib.h, string.h.
95020
95021 2002-12-17  Bruno Haible  <bruno@clisp.org>
95022
95023         * lib/canon-host.c (strdup): Remove unused declaration.
95024
95025         * lib/fsusage.c: Include full_read.h.
95026         (get_fs_usage): Use full_read instead of safe_read.
95027
95028         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95029
95030 2002-12-12  Karl Berry  <karl@gnu.org>
95031
95032         * config/config.guess: update from prep.
95033
95034 2002-12-11  Bruno Haible  <bruno@clisp.org>
95035
95036         * m4/setenv.m4: New file, from gettext-0.11.5.
95037
95038 2002-12-11  Bruno Haible  <bruno@clisp.org>
95039
95040         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95041         not unsetenv().
95042         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95043         modifications:
95044
95045         2002-12-11  Bruno Haible  <bruno@clisp.org>
95046
95047                 * setenv.c (alloca): Fall back to malloc.
95048                 (freea): New macro.
95049                 (setenv): Use freea() to free memory allocated with alloca().
95050
95051         2002-11-13  Bruno Haible  <bruno@clisp.org>
95052
95053                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95054                 function declarations.
95055                 * unsetenv.c (unsetenv): Likewise.
95056
95057         2002-03-04  Bruno Haible  <bruno@clisp.org>
95058
95059                 Portability to AIX 4.3.3.
95060                 * unsetenv.c: New file, extracted from setenv.c.
95061                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95062
95063         2001-12-20  Bruno Haible  <bruno@clisp.org>
95064
95065                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95066                 use malloc instead. For SunOS 4.
95067
95068         2001-12-11  Bruno Haible  <bruno@clisp.org>
95069
95070                 * setenv.c: Declare alloca.
95071                 (compar_fn_t): New typedef.
95072                 (KNOWN_VALUE, STORE_VALUE): Use it.
95073
95074         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95075         setenv.h.
95076
95077 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95078
95079         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95080         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95081         Choose values that are less likely to collide with system fnmatch
95082         options.
95083         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95084         defined (e.g., a pure POSIX system).
95085         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95086         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95087
95088 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95089
95090         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95091         a pain in practice to deal with generated m4 files.  This change
95092         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95093
95094         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95095         and jm-glibc-io.m4, as they are no longer a special case.
95096         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95097         kludge and the auto-generation stuff.  Check only whether the
95098         functions are declared, not whether they exist, since older hosts
95099         that don't declare the functions can't use the optimization anyway.
95100
95101 2002-12-06  Jim Meyering  <jim@meyering.net>
95102
95103         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95104
95105         Merge in changes from libc's misc/error.c, in preparation
95106         for the merge of gnulib's changes back into libc.
95107
95108         * lib/error.c (_): Define only if not already defined.
95109         Move definition to follow all #include directives.
95110         Include unlocked-io.h only if !_LIBC.
95111         [_LIBC]: Include <libio/libioP.h>.
95112         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95113         (fflush): Tweak definition to use INTUSE.
95114         (putc): Define.
95115
95116 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95117
95118         * lib/alloca.c [defined emacs]: Include "lisp.h".
95119         (xalloc_die) [defined emacs]: New macro.
95120         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95121         [! defined emacs]: Include <xalloc.h>.
95122         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95123         (pointer): Typedef to POINTER_TYPE *.
95124         (malloc): Remove decl; we now always use xmalloc.
95125         (alloca): Use old-style definition, since Emacs needs this.
95126         Check for arithmetic overflow when computing combined size.
95127
95128 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95129
95130         Do not generate unlocked-io.h automatically, since it's easier to
95131         maintain it by hand.
95132
95133         * lib/unlocked-io.h: New file, from GNU diffutils,
95134         but with proper copyright notice and attribution.
95135         * lib/gen-uio: Remove.
95136         * lib/Makefile.am: Add copyright notice.
95137         (libfetish_a_SOURCES): Add unlocked-io.h.
95138         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95139         (DISTCLEANFILES, io_functions): Remove macros.
95140         (EXTRA_DIST): Remove gen_uio.
95141         (unlocked-io.h): Remove rule.
95142
95143 2002-12-04  Jim Meyering  <jim@meyering.net>
95144
95145         Reflect the fact that stat.c and lstat.c are no longer generated.
95146         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95147         (DISTCLEANFILES): Likewise.
95148         (EXTRA_DIST): Likewise.
95149         (all_local): Don't depend on stat.c or lstat.c.
95150         (stat.c, lstat.c): Remove rules.
95151         (EXTRA_DIST): Remove xstat.in.
95152
95153         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95154         * lib/stat.c: New file.  Contents mostly from xstat.in.
95155         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95156         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95157
95158         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95159         too.
95160         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95161
95162 2002-12-03  Jim Meyering  <jim@meyering.net>
95163
95164         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95165         but not semantics, to minimize the differences between these two files.
95166         (safe_read): Change comment to mention SAFE_READ_ERROR.
95167
95168         * lib/safe-read.c (IS_EINTR): Define.
95169         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95170
95171 2002-12-02  Jim Meyering  <jim@meyering.net>
95172
95173         * lib/safe-read.c (EINTR): Define.
95174         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95175         (INT_MAX): Provide fallback.
95176         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95177
95178         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95179
95180 2002-12-02  Bruno Haible  <bruno@clisp.org>
95181
95182         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95183         Define, taken from safe-read.c.
95184         (INT_MAX): Provide fallback.
95185         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95186         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95187
95188         * lib/safe-read.c (EINTR): Remove definition.
95189         (safe_read): Don't use EINTR if it is absent.
95190
95191 2002-12-01  Jim Meyering  <jim@meyering.net>
95192
95193         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95194         zero.
95195         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95196
95197 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95198
95199         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95200         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95201         with `if (! (value < limit)) abort ();', for readability.
95202
95203 2002-11-26  Karl Berry  <karl@gnu.org>
95204
95205         * lib/strdup.c: copy from libc again, with jim's ok.
95206         * lib/.cppi-disable: re-add strdup.c
95207
95208 2002-11-25  Karl Berry  <karl@gnu.org>
95209
95210         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95211         instead of "strtol.c".
95212
95213 2002-11-25  Karl Berry  <karl@gnu.org>
95214
95215         * config/install-sh: update from automake for variable quoting, $0 in
95216         error msgs, etc.
95217
95218         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95219         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95220         entry.
95221
95222 2002-11-25  Jim Meyering  <jim@meyering.net>
95223
95224         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95225
95226 2002-11-24  Karl Berry  <karl@gnu.org>
95227
95228         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95229         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95230
95231 2002-11-24  Jim Meyering  <jim@meyering.net>
95232
95233         Update from coreutils:
95234
95235         * lib/mktime.c: Merge in changes from libc.
95236
95237         Avoid a link-time failure on some Linux systems.
95238         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95239         (otherwise).
95240         (__mon_yday): Declare with the STATIC attribute.
95241         (__mktime_internal): Likewise.
95242         Based on a report from Greg Schafer.
95243
95244 2002-11-23  Jim Meyering  <jim@meyering.net>
95245
95246         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95247         Use `unsigned', not `int', as type of index.
95248
95249         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95250
95251         * lib/fsusage.c: Remove unneeded parentheses around operands of
95252         `defined'.
95253
95254 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95255
95256         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95257         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95258         so that we can be included first.
95259         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95260         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95261         No need to include stddef.h or sys/types.h any more.
95262         Surround local include files with "", not "<>".
95263         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95264         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95265         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95266         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95267         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95268         (ISPRINT): Remove; no longer needed now that we assume C89.
95269
95270         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95271         Preserve errno.
95272
95273         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95274         quotearg_char): Use SIZE_MAX rather than
95275         (size_t) -1 when we are talking about "infinity".
95276
95277         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95278
95279 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95280
95281         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95282         hint that one should use `if (! x) abort ();' rather than `assert
95283         (x);', and anyway it's one less thing to worry about configuring.
95284         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95285         hash_rehash, hash_insert): Use abort rather than assert.
95286
95287 2002-11-22  Bruno Haible  <bruno@clisp.org>
95288
95289         * lib/safe-read.h: Assume C89. Add comments.
95290         (safe_read): Change return type to size_t.
95291         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95292         byte counts > SSIZE_MAX correctly.
95293         * lib/safe-write.h: New file.
95294         * lib/safe-write.c: New file.
95295         * lib/full-read.h: New file.
95296         * lib/full-read.c: New file.
95297         * lib/full-write.h: Assume C89. Add comments.
95298         * lib/full-write.c: Include safe-write.h.
95299         (full_write): Rewritten to use safe_write.
95300         Suggested by Jim Meyering and Paul Eggert.
95301
95302 2002-11-21  Jim Meyering  <jim@meyering.net>
95303
95304         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95305
95306         Merge in changes from the coreutils.
95307
95308         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95309         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95310         <stdint.h>.
95311         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95312         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95313         int.  Work more efficiently if X is the same width as uintmax_t.
95314         Do not compare X to -1, to avoid bogus compiler warning.
95315         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95316         Don't assume that f_frsize and f_bsize are the same type.
95317
95318         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95319         warning on FreeBSD.
95320
95321         * lib/makepath.c (make_path): Restore umask *before* creating the final
95322         component.
95323         (make_path): Minor reformatting.
95324
95325         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95326         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95327         HAVE_MALLOC/HAVE_REALLOC.
95328
95329         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95330         dummy ones.  At least on GNU/Linux systems, `auto' means something
95331         else.
95332         From Michael Stone.
95333
95334 2002-11-21  Bruno Haible  <bruno@clisp.org>
95335
95336         Remove case insensitive option matching.
95337         * lib/argmatch.h (argcasematch): Remove declaration.
95338         (ARGCASEMATCH): Remove macro.
95339         (__xargmatch_internal): Remove case_sensitive argument.
95340         (XARGMATCH): Update.
95341         (XARGCASEMATCH): Remove macro.
95342         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95343         case_sensitive argument.
95344         (argcasematch): Remove function.
95345         (__xargmatch_internal): Remove case_sensitive argument.
95346         (main): Use XARGMATCH instead of XARGCASEMATCH.
95347
95348         * lib/xmalloc.c: Change compile-time error message. Add comment about
95349         required autoconf version.
95350
95351 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95352
95353         Merge argmatch cleanups from Bison.  Assume C89.
95354
95355         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95356         Include stdlib.h, for EXIT_FAILURE.
95357         Always include <string.h>, since we assume C89.
95358         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95359         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95360         Include <stddef.h> instead, since it's all we need for size_t.
95361         (PARAMS): Remove.  All uses removed.
95362         (ARRAY_CARDINALITY): Do not bother to #undef.
95363         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95364         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95365         Remove unnecessary parentheses.
95366         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95367         Insert necessary parentheses.
95368         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95369         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95370
95371 2002-11-19  Bruno Haible  <bruno@clisp.org>
95372
95373         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95374         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95375
95376         * lib/mbswidth.h (PARAMS): Remove macro.
95377         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95378         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95379
95380         * lib/gcd.h (PARAMS): Remove macro.
95381         (gcd): Use ANSI C function declarations.
95382         * lib/gcd.c (gcd): Likewise.
95383
95384 2002-11-15  Bruno Haible  <bruno@clisp.org>
95385
95386         * lib/strcspn.c: Include <stddef.h>.
95387         (strcspn): Use ANSI C function declaration. Change return type to
95388         size_t. Use NULL.
95389         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95390         (strpbrk): Use NULL.
95391         * lib/strpbrk.h (PARAMS): Remove macro.
95392         (strpbrk): Use ANSI C function declaration.
95393         * lib/strstr.c: Don't include <sys/types.h>.
95394         * lib/strstr.h (PARAMS): Remove macro.
95395         (strstr): Use ANSI C function declarations.
95396
95397 2002-11-14  Karl Berry  <karl@gnu.org>
95398
95399         * config/mkinstalldirs: `do' on separate line, instead of
95400         `for var; do'.
95401
95402 2002-11-06  Bruno Haible  <bruno@clisp.org>
95403
95404         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95405         * lib/gcd.c (gcd): Likewise.
95406
95407 2002-11-05  Bruno Haible  <bruno@clisp.org>
95408
95409         * lib/gcd.h: New file, from gettext-0.11.5.
95410         * lib/gcd.c: New file, from gettext-0.11.5.
95411
95412 2002-11-05  Bruno Haible  <bruno@clisp.org>
95413
95414         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95415         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95416         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95417         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95418
95419         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95420         <libintl.h>.
95421         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95422         <libintl.h>.
95423
95424         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95425         * lib/human.c: Include gettext.h instead of <libintl.h>.
95426         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95427         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95428         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95429         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95430         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95431         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95432         (textdomain): Remove definition.
95433         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95434
95435         * lib/long-options.c: Remove include of <libintl.h> and definition of
95436         _.
95437         * lib/same.c: Remove include of <libintl.h> and definition of _.
95438
95439 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95440
95441         * lib/config.charset: A few additions for Solaris.
95442
95443 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95444
95445         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95446         * lib/localcharset.c (locale_charset): Declare as extern "C".
95447
95448 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95449
95450         * lib/config.charset: msdos in uk_UA uses CP1125.
95451
95452 2002-11-04  Bruno Haible  <bruno@clisp.org>
95453
95454         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95455         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95456         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95457         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95458         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95459
95460 2002-11-04  Bruno Haible  <bruno@clisp.org>
95461
95462         * lib/localcharset.c (locale_charset): Don't return an empty string.
95463
95464 2002-11-04  Bruno Haible  <bruno@clisp.org>
95465
95466         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95467         aliases.
95468
95469 2002-11-04  Bruno Haible  <bruno@clisp.org>
95470
95471         * lib/config.charset: Update for newest glibc. Add canonical names
95472         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95473
95474 2002-11-04  Bruno Haible  <bruno@clisp.org>
95475
95476         * lib/config.charset: Add support for NetBSD.
95477
95478 2002-11-04  Bruno Haible  <bruno@clisp.org>
95479
95480         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95481
95482 2002-11-01  Bruno Haible  <bruno@clisp.org>
95483
95484         * configure.in: Add AC_CONFIG_AUX_DIR call.
95485         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95486         test/Makefile.
95487         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95488
95489 2002-09-28  Karl Berry  <karl@gnu.org>
95490
95491         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95492         installed automake until the next release, since changes have been
95493         made.
95494
95495 2002-09-25  Karl Berry  <karl@gnu.org>
95496
95497         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95498         * lib/getopt*: copy from libc/posix.
95499         * lib/gettext.h: copy from gettext.
95500         * lib/.cppi-disable: add strdup.c, gettext.h.
95501
95502 2002-09-25  Karl Berry  <karl@gnu.org>
95503
95504         * config/srclist.txt: enable gettext.h check.
95505         * config/config.{guess,sub}: update from prep.
95506         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95507                 from automake 1.6.3.
95508         See srclist*.
95509
95510 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95511
95512         * regex.c (PATFETCH): Remove the translating fetch.
95513         (PATFETCH_RAW): Rename to PATFETCH.
95514         (set_image_of_range): New fun.
95515         (SET_RANGE_TABLE_WORK_AREA): Use it.
95516         (regex_compile): Don't translate the pattern chars so eagerly.
95517         Only do it when inserting an `exactn' bytecode or when handling
95518         a char-range.
95519         (mutually_exclusive_p): Avoid empty statement.
95520
95521 2002-07-06  Jim Meyering  <meyering@lucent.com>
95522
95523         * m4/README: Don't mention Makefile.am.in.
95524         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95525
95526 2002-07-01  Jim Meyering  <meyering@lucent.com>
95527
95528         * lib/c-stack.c: Include sys/time.h.
95529         From Volker Borchert.
95530
95531 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95532
95533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95534
95535 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95536
95537         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95538         New macro.  Use it uniformly instead of
95539         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95540         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95541         reported by Vin Shelton.
95542
95543 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95544
95545         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95546         Do not assume SA_SIGINFO behavior.
95547         Bug reported by Jim Meyering on NetBSD 1.5.2.
95548
95549 2002-06-22  Jim Meyering  <meyering@lucent.com>
95550
95551         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95552         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95553
95554         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95555         now that configure.ac uses AC_GNU_SOURCE.
95556         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95557         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95558
95559         Update to latest tools.  Suggestions from Paul Eggert.
95560         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95561         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95562         * m4/fnmatch.m4: Likewise.
95563         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95564         to AC_HEADER_STDBOOL
95565
95566 2002-06-22  Jim Meyering  <meyering@lucent.com>
95567
95568         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95569         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95570
95571 2002-06-22  Jim Meyering  <meyering@lucent.com>
95572
95573         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95574
95575         * lib/exitfail.c, exitfail.h: Likewise.
95576         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95577
95578         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95579         of fnmatch.h.
95580         (EXTRA_DIST): Add fnmatch_loop.c.
95581         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95582
95583         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95584         * lib/fnmatch.c: Update from diffutils-2.8.2.
95585         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95586         * lib/fnmatch.h: Remove file.
95587
95588 2002-06-21  Jim Meyering  <meyering@lucent.com>
95589
95590         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95591         * m4/mbrtowc.m4: Likewise.
95592
95593         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95594         * m4/mbswidth.m4: Reflect name change:
95595         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95597
95598         * m4/lib-link.m4: Update from gettext-0.11.2.
95599         * m4/gettext.m4: Likewise.
95600
95601         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95602         From Alfred M. Szmidt.
95603
95604 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95605
95606         * lib/file-type.h: Report an error if neither S_ISREG nor
95607         S_IFREG is defined, instead of using a test specific to glibc
95608         2.2.  This should be safe, since POSIX requires S_ISREG and
95609         Unix Version 7 had S_IFREG.  We don't need to check for
95610         <sys/types.h> since we don't use any symbols that it defines.
95611
95612 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95613
95614         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95615         $@-t, so that each temporary file name is unique and valid in the first
95616         8 characters, for operation under DOS.
95617
95618 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95619
95620         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95621
95622 2002-06-15  Jim Meyering  <meyering@lucent.com>
95623
95624         Work even with DJGPP 2.03, which lacks support for symlinks.
95625         From Richard Dawe.
95626         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95627         is defined.
95628         * lib/lchown.c (S_ISLNK): Likewise.
95629
95630 2002-06-15  Jim Meyering  <meyering@lucent.com>
95631
95632         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95633         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95634         have been included before this file.
95635
95636 2002-06-14  Jim Meyering  <meyering@lucent.com>
95637
95638         * lib/file-type.h: Use the version from diffutils-2.8.2.
95639         * lib/file-type.c: Likewise.
95640
95641 2002-06-07  Jim Meyering  <meyering@lucent.com>
95642
95643         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95644         They're needed at least for NetBSD 1.5.2.
95645         ($statxfs_includes): Include those same headers.
95646         ($statxfs_includes): Include sys/vfs.h if available.
95647         ($statxfs_includes): Likewise for sys/statvfs.h.
95648         Check for the following members in both structs statfs and statvfs:
95649         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95650
95651 2002-06-01  Jim Meyering  <meyering@lucent.com>
95652
95653         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95654         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95655
95656 2002-05-28  Jim Meyering  <meyering@lucent.com>
95657
95658         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95659         Reported by Volker Borchert.
95660
95661 2002-05-27  Jim Meyering  <meyering@lucent.com>
95662
95663         Fix a problem seen only on nonconforming systems whereby ls.c's
95664         use of localtime, and then of gettimeofday would cause trouble:
95665         the localtime call used to initialize rpl_gettimeofday's save
95666         mechanism would clobber ls's current local time information so
95667         that in any long listing the first file would always be listed
95668         with date 1970-01-01.  Analysis by Volker Borchert.
95669
95670         * lib/gettimeofday.c (localtime): Undefine.
95671         (rpl_localtime): New function.
95672
95673 2002-05-27  Jim Meyering  <meyering@lucent.com>
95674
95675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95676         localtime.
95677
95678         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95679         use the replacement function; it wouldn't resolve at link time.
95680         Reported by Volker Borchert.
95681
95682 2002-05-22  Jim Meyering  <meyering@lucent.com>
95683
95684         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95685         file-type.h.
95686         * lib/file-type.h: New file.
95687         * lib/file-type.c (file_type): New file/function.  Extracted from
95688         diffutils.
95689
95690 2002-04-30  Jim Meyering  <meyering@lucent.com>
95691
95692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95693
95694 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95695
95696         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95697
95698 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95699
95700         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95701         Do not check for alloca.h (no longer used) or stdbool.h (was never
95702         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95703
95704 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95705
95706         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95707
95708 2002-04-29  Jim Meyering  <meyering@lucent.com>
95709
95710         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95711         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95712         Use AC_FUNC_STRNLEN here instead.
95713
95714         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95715         With autoconf-2.53a, it's part of AC_PROG_CC.
95716
95717 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95718
95719         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95721
95722 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95723
95724         * lib/sig2str.h, lib/sig2str.c: New files.
95725         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95726
95727 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95728
95729         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95730         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95731         of 127, since 64 is the largest conceivable number for ancient
95732         nonstandard hosts.
95733         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95734
95735 2002-04-28  Jim Meyering  <meyering@lucent.com>
95736
95737         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95738
95739 2002-04-24  Jim Meyering  <meyering@lucent.com>
95740
95741         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95742         (jm_PREREQ): Use it.
95743
95744         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95745         mach/mach.h fcntl.h.
95746         Check for this function: setlocale.
95747
95748 2002-04-24  Jim Meyering  <meyering@lucent.com>
95749
95750         * lib/gettext.h: New file, from Gettext.
95751         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95752         (libfetish_a_SOURCES): Add gettext.h.
95753
95754 2002-04-16  Jim Meyering  <meyering@lucent.com>
95755
95756         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95757         ut_pid, ut_id, ut_exit.
95758
95759 2002-04-16  Jim Meyering  <meyering@lucent.com>
95760
95761         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95762         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95763         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95764
95765 2002-04-12  Jim Meyering  <meyering@lucent.com>
95766
95767         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95768         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95769         existence of the getmntinfo function.  Needed for Darwin 5.3.
95770
95771         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95772         This is necessary at least on Darwin 5.3.
95773
95774         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95775         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95776         strnlen.o in the library, and that makes some versions of ranlib
95777         object.
95778
95779 2002-04-12  Jim Meyering  <meyering@lucent.com>
95780
95781         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95782
95783 2002-04-09  Jim Meyering  <meyering@lucent.com>
95784
95785         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95786         to be more precise.  Rather than saying we're checking whether the
95787         function `works', say what we're testing.
95788         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95789         Reported by Bruno Haible.
95790
95791 2002-03-10  Jim Meyering  <meyering@lucent.com>
95792
95793         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95794         Suggestion from Santiago Vila.
95795
95796 2002-03-08  Jim Meyering  <meyering@lucent.com>
95797
95798         * lib/rename.c: Mention that this wrapper is needed also on
95799         mips-dec-ultrix4.4 systems.
95800
95801 2002-03-02  Jim Meyering  <meyering@lucent.com>
95802
95803         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95804         not HAVE_CLOCK_SETTIME.
95805
95806 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95807
95808         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95809         Check for clock_settime.
95810
95811 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95812
95813         * lib/nanosleep.h: Rename to....
95814         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95815
95816         * lib/gettime.c: New file.
95817         * lib/settime.c: New file.
95818         * lib/stime.c: Remove.
95819
95820         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95821         timespec.h.  Remove nanosleep.h.
95822
95823 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95824
95825         * m4/acl.m4: New file.
95826         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95827         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95828
95829 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95830
95831         * lib/acl.c, lib/acl.h: New files.
95832         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95833
95834 2002-02-24  Jim Meyering  <meyering@lucent.com>
95835
95836         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95837         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95838         cause trouble.  Reported by Nelson Beebe.
95839
95840 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95841
95842         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95843         compilers that don't know that xalloc_die never returns.
95844
95845 2002-02-20  Jim Meyering  <meyering@lucent.com>
95846
95847         * lib/getdate.c: Regenerate using bison-1.33.
95848
95849 2002-02-17  Jim Meyering  <meyering@lucent.com>
95850
95851         * config/config.guess (main): Don't use `head -1'; it's no longer
95852         portable. Use `sed 1q' instead.
95853
95854 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95855
95856         * m4/codeset.m4: Upgrade to gettext-0.11.
95857         * m4/gettext.m4: Upgrade to gettext-0.11.
95858         * m4/glibc21.m4: Upgrade to gettext-0.11.
95859         * m4/iconv.m4: Upgrade to gettext-0.11.
95860         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95861         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95862         * m4/lib-ld.m4: New file, from gettext-0.11.
95863         * m4/lib-link.m4: New file, from gettext-0.11.
95864         * m4/lib-prefix.m4: New file, from gettext-0.11.
95865         * m4/progtest.m4: Upgrade to gettext-0.11.
95866
95867 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95868
95869         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95870         (jm_PREREQ): Use it.
95871
95872 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95873
95874         * lib/posixver.c, lib/posixver.h: New files.
95875         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95876
95877 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95878             Bruno Haible  <bruno@clisp.org>
95879
95880         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95881         (fwrite_success_callback): New declaration.
95882         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95883         print_unicode_char. Call failure callback instead of error.
95884         (fwrite_success_callback): New function.
95885         (exit_failure_callback): New function.
95886         (fallback_failure_callback): New function.
95887         (print_unicode_char): Call unicode_to_mb.
95888
95889 2002-01-26  Jim Meyering  <meyering@lucent.com>
95890
95891         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95892         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95893
95894 2002-01-26  Jim Meyering  <meyering@lucent.com>
95895
95896         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95897
95898 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95899
95900         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95901
95902 2002-01-22  Jim Meyering  <meyering@lucent.com>
95903
95904         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95905         Otherwise, some versions of automake would omit the rule that makes
95906         Makefile from Makefile.in.
95907
95908 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95909
95910         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95911         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95912         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95913         (memcoll): Set errno to zero if there is no error.
95914
95915         * lib/quotearg.c (quotearg_buffer_restyled):
95916         Fix bug with quoting buffers containing NUL when backslashing escapes.
95917         This bug was exposed by the other changes in this patch.
95918         (quotearg_n_options): New arg ARGSIZE.
95919         All callers changed.
95920         (quoting_options_from_style): New function.
95921         (quotearg_n_style): Use it.
95922         (quotearg_n_style_mem): New function.
95923
95924         * lib/quotearg.h (quotearg_n_style_mem): New function.
95925
95926 2002-01-19  Jim Meyering  <meyering@lucent.com>
95927
95928         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95929         Remove useless quotes: DF_PROG="df".
95930         * m4/strnlen.m4: New file.
95931
95932 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95933
95934         * lib/backupfile.c (ISDIGIT): Comment fix.
95935         * lib/getdate.y (ISDIGIT): Likewise.
95936         * lib/posixtm.c (ISDIGIT, year): Likewise.
95937         * lib/strverscmp.c (ISDIGIT): Likewise.
95938         * lib/userspec.c (ISDIGIT): Likewise.
95939
95940 2002-01-16  Jim Meyering  <meyering@lucent.com>
95941
95942         * lib/getdate.y: Add three semicolons, each just before a closing
95943         brace. Bison (as of version 1.31) no longer papers over that mistake.
95944
95945 2002-01-05  Jim Meyering  <meyering@lucent.com>
95946
95947         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95948
95949 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95950
95951         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95952         not silently exit merely because the output buffer happens to
95953         have nothing pending.
95954
95955 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95956
95957         See the big note in ../ChangeLog.
95958         * lib/human.c (suffixes): Prefer K to k for 1024.
95959         (generate_suffix_backwards): New function.
95960         (human_readable_inexact): Use it.
95961         * lib/xstrtol.c (__xstrtol): If there is no number but there
95962         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95963         Accept 'K' as well as 'k'.
95964
95965 2001-12-15  Jim Meyering  <meyering@lucent.com>
95966
95967         * lib/regex.h (__restrict_arr): Update from libc.
95968
95969         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95970         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95971         (STREQ): Define.
95972
95973 2001-12-14  Jim Meyering  <meyering@lucent.com>
95974
95975         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95976         Suggestion from Bruno Haible.
95977
95978 2001-12-10  Jim Meyering  <meyering@lucent.com>
95979
95980         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95981         xrealloc, Instead, include "xalloc.h".
95982         (initbuffer): Don't cast xmalloc return value to char*.
95983         (readline): Reword comment.
95984         Don't cast xrealloc return value to char*
95985         Return NULL, not 0.
95986
95987 2001-12-09  Jim Meyering  <meyering@lucent.com>
95988
95989         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95990         about `signed and unsigned type in conditional expression'.
95991         * lib/posixtm.c (posix_time_parse): Likewise.
95992
95993         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95994
95995         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95996         to avoid a pedantic warning.
95997
95998         * lib/getstr.c: Don't include assert.h.
95999         (getstr): Remove warning-evoking assertions.
96000         Return -1 if offset parameter is out of bounds.
96001         Change the type of a local from int to size_t.
96002
96003         * lib/strftime.c (my_strftime_localtime_r): Include this function
96004         definition in the `#if ! HAVE_TM_GMTOFF' block.
96005
96006         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96007         Include xalloc.h instead.
96008
96009 2001-12-02  Jim Meyering  <meyering@lucent.com>
96010
96011         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96012         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96013         included.
96014
96015         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96016         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96017
96018 2001-11-30  Akim Demaille  <akim@epita.fr>
96019
96020         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96021         before being defined.
96022
96023 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96024
96025         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96026         First arg is int, not unsigned.
96027         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96028         (SIZE_MAX, UINT_MAX): New macros.
96029         (quotearg_n_options): Abort if N is negative.
96030         Avoid overflow check on hosts where size_t is 64 bits and int
96031         is 32 bits, as overflow is impossible there.
96032         Fix off-by-one typo that caused unnecessary reallocation.
96033
96034 2001-11-27  Jim Meyering  <meyering@lucent.com>
96035
96036         * lib/tempname.c: Merge with version from libc.
96037         * lib/regex.c: Likewise.
96038
96039         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96040         systems for which STDC_HEADERS is 0, it was not included, resulting in
96041         a warning about an integer-to-pointer conversion problem with getenv.
96042         Reported by Volker Borchert.
96043
96044 2001-11-26  Jim Meyering  <meyering@lucent.com>
96045
96046         * lib/gtod.h: Remove file.
96047         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96048         * lib/gettimeofday.c: Don't include gtod.h.
96049         (GTOD_init): Remove function.
96050         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96051         Suggestion from Volker Borchert.
96052
96053 2001-11-23  Jim Meyering  <meyering@lucent.com>
96054
96055         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96056         it.
96057         * lib/hash.c (struct hash_table): Define it here instead.
96058
96059 2001-11-22  Jim Meyering  <meyering@lucent.com>
96060
96061         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96062
96063 2001-11-20  Jim Meyering  <meyering@lucent.com>
96064
96065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96066         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96067
96068 2001-11-19  Jim Meyering  <meyering@lucent.com>
96069
96070         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96071         directory.  Use "conftestXXXXXX" as the template.
96072         Suggestion from Paul Eggert.
96073
96074         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96075         immediately, so the test doesn't mistakenly hit the max-open-files
96076         limit.
96077
96078 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96079
96080         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96081         (TEMPORARIES): New macro.
96082         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96083         removes an artificial limitation (e.g. HP-UX 10.20, where
96084         TMP_MAX is 17576).
96085
96086 2001-11-18  Jim Meyering  <meyering@lucent.com>
96087
96088         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96089
96090 2001-11-18  Jim Meyering  <meyering@lucent.com>
96091
96092         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96093         on SunOS 4.
96094
96095         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96096         files will be created before anything else.
96097
96098 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96099
96100         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96101         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96102
96103 2001-11-17  Jim Meyering  <meyering@lucent.com>
96104
96105         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96106         Prompted by a report from Bob Proulx.
96107
96108         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96109         Instead, require UTILS_FUNC_MKSTEMP.
96110
96111 2001-11-17  Jim Meyering  <meyering@lucent.com>
96112
96113         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96114         Now, that's done as part of AC_FUNC_STRTOD.
96115
96116 2001-11-17  Jim Meyering  <meyering@lucent.com>
96117
96118         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96119         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96120         rather than group writable.  Patch by Juan F. Codagnone.
96121
96122         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96123         xrealloc, Instead, include "xalloc.h".
96124
96125         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96126         Remove explicit declarations of xmalloc, xrealloc,
96127         and xstrdup.  Instead, include "xalloc.h".
96128
96129         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96130         unlocked-io.h.
96131         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96132         Likewise.
96133         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96134
96135         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96136         Reported by Padraig Brady.
96137
96138         * lib/mkstemp.c: #undef mkstemp.
96139         Include config.h.
96140         (rpl_mkstemp): Rename from mkstemp.
96141         Protoize.
96142
96143 2001-11-16  Jim Meyering  <meyering@lucent.com>
96144
96145         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96146         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96147         determine the amount of total physical memory, use pstat_getstatic.
96148         HPUX-11 doesn't define _SC_PHYS_PAGES.
96149         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96150         If sysconf couldn't be used to determine the amount of available
96151         physical memory, use both pstat_getstatic and pstat_getdynamic.
96152         Based on a patch from Bob Proulx.
96153
96154 2001-11-10  Jim Meyering  <meyering@lucent.com>
96155
96156         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96157         (jm_PREREQ): Use it.
96158
96159 2001-11-09  Jim Meyering  <meyering@lucent.com>
96160
96161         * m4/jm-macros.m4: Require autoconf-2.52f.
96162         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96163         Use these AC_-prefixed names, not the AM_-prefixed ones.
96164
96165         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96166
96167 2001-11-05  Jim Meyering  <meyering@lucent.com>
96168
96169         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96170
96171 2001-11-04  Jim Meyering  <meyering@lucent.com>
96172
96173         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96174         $DEFS.
96175
96176 2001-11-03  Jim Meyering  <meyering@lucent.com>
96177
96178         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96179         of AC_DEFUN.
96180
96181         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96182         know the name of the variable in the macro definition.
96183
96184 2001-11-03  Jim Meyering  <meyering@lucent.com>
96185
96186         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96187         in argmatch_to_argument call.
96188
96189         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96190         argument.
96191
96192         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96193         e.g., a fault due to an attempt to free a NULL pointer.
96194
96195 2001-11-01  Jim Meyering  <meyering@lucent.com>
96196
96197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96198         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96199
96200 2001-11-01  Jim Meyering  <meyering@lucent.com>
96201
96202         * lib/dirfd.c, lib/dirfd.h: New files.
96203         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96204
96205         * lib/hash.c (hash_print) [TESTING]: Clean up.
96206
96207 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96208
96209         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96210         to avoid a warning if -Wall.
96211
96212 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96213
96214         * README: New file
96215         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96216         (per RMS's instructions, this is now the canonical source)
96217         * lgpl/, gpl/: New directories.
96218
96219 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96220
96221         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96222
96223 2001-10-21  Jim Meyering  <meyering@lucent.com>
96224
96225         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96226         this code would end up calling gettext even in packages built
96227         with --disable-nls.
96228         * lib/getopt.c (_): Likewise.
96229         * lib/regex.c (_): Likewise.
96230
96231 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96232
96233         * m4/error.m4 (jm_PREREQ_ERROR):
96234         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96235         AC_FUNC_STRERROR_R does that.
96236         Check for strerror declaration.
96237
96238         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96239         are supposed to have them these days.
96240         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96241         Merge changes from latest Autoconf CVS.
96242         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96243         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96244         POSIX decided to standardize on the int flavor of strerror_r.
96245
96246 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96247
96248         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96249         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96250         Use strerror_r that is only a macro, even if it is not a function.
96251         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96252         (private_strerror): Use prototypes, not old-style function definition.
96253         (print_errno_message): New function.
96254         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96255         char*-flavored one.
96256         (error_tail, error, error_at_line): Use it.
96257
96258 2001-10-11  Jim Meyering  <meyering@lucent.com>
96259
96260         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96261         and quote_n (1, ... to avoid clobbering a buffer.
96262
96263 2001-10-05  Jim Meyering  <meyering@lucent.com>
96264
96265         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96266         hash-pjw.h.
96267         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96268         * lib/hash-pjw.h: New file.
96269
96270 2001-09-30  Jim Meyering  <meyering@lucent.com>
96271
96272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96273         `struct fsstat' has the `f_fstypename' member.
96274         Use that to define FS_TYPE, which is now used to make
96275         the getfsstat link test tighter.
96276
96277 2001-09-30  Jim Meyering  <meyering@lucent.com>
96278
96279         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96280         Include <sys/ucred.h>, for Apple Darwin.
96281         Include sys/mount.h and sys/fs_types.h only if available.
96282         (FS_TYPE): Define.
96283         (read_filesystem_list): Use FS_TYPE.
96284
96285 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96286
96287         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96288         a boolean context.
96289
96290 2001-09-29  Jim Meyering  <meyering@lucent.com>
96291
96292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96293         [one-argument getmntent function]): Include stdio.h before mntent.h.
96294         SunOS 4.1.x needs it for the declaration of `FILE'.
96295         Patch by Volker Borchert.
96296
96297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96298         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96299         sys/fs_types.h, and make the link-test for getfsstat guard #include
96300         directives with appropriate #if HAVE_*_H tests so that we can
96301         detect getfsstat on Apple Darwin1.3.7 systems.
96302         Reported by Nelson Beebe.
96303         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96304
96305 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96306
96307         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96308         #defines strtoimax.  Also treat the other strto* functions
96309         like strtoimax.
96310
96311         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96312         Check for strtoul and strtoumax,
96313         as those declarations are made even in the signed case.
96314         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96315         Likewise, for strtol and strtoimax.
96316
96317 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96318
96319         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96320         #defines strtoimax.  Also treat the other strto* functions
96321         like strtoimax.
96322
96323         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96324         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96325         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96326
96327 2001-09-26  Jim Meyering  <meyering@lucent.com>
96328
96329         Most macros in unlocked-io.h had the wrong number of arguments.
96330         * lib/gen-uio: New script.
96331         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96332         * lib/unlocked-io.hin: Remove file.
96333         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96334         rather than trying to embed it here.
96335         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96336         Reported by Padraig Brady.
96337
96338 2001-09-25  Volker Borchert  <bt@teknon.de>
96339
96340         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96341         `result'.
96342
96343 2001-09-24  Jim Meyering  <meyering@lucent.com>
96344
96345         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96346
96347 2001-09-23  Jim Meyering  <meyering@lucent.com>
96348
96349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96350         instead of the mere test for existence of mntent.h.  The latter
96351         would get a false-positive on AIX 3.4 systems.
96352         In the outer getmntent if-block, don't die if neither of the getmntent
96353         tests succeeds.  Instead, just fall through and continue with the
96354         remaining tests.
96355
96356 2001-09-23  Jim Meyering  <meyering@lucent.com>
96357
96358         * lib/mountlist.c: Remove useless parentheses in #if directives.
96359         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96360         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96361
96362 2001-09-22  Jim Meyering  <meyering@lucent.com>
96363
96364         * m4/gettext.m4: New file.  From gettext.
96365         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96366         * m4/progtest.m4: Likewise
96367         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96368         * m4/glibc21.m4: Likewise.
96369
96370         * m4/libintl.m4: Remove.  No longer used.
96371
96372 2001-09-22  Jim Meyering  <meyering@lucent.com>
96373
96374         * lib/localcharset.c: Update from latest gettext.
96375         * lib/config.charset: Likewise.
96376
96377 2001-09-20  Jim Meyering  <meyering@lucent.com>
96378
96379         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96380         strtoimax.
96381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96382         strtoumax.
96383
96384 2001-09-20  Jim Meyering  <meyering@lucent.com>
96385
96386         * lib/xstrtol.c (strtoimax): Guard declaration with
96387         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96388         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96389         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96390         (strtoumax): Likewise, for completeness (it wasn't necessary).
96391
96392 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96393
96394         * lib/strtoimax.c (HAVE_LONG_LONG):
96395         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96396         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96397         to work around bug in IBM C compiler.
96398
96399 2001-09-17  Jim Meyering  <meyering@lucent.com>
96400
96401         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96402         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96403         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96404         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96405         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96406         whenever the right hand side need not be expanded by the shell.
96407
96408 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96409
96410         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96411         library.  It's not correct, as some older glibcs are buggy.
96412         fnmatch wasn't fixed until glibc 2.2.
96413
96414         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96415         special shell magic here.
96416
96417 2001-09-16  Jim Meyering  <meyering@lucent.com>
96418
96419         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96420         * m4/jm-macros.m4: Require it.
96421
96422 2001-09-16  Jim Meyering  <meyering@lucent.com>
96423
96424         * lib/mkdir.c: New file.
96425
96426 2001-09-15  Jim Meyering  <meyering@lucent.com>
96427
96428         * m4/jm-macros.m4: Check for help2man.
96429
96430 2001-09-11  Jim Meyering  <meyering@lucent.com>
96431
96432         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96433         The body, by Paul Eggert, was moved here from configure.in.
96434         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96435
96436 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96437
96438         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96439         (jm_PREREQ): Use it.
96440
96441 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96442
96443         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96444         Use ssize_t, not int, to store result of readlink.
96445         Check for ssize_t overflow as well as size_t overflow,
96446         as POSIX says the result of readlink is implementation-defined
96447         when ssize_t overflows.
96448         Remove unnecessary cast to char*.
96449         Use free+malloc instead of realloc, as the storage doesn't need
96450         to be preserved and it's clearer and can be more efficient that way.
96451         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96452         * lib/xreadlink.h (xreadlink): Update prototype.
96453
96454 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96455
96456         * lib/xgetcwd.c: Revert some of the previous change; intead,
96457         fix the HAVE_GETCWD_NULL code to behave more like the
96458         !HAVE_GETCWD_NULL code used to.
96459
96460         Include "xalloc.h".
96461         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96462         invoke xalloc_die.
96463
96464 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96465
96466         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96467         sys/param.h, as pathmax.h includes them.
96468
96469 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96470
96471         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96472         (jm_PREREQ_XGETCWD): New macro.
96473
96474         * m4/getcwd.m4: New file.
96475
96476 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96477
96478         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96479         like the HAVE_GETCWD_NULL code.
96480         Include pathmax.h if not HAVE_GETCWD.
96481         Do not include xalloc.h.
96482         (INITIAL_BUFFER_SIZE): New symbol.
96483         Do not use xmalloc / xrealloc, since the caller is responsible for
96484         handling errors.  Preserve errno around `free' during failure.
96485         Do not overrun buffer when using getwd.
96486
96487 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96488
96489         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96490         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96491         getcwd (NULL, 0).
96492
96493 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96494
96495         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96496         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96497         spotted by Jim Meyering.
96498
96499 2001-09-03  Jim Meyering  <meyering@lucent.com>
96500
96501         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96502         failure.
96503
96504 2001-09-02  Jim Meyering  <meyering@lucent.com>
96505
96506         * lib/error.c: Update from GNU libc.
96507
96508 2001-09-01  Jim Meyering  <meyering@lucent.com>
96509
96510         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96511         Used by df.
96512
96513 2001-09-01  Jim Meyering  <meyering@lucent.com>
96514
96515         * lib/xreadlink.c: New file.
96516         * lib/xreadlink.h: New file.
96517         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96518         xreadlink.h.
96519
96520         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96521         doesn't conflict with sparc Solaris 7's definition in
96522         /usr/include/sys/int_types.h.
96523
96524         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96525         files.
96526         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96527         and strncasecmp as r-values.  Unixware didn't have declarations.
96528
96529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96530
96531         * lib/xstrtol.h: Add copyright notice.
96532         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96533         LONGINT_INVALID_SUFFIX_CHAR.
96534
96535 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96536
96537         * lib/xstrtol.c (strtoimax): New decl.
96538
96539 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96540
96541         * lib/xgetcwd.c: Don't include pathmax.h.
96542         Include stdlib.h and unistd.h if available.
96543         Include xalloc.h.
96544         (xmalloc, xstrdup, free): Remove decls.
96545         (xgetcwd): Don't assume sizes fit in unsigned.
96546         Check for overflow when computing sizes.
96547         Simplify reallocation code.
96548
96549 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96550
96551         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96552         a directory's st_size can have an arbitrary value, so the old
96553         usage could waste an arbitrary amount of memory.  All uses
96554         changed.
96555         * lib/savedir.h: Update prototype.
96556
96557 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96558
96559         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96560
96561         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96562         old strtoimax.c.
96563
96564         Also, make the following further changes to make this file's
96565         configuration more similar to that of strtol.c:
96566         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96567         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96568         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96569         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96570         changed to signed values.
96571
96572         And make the following changes as well:
96573         Fix copyright notice, as 1999 was missing.
96574         (verify): New macro.
96575         (strtoimax): Check sizes at compile-time, not run-time.
96576         Prefer strtol to strtoll if both work.
96577         (main): Remove; it was not that useful and was a pain to maintain.
96578
96579         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96580
96581 2001-08-31  Jim Meyering  <meyering@lucent.com>
96582
96583         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96584         Use an initial, malloc'd, buffer of length 128 rather than
96585         a statically allocated one of length 1024.
96586
96587 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96588
96589         Simplify code, partly by assuming autoconf 2.52 semantics.
96590
96591         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96592
96593         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96594         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96595         All uses removed.
96596         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96597         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96598         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96599         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96600         jm_AC_HEADER_INTTYPES_H.
96601         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96602
96603         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96604
96605         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96606         Quote first arg of AC_DEFUN.
96607         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96608         since they are needed to parse the include file even if we need
96609         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96610         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96611         but with opposite signedness.
96612
96613 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96614
96615         Merge 'exclude' changes from tar 1.13.22.
96616         This fixes one or two unlikely storage allocation overflow bugs,
96617         but doesn't change user-visible behavior otherwise.
96618
96619 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96620
96621         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96622         (jm_PREREQ_EXCLUDE): New macro.
96623
96624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96625
96626         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96627         tm to be declared.
96628
96629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96630
96631         * lib/hash.c: Remove '2001' from copyright notice.
96632
96633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96634
96635         * lib/full-write.h: New file.
96636         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96637         * lib/full-write.c: Correct credits, as cccp.c no longer
96638         exists and anyway it was so heavily changed from the old cccp
96639         code as to be unrecognizable.  Include full-write.h.
96640         (full_write): Return size_t, with short writes meaning failure.
96641         All callers changed.  This fixes a bug with large buffers
96642         on 64-bit hosts.
96643         * lib/utime.c: Include full-write.h.
96644
96645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96646
96647         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96648         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96649         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96650         Include if available.
96651         (<xalloc.h>): Include
96652         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96653         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96654         collide with FNM macros.
96655         (struct patopts): New struct.
96656         (struct exclude): Use it, as exclude patterns now come with options.
96657         (new_exclude): Support above changes.
96658         (new_exclude, add_exclude_file):
96659         Initial size must now be a power of two to simplify overflow checking.
96660         (free_exclude, fnmatch_no_wildcards): New function.
96661         (excluded_filename): No longer requires options arg, as the options
96662         are determined by add_exclude.  Now returns bool, not int.
96663         (excluded_filename, add_exclude):
96664         Add support for the fancy new exclusion options.
96665         (add_exclude, add_exclude_file): Now takes int options arg.
96666         Check for arithmetic overflow when computing sizes.
96667         (add_exclude_file): xrealloc might modify errno, so don't
96668         realloc until after errno might be used.
96669
96670         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96671         New macros.
96672         (free_exclude): New decl.
96673         (add_exclude, add_exclude_file): Now takes int options arg.
96674         (excluded_filename): No longer requires options arg, as the options
96675         are determined by add_exclude.  Now returns bool, not int.
96676
96677 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96678
96679         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96680
96681 2001-08-27  Jim Meyering  <meyering@lucent.com>
96682
96683         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96684
96685         * lib/version-etc.c (N_): Remove definition.
96686         Revert most of last change.
96687         Instead, simply don't mark the `Copyright...' string for translation.
96688         Based on advice from Paul Eggert.
96689
96690         * lib/strtoxmax.c: Tweak comment.
96691
96692 2001-08-26  Jim Meyering  <meyering@lucent.com>
96693
96694         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96695
96696         * m4/xstrtoimax.m4: New file.
96697         * m4/xstrtoumax.m4: Add comments explaining why we
96698         AC_REPLACE_FUNCS(strtol).
96699
96700 2001-08-26  Jim Meyering  <meyering@lucent.com>
96701
96702         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96703         of copyright with `%s' so translators don't get an untranslated
96704         message in 2002.
96705         (COPYRIGHT_YEAR): Define.
96706         (version_etc): Use fprintf rather than fputs.
96707         Suggestion from Ulrich Drepper.
96708
96709         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96710
96711         * lib/strtoll.c: New file, from GNU libc.
96712         * lib/xstrtoimax.c: New file.
96713
96714         * lib/xstrtol.h: Add xstrtoimax.
96715         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96716         * lib/strtoimax.c: New file.  Likewise, but first define
96717         STRTOUXMAX_SIGNED.
96718
96719         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96720         ...
96721         * lib/strtoxmax.c: ... then renamed to this.
96722
96723 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96724
96725         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96726         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96727         (jm_AC_TYPE_INTMAX_T): New macro.
96728         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96729
96730         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96731
96732         * m4/longlong.m4: Renamed from ulonglong.m4.
96733         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96734         * m4/uintmax_t.m4: Removed.
96735
96736 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96737
96738         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96739         Port to Solaris 8, where 'sed' requires a space after the 'r'
96740         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96741         Redirect output to $tmp just once.
96742
96743 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96744
96745         * lib/addext.c (<errno.h>): Include.
96746         (errno): Declare if not defined.
96747         (addext): Work correctly when pathconf returns -1 and leaves
96748         errno alone because there is no limit.  Also, work even if
96749         pathconf returns a value greater than SIZE_MAX.
96750
96751 2001-08-12  Jim Meyering  <meyering@lucent.com>
96752
96753         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96754         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96755         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96756         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96757         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96758         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96759         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96760         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96761         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96762         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96763         utime.m4, utimes.m4, xstrtoumax.m4:
96764         Quote the first argument in each use of AC_DEFUN.
96765
96766 2001-08-12  Jim Meyering  <meyering@lucent.com>
96767
96768         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96769         Simply `return getcwd (NULL, 0);'.
96770         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96771         Use 1300 as initial value for length, not PATH_MAX.
96772
96773         * lib/pathmax.h: Clean up cpp syntax.
96774
96775 2001-08-12  Jim Meyering  <meyering@lucent.com>
96776
96777         * lib/gettimeofday.c: New file.
96778         * lib/gtod.h: New file.
96779         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96780
96781 2001-08-05  Jim Meyering  <meyering@lucent.com>
96782
96783         * m4/jm-macros.m4: Require autoconf-2.52.
96784
96785 2001-08-04  Jim Meyering  <meyering@lucent.com>
96786
96787         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96788         stmt, to get in sync with glibc.
96789
96790 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96791
96792         The following changes are from gettext 0.10.39 as maintained by
96793         Bruno Haible.
96794
96795         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96796         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96797         with inverted sense.  All uses changed.
96798
96799         * lib/mbswidth.c: Don't include <limits.h>.
96800         Include <stdlib.h> and <string.h> unconditionally.
96801         (iswcntrl, mbsinit, ISCNTRL): New macros.
96802         (mbsnwidth): Use K&R style function declarations.
96803         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96804         can optimize it when MB_CUR_MAX == 1.
96805         The width of control characters is zero, not 1.
96806
96807 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96808
96809         The following changes are from gettext 0.10.39 as maintained by
96810         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96811
96812         * m4/codeset.m4: Upgrade to serial AM1.
96813         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96814         all uses changed.  Quote first arg of AC_DEFUN.
96815         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96816
96817         * m4/iconv.m4: Upgrade to serial AM2.
96818         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96819         Add --with-libconv-prefix.
96820         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96821         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96822         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96823         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96824         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96825
96826         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96827         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96828         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96829         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96830         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96831         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96832         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96833         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96834         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96835
96836         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96837         string.h any more.
96838
96839         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96840         not the default value.
96841
96842         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96843         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96844         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96845         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96846         Also check for iswcntrl, used for wcwidth fallback.
96847         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96848         to Autoconf 2.13.
96849
96850 2001-08-03  Jim Meyering  <meyering@lucent.com>
96851
96852         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96853         as it was in the original.  Reported by Paul Eggert.
96854
96855 2001-07-16  Jim Meyering  <meyering@lucent.com>
96856
96857         * m4/gettimeofday.m4: New file.
96858         Prompted by a report from Bernhard Baehr.
96859
96860 2001-07-15  Jim Meyering  <meyering@lucent.com>
96861
96862         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96863         stuff. Now it's in ../Makefile.cfg.
96864
96865 2001-07-15  Jim Meyering  <meyering@lucent.com>
96866
96867         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96868         (BUILT_SOURCES): Add unlocked-io.h.
96869         (io_functions): Define.
96870         (unlocked-io.h): New rule.
96871         (DISTCLEANFILES): Add unlocked-io.h.
96872         (all-local): Depend on unlocked-io.h, to ensure it is created.
96873
96874         * lib/unlocked-io.hin: New file
96875
96876         * lib/regex.c: Update from glibc.
96877
96878 2001-07-05  Jim Meyering  <meyering@lucent.com>
96879
96880         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96881         recommendation.
96882         (libfetish_a_SOURCES): Put all .h files here instead.
96883         Remove a thus-exposed (better checks in automake) duplicate and
96884         two unnecessary .h files.
96885
96886 2001-07-04  Jim Meyering  <meyering@lucent.com>
96887
96888         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96889         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96890         distcheck failure.
96891
96892 2001-07-02  Jim Meyering  <meyering@lucent.com>
96893
96894         The following changes were prompted by suggestions from Bruno Haible.
96895
96896         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96897         is now generated.
96898         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96899         definition of EXTRA_DIST.
96900         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96901         ensure that the generated file is created/updated whenever the list
96902         of $(unlocked_functions) is changed.
96903         (jm-glibc-io.m4): New rule.
96904         (unlocked-io.h): New rule -- currently unused.
96905
96906 2001-06-24  Jim Meyering  <meyering@lucent.com>
96907
96908         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96909         unmatched right bracket, rather than kludging it with an extra,
96910         falsely-matching quote in a comment.  Patch by Akim Demaille.
96911
96912 2001-06-11  Jim Meyering  <meyering@lucent.com>
96913
96914         * lib/regex.c: Update from GNU libc.
96915
96916 2001-05-27  Jim Meyering  <meyering@lucent.com>
96917
96918         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96919         Check for ut_type in struct utmp.
96920
96921 2001-05-27  Jim Meyering  <meyering@lucent.com>
96922
96923         * lib/readutmp.h (UT_TYPE): Define.
96924
96925 2001-05-24  Jim Meyering  <meyering@lucent.com>
96926
96927         * lib/argmatch.c: Include "quote.h".
96928         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96929         quote function.  Reported by Göran Uddeborg.
96930
96931 2001-05-22  Jim Meyering  <meyering@lucent.com>
96932
96933         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96934         now that we use the package-supplied version unconditionally.
96935         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96936
96937 2001-05-21  Jim Meyering  <meyering@lucent.com>
96938
96939         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96940         shell syntax errors.
96941
96942 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96943
96944         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96945
96946 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96947
96948         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96949         Don't bother to check library strftime, since
96950         we'll be using our own my_strftime function anyway.
96951         Define my_strftime instead of strftime.
96952
96953 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96954
96955         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96956         which is not yet declared.
96957
96958 2001-05-15  Jim Meyering  <meyering@lucent.com>
96959
96960         * m4/regex.m4: Use proper quoting so brackets appear in the test
96961         program.
96962         Reported by, and with help from, Bruno Haible.
96963
96964 2001-05-13  Jim Meyering  <meyering@lucent.com>
96965
96966         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96967         undefined.
96968
96969 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96970
96971         dirname code cleanup.  base_name now behaves more compatibly
96972         with POSIX basename when given file names that have trailing
96973         slashes, and similarly for dir_name.  Add new primitives
96974         base_len and dir_len.  Put the directory-name-related decls
96975         into dirname.h.
96976
96977         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96978         * lib/backupfile.c (base_name): Likewise.
96979         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96980         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96981         * lib/makepath.c (strip_trailing_slashes): Likewise.
96982         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96983         ISSLASH): Likewise.
96984         * lib/rename.c (strip_trailing_slashes): Likewise.
96985         * lib/same.c (base_name): Likewise.
96986         * lib/stripslash.c (ISSLASH): Likewise.
96987
96988         * lib/addext.c: Include <dirname.h> after size_t is defined.
96989         * lib/backupfile.c: Likewise.
96990
96991         * lib/addext.c (addext): Use base_len to trim redundant
96992         trailing slashes instead of doing it ourselves.
96993         But do not trim the last slash if it is not redundant.
96994
96995         * lib/backupfile.c (find_backup_file_name,
96996         max_backup_version): Use base_len instead of rolling it ourselves.
96997         Handle the case of "" and (on DOS) "C:" correctly.
96998
96999         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97000         needed. Include <string.h>, <dirname.h>.
97001         (base_name): Allow file names ending in slashes, other than names
97002         that are all slashes.  In this case, return the basename followed
97003         by the slashes.  This is more general, and can be used in places
97004         where the original base_name purposely had an assertion failure.
97005         (base_len): New function.
97006
97007         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97008         Do not include <assert.h>; no longer needed.
97009         Include xalloc.h.
97010         (memrchr): Remove decl.
97011         (dir_name_r): Remove.
97012         (dir_len): Renamed from dirlen.  All callers changed.
97013         Rewrite in terms of base_name, for simplicity and consistency.
97014         (dir_name): Never return NULL.  All callers changed.
97015         Do not include <stdlib.h> in test program; no longer needed.
97016         return 0; is fine for test program.
97017
97018         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97019         New macros.
97020         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97021
97022         * lib/path-concat.c (path_concat): Use base_len to compute
97023         base length, not strlen; this means we cannot rely on memcpy
97024         to null-terminate.
97025
97026         * lib/same.c (STREQ): Remove.
97027         (same_name): Handle the case where the basename ends in trailing '/'.
97028
97029         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97030         a slash was stripped.  Do not strip the last slash after a
97031         file system prefix.
97032
97033 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97034
97035         * lib/Makefile.am (libfetish_a_SOURCES):
97036         Add strftime.c, since we now compile it on all hosts.
97037
97038         * lib/strftime.c (my_strftime):
97039         Define to nstrftime if emacs, but only if my_strftime is not defined.
97040         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97041         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97042         Add one more extra argument: a nanoseconds value.
97043         All uses changed.
97044         (ns): New macro.
97045         (my_strftime function): Add %N format.
97046         (emacs_strftimeu): Renamed from emacs_strftime,
97047         with extra ut argument.
97048
97049 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97050
97051         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97052
97053 2001-04-21  Jim Meyering  <meyering@lucent.com>
97054
97055         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97056         doesn't interfere.
97057
97058 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97059
97060         * m4/ftruncate.m4: Check for chsize.
97061         Link with ftruncate.o unconditionally if ftruncate is missing.
97062         This was required when cross-compiling to i586-mingw32msvc.
97063
97064 2001-04-08  Jim Meyering  <meyering@lucent.com>
97065
97066         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97067         recomputed; that's necessary when the offset spans a DST transition.
97068         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97069
97070 2001-04-02  Jim Meyering  <meyering@lucent.com>
97071
97072         * lib/regex.h, regex.c: Update from GNU libc.
97073
97074 2001-03-24  Jim Meyering  <meyering@lucent.com>
97075
97076         * m4/jm-macros.m4: Require autoconf-2.49d.
97077
97078 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97079
97080         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97081
97082 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97083
97084         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97085
97086 2001-03-17  Jim Meyering  <meyering@lucent.com>
97087
97088         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97089         now that the version in autoconf is equivalent.
97090         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97091
97092         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97093         Suggestion from Akim Demaille.
97094
97095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97096         (jm_PREREQ_TEMPNAME): New function.
97097
97098 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97099
97100         * lib/tempname.c (uint64_t): Define to uintmax_t if
97101         not defined, and if UINT64_MAX is not defined.
97102         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97103         Reported by John David Anglin.
97104
97105 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97106
97107         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97108         resolve alias if codeset is empty.
97109         * lib/config.charset (BeOS): Use wildcard syntax.
97110
97111 2001-03-13  Jim Meyering  <meyering@lucent.com>
97112
97113         * lib/path-concat.c (path_concat)
97114         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97115         concatenating e.g., `C:' and `foo'.
97116         From Bruno Haible.
97117
97118 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97119
97120         * lib/localcharset.c (locale_charset): Don't use
97121         setlocale(LC_CTYPE,NULL). Don't return NULL.
97122         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97123
97124 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97125
97126         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97127         support for DOS/DJGPP.
97128
97129 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97130
97131         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97132         lacks mkstemp.  Compile our own tempname.c if we compile our own
97133         mkstemp.c, as mkstemp relies on tempname.
97134
97135 2001-03-01  Jim Meyering  <meyering@lucent.com>
97136
97137         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97138         AH_VERBATIM really does output its argument verbatim.
97139
97140 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97141
97142         * lib/Makefile.am (libfetish_a_SOURCES):
97143         Add dup-safer.c, fopen-safer.c.
97144         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97145
97146         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97147         * lib/unistd-safer.h: New files.
97148
97149 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97150
97151         The mkstemp replacement is taken from glibc 2.2.2, with some
97152         portability fixes for use outside glibc, as follows:
97153
97154         * lib/tempname.c (struct_stat64): New macro.
97155         (direxists, __gen_tempname): Use it.
97156         This avoids a portability problem with Solaris 8.
97157
97158         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97159         (<stddef.h>, <stdint.h>, <string.h>):
97160         Include only if STDC_HEADERS || _LIBC.
97161         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97162         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97163         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97164         (__set_errno): Define this macro if <errno.h> doesn't.
97165         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97166         Define these macros if <stdio.h> doesn't.
97167         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97168         Define these macros if <sys/stat.h>
97169         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97170         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97171         __xstat64): Define if not _LIBC.
97172         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97173         (__gen_tempname): Invoke gettimeofday only if
97174         HAVE_GETTIMEOFDAY || _LIBC;
97175         otherwise, fall back on plain "time".
97176         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97177
97178         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97179
97180         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97181
97182 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97183
97184         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97185
97186 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97187
97188         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97190         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97191         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97192
97193 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97194
97195         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97196         Remove workaround macros for hosts that have mbrtowc but not
97197         mbstate_t, as we now insist on proper declarations for both
97198         before using mbrtowc.
97199
97200 2001-02-17  Jim Meyering  <meyering@lucent.com>
97201
97202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97203         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97204         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97205         UnixWare 7.1.1.
97206
97207         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97208         rather than AC_CACHE_VAL.
97209
97210 2001-02-17  Jim Meyering  <meyering@lucent.com>
97211
97212         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97213         around included file name.
97214
97215         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97216
97217         * lib/strftime.c: Update from GNU libc (the only changes were to
97218         comments).
97219
97220 2001-02-17  Jim Meyering  <meyering@lucent.com>
97221
97222         * lib/regex.c: Update from libc.
97223
97224 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97225
97226         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97227         clash.
97228
97229 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97230
97231         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97232         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97233         Reported by Mark Hounschell via Paul Eggert.
97234
97235 2001-02-07  Jim Meyering  <meyering@lucent.com>
97236
97237         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97238
97239 2001-02-05  Jim Meyering  <meyering@lucent.com>
97240
97241         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97242         it includes the patch required for `large file' support with at least
97243         HP-UX's 10.20 /bin/cc.
97244
97245 2001-02-03  Jim Meyering  <meyering@lucent.com>
97246
97247         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97248         AS_IF, now that it works once again (mysteriously).
97249         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97250
97251 2001-01-30  Jim Meyering  <meyering@lucent.com>
97252
97253         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97254         * m4/chown.m4: Rename conftestchown to conftest.chown.
97255         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97256         s/conftestdir2/conftest.d2/.
97257         * m4/utimes.m4: s/conftestdata/conftest.data/
97258         Inspired by Pavel Roskin's change in autoconf.
97259
97260 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97261
97262         * lib/config.charset: Update for FreeBSD 4.2.
97263
97264 2001-01-27  Jim Meyering  <meyering@lucent.com>
97265
97266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97267         a use of AS_IF.
97268         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97269
97270 2001-01-26  Jim Meyering  <meyering@lucent.com>
97271
97272         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97273         quotearg.c includes it.
97274
97275 2001-01-26  Jim Meyering  <meyering@lucent.com>
97276
97277         * lib/quotearg.c: Include stddef.h.
97278         * lib/quote.c: Include stddef.h.
97279         Reported by Axel Kittenberger.
97280
97281         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97282         line in double quotes so that it evokes a better diagnostic.
97283         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97284         Reported by Axel Kittenberger.
97285
97286 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97287
97288         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97289         as if it was a `charset'.
97290
97291 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97292
97293         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97294         has const.
97295
97296 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97297
97298         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97299         to avoid a warning.  Add back 'const' to inptr.
97300
97301 2001-01-20  Jim Meyering  <meyering@lucent.com>
97302
97303         Be sure that headers are checked before used in code compiled
97304         for the type checks.
97305         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97306         In place of that, invoke jm_CHECK_ALL_TYPES.
97307         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97308         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97309         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97310         The check for ssize_t was mistakenly run before the test for unistd.h.
97311
97312         The configure-time check for stdbool.h was missing.
97313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97314         (jm_PREREQ_HASH): New function.
97315
97316 2001-01-17  Jim Meyering  <meyering@lucent.com>
97317
97318         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97319         for autoconf-2.49c.
97320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97321
97322 2001-01-16  Jim Meyering  <meyering@lucent.com>
97323
97324         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97325         From Bruno Haible.
97326
97327 2001-01-14  Jim Meyering  <meyering@lucent.com>
97328
97329         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97330         foo and bar.  Create conftestdir/ in the script, not in the C code.
97331         Remove directories in the script, not in the C code.
97332         Remove conftestdir{,2} before trying to create the directory.
97333         Make the entire configure script fail if the mkdir fails.
97334
97335 2001-01-14  Jim Meyering  <meyering@lucent.com>
97336
97337         * lib/rename.c: New file.  From Volker Borchert.
97338         Include stdlib.h, string.h or strings.h, and xalloc.h.
97339         Use strip_trailing_slashes rather than open-coding it.
97340
97341 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97342
97343         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97344
97345 2001-01-03  Jim Meyering  <meyering@lucent.com>
97346
97347         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97348         of local `inptr' to avoid warning with some system declarations of
97349         iconv.
97350
97351 2001-01-02  Volker Borchert  <bt@teknon.de>
97352
97353         * m4/rename.m4: New file.
97354         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97355
97356 2001-01-01  Jim Meyering  <meyering@lucent.com>
97357
97358         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97359         even on systems with utmpx.h.  It's necessary for the declaration of
97360         utmp's ut_user member.  Reported by Andreas Jaeger.
97361
97362         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97363         available. They are required for the declarations of getgrgid and
97364         getpwuid resp.
97365         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97366         Reported by Andreas Jaeger.
97367
97368 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97369
97370         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97371         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97372         so `make install' also works in VPATH builds.
97373
97374 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97375
97376         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97377         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97378         can be used in subdirectories.
97379
97380 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97381
97382         * lib/modechange.c: Do not assume that mode_t uses the
97383         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97384         the other-execute bit of FOO even if S_IXOTH != 1.
97385
97386         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97387         WOTH, XOTH, ALLM): New macros.
97388         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97389          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97390         Use them.
97391         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97392         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97393         (mode_compile):
97394         No need to use uintmax_t; unsigned long is long enough.
97395         Don't bother to get suffix since we don't use it.
97396
97397 2000-12-26  Jim Meyering  <meyering@lucent.com>
97398
97399         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97400         better with autoheader.
97401
97402 2000-12-24  Jim Meyering  <meyering@lucent.com>
97403
97404         * lib/hash.c (is_prime): Return explicit boolean values.
97405         (hash_get_first): Return NULL to appease Irix5.6's 89.
97406         Reported by Nelson Beebe.
97407
97408 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97409
97410         * lib/localcharset.c (locale_charset): Add support for Win32.
97411
97412 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97413
97414         * lib/physmem.h, lib/physmem.c: New files.
97415
97416         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97417         (noinst_HEADERS): Add physmem.h.
97418
97419         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97420         't' for compatibility with Solaris 8 sort.
97421
97422 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97423
97424         * lib/config.charset: Add support for BeOS.
97425
97426 2000-12-17  Jim Meyering  <meyering@lucent.com>
97427
97428         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97429         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97430
97431 2000-12-16  Jim Meyering  <meyering@lucent.com>
97432
97433         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97434         N and M) would have treated it like `chown N:N FILE'.
97435
97436         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97437
97438 2000-12-16  Jim Meyering  <meyering@lucent.com>
97439
97440         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97441         SHELLS_FILE to a file name that's useful on djgpp systems.
97442         Include stdlib.h.
97443         (ADDITIONAL_DEFAULT_SHELLS): Define.
97444         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97445         Based mostly on a patch from Prashant TR.
97446
97447 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97448
97449         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97450         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97451         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97452
97453 2000-12-08  Andreas Schwab  <schwab@suse.de>
97454
97455         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97456         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97457
97458 2000-12-07  Jim Meyering  <meyering@lucent.com>
97459
97460         * lib/stripslash.c (ISSLASH): Define.
97461         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97462         `/'.
97463         From Prashant TR.
97464
97465         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97466         (dir_name_r): Declare this function as static.
97467         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97468         manifest itself on a name containing a mix of slashes and
97469         backslashes.
97470         Make this function work with names starting with a DOS-style
97471         drive letter and colon prefix.
97472         (dir_name): Append `.' if necessary.
97473         Based mostly on patches from Prashant TR and Eli Zaretskii.
97474
97475         * lib/dirname.h (dir_name_r): Remove prototype.
97476
97477 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97478
97479         * m4/off_t-format.m4: Remove this file.
97480         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97481
97482 2000-12-06  Jim Meyering  <meyering@lucent.com>
97483
97484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97485         replacement strtoull, we may well need the replacement strtoul, too.
97486         Check for declarations of strtoul and strtoull.
97487         Check for strtol.  Mainly as a cue to cause automake to include
97488         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97489         Check for limits.h -- strtol.c needs it.
97490
97491 2000-12-05  Jim Meyering  <meyering@lucent.com>
97492
97493         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97494
97495 2000-12-04  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97498         Also include memory.h, stdlib.h, unistd.h if appropriate.
97499         Reported by Andreas Jaeger (conflicting declaration of malloc).
97500
97501 2000-12-02  Jim Meyering  <meyering@lucent.com>
97502
97503         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97504         * m4/jm-macros.m4 (jm_MACROS): require it.
97505
97506 2000-12-02  Jim Meyering  <meyering@lucent.com>
97507
97508         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97509
97510 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97511
97512         * lib/memrchr.c: Include <config.h> before any system include file.
97513
97514 2000-11-30  Jim Meyering  <meyering@lucent.com>
97515
97516         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97517
97518 2000-11-30  Jim Meyering  <meyering@lucent.com>
97519
97520         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97521
97522 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97523
97524         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97525
97526 2000-11-26  Jim Meyering  <meyering@lucent.com>
97527
97528         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97529
97530 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97531
97532         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97533         size of (size_t) -1; it's not portable.
97534
97535 2000-11-17  Jim Meyering  <meyering@lucent.com>
97536
97537         * lib/strstr.c: Update from GNU libc.
97538
97539 2000-11-17  Akim Demaille  <akim@epita.fr>
97540
97541         * lib/obstack.h: Formatting changes.
97542         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97543         prevent type checking.
97544         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97545         cast the value to (void *): assigning a `foo *' to a `void *'
97546         variable is valid.
97547         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97548
97549 2000-11-16  Jim Meyering  <meyering@lucent.com>
97550
97551         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97552
97553 2000-11-11  Jim Meyering  <meyering@lucent.com>
97554
97555         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97556
97557 2000-11-10  Jim Meyering  <meyering@lucent.com>
97558
97559         * lib/obstack.h: Update from GNU libc.
97560         * lib/obstack.c: Likewise.
97561
97562 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97563
97564         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97565
97566 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97567
97568         * lib/getusershell.c (setusershell): Use rewind rather than
97569         fseek/fseeko, to avoid configuration hassles with fseeko.
97570         Don't bother opening SHELLS_FILE if shellstream is NULL;
97571         it's not necessary.
97572
97573 2000-11-05  Jim Meyering  <meyering@lucent.com>
97574
97575         * lib/makepath.h (make_dir): Declare.
97576         * lib/makepath.c (make_dir): Remove `static' attribute.
97577         Tweak a comment.
97578
97579 2000-11-04  Jim Meyering  <meyering@lucent.com>
97580
97581         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97582
97583 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97584
97585         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97586         last one in a bucket, advance to the next bucket.
97587
97588 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97589
97590         * lib/fnmatch.c: Do not comment out all the code if we are using
97591         the GNU C library, because in some cases we are replacing buggy
97592         code in the GNU C library itself.
97593
97594 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97595
97596         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97597         (regex_compile): Catch bogus \(\1\).
97598
97599 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97600
97601         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97602         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97603         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97604
97605 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97606
97607         * lib/error.h, getline.h, modechange.h:
97608         Remove "2000" from Copyright line, as the file hasn't been
97609         changed this year other than in the copyright notice.
97610
97611         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97612         was changed this year.
97613
97614 2000-10-29  Jim Meyering  <meyering@lucent.com>
97615
97616         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97617         renaming.
97618         * m4/ls-mntd-fs.m4: Likewise
97619
97620 2000-10-29  Jim Meyering  <meyering@lucent.com>
97621
97622         * lib/xstat.in: Fix grammar in comment.
97623
97624 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97625
97626         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97627         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97628         doesn't define __restrict_arr.
97629
97630 2000-10-28  Jim Meyering  <meyering@lucent.com>
97631
97632         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97633         (jm_PREREQ_MEMCHR): New function.
97634
97635 2000-10-28  Jim Meyering  <meyering@lucent.com>
97636
97637         * lib/memchr.c: Update from libc.
97638         Adjust for portability:
97639         [HAVE_STDLIB_H]: Include stdlib.h.
97640         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97641         Undef __memchr, too.
97642         [!weak_alias]: Define __memchr to memchr.
97643
97644         * lib/regex.c: Update from libc.
97645         * lib/regex.h: Likewise.
97646         * lib/getopt1.c: Likewise.
97647         * lib/memcmp.c: Likewise.
97648
97649         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97650         Avoid using fseek, when possible -- it's broken by design.
97651         Patch by Ulrich Drepper.
97652
97653 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97654
97655         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97656         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97657         Giving in to popular pressure to shut up the compiler with casts.
97658
97659 2000-10-26  Jim Meyering  <meyering@lucent.com>
97660
97661         * lib/strftime.c: Update from libc.
97662
97663 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97664
97665         * regex.c: More `unsigned char' -> `re_char' changes.
97666         Also change several `int' into `re_wchar_t'.
97667         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97668         (PUSH_FAILURE_POINTER): Don't cast any more.
97669         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97670         We want GCC to complain, since this piece of code makes
97671         re_match non-reentrant, which *should* be fixed.
97672         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97673         (EXTEND_BUFFER): Use RETALLOC.
97674         (SET_LIST_BIT): Don't cast.
97675         (re_wchar_t): New type.
97676         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97677         that those two functions will always properly return.
97678         (IMMEDIATE_QUIT_CHECK): Cast to void.
97679         (analyse_first): Use recursion rather than an explicit stack.
97680         (re_compile_fastmap): Can't fail anymore.
97681         (re_search_2): Don't check re_compile_fastmap for failure.
97682         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97683         Now also sets the new value (passed in a new argument).
97684         (re_match_2_internal): Use it.
97685         Also, use a new var `reg' of type size_t when looping through regs
97686         rather than reuse the inappropriate `mcnt'.
97687
97688 2000-10-25  Jim Meyering  <meyering@lucent.com>
97689
97690         * lib/obstack.c: Update from libc.
97691
97692 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97693
97694         * regex.c (regex_compile): Change the way of handling a range from
97695         a char less than 256 to a char not less than 256.
97696
97697 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97698
97699         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97700         NT-Emacs only.
97701         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97702         so that re_search functions only quit when callers expect them to.
97703
97704 2000-10-23  Jim Meyering  <meyering@lucent.com>
97705
97706         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97707         wrong.  That set_locale call must not have any side effects.
97708         From Paul Eggert.
97709
97710 2000-10-22  Jim Meyering  <meyering@lucent.com>
97711
97712         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97713         [CYCLIC]: Remove now-unused definition.
97714
97715         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97716         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97717         Suggestion from Ulrich Drepper.
97718
97719 2000-10-21  Jim Meyering  <meyering@lucent.com>
97720
97721         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97722         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97723         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97724
97725 2000-10-21  Jim Meyering  <meyering@lucent.com>
97726
97727         * lib/dirname.c (memrchr): Declare if necessary.
97728         (dir_name): Remove the restriction that there be no
97729         trailing slashes.  Now, this code skips past them, effectively
97730         ignoring them.
97731         [TEST_DIRNAME] (main): New unit tests.
97732
97733         * lib/memrchr.c: New file from GNU libc.
97734         Undef __memrchr, too.
97735         [!weak_alias]: Define __memrchr to memrchr.
97736         Guard weak_alias use with `#ifdef weak_alias'.
97737
97738 2000-10-21  Jim Meyering  <meyering@lucent.com>
97739
97740         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97741         (dir_name): Use dir_name_r.
97742         * lib/dirname.h (dir_name_r): Declare it.
97743
97744 2000-10-17  Jim Meyering  <meyering@lucent.com>
97745
97746         * lib/quote.h (PARAMS): Define and use.
97747         Reported by Akim Demaille.
97748
97749         * lib/getopt.c: Update from libc.
97750
97751 2000-10-16  Jim Meyering  <meyering@lucent.com>
97752
97753         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97754         setlocale.
97755         From Jan Fedak.
97756
97757 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97758
97759         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97760
97761 2000-09-25  Jim Meyering  <meyering@lucent.com>
97762
97763         * lib/md5.h (rol): Define (from GnuPG).
97764
97765         * lib/sha.c: Give credit (GnuPG) where due.
97766         (M): Use rol rather than open-coding it.
97767         Add a FIXME comment.
97768
97769 2000-09-21  Jim Meyering  <meyering@lucent.com>
97770
97771         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97772         Reported by Michael Stone.
97773
97774 2000-09-20  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97777         (noinst_HEADERS): Add sha.h.
97778         Based on code from Scott G. Miller and from GnuPG.
97779
97780 2000-09-18  Jim Meyering  <meyering@lucent.com>
97781
97782         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97783         LIBS. Otherwise, everyone ends up linking with -lelf for some
97784         configurations.
97785         Reported by Mike Stone.
97786
97787 2000-09-15  Jim Meyering  <meyering@lucent.com>
97788
97789         * lib/regex.c: Update from libc.
97790
97791 2000-09-10  Jim Meyering  <meyering@lucent.com>
97792
97793         * lib/getopt.c (_getopt_internal): Update from glibc.
97794
97795 2000-09-09  Jim Meyering  <meyering@lucent.com>
97796
97797         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97798         think it should be used as a general replacement for isascii.
97799         * lib/fnmatch.c: Likewise.
97800         * lib/mbswidth.c: Likewise
97801         * lib/regex.c: Likewise.
97802
97803         Don't use atoi.
97804         * lib/userspec.c: Include sys/param.h and limits.h.
97805         Include xstrtol.h.
97806         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97807         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97808         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97809         UID, GID.  Check range.
97810
97811 2000-09-06  Jim Meyering  <meyering@lucent.com>
97812
97813         * lib/getopt.c (_getopt_internal): Update from glibc.
97814
97815 2000-08-30  Jim Meyering  <meyering@lucent.com>
97816
97817         * lib/strftime.c: Merge in changes from GNU libc.
97818
97819 2000-08-26  Jim Meyering  <meyering@lucent.com>
97820
97821         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97822         * m4/fpending.m4: New file.
97823
97824 2000-08-26  Jim Meyering  <meyering@lucent.com>
97825
97826         * lib/closeout.c: Include "__fpending.h".
97827         (close_stdout_status): Return right away if there's nothing to flush.
97828
97829         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97830         * lib/__fpending.c: New file.
97831         * lib/__fpending.h: New file.
97832
97833 2000-08-20  Jim Meyering  <meyering@lucent.com>
97834
97835         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97836         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97837         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97838
97839 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97840
97841         Improve fileutils installation on systems where running
97842         programs (like install) can't be unlinked.
97843         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97844         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97845
97846 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97847
97848         Standardize on "memory exhausted" instead of "Memory exhausted"
97849         or "virtual memory exhausted".
97850         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97851         "virtual memory exhausted".
97852         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97853         our own message.
97854         * lib/userspec.c (parse_user_spec): Likewise.
97855         * lib/bumpalloc.h: comment fix
97856         * lib/same.c, userspec.c: Include xalloc.h.
97857
97858         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97859         not char *const and pointing to a constant array.
97860         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97861         (xrealloc): Comment fix.
97862
97863         * lib/userspec.c (parse_user_spec):
97864         Don't translate a message until just before returning,
97865         to avoid unnecessary translation.
97866
97867 2000-08-07  Jim Meyering  <meyering@lucent.com>
97868
97869         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97870         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97871         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97872         getgroups.c, gethostname.c, getopt.h, group-member.c,
97873         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97874         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97875         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97876         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97877         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97878         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97879         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97880         yesno.c: Back out Copyright date changes for each file with no change
97881         this year.  This eases coordination with other programs using the same
97882         source code modules.  From Paul Eggert.
97883
97884 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97885
97886         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97887         not char, for compatibility with glibc 2.1.3 strftime.c.
97888
97889 2000-08-03  Greg McGary  <greg@mcgary.org>
97890
97891         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97892         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97893         (EXTEND_BUFFER): Use them.
97894
97895 2000-08-01  Jim Meyering  <meyering@lucent.com>
97896
97897         * lib/dirname.c (ISSLASH): Define.
97898         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97899         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97900         both `\' and `/' may be use as path separators.
97901         Based on a patch from Prashant TR.
97902
97903 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97904
97905         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97906         slot vector a constant, since it might get modified.
97907
97908 2000-07-31  Jim Meyering  <meyering@lucent.com>
97909
97910         * lib/xmalloc.c: Use `virtual memory exhausted', not
97911         `Memory exhausted'.
97912         * lib/obstack.c (print_and_abort): Likewise.
97913
97914 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97915
97916         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97917         buffer, so that the caller can always quote one small
97918         component of a "memory exhausted" message in slot 0.
97919         From a suggestion by Jim Meyering.
97920
97921 2000-07-30  Jim Meyering  <meyering@lucent.com>
97922
97923         * lib/makepath.c (make_path): Quote the other instance, too.
97924
97925         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97926         (STATIC_BUF_SIZE): Define.
97927         (quotearg_n_options): Use only statically allocated storage when
97928         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97929         than STATIC_BUF_SIZE.
97930
97931 2000-07-29  Jim Meyering  <meyering@lucent.com>
97932
97933         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97934         * lib/dirname.c (dir_name): Likewise.
97935
97936         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97937         `/'.
97938
97939         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97940         (dir_name): Assert that there are no trailing slashes.
97941
97942 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97943
97944         * lib/mbswidth.h (mbswidth): Add a flags argument.
97945         (mbswidth): New declaration.
97946         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97947         * lib/mbswidth.c (mbswidth): Add a flags argument.
97948         (mbsnwidth): New function.
97949
97950 2000-07-24  Jim Meyering  <meyering@lucent.com>
97951
97952         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97953
97954 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97955
97956         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97957
97958 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97959
97960         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97961         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97962         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97963         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97964         invoke multibyte primitives.
97965
97966 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97967
97968         * lib/quotearg.c:
97969         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97970         so that mbstate_t is always defined.
97971
97972         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97973         be 1 in at least one GCC installation, and this configuration
97974         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97975         performance on hosts that have mbrtowc but have only unibyte
97976         locales, but I assume these hosts are rare.
97977
97978 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97979
97980         * lib/mbswidth.c (_XOPEN_SOURCE):
97981         Don't define; this causes problems on Solaris 7.
97982         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97983
97984 2000-07-23  Jim Meyering  <meyering@lucent.com>
97985
97986         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97987         too: getgrgid, getpwuid, getuid.
97988
97989 2000-07-23  Jim Meyering  <meyering@lucent.com>
97990
97991         * lib/basename.c (base_name): Add an assertion.
97992
97993 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97994
97995         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97996         shadow its mbsinit function.
97997
97998 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97999
98000         * lib/mbswidth.h: New file.
98001         * lib/mbswidth.c: New file.
98002         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98003         (noinst_HEADERS): Add mbswidth.h.
98004
98005 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98006
98007         * lib/config.charset: Add support for FreeBSD. Improve support for
98008         HP-UX and IRIX 6.
98009
98010 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98011
98012         * m4/mbswidth.m4: New file.
98013         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98014
98015 2000-07-15  Jim Meyering  <meyering@lucent.com>
98016
98017         * lib/makepath.c: Include quote.h.
98018         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98019         corresponding argument in a `quote (...)' call.
98020         Give better diagnostics.
98021
98022         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98023         (noinst_HEADERS): Add quote.h.
98024
98025         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98026         from tar's src/misc.c.
98027         * lib/quote.h: New file.  Prototypes for same.
98028
98029 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98030
98031         From a suggestion by Bruno Haible.
98032         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98033         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98034         to decide whether to define the BeOS workaround macro;
98035         this adjusts to the change to AC_MBSTATE_T.
98036
98037 2000-07-14  Jim Meyering  <meyering@lucent.com>
98038
98039         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98040         jm_AC_TYPE_UINTMAX_T.
98041
98042 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98043
98044         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98045
98046         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98047         quotearg_buffer_restyled): Add support for
98048         clocale_quoting_style.  Undo previous change to
98049         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98050         and "{RIGHT QUOTATION MARK}" msgids.
98051
98052 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98053
98054         From a suggestion by Bruno Haible.
98055         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98056         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98057         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98058         and mbstate_t, to a single-part test that simply defines mbstate_t.
98059         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98060         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98061
98062 2000-07-10  Jim Meyering  <meyering@lucent.com>
98063
98064         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98065
98066         * m4/gnu-source.m4: Output to confdefs.h directly.
98067         Suggestion from Akim Demaille.
98068
98069 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98070
98071         The old behavior of quoting `like this' doesn't look good with
98072         newer, ISO-style fonts.  See:
98073         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98074
98075         Instead, quote "like this" by default.  Let the translator
98076         tailor the locale-specific quoting behavior by providing
98077         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98078
98079         * lib/quotearg.c (N_): New macro.
98080         (gettext_default): New function.
98081         (quotearg_buffer_restyled): Use
98082         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98083         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98084
98085 2000-07-09  Jim Meyering  <meyering@lucent.com>
98086
98087         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98088         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98089
98090         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98091         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98092
98093 2000-07-09  Jim Meyering  <meyering@lucent.com>
98094
98095         * lib/Most files: Update copyright dates to include 2000.
98096
98097 2000-07-08  Jim Meyering  <meyering@lucent.com>
98098
98099         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98100         if not defined.
98101         (xgethostname): Remove now-unnecessary #ifdef.
98102         Move declaration of `err' into loop where it's used.
98103
98104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98105         and Bruno Haible  <haible@clisp.cons.org>
98106
98107         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98108         only if the test for an object-type mbstate_t fails.  This
98109         prevents us from mistakenly reporting that mbstate_t is a
98110         system object type after we "#define mbstate_t int" to work
98111         around its lack.
98112
98113 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98114         and Bruno Haible  <haible@clisp.cons.org>
98115
98116         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98117
98118 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98119
98120         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98121         to strerror_r.
98122         Include <ctype.h> for use of isalpha.
98123
98124 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98125
98126         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98127         by allocating a larger buffer. Test the gethostname return value for
98128         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98129         returns an error and ENAMETOOLONG isn't defined.
98130
98131 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98132
98133         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98134         dimension.
98135
98136 2000-07-04  Jim Meyering  <meyering@lucent.com>
98137
98138         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98139         of the deprecated AC_CHECKING.
98140
98141 2000-07-04  Jim Meyering  <meyering@lucent.com>
98142
98143         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98144         Reported by Bruno Haible.
98145
98146 2000-07-04  Jim Meyering  <meyering@lucent.com>
98147
98148         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98149         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98150         lacks mbrtowc.
98151
98152 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98153
98154         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98155         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98156
98157 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98158         and Bruno Haible  <haible@clisp.cons.org>
98159
98160         * lib/quotearg.c (mbrtowc):
98161         Assign to *pwc, and return 1 only if result is nonzero.
98162         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98163
98164 2000-07-03  Jim Meyering  <meyering@lucent.com>
98165
98166         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98167
98168 2000-07-03  Jim Meyering  <meyering@lucent.com>
98169
98170         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98171         This is necessary to get a definition of e.g., UTMP_FILE on
98172         HP-UX 10.20.
98173         From Bob Proulx.
98174
98175 2000-07-02  Jim Meyering  <meyering@lucent.com>
98176
98177         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98178
98179         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98180         AC_LIBOBJ(function_name).
98181         * m4/chown.m4: Likewise.
98182         * m4/fnmatch.m4: Likewise.
98183         * m4/ftruncate.m4: Likewise.
98184         * m4/getgroups.m4: Likewise.
98185         * m4/getline.m4: Likewise.
98186         * m4/group-member.m4: Likewise.
98187         * m4/jm-macros.m4: Likewise.
98188         * m4/lstat.m4: Likewise.
98189         * m4/malloc.m4: Likewise.
98190         * m4/memcmp.m4: Likewise.
98191         * m4/nanosleep.m4: Likewise.
98192         * m4/putenv.m4: Likewise.
98193         * m4/realloc.m4: Likewise.
98194         * m4/regex.m4: Likewise.
98195         * m4/stat.m4: Likewise.
98196         * m4/strftime.m4: Likewise.
98197
98198 2000-07-02  Jim Meyering  <meyering@lucent.com>
98199
98200         * lib/quotearg.c (mbstate_t): Don't define here.
98201
98202 2000-07-02  Jim Meyering  <meyering@lucent.com>
98203
98204         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98205
98206 2000-07-01  Jim Meyering  <meyering@lucent.com>
98207
98208         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98209
98210 2000-07-01  Jim Meyering  <meyering@lucent.com>
98211
98212         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98213         problem.
98214
98215 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98216
98217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98218         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98219
98220 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98221
98222         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98223         per change in ../m4/ls-mntd-fs.m4.
98224         (read_filesystem_list): Ignore symbolic links.
98225
98226 2000-06-29  Jim Meyering  <meyering@lucent.com>
98227
98228         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98229         for declaration of strcmp.
98230
98231         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98232
98233         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98234         Avoid warning by casting result to `char *' to remove `const'.
98235
98236 2000-06-28  Jim Meyering  <meyering@lucent.com>
98237
98238         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98239         included by quotearg.c, for which we perform this test.  From
98240         Bruno Haible.
98241
98242 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98243
98244         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98245         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98246         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98247
98248 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98249
98250         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98251
98252 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98253
98254         savedir now sets errno on failure and invokes xmalloc to get memory.
98255         Fix a couple of other minor bugs while we're at it.
98256
98257         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98258         (NAMLEN): Remove macro.
98259         (malloc, realloc): Remove decls.
98260         (stpcpy): Likewise.
98261         ("xalloc.h"): Include.
98262         (NAME_SIZE_DEFAULT): New macro.
98263         (savedir): Use xmalloc / xrealloc to allocate memory.
98264         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98265         Skip "" directory entries.
98266         Use strlen to calculate directory entry length, since the old method
98267         is rarely used these days and isn't worth supporting.
98268         Don't use a pointer after freeing it.
98269         Check for integer overflow when calculating allocation size.
98270         Use memcpy to copy entries, instead of stpcpy.
98271         Set errno properly when returning NULL.
98272         Check for readdir error.
98273
98274 2000-06-26  Jim Meyering  <meyering@lucent.com>
98275
98276         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98277
98278 2000-06-25  Jim Meyering  <meyering@lucent.com>
98279
98280         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98281         Linux header bug when _XOPEN_SOURCE is defined to 500.
98282
98283 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98284
98285         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98286         deficiency.
98287
98288 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98289
98290         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98291         Include xalloc.h.
98292         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98293
98294 2000-06-24  Jim Meyering  <meyering@lucent.com>
98295
98296         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98297         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98298         for which strerror does return char*, but which lacks a conveniently
98299         accessible declaration of the function.  If the compile-test says
98300         strerror_r doesn't work, then resort to a `run'-test that works on
98301         BeOS and segfaults on DEC Unix.
98302
98303 2000-06-24  Jim Meyering  <meyering@lucent.com>
98304
98305         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98306
98307 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98308
98309         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98310         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98311
98312 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98313
98314         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98315         (mbrtowc, mbstate_t): Define substitutes if
98316         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98317         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98318         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98319
98320 2000-06-23  Jim Meyering  <meyering@lucent.com>
98321
98322         * m4/afs.m4: Add missing AC_MSG_RESULT.
98323         Reported by Bruno Haible.
98324
98325         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98326         Suggestion from Bruno Haible.
98327
98328 2000-06-23  Jim Meyering  <meyering@lucent.com>
98329
98330         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98331
98332 2000-06-21  Jim Meyering  <meyering@lucent.com>
98333
98334         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98335
98336 2000-06-21  Jim Meyering  <meyering@lucent.com>
98337
98338         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98339         (noinst_HEADERS): Add getstr.h.
98340
98341         * lib/getline.c (getstr): Move into a separate file.
98342         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98343         the following changes: new parameter, delim2; both delim[12]
98344         parameters have type `int', not `char'.  The latter would lose
98345         with 8-bit delimiters.
98346         * lib/getstr.h: New file.
98347
98348 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98349
98350         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98351         than 1024, return a memory chunk of least possible size, instead
98352         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98353         Use free/xmalloc instead of xrealloc to avoid copying for very long
98354         paths.
98355
98356 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98357
98358         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98359         the empty string.
98360
98361 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98362
98363         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98364         address, not strdup.  Include <stdlib.h> and don't declare free().
98365
98366 2000-06-19  Jim Meyering  <meyering@lucent.com>
98367
98368         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98369
98370 2000-06-18  Jim Meyering  <meyering@lucent.com>
98371
98372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98373
98374         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98375         `checking whether...' message to be consistent with that of the
98376         lstat test.
98377
98378 2000-06-18  Jim Meyering  <meyering@lucent.com>
98379
98380         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98381         Besides, these days every porting target provides a mkdir function.
98382
98383         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98384         needed. (this snippet comes from src/system.h).
98385
98386 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98387
98388         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98389
98390 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98391
98392         * lib/human.c (adjust_value): New function.
98393         (human_readable_inexact): Apply rounding style even when
98394         printing approximate values.
98395
98396 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98397
98398         * lib/human.c (human_readable_inexact): Allow an input block
98399         size that is not a multiple of the output block size, and vice versa.
98400         Reported by Piergiorgio Sartor.
98401
98402 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98403
98404         * lib/getdate.y (get_date): Apply relative times after time
98405         zone indicator, not before.  Reported by Todd A. Jacobs.
98406
98407 2000-06-13  Jim Meyering  <meyering@lucent.com>
98408
98409         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98410
98411         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98412
98413 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98414
98415         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98416
98417 2000-06-12  Jim Meyering  <meyering@lucent.com>
98418
98419         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98420         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98421         optional argument.
98422         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98423         the optional argument, `lib'.
98424
98425 2000-06-08  Jim Meyering  <meyering@lucent.com>
98426
98427         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98428
98429 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98430
98431         Rewrite largefile configuration so that we don't need to run
98432         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98433         AC_CANONICAL_HOST in configure.in -- jmm]
98434
98435         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98436         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98437         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98438         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98439         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98440         All uses changed.
98441         Instead of inspecting the output of getconf, try to compile the
98442         test program without and with the macro definition.
98443         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98444         for getconf.  Instead, check for the needed flags by compiling
98445         test programs.
98446
98447 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98448
98449         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98450
98451 2000-06-04  Jim Meyering  <meyering@lucent.com>
98452
98453         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98454         SunOS 4.1.4 for which gid_t is an unsigned type.
98455
98456 2000-06-03  Jim Meyering  <meyering@lucent.com>
98457
98458         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98459         now that autoconf requires that.
98460
98461         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98462         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98463         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98464
98465 2000-06-03  Jim Meyering  <meyering@lucent.com>
98466
98467         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98468
98469 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98470
98471         * m4/glibc21.m4: New file.
98472         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98473
98474 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98475
98476         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98477         newer, don't install charset.alias.
98478         * lib/config.charset: Change the Linux/glibc rules so they become empty
98479         on glibc-2.1 or newer.
98480
98481 2000-06-02  Jim Meyering  <meyering@lucent.com>
98482
98483         * lib/mountlist.c: Back out last change.  Instead, do this...
98484         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98485         me_dummy member using the same `ignore'-testing code.
98486         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98487         fs_type strings.
98488         From Mark D. Roth.
98489
98490 2000-05-29  Jim Meyering  <meyering@lucent.com>
98491
98492         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98493         mounts with the `ignore' attribute.  Based on a patch from
98494         Mark D. Roth.
98495
98496 2000-05-28  Jim Meyering  <meyering@lucent.com>
98497
98498         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98499         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98500         * m4/stat.m4: Likewise.
98501         * m4/lstat.m4: Likewise.
98502         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98503
98504         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98505         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98506
98507 2000-05-26  Jim Meyering  <meyering@lucent.com>
98508
98509         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98510
98511 2000-05-24  Jim Meyering  <meyering@lucent.com>
98512
98513         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98514         autoconf requires that.
98515         * m4/lib-check.m4: Likewise.
98516         * m4/jm-macros.m4: Likewise.
98517         * m4/strftime.m4: Likewise.
98518
98519         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98520         AC_CHECK_DECLS, now that autoconf requires that.
98521
98522 2000-05-22  Jim Meyering  <meyering@lucent.com>
98523
98524         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98525         * m4/lstat.m4: Likewise.
98526
98527 2000-05-22  Jim Meyering  <meyering@lucent.com>
98528
98529         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98530
98531 2000-05-20  Jim Meyering  <meyering@lucent.com>
98532
98533         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98534         (jm_PREREQ): Use it.
98535
98536 2000-05-18  Jim Meyering  <meyering@lucent.com>
98537
98538         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98539         back, too, since it may have been modified by allocate_entry.
98540         (hash_delete): Rewrite to use neither the assignment operator
98541         nor the comma operator in an if-expression.
98542
98543 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98544
98545         * lib/closeout.c:
98546         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98547         Remove; no longer needed.
98548         "quotearg.h": Add include.
98549         (file_name): Do not bother to explicitly initialize to NULL; it's less
98550         efficient on some hosts.
98551         (close_stdout_status): Remove test as to whether stdout was already
98552         closed; it breaks for the case "echo x | sort >&-".
98553         Quote file name colons.
98554         Do not assume that _("write error") lacks format strings.
98555
98556 2000-05-15  Jim Meyering  <meyering@lucent.com>
98557
98558         * lib/version-etc.c (version_etc_copyright): Update the copyright
98559         string used in all --version output.
98560
98561 2000-05-14  Jim Meyering  <meyering@lucent.com>
98562
98563         * lib/closeout.c (close_stdout_set_file_name): New function.
98564         (close_stdout_status): Use new file-scoped global.
98565         Return right away if fstat says the stdout file descriptor is invalid.
98566         * lib/closeout.h (close_stdout_set_file_name): Declare.
98567
98568 2000-05-10  Jim Meyering  <meyering@lucent.com>
98569
98570         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98571         (close_stdout_set_status): New function.
98572         * lib/closeout.h (close_stdout_set_status): Declare.
98573
98574 2000-05-09  Jim Meyering  <meyering@lucent.com>
98575
98576         * m4/gettext.m4: Rename this...
98577         * m4/libintl.m4: ...to this.
98578
98579 2000-05-08  Jim Meyering  <meyering@lucent.com>
98580
98581         * lib/long-options.c: Don't include closeout.h.
98582         (parse_long_options): Don't call close_stdout for --version.
98583
98584 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98585
98586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98587         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98588         2.1.3 bug.  This avoids a clash when files like regex.c define
98589         _GNU_SOURCE.
98590
98591 2000-05-06  Jim Meyering  <meyering@lucent.com>
98592
98593         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98594         (AC_REPLACE_FUNCS): Add strnlen.
98595
98596         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98597         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98598
98599         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98600         AC_SEARCH_LIBS call for nanosleep.
98601         (LIB_NANOSLEEP): Set and AC_SUBST.
98602
98603 2000-05-06  Jim Meyering  <meyering@lucent.com>
98604
98605         * lib/strnlen.c: Undefine __strnlen and strnlen.
98606         [!weak_alias]: Define __strnlen to strnlen.
98607
98608         * lib/atexit.c: New file, from libiberty.
98609
98610 2000-05-06  Jim Meyering  <meyering@lucent.com>
98611
98612         * lib/closeout.c (close_stdout_status): Also check for errors on the
98613         stderr stream.
98614
98615 2000-05-05  Jim Meyering  <meyering@lucent.com>
98616
98617         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98618         AC_SEARCH_LIBS call for clock_gettime.
98619         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98620
98621         * m4/search-libs.m4: Update from autoconf.
98622
98623         su doesn't work on Solaris 2.6.
98624         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98625         <shadow.h>.  Reported by Dragos Harabor.
98626
98627 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98628
98629         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98630         memcpy instead of xmalloc, xrealloc, path_concat.
98631         (locale_charset): Treat empty environment variables as absent.
98632         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98633
98634 2000-05-04  Jim Meyering  <meyering@lucent.com>
98635
98636         * lib/getopt.c: Update from glibc.
98637         * lib/obstack.c: Likewise.
98638         * lib/obstack.h: Likewise.
98639         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98640         file
98641
98642         * lib/regex.h: Likewise.
98643         * lib/strndup.c: Likewise.
98644         * lib/strnlen.c: New file, from glibc.
98645
98646 2000-05-03  Jim Meyering  <meyering@lucent.com>
98647
98648         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98649
98650 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98651
98652         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98653         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98654         compile-time test, rather than inspecting host and OS, to
98655         decide whether to define _LARGEFILE_SOURCE.
98656
98657 2000-05-01  Jim Meyering  <meyering@lucent.com>
98658
98659         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98660
98661         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98662         Based on a patch from Bruno Haible.
98663
98664 2000-05-01  Jim Meyering  <meyering@lucent.com>
98665
98666         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98667
98668 2000-04-29  Jim Meyering  <meyering@lucent.com>
98669
98670         * lib/path-concat.c: Declare strdup only if it's not defined.
98671         * lib/canon-host.c: Likewise.
98672
98673 2000-04-28  Jim Meyering  <meyering@lucent.com>
98674
98675         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98676         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98677         is included first, then limits.h is included by locale.h by libintl.h.
98678         From John David Anglin.
98679
98680 2000-04-25  Jim Meyering  <meyering@lucent.com>
98681
98682         * lib/makepath.c (S_IRWXUGO): Define.
98683         (make_path): Always perform explicit chmod if MODE specifies any
98684         of the `special' permission bits.  Prompted by a bug report against
98685         install from Mate Wierdl and Joost van Baal.
98686
98687 2000-04-18  Jim Meyering  <meyering@lucent.com>
98688
98689         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98690         (jm_PREREQ): Use it.
98691
98692 2000-04-18  Jim Meyering  <meyering@lucent.com>
98693
98694         * lib/README: New file.
98695
98696         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98697         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98698
98699 2000-04-17  Jim Meyering  <meyering@lucent.com>
98700
98701         Get it right :-)
98702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98703         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98704         Suggestion from Akim Demaille.
98705
98706 2000-04-17  Jim Meyering  <meyering@lucent.com>
98707
98708         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98709         the definition of it to rpl_strftime also defined-away the system's
98710         declaration.
98711
98712 2000-04-15  Jim Meyering  <meyering@lucent.com>
98713
98714         Use `C' to denote so-called `contiguous' files, the same way
98715         that tar does.
98716         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98717         (ftypelet): Use S_ISCTG.
98718         From Michael Deutschmann.
98719
98720 2000-04-14  Jim Meyering  <meyering@lucent.com>
98721
98722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98723         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98724         clobbered.
98725
98726 2000-04-14  Jim Meyering  <meyering@lucent.com>
98727
98728         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98729
98730 2000-04-13  Jim Meyering  <meyering@lucent.com>
98731
98732         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98733         AH_VERBATIM to insert required #ifndef into config.h.in.
98734         Suggestion from Akim Demaille.
98735
98736 2000-04-12  Jim Meyering  <meyering@lucent.com>
98737
98738         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98739         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98740         Christian Krackowizer.
98741
98742         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98743         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98744         (AC_SYS_LARGEFILE): Require.
98745         (AM_C_PROTOTYPES): Require.
98746
98747 2000-04-08  Jim Meyering  <meyering@lucent.com>
98748
98749         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98750         names don't conflict.  Reported by Eli Zaretskii.
98751
98752 2000-04-07  Jim Meyering  <meyering@lucent.com>
98753
98754         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98755         sys/types.h, to work around system header problems on AIX 3.2.5.
98756         From Bruno Haible.
98757
98758 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98759
98760         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98761         bug.  Deal with the different error behavior of Irix iconv.
98762
98763 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98764
98765         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98766         IRIX if the installer said otherwise.
98767
98768 2000-04-05  Jim Meyering  <meyering@lucent.com>
98769
98770         Portability tweaks required for ultrix4.3.
98771         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98772         (jm_CHECK_DECLS): Add getutent to the list of functions.
98773         (_jm_DECL_HEADERS): Add utmpx.h.
98774         From John David Anglin.
98775
98776         * m4/strftime.m4: Back out the 2000-04-02 change.
98777         Instead of that change, simply undefine putenv in the test program.
98778
98779 2000-04-05  Jim Meyering  <meyering@lucent.com>
98780
98781         Portability tweaks required for ultrix4.3.
98782         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98783         getutent.
98784         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98785         * lib/canon-host.c: Declare strdup.
98786         * lib/path-concat.c: Likewise.
98787         From John David Anglin.
98788
98789 2000-04-04  Jim Meyering  <meyering@lucent.com>
98790
98791         Be more DOS 8.3-friendly.
98792         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98793         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98794         * lib/Makefile.am: Reflect renaming.
98795         Reported by Eli Zaretskii.
98796
98797         Use a temporary file name that won't clash with `charset.alias'
98798         in the DOS 8.3 name space.
98799         * lib/Makefile.am (charset_tmp): Define.
98800         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98801         (uninstall-local): Likewise.
98802         Reported by Eli Zaretskii.
98803
98804 2000-04-03  Jim Meyering  <meyering@lucent.com>
98805
98806         * m4/gettext.m4: Fix typo in comment.
98807
98808         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98809         textutils/configure.in).  Suggestion from Paul Eggert.
98810         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98811
98812 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98813
98814         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98815         variable in the shell rather than using putenv, which isn't
98816         portable.  This avoids the configure-time inter-test dependency
98817         on the potentially-renamed putenv function.
98818
98819 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98820
98821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98822         before checking struct stat.st_blksize, so that
98823         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98824
98825 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98826
98827         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98828         since strftime.c uses HAVE_STRFTIME to decide whether to use
98829         the underlying strftime.
98830
98831 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98832
98833         * lib/time/strftime.c (my_strftime): Make sure we call the system
98834         strftime, not ourselves, when invoking the underlying strftime.
98835
98836 2000-03-24  Jim Meyering  <meyering@lucent.com>
98837
98838         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98839         (charset_alias): Define.
98840         (install-exec-local): Factor out common code.
98841         (uninstall-local): Split lines longer than 80.
98842         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98843         (SUFFIXES): Define.
98844         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98845         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98846
98847 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98848
98849         * lib/config.charset: Output a line containing "Packages using this
98850         file".
98851         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98852         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98853         ref-del.sed): New rules.
98854
98855 2000-03-17  Jim Meyering  <meyering@lucent.com>
98856
98857         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98858         Otherwise, include <strings.h>
98859
98860 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98861
98862         * lib/unicodeio.c (utf8_wctomb): New function.
98863         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98864         format instead of in UCS-4 with platform dependent endianness.
98865
98866 2000-03-10  Jim Meyering  <meyering@lucent.com>
98867
98868         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98869         From Marco Franzen.
98870
98871 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98872
98873         * lib/savedir.c (savedir): Work even if directory size is
98874         negative; this can happen with some screwy NFS configurations.
98875
98876 2000-03-06  Jim Meyering  <meyering@lucent.com>
98877
98878         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98879         if it's NULL (because we ran out of memory).  From Bruno Haible.
98880
98881 2000-03-05  Jim Meyering  <meyering@lucent.com>
98882
98883         * lib/localcharset.c ("path-concat.h"): Include.
98884         (get_charset_aliases): Use path_concat instead of ANSI string
98885         concatenation.
98886
98887         * lib/unicodeio.h (PARAMS): Define.
98888         Use it to guard prototype.
98889
98890 2000-03-04  Jim Meyering  <meyering@lucent.com>
98891
98892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98893         for lib/localcharset.c.
98894
98895 2000-03-04  Jim Meyering  <meyering@lucent.com>
98896
98897         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98898         installing into it.
98899         (uninstall-local): Uncomment this rule so `make distcheck' works
98900         once again.
98901
98902         * lib/unicodeio.c (<errno.h>): Include it.
98903         (errno): Declare if not defined.
98904
98905         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98906
98907         * lib/config.charset: New version, incorporating remarks from a linux
98908         i18n mailing list.  From Bruno Haible.
98909
98910 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98911
98912         * m4/codeset.m4: New file.
98913         * m4/iconv.m4: New file.
98914         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98915
98916 2000-03-03  Jim Meyering  <meyering@lucent.com>
98917
98918         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98919
98920 2000-03-02  Jim Meyering  <meyering@lucent.com>
98921
98922         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98923         the messages come out on separate lines.
98924
98925         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98926         rather than jm_CHECK_DECLARATIONS.
98927         * m4/decl.m4: Remove now-unused file.
98928
98929         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98930         geteuid.
98931
98932 2000-03-02  Jim Meyering  <meyering@lucent.com>
98933
98934         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98935
98936 2000-03-01  Jim Meyering  <meyering@lucent.com>
98937
98938         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98939         * lib/unicodeio.c: Likewise.
98940
98941 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98942
98943         * lib/config.charset: New file.
98944         * lib/localcharset.c: New file.
98945         * lib/unicodeio.h, lib/unicodeio.c: New files.
98946         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98947         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98948         (noinst_HEADERS): Add unicodeio.h.
98949         (all-local, install-exec-local, charset.alias): New targets.
98950
98951 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98952
98953         * lib/quotearg.c (ALERT_CHAR): New macro.
98954         (quotearg_buffer_restyled): Use it.
98955
98956 2000-02-27  Jim Meyering  <meyering@lucent.com>
98957
98958         * m4/check-decl.m4: Add getenv to the list.
98959
98960 2000-02-27  Jim Meyering  <meyering@lucent.com>
98961
98962         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98963         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98964
98965         * lib/backupfile.c: Guard inclusion of stdlib.h with
98966         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98967         Declare malloc if needed.
98968
98969         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98970         `#ifndef HAVE_DECL..'
98971         now that autoconf always defines the HAVE_DECL_ symbols.
98972         * lib/human.c: Likewise.
98973         * lib/same.c: Likewise.
98974         * lib/strtoumax.c: Likewise.
98975
98976         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98977         declaration check was not run.
98978         * lib/hash.c: Likewise.
98979         * lib/human.c: Likewise.
98980         * lib/same.c: Likewise.
98981         * lib/strtoumax.c: Likewise.
98982
98983         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98984         `.', then first look up the entire `.'-containing string as a login
98985         name.
98986
98987 2000-02-23  Jim Meyering  <meyering@lucent.com>
98988
98989         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98990         in place of my hack.
98991
98992 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98993
98994         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98995         (textint): New typedef.
98996         (parser_control): Member year changed from int to textint.
98997         All uses changed.
98998         (YYSTYPE): Removed; replaced by %union with int and textint members.
98999         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99000         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99001         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99002         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99003         (date, number, to_year): Use width of number in digits, not its value,
99004         to determine whether it's a 2-digit year, or a 2-digit time.
99005         (yylex): Store number of digits of numeric tokens.
99006         Reported by John Kendall.
99007
99008         (parser_control): Changed from struct parser_control to typedef (for
99009         consistency).  All uses changed.
99010
99011         (tID): Removed; not used.
99012         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99013
99014 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99015
99016         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99017         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99018
99019 2000-02-12  Jim Meyering  <meyering@lucent.com>
99020
99021         * lib/userspec.c (ISDIGIT): Define it.
99022         (isdigit): Remove definition.
99023         (is_number): Use ISDIGIT, not isdigit.
99024         <libintl.h>: Include.
99025         (_ and N_): Define.
99026         (parse_user_spec): Mark translatable strings.
99027
99028 2000-02-10  Jim Meyering  <meyering@lucent.com>
99029
99030         With these changes, nanosleep.[ch] are finally enough like the other
99031         lib/* replacement files to compile on a few more losing systems.
99032
99033         * lib/nanosleep.h: Don't include config.h.
99034         Remove prototype from declaration of nanosleep.
99035         (PARAMS): Remove now-unneeded definition.
99036         * lib/nanosleep.c: #undef nanosleep.
99037         (rpl_nanosleep): Rename from nanosleep.
99038
99039 2000-02-10  Jim Meyering  <meyering@lucent.com>
99040
99041         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99042         gnu_nanosleep to rpl_nanosleep.
99043
99044 2000-02-09  Jim Meyering  <meyering@lucent.com>
99045
99046         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99047         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99048
99049 2000-02-08  Akim Demaille  <akim@epita.fr>
99050
99051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99052         `[' and `]' and remove uses of `changequote'.
99053         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99054         (AC_SYS_LARGEFILE): Likewise.
99055         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99056         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99057         of changequote.
99058         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99059         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99060         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99061         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99062
99063 2000-02-05  Jim Meyering  <meyering@lucent.com>
99064
99065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99066         Remove explicit use of AC_HEADER_TIME.  It is required by
99067         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99068         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99069         in autoconf whereby the expansion of the latter ended up preceding
99070         the expansion of its prerequisite, AC_HEADER_TIME.
99071         Reported by Volker Borchert.
99072
99073 2000-02-03  Jim Meyering  <meyering@lucent.com>
99074
99075         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99076
99077 2000-02-03  Jim Meyering  <meyering@lucent.com>
99078
99079         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99080         rather than with `#if HAVE_UTMPNAME'.
99081
99082 2000-02-02  Jim Meyering  <meyering@lucent.com>
99083
99084         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99085         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99086         Reported by Eli Zaretskii.
99087
99088 2000-02-01  Jim Meyering  <meyering@lucent.com>
99089
99090         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99091
99092 2000-01-31  Jim Meyering  <meyering@lucent.com>
99093
99094         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99095         functions.  Add the time.h and sys/time.h headers along with the
99096         AC_REQUIRE'ment of AC_HEADER_TIME.
99097
99098 2000-01-31  Jim Meyering  <meyering@lucent.com>
99099
99100         * lib/nanosleep.h (nanosleep): Guard declaration with
99101         `#if ! HAVE_DECL_NANOSLEEP'.
99102         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99103         the declaration in that vendor's sys/timers.h.
99104         Reported by Christian Krackowizer.
99105
99106         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99107         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99108         (ISPRINT): Likewise.
99109         Reported by Tom Tromey.
99110
99111 2000-01-30  Jim Meyering  <meyering@lucent.com>
99112
99113         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99114
99115         * m4/prereq.m4 (utmp_includes): Define.
99116         Check for ut_user and ut_name members in both struct utmpx
99117         and struct utmp.
99118
99119 2000-01-30  Jim Meyering  <meyering@lucent.com>
99120
99121         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99122         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99123         header files where only utmpx.ut_user is declared.
99124
99125         * lib/readutmp.h (UT_USER): Define.
99126
99127 2000-01-29  Jim Meyering  <meyering@lucent.com>
99128
99129         * m4/lib-check.m4: New file containing library-related checks from
99130         fileutils and sh-utils (textutils had none).
99131
99132 2000-01-28  Jim Meyering  <meyering@lucent.com>
99133
99134         * m4/perl.m4: Change format of warning message to look more like that
99135         from the missing script.  Suggestion from François Pinard.
99136
99137 2000-01-25  Jim Meyering  <meyering@lucent.com>
99138
99139         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99140         well as time.h in the compile check.
99141         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99142         Fix typo in cross-compiling case: s/yes/no/.
99143
99144 2000-01-23  Jim Meyering  <meyering@lucent.com>
99145
99146         * m4/jm-macros.m4: Move df-related tests here from
99147         fileutils/configure.in
99148
99149         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99150         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99151
99152         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99153         s/space/ac_fsusage_space/.
99154         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99155
99156         * m4/ftruncate.m4: New file (derived from part of
99157         fileutils/configure.in).
99158         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99159         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99160
99161         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99162         AC_SUBST these here, rather than just in sh-util/configure.in, so
99163         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99164         all the same.
99165         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99166         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99167         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99168         (AC_SUBST(POW_LIBM)): Likewise.
99169         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99170
99171 2000-01-23  Jim Meyering  <meyering@lucent.com>
99172
99173         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99174         obstack.c.
99175
99176 2000-01-22  Jim Meyering  <meyering@lucent.com>
99177
99178         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99179
99180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99181
99182         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99183         configure.in
99184         (AC_CHECK_HEADERS): Likewise for sh-utils.
99185         (AC_CHECK_HEADERS): Likewise for textutils.
99186         Merge the three lists of headers.
99187
99188         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99189         from fileutils' configure.in.
99190
99191         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99192         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99193         check-decl.m4.
99194
99195         * m4/check-decl.m4: Use #if rather than #ifdef.
99196         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99197         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99198         (_jm_DECL_HEADERS): Define new function.
99199         (jm_CHECK_DECLARATIONS): Require it.
99200
99201 2000-01-22  Jim Meyering  <meyering@lucent.com>
99202
99203         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99204         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99205         Required for some AIX systems.  Reported by Christian Krackowizer.
99206         [TESTING] (main): New function.
99207
99208         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99209         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99210         letters.
99211
99212         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99213         iswprint.
99214
99215         * lib/strverscmp.c (ISDIGIT): Define.
99216         (strverscmp): Use ISDIGIT, not isdigit.
99217
99218 2000-01-19  Jim Meyering  <meyering@lucent.com>
99219
99220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99221         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99222         defines `struct timespec' in <sys/time.h>
99223
99224         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99225         Thanks to Akim for explaining.
99226
99227 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99228
99229         * lib/nanosleep.c (nanosleep):
99230         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99231         POSIX.1 doesn't require SA_INTERRUPT and some systems
99232         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99233         it's been part of POSIX.1 since day 1 (in 1988).
99234
99235 2000-01-17  Jim Meyering  <meyering@lucent.com>
99236
99237         * lib/interlock: Remove unused file.  Reported by François Pinard.
99238
99239 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99240
99241         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99242         alert, backslash, formfeed, and vertical tab unnecessarily in
99243         shell quoting style.
99244
99245 2000-01-16  Jim Meyering  <meyering@lucent.com>
99246
99247         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99248         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99249         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99250         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99251
99252 2000-01-16  Jim Meyering  <meyering@lucent.com>
99253
99254         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99255         because the latter didn't work.
99256
99257 2000-01-15  Jim Meyering  <meyering@lucent.com>
99258
99259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99260         (AC_REPLACE_FUNCS): Add memcpy and memset.
99261         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99262         Add strpbrk.
99263         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99264
99265 2000-01-12  Jim Meyering  <meyering@lucent.com>
99266
99267         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99268         (jm_PREREQ): Use it.
99269         (jm_PREREQ_READUTMP): New macro.
99270         (jm_PREREQ): Use it.
99271
99272 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99273
99274         Quote multibyte characters correctly.
99275         * m4/c-bs-a.m4: New file.
99276         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99277         (jm_PREREQ): Use it.
99278
99279 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99280
99281         * m4/uintmax_t.m4: Port to autoconf 2.13.
99282
99283 2000-01-08  Jim Meyering  <meyering@ascend.com>
99284
99285         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99286         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99287
99288 2000-01-04  Jim Meyering  <meyering@ascend.com>
99289
99290         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99291         jm_STRUCT_DIRENT_D_TYPE.
99292         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99293         jm_STRUCT_DIRENT_D_INO.
99294         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99295         jm_STRUCT_UTIMBUF.
99296         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99297         renamings.
99298         * m4/utime.m4: Likewise.
99299
99300         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99301         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99302
99303 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99304
99305         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99306         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99307
99308 2000-01-02  Jim Meyering  <meyering@ascend.com>
99309
99310         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99311         remember if this is necessary.
99312
99313 1999-12-26  Jim Meyering  <meyering@ascend.com>
99314
99315         * m4/jm-macros.m4: Use it here.
99316         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99317
99318 1999-12-23  Jim Meyering  <meyering@ascend.com>
99319
99320         * m4/jm-macros.m4: Check for clock_gettime (moved from
99321         fileutils/configure.in)
99322         Check for gettimeofday.
99323
99324 1999-12-20  Jim Meyering  <meyering@ascend.com>
99325
99326         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99327         autoconf-2.14a-1999-12-20.
99328
99329 1999-12-19  Jim Meyering  <meyering@ascend.com>
99330
99331         * m4/lstat-slash.m4: New file.
99332         * m4/jm-macros.m4: Use the new macro:
99333         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99334
99335 1999-12-07  Jim Meyering  <meyering@ascend.com>
99336
99337         * m4/perl.m4: Require that File::Compare be available, too.
99338         Too many systems seem to lack it.
99339
99340         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99341         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99342
99343 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99344
99345         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99346         problem with the QNX 4.25 shell, which doesn't propagate exit
99347         status of failed commands inside shell assignments.
99348
99349 1999-11-17  Jim Meyering  <meyering@ascend.com>
99350
99351         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99352
99353 1999-11-07  Jim Meyering  <meyering@ascend.com>
99354
99355         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99356
99357 1999-11-06  Jim Meyering  <meyering@ascend.com>
99358
99359         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99360         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99361
99362 1999-11-05  Jim Meyering  <meyering@ascend.com>
99363
99364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99365         configure.in of textutils, fileutils, and sh-utils into this one
99366         (shared between those packages) file.
99367         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99368         AC_STRUCT_ST_BLKSIZE.
99369
99370 1999-11-03  Jim Meyering  <meyering@ascend.com>
99371
99372         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99373         of AC_CHECK_TYPE checks includes unistd.h.
99374         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99375         Suggestion from Akim Demaille.
99376
99377 1999-10-30  Jim Meyering  <meyering@ascend.com>
99378
99379         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99380         m4-quoted string.
99381         * m4/ls-mntd-fs.m4: Likewise.
99382         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99383         * m4/jm-winsz1.m4: Likewise.
99384
99385         * m4/const.m4: Remove file, since the fix made it into the experimental
99386         version of autoconf.
99387         * m4/mktime.m4: Likewise.
99388
99389         * m4/check-type.m4: Remove file, now that the latest version of
99390         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99391
99392         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99393         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99394         AC_CHECK_TYPE.
99395
99396 1999-10-04  Jim Meyering  <meyering@ascend.com>
99397
99398         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99399
99400 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99401
99402         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99403         2.95.1 bug with HP-UX 10.20.
99404
99405 1999-09-17  Jim Meyering  <meyering@ascend.com>
99406
99407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99408         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99409         due to missing strdup (against sh-utils-2.0).
99410
99411 1999-08-29  Jim Meyering  <meyering@ascend.com>
99412
99413         * m4/jm-macros.m4: Require jm_BISON.
99414         * m4/bison.m4: New file.
99415
99416 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99417
99418         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99419         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99420
99421 1999-08-05  Jim Meyering  <meyering@ascend.com>
99422
99423         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99424         to avoid conflicts with `conftest' on 8+3 filesystems.
99425         Suggestion from Eli Zaretskii.
99426
99427 1999-08-04  Jim Meyering  <meyering@ascend.com>
99428
99429         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99430         fileutils and sh-utils (textutils's getline test was inadequate).
99431         (AM_FUNC_GETLINE): Run this test.
99432         (AC_CHECK_FUNCS): Check for getdelim.
99433         Reported by Bob Proulx.
99434
99435 1999-08-02  Jim Meyering  <meyering@ascend.com>
99436
99437         * m4/jm-macros.m4: Add a comment.
99438
99439 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99440
99441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99442         <inttypes.h> defines strtoumax as a macro (and not as a
99443         function).
99444
99445 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99446
99447         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99448         that we can shift, multiply and divide unsigned long long
99449         values; Ultrix cc can't do it.
99450
99451 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99452
99453         * m4/mktime.m4: New file, which is a preview of what should appear
99454         in the next public autoconf release.
99455
99456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99457
99458         * m4/lfs.m4: Remove this file.
99459         * m4/largefile.m4: New file.  It contains the old contents of
99460         lfs.m4, except that all names with prefix AC_LFS have been
99461         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99462         compatible with future autoconf versions.  Also, some minor m4
99463         quoting problems have been fixed.
99464
99465 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99466
99467         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99468         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99469         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99470         and simplify the shell code.
99471
99472 1999-08-01  Jim Meyering  <meyering@ascend.com>
99473
99474         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99475         m4.
99476
99477 1999-07-20  Jim Meyering  <meyering@ascend.com>
99478
99479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99480
99481 1999-07-15  Jim Meyering  <meyering@ascend.com>
99482
99483         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99484
99485 1999-05-22  Jim Meyering  <meyering@ascend.com>
99486
99487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99488
99489 1999-05-20  Jim Meyering  <meyering@ascend.com>
99490
99491         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99492         Add a colon after each `then' in case $4 is empty.
99493
99494 1999-05-16  Jim Meyering  <meyering@ascend.com>
99495
99496         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99497
99498 1999-05-10  Jim Meyering  <meyering@ascend.com>
99499
99500         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99501
99502         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99503         AC_FUNC_MKTIME.
99504
99505 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99506
99507         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99508
99509 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99510
99511         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99512         not CPPFLAGS, so that linking works correctly in IRIX.
99513
99514 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99515
99516         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99517
99518 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99519
99520         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99521         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99523         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99524         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99525
99526         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99527
99528 1999-04-20  Jim Meyering  <meyering@ascend.com>
99529
99530         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99531         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99532         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99533
99534 1999-04-18  Jim Meyering  <meyering@ascend.com>
99535
99536         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99537         * m4/jm-macros.m4: Use it.
99538
99539 1999-04-06  Jim Meyering  <meyering@ascend.com>
99540
99541         * m4/strftime.m4: Remove test for %f.
99542
99543 1999-03-29  Jim Meyering  <meyering@ascend.com>
99544
99545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99546         superset of the AC_TYPE_* checks in the textutils, fileutils,
99547         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99548         AC_TYPE_PID_T.
99549
99550 1999-03-28  Jim Meyering  <meyering@ascend.com>
99551
99552         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99553         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99554         replaced e.g., in the *.sh files of the sh-utils.
99555
99556 1999-03-20  Jim Meyering  <meyering@ascend.com>
99557
99558         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99559         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99560         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99561
99562 1999-03-19  Jim Meyering  <meyering@ascend.com>
99563
99564         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99565
99566 1999-03-12  Jim Meyering  <meyering@ascend.com>
99567
99568         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99569
99570 1999-03-07  Jim Meyering  <meyering@ascend.com>
99571
99572         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99573         declared.
99574
99575 1999-02-17  Jim Meyering  <meyering@ascend.com>
99576
99577         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99578         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99579
99580 1999-02-07  Jim Meyering  <meyering@ascend.com>
99581
99582         * m4/group-member.m4: New file -- extracted from sh-utils'
99583         configure.in.
99584
99585         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99586         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99587
99588 1999-02-06  Jim Meyering  <meyering@ascend.com>
99589
99590         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99591         * m4/fnmatch.m4: Likewise.
99592         * m4/getgroups.m4: Likewise.
99593         * m4/lstat.m4: Likewise.
99594         * m4/malloc.m4: Likewise.
99595         * m4/putenv.m4: Likewise.
99596         * m4/realloc.m4: Likewise.
99597         * m4/regex.m4: Likewise.
99598         * m4/stat.m4: Likewise.
99599         * m4/strftime.m4: Likewise.
99600         Suggestion from Alain Magloire.
99601
99602         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99603         * m4/fnmatch.m4: Likewise.
99604         * m4/getgroups.m4: Likewise.
99605         * m4/getline.m4: Likewise.
99606         * m4/lstat.m4: Likewise.
99607         * m4/malloc.m4: Likewise.
99608         * m4/memcmp.m4: Likewise.
99609         * m4/putenv.m4: Likewise.
99610         * m4/realloc.m4: Likewise.
99611         * m4/regex.m4: Likewise.
99612         * m4/stat.m4: Likewise.
99613         * m4/strftime.m4: Likewise.
99614         Suggestion from Alain Magloire.
99615
99616         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99617         an argument.
99618
99619         * m4/regex.m4: Add a run-time Test for proper operation of
99620         re_compile_pattern.
99621
99622 1999-01-31  Jim Meyering  <meyering@ascend.com>
99623
99624         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99625
99626 1999-01-30  Jim Meyering  <meyering@ascend.com>
99627
99628         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99629
99630         * m4/jm-mktime.m4: Make this a wrapper around the official
99631         AM_FUNC_MKTIME rather than my private copy, now that the official one
99632         is up to date.
99633         * m4/mktime.m4: Remove file.
99634
99635         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99636         * m4/uptime.m4: Likewise.
99637         * m4/uintmax_t.m4: Likewise.
99638
99639 1999-01-28  Jim Meyering  <meyering@ascend.com>
99640
99641         * m4/jm-macros.m4: Use jm_AFS.
99642         * m4/afs.m4: New file (from fileutils' configure.in).
99643
99644         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99645         * m4/chown.m4: Likewise.
99646         * m4/d-ino.m4: Likewise.
99647         * m4/d-type.m4: Likewise.
99648         * m4/fnmatch.m4: Likewise.
99649         * m4/getgroups.m4: Likewise.
99650         * m4/gettext.m4: Likewise.
99651         * m4/jm-mktime.m4: Likewise.
99652         * m4/jm-winsz2.m4: Likewise.
99653         * m4/lcmessage.m4: Likewise.
99654         * m4/ls-mntd-fs.m4: Likewise.
99655         * m4/malloc.m4: Likewise.
99656         * m4/memcmp.m4: Likewise.
99657         * m4/putenv.m4: Likewise.
99658         * m4/realloc.m4: Likewise.
99659         * m4/st_mtim.m4: Likewise.
99660         * m4/strftime.m4: Likewise.
99661
99662 1999-01-16  Jim Meyering  <meyering@ascend.com>
99663
99664         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99665         (ARGMATCH_DIE_DECL): Define.
99666
99667 1999-01-12  Jim Meyering  <meyering@ascend.com>
99668
99669         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99670         Reported by Lars Hecking.
99671
99672 1999-01-10  Jim Meyering  <meyering@ascend.com>
99673
99674         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99675         gross kludge.
99676         * m4/inttypes_h.m4: Likewise.
99677         * m4/lstat.m4: Likewise.
99678         * m4/malloc.m4: Likewise.
99679         * m4/readdir.m4: Likewise.
99680         * m4/realloc.m4: Likewise.
99681         * m4/st_dm_mode.m4: Likewise.
99682         * m4/stat.m4: Likewise.
99683         * m4/utimbuf.m4: Likewise.
99684         * m4/utimes.m4: Likewise.
99685
99686         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99687         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99688         comments in config.h.in are meaningful.
99689
99690         * m4/jm-macros.m4: Require autoconf-2.13 here.
99691
99692         * m4/regex.m4: By default, don't use the included regex.c on systems
99693         with glibc 2.  Suggestion from Uli Drepper.
99694
99695 1999-01-02  Jim Meyering  <meyering@ascend.com>
99696
99697         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99698
99699 1998-12-18  Jim Meyering  <meyering@ascend.com>
99700
99701         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99702         Based on a suggestion from Lars Hecking.
99703
99704 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99705
99706         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99707
99708 1998-11-16  Jim Meyering  <meyering@ascend.com>
99709
99710         * m4/lfs.m4: Double-quote the `uname...` expression.
99711
99712 1998-11-14  Jim Meyering  <meyering@ascend.com>
99713
99714         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99715         * m4/stat.m4: Likewise.
99716
99717 1998-11-03  Jim Meyering  <meyering@ascend.com>
99718
99719         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99720         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99721
99722 1998-10-18  Jim Meyering  <meyering@ascend.com>
99723
99724         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99725
99726 1998-10-17  Jim Meyering  <meyering@ascend.com>
99727
99728         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99729         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99730         calls for those previously hard-coded headers.  Instead, take a new
99731         parameter.
99732         (jm_CHECK_DECLARATIONS): Reflect interface change.
99733         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99734         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99735
99736         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99737
99738 1998-10-14  Jim Meyering  <meyering@ascend.com>
99739
99740         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99741         instead of "TZ=America/Vancouver".  From Paul Eggert.
99742
99743 1998-10-11  Jim Meyering  <meyering@ascend.com>
99744
99745         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99746         This adds a test for a recently added compatibility fix for mktime.c.
99747         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99748
99749 1998-09-27  Jim Meyering  <meyering@ascend.com>
99750
99751         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99752
99753         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99754         ../configure.in, including a change from Gordon Matzigkeit to allow
99755         cross-compiling for the Hurd.
99756
99757         * m4/glibc.m4: New file/macro to test for the GNU C Library
99758         versions 1 and 2.  From Gordon Matzigkeit.
99759         Indent.
99760
99761 1998-09-21  Jim Meyering  <meyering@ascend.com>
99762
99763         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99764
99765 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99766
99767         Port nanosecond-resolution times to UnixWare 2.1.2 and
99768         pedantic Solaris 2.6.
99769
99770         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99771         AC_STRUCT_ST_MTIM.
99772         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99773         Generate name of ns member, instead of just 1 or undef.
99774         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99775
99776 1998-08-15  Jim Meyering  <meyering@ascend.com>
99777
99778         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99779         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99780         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99781         instead of jm_TYPE_SSIZE_T.
99782
99783 1998-08-12  Jim Meyering  <meyering@ascend.com>
99784
99785         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99786
99787 1998-08-02  Jim Meyering  <meyering@ascend.com>
99788
99789         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99790         in acconfig.h manually.
99791
99792 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99793
99794         * m4/st_mtim.m4: New file.
99795
99796 1998-07-28  Jim Meyering  <meyering@ascend.com>
99797
99798         * m4/utimes.m4: Undef stat.
99799
99800 1998-07-25  Jim Meyering  <meyering@ascend.com>
99801
99802         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99803         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99804
99805 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99806
99807         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99808         uid and gid actually remain unchanged.
99809
99810 1998-07-07  Jim Meyering  <meyering@ascend.com>
99811
99812         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99813
99814 1998-07-04  Jim Meyering  <meyering@ascend.com>
99815
99816         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99817         to prove that this macro can be used in packages without regex.c.
99818
99819 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99820
99821         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99822         is to be used.
99823
99824 1998-07-03  Jim Meyering  <meyering@ascend.com>
99825
99826         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99827
99828         * m4/gettext.m4: New file -- from gettext-0.10.35.
99829         * m4/lcmessage.m4: Likewise.
99830         * m4/progtest.m4: Likewise.
99831
99832         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99833         * m4/jm-macros.m4: Require the new macro.
99834
99835 1998-06-29  Jim Meyering  <meyering@ascend.com>
99836
99837         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99838         for the definition of NGROUPS (used in a system header included
99839         by sys/mount.h).
99840
99841 1998-06-28  Jim Meyering  <meyering@ascend.com>
99842
99843         * m4/ls-mntd-fs.m4: New file.
99844         * m4/fstypename.m4: New file.
99845
99846         * m4/jm-macros.m4: Require the new macro.
99847         * m4/jm-glibc-io.m4: New file.
99848
99849 1998-05-19  Jim Meyering  <meyering@ascend.com>
99850
99851         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99852         * m4/lchown.m4: New file.
99853
99854         * m4/Makefile.am.in: New file.
99855         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99856
99857 1998-05-14  Jim Meyering  <meyering@ascend.com>
99858
99859         * m4/Makefile.am (EXTRA_DIST): Add them.
99860         * m4/jm-macros.m4: New file.
99861         * m4/utimbuf.m4: New file.
99862
99863 1998-05-12  Jim Meyering  <meyering@ascend.com>
99864
99865         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99866
99867 1998-05-11  Jim Meyering  <meyering@ascend.com>
99868
99869         * m4/isc-posix.m4: New file.
99870
99871 1998-05-10  Jim Meyering  <meyering@ascend.com>
99872
99873         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99874
99875 1998-05-09  Jim Meyering  <meyering@ascend.com>
99876
99877         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99878         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99879         with automake.
99880
99881         * m4/ssize_t.m4: New file.
99882         * m4/mktime.m4: Remove file -- the new automake has this now.
99883
99884 1998-04-26  Jim Meyering  <meyering@ascend.com>
99885
99886         * m4/assert.m4: New file.
99887         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99888
99889 1998-04-05  Jim Meyering  <meyering@ascend.com>
99890
99891         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99892         (jm_PREREQ): Use it here.
99893
99894 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99895
99896         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99897         in acconfig.h.
99898
99899 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99900
99901         * m4/prereq.m4: New file.
99902         * m4/error.m4: New file.
99903         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99904
99905 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99906
99907         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99908         cache-check for the same variable -- that defeated the purpose of
99909         the test; the test program was never run.  This was a problem only
99910         on systems with losing getline functions -- HP-UX 10.20 is one.
99911         Reported by Bjorn Helgaas.
99912
99913 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99914
99915         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99916
99917 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99918
99919         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99920
99921         * m4/const.m4: New file.  Use an initializer in this declaration
99922         typedef int charset[2]; const charset x;
99923         Reported by Bob Glickstein.
99924
99925 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99926
99927         * m4/chown.m4: Fix reversed types on -1 args to chown.
99928         From Kaveh Ghazi.
99929
99930 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99931
99932         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99933         Add lseek and memchr.
99934
99935         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99936         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99937         have a 20-character limit on names.
99938
99939 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99940
99941         * m4/inttypes_h.m4: New file.
99942         * m4/uintmax_t.m4: New file.
99943         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99944
99945
99946         -----
99947
99948         Local Variables:
99949         coding: utf-8
99950         End:
99951
99952         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99953
99954         Copying and distribution of this file, with or without
99955         modification, are permitted provided the copyright notice
99956         and this notice are preserved.